From 9211fc4d6342893dea8f6f683e9d1cd0cc333d95 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Mon, 15 May 2023 15:12:02 +0530 Subject: [PATCH 1/8] update subxt --- Cargo.toml | 8 +- build.rs | 14 +- evm-test-utils/Cargo.toml | 2 +- metadata/tangle-runtime.scale | Bin 283516 -> 280845 bytes src/substrate/dkg_runtime.rs | 12188 ++- src/substrate/protocol_substrate_runtime.rs | 76053 +++++++++-------- src/substrate/tangle_runtime.rs | 78432 ++++++++++-------- 7 files changed, 97558 insertions(+), 69139 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d08773c..91b7e19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ members = [".", "proposals", "bridge-proofs", "evm-test-utils"] # Substrate crates. scale = { package = "parity-scale-codec", version = "3", default-features = false, optional = true } scale-info = { workspace = true, optional = true } -subxt = { version = "0.27", optional = true } +subxt = { git = "https://github.com/paritytech/subxt.git", branch = "master", optional = true } async-trait = "0.1" rand = { version = "0.8", default-features = false, features = ["getrandom"] } thiserror = "1.0.38" @@ -59,10 +59,10 @@ sp-keyring = "18.0.0" serde_json = "1" tempfile = "3.3" ethers = { workspace = true, default-features = false, optional = true, features = ["legacy", "abigen"] } -syn = { version = "1.0.107", optional = true } +syn = { version = "2.0.15", optional = true } scale = { package = "parity-scale-codec", version = "3", default-features = false, optional = true } -frame-metadata = { version = "15.0.0", optional = true, features = ["v14", "std"] } -subxt-codegen = { version = "0.27", optional = true } +frame-metadata = { version = "15.1.0", optional = true, features = ["v14", "std"] } +subxt-codegen = { git = "https://github.com/paritytech/subxt.git", branch = "master", optional = true } [features] default = ["substrate-runtime", "evm-runtime"] diff --git a/build.rs b/build.rs index 5c6c385..ad7f436 100644 --- a/build.rs +++ b/build.rs @@ -180,25 +180,29 @@ mod substrate { pub mod api {} ); // Default type substitutes. - let substs = TypeSubstitutes::new(&CratePath::default()); + let substs = + TypeSubstitutes::with_default_substitutes(&CratePath::default()); // Generate the Runtime API. let generator = subxt_codegen::RuntimeGenerator::new(metadata); let mut generated_type_derives = - subxt_codegen::DerivesRegistry::new(&CratePath::default()); + subxt_codegen::DerivesRegistry::with_default_derives( + &CratePath::default(), + ); generated_type_derives.extend_for_all( vec![ syn::parse_quote!(Eq), syn::parse_quote!(PartialEq), syn::parse_quote!(Clone), - ] - .into_iter(), + ], + vec![], ); let runtime_api = generator.generate_runtime( item_mod, generated_type_derives, substs, CratePath::default(), - ); + true, + )?; std::fs::write(out, runtime_api.to_string())?; Ok(()) } diff --git a/evm-test-utils/Cargo.toml b/evm-test-utils/Cargo.toml index 8d3dc0d..3139a2d 100644 --- a/evm-test-utils/Cargo.toml +++ b/evm-test-utils/Cargo.toml @@ -13,7 +13,7 @@ documentation = { workspace = true } homepage = { workspace = true } [dependencies] -anvil = { git = "https://github.com/foundry-rs/foundry.git", rev = "394f217" } +anvil = { git = "https://github.com/foundry-rs/foundry.git", rev = "6570a4c" } futures = "0.3" hex = { workspace = true } webb-proposals = { path = "../proposals", default-features = false } diff --git a/metadata/tangle-runtime.scale b/metadata/tangle-runtime.scale index b20c6826b718a83acf5bf7ba099458c0eed3a0bd..6f22ea1f121c6f8731a6f21e9061aed9308456ee 100644 GIT binary patch delta 27025 zcmcJ&4|r6?^*4Uc%-zjyNMJ(}vVjB^2qb|dBoH7$f&>TkomIp0S7L)xX~TcS11 z@{LMFKMD5}ELz)W%_WQWM{7FSwI8h`DOSq}n~s9Fg-xQ7+G}AMRH&T|8%#x7FIy&+ zYEx_@X^ytaHj3tH&)afnzIMizOCBxRo<&QwdG<_d(0*+nLaVfW_9AsH(S4$22#?kJ zgeTAzEhjuv-A1%gY+J-)v^C)=v|Za7K8tp0m%I6tLxTFdk+7WcT1&x+O}>* zv|l^hZ6O`hW=71RBifFLMRZJaL|#kBwUWpi>7@2delhyTThaV_^r4tI2RW8_Yb)QT%o4w^&KGc3Ps6LC zZA=|P?`S!xgR~PVBmOJY4RH}y#q(0?r2hgjbjY>;1>*i8dH)6C=OM*(RJ?W_#WYt8 z4Ulj}lf8NL@B~6j-b_oeA5|2lC?7^t8%z+Meht0dJURViRhu=U3Lr0zaN+y25gGUn z&rZd6w(-3ndk~&~nVo{~rfiw}d3HL!!$%r0BZuR8(a4eb-a1mkyg70hzW*V=n+K1& zpV6e|133kj)oDdw%Sv~>dzPo(MlrtSwI2UZlpRVfmhbA=(5uVH&mhNQcVKav93GFi z#=Xch6|ZVe=*=Z_GrFrEwic`M`CV>TU2rg6#+%<$5B2MIWUcOku1;iCn3QBp4;7v5ch?3$Kgf%qlsdm>S=p7lt{k1R z%`6R)5Qqv{$FND8Bj2DO)T(@-s`KKRqr##DxtzxQ`b=M8KmVG$Ame3e(xf0t;p=jsgn5}ReoPhI?-$+ zPiqN8-&pT!eIEpKnYf$g~QN%j3t`0L1KTPram&a&4Fj&%@SU%n zyD2d|A5~*TR|+r{F0z?a*xc)8P+O!;ou5oe&2{s~^1fr|)Ikt?Dhq4f74>Mdjne!c z<58xH^Q9~%BCWDxO7sYu`VP7fJ!KYhRiSqSA?~bmS66%LAq|#+jih{SkX2|)AFE}h z=z~9#Q=8kXd-JvKZyB3|1P6CDPph2F*gO(n^yGb-cUR3NKA$2)X)1GyVG%4$E3E9+ zJYw5*A`WD?ENViF%9Md+~0~<9+*yxiQ02S-i;X#VuO=(jm-4B5MeX z*A^_@MP6-#e<0Opd;KxmM1Nts_Z97)W3+{Vx(@H%>Wjj?#xOb@N{zO#eh^zqqJJ{) zt-VxaZ{Ahki=gPd-jGF&+J%NQ5siT54nu0J(!O7|iPmasmd~MeVox^9p!J$%MQPj1 zohxRWF9Wszthk9*YBx6Sh+9Vy(`5@QJ(Xn@K6EF>##b8Ag1)*$JE{SHYLyP-j7YDVvF$*Ly0) z&K{@W8IsMRY$0(zi}!M1D%7j$Y=y=q6x3GwmTM)erZ<0d+c+z2)gHa0Kzr@BURvE9 z8OGZpi*q`ro&-sbRO_Wca#i^~UTKObl`*v4X7_eqm2WS+R z+!MJ~_N&e4*KH(@UdIxfANs|12DLH&P7P|~@jLfXllGfmZNT??w~o?^?}}%8Nl*z( zlpLpRzUvt%k@@TIK>i!+Uts%5_+~Pf_QAj8n?H$9{)UkGr4)l zZ{k?ofva?)929nt#G~_Boc7>`-_jv%$UQgEVeO84YN@ID{5>h;I3zo@iIl_mwL~gM zwA78?KzWVY^d&n^;`V9`ZTEW%>4c=jsny-9#hv&sHL52m;%04kWSq7@TT3m?Uus@r zr%0SF=6xh5M4Qo5JF0(Mj!nE`U=JaS^K(Vvt zO%MFa0zF*(XETdy&U$1wqbTjm$K0?oK7V{r^P+7|qIhl1<2M-zhw=U7?;4TfdSY&N zA|uDt;Uh;WloF_iU@G(beD!UKNeg|IjUCgJL~Yj-8L(YGdt#1bkR&WkNtHjC$m!bn z?V~A6Td{or%$kR`_jP0;#|jaRAJCu6w3hC%+Ml*3Gsj}B?wR=b3?+NuK-Wa9;?68FEjyB8)1Y>i$%PrJ ztV%IhifaOS+8=gKpn_)0(_d0to+LM)DfnPyGBcF|nUJaNZgOfdyCy@9-?VEmD`MKF zD5utAcWh26QzFP&>+{#Rt4kTl37h7t!(t(YM{812jk^}|*ynFFVU$vBPg5`LKfA`l zmb<1Y5#RHg5@P2t$|`8f4eU zHUIwE7a4@<(&zH9R6hIMc zk&y0^gO#B@^!r2ubfDP%IP1yCg#tehx-xKr9G)efMwKEU64q;_FT}Hi`P%v4M{BEJ zSkq;phDu+VJ7A-T<%@mmMayGg;JW=5vsTU%ihv+rJGuYH*elj5&VNNkd@ZwS$8PPN zkTw%qoVUg^5euq9&pT%|2EZgL_!9zb=^OL4hhFNdHZqvRQSZ&ydcT~Yu9Ct~=7^X3 zsOuP{-O@L1)_NX@ZGPs!CQ>gk7|1fE`>WlWpL+FaqP^PDgJs&@gMH}$o>r=dxPkg+ zZPy?AsVy9+CHO0^+q4m{4~6(BdwnBB*16YLL7<#_yg|DQmIWrhEP49v z6g4-5X6fN%HQxeKWzLU>U21^^i#7kri6BJ+Ca#YTk>`tp77WEwTg~d)NPD zsdFqKTb7D{CsUnop%cc-&Uc2Y?hwB0BdOrt1xJ3(ye6Wl?+#NNEN~{sav#4t3Jlr( zy}Q*_p#uMUFI8O|!uyM(!_@T_cp+p*L?265H-wt=;4zol6ng3Xem{1?q8&T9K-=@S<3+^`lmiPC7e#4d`B(UcfLNzz<% z*Eje*M#?aHyM4Zj75Rd2gi(6j#sAVCNQG8EP!Dn45Ed?$Mp1u8T-+B$GgOedLOd8n zeRZ`bF$yObHS9cAc`owbXZ^(7KU1VWGlq_^t99+PIQpKpiZM>ArAD#SNuw!BZ*kH} zMwwzkANp5HM}e3WT46I>A#VcsL`q^QRC|l?0TfS}`ou(9PtLB2iud|ae?Xn@M-wQc zE2tckA4An(_H?Kwm9q8h0rUsz*A)V%)NgO~i2Od(hpCx*+8`Q0aa}+gB3=|E(;%8I zmL$_Kx}-mpOp}SS^siE=oBaJgl}2=C=@D3tCi-yK$kX43_WWCQc>6bw1=un~LOdO3$&M%z_yQ zd);tENq0c2GpP!1l7*$0R6@92hGWfBD;;YYN?M8A?*=q9#4+z+AcH=QF|MM9K)tKN z2M<=D&R1J0okP$gUF9JcQnB>>m1pFU3x6mWas~yR1TKt}%U$d81bsx}*n2FR%C&9d zV)Dz!%Q7zD1MdK6Hov}>vRJj|f>#v6FhVoer(3pzcw}9sQ#{5OF0s{4y<1Xlo zJ5=Io$XA!o@=6Ud1baE!w`B{^Zgb+7n_id-801jb%*MOw8WvW2D_VO$8by4y=@pC7!6Ek)Jer1MH^Wsv1AZQZ zoX%}Ar%$&+%AmDkOd*wBMd(OrEj})!CkLxelf|X_nMO8;L=XMbAuUc-NrSggQTB4_ zFzhY1RI^C&#C6oi^q|k6a=phig6sT4aW;zvMqyGEd8A({5FBfL{B*24J#so&2xCO# z4B8!&;923RfalLfts}Np3@xFo@GNF}qbNyKmC!9Ior>R#-Yrg<;2P>G!oQN#a@TU{ zvl{b>=rM~%S?@x2QMo9YMX}*QM?vb2bkVnz`i^mxho)wEg8AgZa?v_3P%-@PvH=sN zmr&`FGL|ELE~R%msR8h+LuSz`M2G?0??y6dTDXT3y-8)%Z4IhRHNZge@N z&_40(TaXT1@e=`t5x)AddJGzmZ6koP?yRKvsWc& zy&E1rQ+tZ1G+8o1JieIDb-ff#zXc1HX%UFkw~(C_Qpe#5$nU3btR*21MHe}K4f2RY3--pjenUESb;x}6!+wGC}fQKsu-e?fh? zICLkyhIRSQU(tIc%GcARPQ&#?amqwY(`w(Ml!>XS=2Ue}ba?}=3K-j7>0yN*53?;p z>{(B)s8gJs-#9^b$HNbw%e)n3@pNbLz&p;$?oe-&5mT=7B091x0&FSNJrzq_l~5JD)rLzrhzUfO`8{>j?uroBlvJ!6l`a^}b&KHysqxgNq-KZ* zH_|xF#S^W%e^!g{;x3_<nVYF6Z=qKiJHrjPzv%ujITFru z_*YstQO0yMNpB z$n>`7QMql;qYK)eb4uHubLY$F1OtCornlWoR)c(59n2cOwq4eU4eegCx3qg1xxL-X zsJ(bmWCPemuHXarOcuMu6?_!y%Zh9cv#8igk#iE8>?$(s^2K(EN2&@wiq#sWDp9Jo z>89S|*{zTOvfV6RRq!ziCCWmHc;V6)gwnDz*dSHG#{fu`0I3oHwMqclLo7>G@G$^J zN`R3P0RJR_>^7FCD)<-x`4S*s0$7yQ21J2`C{z`E42U8LQ6wR(CW=xCFh^DJF#zUC zfO!%i%mk3#&fKbkj{)G303Hb-UDF`KD*kds)X(iEM1zEAR26&-6ssh} zD!lM;6JV_bSf?uZ7y#=fz>vW0XD(O9|YJe0X9p32oqq71lX!7_!t)t>ZC>-6?^xP zOZ@h6Iw^khJ4%SYO!`xf{^IYb=`y`$&mI~hc5O#voDH>-1bA=F^+P|ponGfCci&D* z?p)y~;)AE@)}Aha8VdqSLE)_m*^t%{i4DSA9lg;y-3Jx_yM z0mBo->(A32om)||kCM}82P)jvp0Z$n`TXVz3gxQ`yN*8pNtF^xJWzq4!*)v$d-l5C4~)6}zLx4w|> z$`@I$($E1;zo!FhbyiKH6GYrWs_Wc}dk@mwZYeMr>#(%|GhVn~q!IekKhO=#w#vJx+)xvsNVRq9JDoctDkoL3^aJqu@DFI{V6?nbHd5q%i{hMVC{8lG>b&^H2QYpv z2>k=<3zg=h59qH^9mjhfD*fz38ZCbOnELf{xvIP?uq~QW*8uB6ZaxGQ%GCdToHXiG zFb@THd`#0skK;7N*a=}5RPE@keMI~TO0Zp2>5Z}Z4SsR^2^uDI)|*0QX_q zrywf01$ap`d`fwcmoNQ^T)_#iIK}s$(w;8FL+0nyHwFT})pHpP$#IH>pHp=gh1@5p z-xUhM(75j;?M?33CsH#twrgSnb)H%TVmaM4Qgv=mr2fO7&?i?wsb-6ZzN8Nw9Z~K| z7k9PL5WS^^=EH?)kwFM(wSN1bDU3cl#zUH`aGZkZg&+SyrCniK{0${WcdngJS}DG~NKSpvH*}FDc5Fy! zCo9KYQQ@hp7fZjPn9DGz3HOPi|Aax>^RKkBtGb*13Uf3|9QzrKF$KLPMgPxV@iyVg zRc2OHyS+7K(%DdtO)+e_%7-#`bJcvim(kq>qF4#wgDZnfkYX|QuzBxz3oSi9cUA8mMQ-2Pm zB|l&mbQoHTF|_)QAE=nM0_gGoB(2@+yBDcNdSHXa+xm2$m6f)GYh-L~yVnE@^KfRj z$e@>a@vx2c54v|hva#QXwrTVy!&xoyNK0EZOq64i;}&@1+Gd7c62Z<>-zW>+JOTO$ zyrzD4duAMm5U2#btUDV(v+WSm@VLswr3`*lzuWX_7|u4C=#rDpboDKF`^~7Ha>MOW z4hOK|_sR(J0+b40L%qUW`lcT2ZYovsOxz}?n7Qq+SAc&Y@q<_)&E1RL)m7447?43C zp-Soy!V;`WBt)@Rr%7=Xi^80BN3n%O^F?`YHny*1LPP;&xQt~6D~;*d#Hw5G%XH~U z(QGCB{C}X(GWEtfFaWt9@7Vr0Fo1B*`e-0U95cIA@^kd<{xo!_d9+{r_ zFZ!_46#ml?*`bmYu`!XQS&V1l=*#}+{|jPc*I3N$$Bu;5i!m;SC~dd6wm*9_?(?jS zP^eyT6*Q{T2Ml0IMERnBDprKo){*u86lM#O^6P;tk7C8!1KCjg{4fyVZ1JLZ66=ef z+$5Gv@wz*StszPj5rbJDacL0i9(;~WgImX#_UJStySF}jFq^~rjPJ}tU`UfgjBe|_ z+F-A%F=h9pITYF)a7k=|U?iCg?{k$K<;xAfx4|LpIKx$L)+FO3%}oTaAA^q-!-!&Y zO3>AT45hFQzo9@#1~<^Quc$+K5*+QFX8=5}P)x8PfT&GZUS5JZ8!`}AS7?MzLf=5d zB=|T4(?8DznAOYTxpJ3p+w>Ggs~;tOiD;8YH7nL)FSGXvRLo1S2%miyb8S z+?Fq?#cVQ#kaQ5q_|r;Kox8$EqBfkz~>dC~#7zaWUd-JGKvjuZvMK;4`9M8;#MG?KLQ> z_kpiVF#f?&Y8`;qrn_qqUu%Zx%Km6ycSu6YrW*p;7LIO8bt4U0);2Sa$goqEh zy<-g4gib1LnNX0i;&4#MSr#1e)kay_`=)?z-}yl%PnHq*auvu>+*HzzeOf1h+%PmE zN!{%SxwS(t=ja=P+*0mJ#%%TZD?R>|audrK7-^Epro%c5G(d$41gaXU%`K%FsgQe) zR5lI*vN)ApC%#T)DTYM=L5PH85ix`fr2g``ckN{pfgG7_)522;vte%AyCgR>(_kZX z$_Y^nn_*JNGMHI1gm{q19Kvp(RPpjqMDZH2PU7bw?B&)J(IbsL-};7FsDWHncL*Aa zCe2M}J;dg8R@@;U&O0$bgAFoFhtyO{dq0i$az71%=A@q{UC$rJMyM>yqMcpVOWZwz zWztA-u81v<8)>6`G zp*idtG9qJpi?zAzwP2p`j6uk-2`8W9#KkeJ0p)$yV13IMo3CNnShZiB%0}Hk7J9@b z(R(b@k#cr2OR=?D6)cZE)*kGz_}!m8XB-GNuuRr|UL6JvWYo2+7Yioo zT0Xm%cg(LZV7E&34b`M~%vmyp&5}7FsTky#K{gr%5`p?P9_FGJCE(=>f>1MO>bHdG5Q-eNlA-jvH zN&l*XEnto(g1f+Fa*f4Wu9sG^=|qkCBa7IdR9YogRbzg)2LARCKUFiFm$S46_lAjA zi`YPMPYrW`;UBGG&LD$yTW66jQ=3g$Z_!$`{^F)u_6^%$ks-kGV!jVH#U`=Z$8fez z?C`Pd=$KCX%+dq#Pam5W;i~r3F2X?%U)3I$m{G@W6>`HArFSl6H^Q~0`q>iv)cM(P z+9H1EXGwjwTBt-uj2G9rmo|8c5L)4NS61S@g|bC_&NPQVqnCIH2Hl`LBv zS&0R!XpPbSm2239|81FTj3`%Bj@gO>N1hc|A~5LP=t!J3O|QL!^}F)M^2`un&K$|{ zK}820)mn|{_e&NR9O=6s)6b1)j zvH_sj()2!evaJ7tQ@r^r);HlwZSJta-!18uhRQ{Tm-4tsx(jG0>DS-ICb9qJ$T+i? zz(v~1CvD*aGMFnod}=r2+q6w}$32+bSW{%E zvA|1rQT|(;Y%tB!;Tzd$MteomeQ-r(Yk=G*=4%j52gP4BHac$KRThec`z_`|alq1c zFl4_WZsK`7R}RR@jrW5cln2CXcHZQP3U2a9_`?#INTF#GVzrL&!|Q0mD42247bnysS|2fLskTG~Hl z%Z(U(8#!b_qgEX;>=UTlN!hJynbKl0x1M94fU0v!40{5~$7wPD2{uDLW5G#_rElbm zb5AfEI|Wf2x{*gfD_SjBinJk&s!;Vz4KU49_ue6o@Arp!k+Xb z`yMLQh^N>BxRCFCirtUI)E!v=FADz-@KvgKXa^gK#pKuyHW)uY?tn&mQ8evjDJg9S zHPYZCfii3?qiv~9cSHSRpZ}7$w3Edpwxv&kl&lTFbdhJD%;Oy*>uDA@v<)N)As1x} zt9`y2irrEr2t3UO#6(%iF~>MR;#!0uYzTNNqr}dq*)>sZ zs7!SwQCxT$4HzU6o?(3_4YE>ZFgQ{kKf%g&$zn_LU_9y@>pTI+)T~jNQkNntl^_)X zS`9U3)|fG79$Cfh&#>NuJH#<77Hc~!L9&6yE?xm_oZV`30h`gRw#-Oz_8ElOMq;0u z%K@?}QNpo{#rBE4Lghwdl~^%;7wfY+-YP?HMrB{)%0}o-yhMPF5G6%PY)?kS)KS^8 zE&Z)D{j#>mtp3)BoQ@d|89*8;w-viV#>v?nR5HlgW>F;0CiHS=sgQ^r60{;!{Bsu@ zWgPs86%(6Sv@J9uqIfTh>lS*0@gdeUv7tQ6O5*1x7BAjvVm)JXt&~$@L_|*WG)`zl zs0B`3itn4i{3AueZsxR)L~~iLRml~3yIE3No|P6GRF=${FuibM*|dUrWfSJjE|^s| zy zEY>r(Snw=!QGukim)QI)w68*;Kg)*27J*I~)M*542k9&n|9%!aW05G?!;*%UTB*_? zY*yiv8Tqs4%q-|YSE;0{+@NcYcytfTg|2^M59{xkZ>1!uzXbVno(SIytIQx;lsuU@`yM0!iShH)aO`w=SsaI|2eiKuEyH6 z4Jaa8SlGZptZgY-dS&SQn^{t9gVkJmR$1HN8$@n18-~s4r!%p?cuzC4cW<;(!c31l z0P&zGjbeK<%kH;IHmt#_ti3XN;|OK!x*-1b?eMP?Nzb$4(OX-Oy^&L~k$s_bXJTI4%O=6f1vv{-BwpcqG8LO2iSi~Bgx#G55g@(k7 zs@cY^?P%C4>$s>wVSesKNTKcG#EX!$J4M|~SOlBI@t4@BxTY&3mHj3ryo_T_d#yMk z5wH7RW?4LL-<6?_ZV>Xk1KV#!h)&-=HF6gh(?57fS~&nxR9i|5Qx1y6*VvD7hq}O& zHIolWJK8o*hh@Qt9VvU1BVCk`r&yDZ1&82xyXGG=>U?>Ra$NQU-cDGxMg97Q`~5z@ z5%Muf|NJ1^$|sdfbl2AU>SucD5i-2YV}wil72HK&ro$6#W|)q0gicF;vZtal;5Jf> zSt#65ye{tKRcMs)!*MNL0LW$!XxHphUBJo44nG-e?CExmJuTaK(yE*>8vVw3tAY=@ z{2iRFxM0Mb^eU$mM! zz`Jj;$hb>g5F`nYY)3eSh3c}3+_zayoF%O5X>5d4_jw!IWRZ=+^rLUH->cz~h>TKg zZ+wmgY2y)A+T#Ml#A%IpJ}=H4fkcYc`@hQuaVV+d--q-rKL&?FqImikn-!OMl?uhs z_gM_QZYY#NF5UM&^t{-#;)eR-stM9@9Z4mkpT|q24#BT34NYWCaIKNa<^&389 zPf=X@Rj^OZ3Nt6+$gnmB&N5Iqw!-r^5|0e;xkd}~!kkK87uaO4MzrhIeDTOf@J%FHT2f^TTpUT6nx8aXq$ffw}{At%yyiGvv}`Wc*=H)qi5OZ z1O&ci7X;7n&yq?uc4HAs6S@&3+NtckN-JUx2N#M%FdRb%^hJ-e@J??#2Y=OG@rwL0 zBawzGdnL*H!W4YuL`c~mrtI$mduI`LpbI$3NvQ{eoOGyNUmi5-NF`j0a7b2*_rqb@ z-9^db;CXb(dGW9FY_xiY(`=ECa1BxTH|AtVB*ZXrO)|IZ5B-h3#1Ywd!#~)>QJ3$* zI;HNv?DDv5N@_4J4#1AkadGq?xK^S?4EQG-5_kM6Er>l4Y{AKPEjS^5`%jiN4pk=v zgEw&49idVj-d-CgSUfByN5RiZB z$ur@I?h(zK@B;uhHHdyOydH|;eK9Pyx14PKXJ{PD^uL zkC9m=ieq`4b1mvqh~*XBG<{swU|mM5?c!7SX3QWF*o zV-UYBkY3nLlD zpntp^gL_!MisLD84jZ@zJNbmTtygJc#TJ{{#%)(<<2GAI=68Vkx7fh_+hwce7u#u5 z@R6-XMpG9RNzo;ToA0%?1<-^=#1youl;uyA#q%)QrL1vl`$Iuz^s z*8_R4LijY=r%YDg-2X{1=E^ z#ldHV+KDt%a?K2iILwbzMum-(shqZnFH-q`*clu49^=G6hVaq-*3tMP_lo=gyvc>Q z^+@tFZ6K)Fj#?a9T_>gwshj3wHQTXgh=+5AnS{(9;t9!~ImWsl}H z@aR20n&(G0kqiA*0RMLY*8jQDd|5np%@Ux`$mjz&+dRlBtHo_pfh@5)2i=lxM)O)j0k>u{n0*!XN#%@%&X4QvR9(zJ|@W z8@Kj|6VrHi{i_1b7<1dTAshRP&!+JRQJBl)^dVFEwZuGtT*LakS+&vLy4`1&Ri9<6?AX#9D9%pjZ^o^?a&6M; z?{_-5qr0wMW$R=Wr%73FcW9IlD_k>pT+a=5xV5t6X`2mp8Lq5s5QQ`NGKl=wW}tza z?=R-1ahtlXN%L*!8MnFX{KQScW^ZXn$ree;CcCm#d|%AJW!vmx_kD1foiBlS+AhYH z;-;^?;=xirIBxruF&n;$DLaFxo7$n?Y4oV$xJ7A_mEd)+k>cEESN3&*th3U)zY93I za*R6=tn^U3N|DxH0^2W_z@R}&;9x^rX7V|Gudqd>9FjC2uq%h{*!%3Q*UsY4afsUf zH}IGH9y8kUMv8LWe1NC!g!!Z>C&3nv4b=P2!Votme_tOb0!x%ukqecDdr4X4PMF|CDU;QDF1_;dkJOzwDO6G#-*b>4o# ze$jr(j(Z%#Bg3P@mGgFSzKq9<(Pcc7T?oG1QO1X|i@}$-%Xl)oWV|4ZL!2vvrZA

F6DiDNDUlYvOx_zQq(QwW7Medb}qKJmvUF^Wk!P% z8*Vs3^f*8Nvr4J@znAfw7^UksH1fp|a^kgHdCF>Bp;O|_#C}1=67zPWKq0$G3yVL# zQR$|*uG@KxqJIwlvDc2oDb!7w+iOP#MOT@BPa@%ge~z2q3ic{SJOugW;-0^2h5QR3 zJ0heo#c|inTk4}RAo6cK%8A*x@hOl<58uY8v2wdOeH*l8w8 zD~apZuL3Ak%13VJ8+tY3GNtSy9PF=Yka2llUuBBxbBmt8n)@ki6(dM!uXu3{O4R6V zEswWAB~7@K-_6!qMQx^<(I2-2{W4;zVY|z1YNy>tBkfdd48`o%kWKY|h& ze-|GIQ8D)}sIZ&$Rd?~DH~}dt@8-!a31@ZSz=4~LZ(CZvv896x6|rm}9N>`+&@8u! zBO5^0b}{}Qo(m?t^&Y+!)ctf1|1*wyfB9Qp&kAs;y^2lCLU|;mXHF5SOL9Y7jA2M7U(axWP?^CE^@Kx^YoKV6nH(EFHW{!3>%VAUX?p zjX*xc55qoptzPcIb&CiicH_D_oZo?h=f#DLc)+P|Z1W(9z$gRsh|-%fGk?aUl6)Ci zfNKx}X)bSuC&Lv&fx@99Ur-a>G94j#Y_v?sJd{HL^eBk-KJSru#lL!k&nVPr|UQJjDd5pp3jon&n&YM1vov2 zVM;MZQI4cDSLA=h<5!#Mvi0&pA4J+3HJYuIsX^q(K;(d{#$8v3vC6=Wm#$e}1o;@y z=2Z# z=|TQ9@UDM|e?u%>(fwO_Bw-JH%_AJQD(ib5fzg8f?30heG;I-ekMXB0r>v@?ik3(D zFfnZ#AIHyFFNnLh@fA4tVtE`$UE+qv`A)|N zGAv5p^91+e{6W}xk?kXML(D8@d?t3ix-`bpTfu_EFrz6cTI^-uA+3_5ntPy7e*H8m&DF1YhBwII^}W0JI$jj^i755+ zQM#{*uOjm3XLdv3f~2_cEdOzJO6z4YRXB&teo9jn=Xb6t9volCWi&Dr2>0I^f&wxC zG3&K*TxGm1t+?txC^tfrcOpW7nV$(CC|Xg2rJBKnTg|G)t(HcfpD{6ZNNZ* z$?oc71Y_aO8W)ZM$}{|_lU&vEwhGW` zHZUN*+am)whDGYOy%6nOnGqp|JjbV5@t~+Li1g=poVfQn_(delYtQi_#@CeMVyb<7 zh6L8#`*?2#qjIIrU06@H>JaB^#m73Igk>q=1zrVjfBKpiQ( zFY}r5iaNV^^<|!pwdl;tV71M{aeyztkM96~8GM-b3djAiTf=@SnW(?m@hY!$v~XOV zmEtn3-NMSPdctc)tD?E6{saG%IlmTrxEd$QUgrbhV*kY(eDV#r%D{)XetE@lbz>S> zsFI9z#T=={2wL~nBNq|H2%MItzr54f)FukSg=5Befvo4qzw~5wTi=U@X^;w!}of59RVi2{PjB=GEmvEQCfIXfpFCt7bY9mHW(XD zGA!REpKx5pq;Ky33;JkVSWhkg^*(yPLp+PHcQ0nX2_<8@SpFt2M-=5JZ*nlw0sZs0 z_$EkKz4nhB5wnN&sCRfR!BAaugl~yE&8a_4hnp&3+?rN`x#n>=hKtO1`3M>=D&GZ@ z=88w&g+$KPhrh?~;ZfterTnsdQ#-9r|DX5ylj`N^V&%uYU+j^v=!9A35<{Vf`^27) z`9biz{}cXKTv@!}1fSqkj=E;wP&_w%M)B-|F|JwplMArz2w5aD3)H^)V<*6^Am!&z zc^#Z7b)WHtmgB0bM2L?+<72K~xL3;c=J9bKE?*_pf+JV(c0`Ee&-tvYmlU^t&i`pS z6{adv^<^jdNq%*3eO3$KLUdX`^A-PyurqRzrrZQUw@0~oU6zDl~0r|!nxn!H&s0R9e)P}>|)6o{A>twVzqLM zx-+mLoZs_VnC8{r^HG*dVNtd_>4`!r98%t)KmcJ1}%rRoC8-F#G?6ocz7izuP>KZ%fz!Tov) zsUrxX=QlI8imj;=Z!mQz{Ql<{{FZt86s}t2>QWhf~sDFu#X>9bu`!@&7$VZ zYcos5QVTBdMB#H5wT>&vR#9OE#D4LRRec+{E5p=Vf$WPg70#Mc@uXe-0Za27u{B(s z0(7Us)d%H`n{&i3x~VV8eZmNJ5Nrrfg!&q6h{2KS;#j+d=8>8`!M&)p0|Q?Dcaf^M zJH&Zpf;y0<>sbkEDbHv?XGDz0c@en-(|Ypns+=tz=%?NcX?~%fdK+!hm%7wGgnr-9 zU;V+>B>VPeSCPmZ$YS+J2B?3a+VK-Ro+dImy1xaGkhIwLF!${{9=r(#lLl92oYnEw z!9{!7DWeREw9tIAwTk>aeQA>Vg$#x)O;*RCSMN?%J{fm?L>(rLww`HVjFDnonwo0Qvd}7&ftRulsqj*Yt!e6JtdAqo)rquH zEKgUn@v|#k9Sc{a_%>bbBkw|8E9@C+>hKFTSIWc&T&0IQggiJXo{uof=~F!QGobt| z^8|Am3oEfXC;#Z8O;l#6i_}YDmu%v_3{}Gvv)f;jQ!G=6Vd@9`Qdp#@$yA5QYgM<1 z$1>F=*sYJqQdfec^;zmo>N;|$!j-2^OD?p~HvDG|q4hM+=BivitbWOIf1Q$oJu7#h z!H=r*#Erw%;h2vbhJ%qyjaJ)=EVLc1?l1l^T*V0#ySO$@O%_EX)XCOVJBI#l;mc7I z#J&+~91P+kBhX|oZs9Oxff$;t9%}y{J5tTJ;da-ZKsiz@7^&WC&9&#@|DTcVnkdTs z+%6`JQcEz=v{C8;o^NjwKa9dO%oSy$)na)U>|XKQXmumz<-{CyFr0_CM9#O@q5 z$Kl4st?ije`~#_I$*^2C3k#7uSFIwe2iMq=L$r)md+XnfQC-yC?2m#E3uUsW;ki0qqeq%`MW#sp+;x zTsMn1k8qDu)4;sbPlakx5ABwVWwwynigxPWLB z*IldTK@Qz@t$LGfJ)B2KT&4f@T6Gx%S1p`?dGE#i{rv>>eyCwZ6V+c>H(2Ntto%(6 z^JsB;qIv+X>Zc~5o3@E}C#f4S8E!6sc-bowC#&yZQhhsFec#e#Av@C#PEmi!V-DLh z6Xw)=t7UvVov=_OQ>Tkp%^>O5$ zGv_rkuh-0LUh{gr<~4Jg*G2yDU}R90yWZ6;vn9yj6sbSU6DX$j1HPH~A$nBLw?&EC zXPI5U+x8Ltpf3-aMx?(Ql&0Eyz!-G*Q3NK7tDLo%S4>s{hTNOC`F~kx4H7Dn|yn_1`)MQ3hO@>-$3o(pLSO(0SCN&kQTE?IubgJ#s@&{l&1Uv`3E&zm)ds z)5EV)4-(y@XKd`HzZ^c04(q4GbLogas9PpGNBULW(%E^^Z|ycnB}Vt_2Of-VJ=pCl zHPq>?Ev;*)uJ=^ATVILV8_mN=)3t}=^k<#jX`lX@bM{3k$$E3jFn!J1P~G`3THS=B z!4tT>L(ZEAUwT1`eaINSbX{Psn}-zAf!241+)VnN>9LLjioz7-P*|nE?;`b#4XS=D zeIUKnst$ce#m}^~Y|`H!KEMAy$||a>sjcz4DyP*{m%9~3NuA-IU+4BNyt1a=tt$KU z@~m`_ur4bFf1fe`ewvkx`><>${$^*(w-woG_`5FKgvlO;`>(UJ@i%#dgqb#CDE{6k z|F%9hVgs}1XjY|q_wtxlS8j?;XOkASemQm^wXPobxypz{W*PNr{mrB&h}$Sklr>Vc zURW@m9J*fcBy*4`ZKN3e+RLNk!-=%38*)Zz!!qV7N;oMBj|LTXB@+3DzQ=ltOW$V> zz2$Pv5kvIVmG1Juc)V6?Td*uc@kSsCOsohl`?nWz^QWmz27%bC=hnlR@cr~wQLAARg73p}Wa=WU%xOLTQo_cMe%UeCDUTbvMYxCUh zYOS`errhoIx+~H(s~{T%mef%F^JT?qu1assg+(dTNuM<%A6&L^Mmm{91V?+zL0fX` zCo@#mGuMURDJzR;;hG$B3pA6s$Ln3~im}8N*ls zc$o1%`m48vx9(hY1<}-2s`}bS(_7Ef^`!7Dv`oFbw7zD+f=aiZSs&LrsQzW5>H6Oq z3Rnq=-)byQpRwdonxn5;I)LWt1D4KhyWg^OS=;@%WjD3mf4R&RGRI`)hzMn_er01a zxmuSu<`JZ-aeXFv^i$WL4)XwlN0?)zO8@wVwQMnoYX-BvdTws0e(&-j)S$nMd;IRd^oCsBH|(ZB>%+ElRVLO>K2z4e#qq3SPR*u%ybCFG5=1~kKf#1uN}T9tXYy~H%VLDdhMDQ8Cy@Hc|42Nr)|6*^TkuQ?W9e5 zWpgwBe%D;cHj{XM2=Av~_dA1aA+h!{7NeiLp__i$?biZg%k58N(zy1HLfS4qn#W>A zZ2{}9AGxD@z;n0O(6zl-)b=ijF`I$4kXV_`K+QKm2;kWZZ0ZL-w>qt7f)iIdPlfvzeH(}UUAn= zQTu+6z{JWZCs`vrm!;ooA6k1Z3PQ%{c__ZVn;|!bA#8W-knBA^&9TKn@;Gx z?s*sY-`q2-=P{zu-nwDg*_pX{c|{HLDm~?ja!k+JG&t&n#P}pBxTNenMan6?VN+g@ z(?s#(T$L_4n^0KI((2Rto=s8g4C!xg8X9>T&_S`v8JYPkDQ8LVd2dPgz&y%1YQ6s6 zn{AkB1x?~{t?>^$iWx!Q|DcO(twSCfLzo3T4_{3-eaJ(}`WFvBfV!uk%zdP?SVu35rmX@nd63ir(_b7))AUKN7Dw2WX?0 zx;+aP)?cEfX=R1Z%#^ZJqz&~Y>ir+Rfim=aAMFzw0II+8=rjzTG%Zsrhcctp*Jx$s zuIf@R)SB{|3U^taENW&-ndX%5y;>QN^VH&)L?(4htI z+MbmE^9249eI*us^L~!LpT~T%g}D~c->DLFUz=lUm2K)x(+_VSN7=2>j~%DDG|7FL zOu>brm64%j%Y+OiSAVXhr#@iEWzeUu+aa~;wL8*t@|hAwvDGzoRj$f>MryG_sWr7| zY^k-hB_&n4sw-UR=tc`h$u|oNZy61R{PLCr{9V`*A2X3rPGPOgIeM1GvWhZM-`J82 zh5fmf!BE)0Xz8urv16z{{E6Y1t`3N+7wR}TDGE%xxrNx-t=n#Q0>+x zjPo_0<|GpW=3j8Mn*d?CSqI{ zdmAchN*k)n7rM(AxhqPok!`04ncc!xU-G9Ya_YDK>8GBZAbcQA6P5MUC$qvm-vb3v zn+qk#+R-H9F_1Q}w%d$0=i;HsEPk%OyEDI`eql|W zccG_NRaP)P;`M8LwkM@(K0$wp64d(F=hl&WmeDa;MC;pob`smp^)t_1tAF`oU$)D- z^}Ljz?%}@bKYghmJI2lG-Ft_tCpn!rtN-`jOmuU}<)hZj52-h3sdhFq$>SF8R8vUWe zX=rd+ebyT(Pz|qr<9F&R8?0+t=9D*`v>FtZ>TkWNp@-yM@mu}aVVl`RZ@!gCr_8*? zM`Bq66B!RdAN$t<3fJ``ktl4{GjaMi?*~D@AZKx2o?ih`Dnx2FyIwDR`S<waQ%uiJA%vPphtxQl(AsdbRmA zb#e$-br@Kt?4M_{hiK3(oO&idrwTuRRY&<`!l+%CN*VG+US45CJv;#lCSNl{A|qec4$3FM zn>xaeb}y4kqt{dJHC54z3$)a&EQ+0A>RpPmhJ^(n9$R1M^3;1%$5px(xr>+9NPQRo znps$muW1+5VY;t%`P#Mhcb~+BLc4h2Z+m-Enz+tJ^Jt%O&_+*FWEb|^&R~k}>fO0u z>e-t9rt)bos%i4S{FUt@9lTAa8n zl44SblRegQf`n1TB2RV2Ta@9){R%uP6ah`jbw+HDq=Ya^l8z8peM6nwOc~ni=fHzt z_z<`2n+Nt1HE3dEMl^lTx@yc7z36Y$EGlEEnmpqDSQ<&;MpPUvXEa&d(TBbZoPm@4 zwnh3~*3|A->#G{zYk)=Ku<~0f{*+FH(U<(E9i3xM3;tff6n9Z~CsMI7 zSECpHH=>rMX(hGNDz5pz@i6+l$zozj+PD8*pVyd5fvZx3f5Tmu^6&q$<9*rV{rLk& zO04Yt>;3(&PByOYPyPS5rm78WDsLs`uK#9mScBbX9(6g`P4i5g7(mGoO~FYtlujEX zljt&{MB~O}3YEXN4y56slqjCfq$e%i!?P66Wg1@xepe>uj?0kQRRnno*)e_u}V6jMCIy|}>xX$Svw z4U`143yp#)m;_@245y?41AMfKh-vg#Xtb0KdD96pL9czfZ_`wGT%`V&Dm^6A@L+mP zQcQJEro$PeVeU1P8M+ua1H2GAR;AkfJv)pxV@lGKnsuBb7T_N>tf`$sLtmZ0v%j`MOc0nVX z?K4D5d?@u;V3GP_doE0)KJQis0<2P@vM1Fql*?mi0AQUu)$G;r(lk&=bNK7-j5t;) znv3W_=e%Ytm`+ov$zrxAJ9deQewoKxYO#=X`1w6_l9X>cgD&zlLgDiLxoZg_7^A4FLjwPkq@u!;nqSWrB9;*2&Hv>FjPE2Jcb z-=e)OHD`N%ZL~J5Eahpdh{73de1HmJKUn%nTp;)u3IDEyN2M5g(F3HKZ;gaNGKz+Q z4mtJu;hNgu%zg=kl_VeVfnLP)ZP^Ov2j&@vJkNBQ2g{@wVS(^d`yc~`e5ZUQo}2+` zo+#d#K?7*C@%;?y(UtV+Q%n;^SPb!~RhnO+vlzl+J#UAqQ8QZDY^}7iPEf=9&iPxE z7SnLx_2E_Iq!#f^G4*L1mFi04L@}-BopY{u^;-JM$GG7Hs)x04hQt$ssmzaQo)*Zs z5THe-00~Hz{WC`vGF%IgY<@}t0KxcXev2Opo94qE-c~qzEa0Wr{|bE~1&GNnAD|9b zbz?v+CilWgUg`FG`yjkKuyRpmS<2Wnt-;hfhFczRuO%dcEMKXpokJOvBR0>W_hJKt z*azdWW?boB=BaPY)5NV;(U95BcHLw0V8622#^3i0*8FOu)r+ZG+q?GL!uf$BD!RO~ z#_JZf#U_KHBgeM&V9@{HgK*+H%YLQ@#g#MJ3`YycBF;{(>=a>T7@)gEMi~vJEV0~0 z@nUHiJ=?j3QV$tA&+;GVf&XVnzE8!C)rV3$1iP83dD@lm=EymDrnTsjs`-3XUTq4N zIFRk?nQ|GW&TnAM{lUs^l~w$IC?JqYoJ&xBX${nhI+bFvI={ee`IaDzKx9}Kie?7_ zhx-W}?jsO0(0@ZKEImWA;Ge#QpOqjvA#utv~G+$L2v}oM42N zL;L#=`t2gJa((mNf7)>uAl9KHT~H9_j`0=fr}e)jwL^)rzz)QZt)PC;p3j`<9qjAZ zfQCq8e6sOo1EMPM_@9m#6KbeG!^;JWDJcjqZ(B;S^BfMxo!~@TVr_HV$(Vs|6O4n05< ze6CQRccP%;5{06dxS+tn5uV|bEQRyUAc|`Y^?K^Vo0NcwX*yxm)#ddzRJo<0qE)$; zd8!(!G;94zb5+$yYXmCkp6ajDt6fFN`~{2ih{44@(1bb-*$&<-(tAmP6*6_JSIy zx$srgF2q7RiZn|^yAO~J-@d?Y8d}vgOFOin7t;wSco3UFJd`VPz3bST7DYQGaVO^@KQn3rz|4TVL>np5$%uZy9t- ztX)I7e3we1`v!_LK3zjC3`6U#+vqdeW2|hZgJc0^7&qQd&oMk)vW`Z^pXOMRZi{+5 z%?S}b-p8BeXJ%kzwmoDnmJdz7SHo5Wyc)hH;2~>$z(e-tfQJ#=@t{Zo z*jcXN!kRX`&0N8y1U;ija#$bu6g3AO*mH^2T0M$tV*+MK$RdAUAnGzsV0^q*{ zkj=(&RRxy`Fh&B5kpMQO$%M$45EE4emkCiIAqpf!kX6J~2{2t%aG3xl5}-r^1X}>I z+1Xqy`}+V~62K(^WP}!wa7zG>s^Bt9sFDCxD(dGB3u3W^XiybgCPbrzXv6~#u>e*` zfK{r3%LG_00aig zEvkacgxD&J*eU_KSpeH5K#Qv2G68lb#9$DXBRlx;5QueFLe({?Pa392ow>Ho~IwL+>&3W=^jL~3AXI0W#;1Xt|p-aq2EQHf{37 z3j=`y*eNS6l`CB?m2xn#l)5S^JXTD~#TAb>&Tgdb9p{4`chk7|z#?NCs%4>wnX#rg zgWW?fa%iqE-$#Qe(BQIByTzr6AMU5?`vw-IA-@N{F*k}r0PlQnrnqG@eM3jYZ3ZPU zTdKJ04|F7OQB~aVM|wFXu#D((*ou`(P^!560eYbWED+BV#an1nzrYMhaz)c@Us-Eg zI}c#NW5t_W=-9nAl z3B*CT9)dC~IUttV$BMfiqBlFOc6O7qy>~PGmW>Rp39wtgv22<=Z5%p9#xz?fXw%^T z8{fumZOMgj8MY^X>r?r=$UVf*tzBgAKvcw5>fPNxj2zk>Gu`!G@z^$uf!SLrc~k)Z zb|7W8ua&N}m;uZ6roX5|(RXa6fo*1Vh$f!jO26vRVny3%P)DU@DJt%ERHgVLHIBLzL8HYA;LWY9e&Wc0NptqiIsZl8UOeL@yN{jHH@|`nGTj|IkKnI-!?UHkb~1 znZ-BeYwA+seGGk*WZT_MD zVqpLwpolNEl0EeuP%!@aB&}yK%^-%mF?LK92cxlr<<_b0m7A%geP6gn)5_fkX15jj^jGUce$ulh!q;}M~VcCt6*Ad*?m zl!Yi}I(|ga%aj(4fg1)(uBH}KcNheTimc-Hm+6w|G`jFj8i^AxQ5MASYT<%v7@(Ma+4ztEtjucX^ZN^i7RnYA9}?|JFK#K>wBO$8Nj zN+WF=Ce$n3joz~RO_!57Mmo*h2Dq}V5>4_3)&MjQn7ix>_xQ#_xq4ZKVF2%yS=5Cf zK8QdGbPG=kU}RsX)ZkNDNAm>AEB`(CA0bW|iBATOTQAE4o#$H1Qx zA0D7FbXx3r2MjRuAcgy8RV7KxI!HSL4a>sxww7PZ|f52{MuRs zi(zY2+3YqX(X8#sfmlR)WlX!BV&Mq^UC>)cTTT`6mv<;6px=$CLl_91;H!=ne>zNW z#RUk24?5s0?tOy>54}a=VlGr#w!1a^b%~d;?+uzu?7S)lz17BsdXZZ-mcK=DtOxo! zb)3Yw(bvH|x+kX+26CYCC zMLiVk6k#9Hhrg70!*NOk8U2rAb;2nwJ5J9=b%MSr*$^(=zB6q^?1eqjW<(u4L5Un? ze*IU{I_Z03(n%_0ZSRezKO;ThvFZytAp<*zyfc4*-n)2dxTt{PS6IbFzuV zb2Q2lokqhsdI~YGW;m>I+4odMs>2p`jef@7OT6|20{?O%uB-7>w~t2S>mTS0QMfqq zBlkZ(6r2B4HnK$QA8RI#*Uu$O@iXvZY<5J$l5h126kt!{tp$!iG>mDAe8(O zk!Ts3E(&|FmlM9tO!sf>^zA?}aRBw$sA!}{u_U57VtO>ov2d|oh~GtH&t#-H5Y2{I zKYc>6;bd89Ew;mYV?^H=))(H1F)?fq#Tf1wwvs4LMD${Px@RF;q_n!G%7YNfnmQ{n zYJyA*Al_}g=xxmC#Y&hN4}@M%><8WOzwJXL@Zxlp zjY_k15eY1#swh)jJ(%U0TR(kULyf(IF%bu*2&4?6Z1GhpcKgXqq{EHKbT*32t)jif zf}!krGdW32$-q_~31Qy$6dz@<24pPBWXUYoCZ6rfW5u1BtPh02j!ZP)=?%k}VLdp- z@nI|&ir44E*!}+ZyTsAq>_s-lrkAaZ7EfgPbB@rDuZpnyCvPJ@oAqQ?9`lXSIFha7 z0SWD(SB+xVOId{Kok0<11irk#pup*4*i0Xk`9^$s2{xx&5&TAvOW7ZY<=gbqH3`O> zW7*RT!sfQ|*cn`4wRpkLwRrecTUe5B8K|mWd~<+6*aSA3Hi@q%peLq_!4uhvsOepl z(Q}h@y2H}h8L*AE#3r}9CWx@h*sn2)@3@TJi{ge(0!o`i<0OpHP2#ReXvn!h`VLL3 zn2i1m*!wCDOorrYPv|DjPiCn-;NFwtwF)stGS0|dXF(X)E?a^r6A-bjVzc%p@xqlXX~-rbbs`oeq*V6$+h`(I&&GPH5z}8 ztr5Kzu&a2pjl`J+ELz;M0K4a##fJ;nFj^}j7qX;2>uppdmq`n2U5gvsQyVJlJ@7=! zeIsi{(Ly%Ju^uhPHrkYpV&y_MoNdCEqk9I5_ZPBmv{^Jw<2{+OSzr%YI&Be|9t=Ut zf2w4OTRiN^4(^c4uVYt~{BrpH41_s#jIs~Z!ZW0!7`s_;o=AP8N)d?2tJx~HT?YiF z7}%>5PvYz%7T=-bewFObCNx@MHA3*L-PcfE%#Aq#vA&7uJPF|sB=g5u`63F_;FLjF zXQ6ZUAOu+g$y7L);Hyb9tr7EumEJk>*=F>*+<{Z-ZJ38`I}!3{w~Z=f^UG~n`IdQD z0AH~jk13ZZtl0RZlFjYtpqy6CR$zCQmhbZqnsJ3bqS`lDrCYIaAIRvDvLYZh^Jl_h z+ue?m3>jvIkiL$MVG{2Ptt_u;^1CU`kTKa`&tI6qYL&Jeff=wZJ0<)eZ?GgI1hhn|Q^za$6SpImiqydc-Uk5yxG>(KR;E7{&A*pC5SpVqc3E1>iD zp_zuYH<2XQvNg+QqVWRWSdqRp)!wdIbV40M0AwW5bq!c`sB(+FUyO{mEL+DAC8O%EaHP22dOYg|J;KK_!_vtnlql`fJ^QpK7-w~yDyC42+A_PX<+?2G-Q(1kRTd6B03%15+%I;YnnC=alH$xTy=}` zw2|q9~<6M-J~HK93DJ(~b@7 zUD5!xz><~0SqQ5EhcpFDIR7!?$2%aNlb$ndcmU%6A>QVG!uex7?#c@6YVI26SWNl= z*=wU5|0uo8Oi}Dv#<)h7`G2F~!p6@UkrhBg_J2sk1nIgGFI|r_ix8@NJ?m|mk)cVx zVOU*%P$b*{9E*&?8`y*n;Vm8c`=*Za!oOW7KwR7zxM{@K-)WUKHH#4c+9rh4e|}sJ zmOIbPf$1L;83ALWP1Z?KC(>?Yy?irk$P}aWM)p&OmY&ciFQl~kk7PzIvRokA{1e{K zh_-kr2Xg+xMl}^bl7D-Pdw#{jjRmXF;3kS@g52hcbyVYqU$aw;ZMBK*V_~-3_#0Da ze(*Q!7U+dTZ)PK-ws)bUm$%q_I=Zd>sGAm3eT(C92qBPq37&U#Fz&)HHtxbL<8HTv z-(yp7$+!TNu-8PYS2t~(r~a}^*8;DMRogGLTVMz6x88}uTUZ4<=zBPD3tNFb*Ye<% zUgB~Owog{BVcoGVzI+WV|0%}iHLSUVyPqy__h0f`HoU`fsImCBYz_GgZ=-KBtHk<_ zEN%c}ImV9L**|`YaJS8si%HnXNOK0Bi3V@a~zSJu^6jhV$}wgO~(YBUujtO zI=O*OQ%~A(_KoX}e8-hFo(g$(+%d6Au&eRAT-ECr=C_amRfOheF*AS5vZ>b2l4^ zpOtsRa62Qi?_tid?I-l4T3ffxo!0HCvDRMkvo?y)hw=`Cqr)ESaIxtg)+eqV9^rqm zDQfGj4c6h}@I5T5*LfR7kAn!SLf#6`{P~`87z2$C@%=rlf3zcrB1+7IgR}+UDunx0 zI7H?qHY&2c)aYt?NM4Lsv55^VNC=_~-%%;@z#-U<88F6RTvVF4U-VizYqKZ0(NFb_ zwQg_3I#}YU#{^t0p3f)rJTzE(3||iX$ixC6j!h6fPdS zm&H|t2VIPjA0#qJVl*Oal$M1OBV~zLX;qv`Okjy&lSgDp8sma!%7vJkuj0gz`&i!* z%{Vj4#4`tlB?JZfve5V!M%IRdM}d8!Xu6M$K-}(A_ranK7ayUd(6+u(l7;<#cq3Cp z*8MCkCNqd~tn;g2c8+UAWPzfjh$VQ{KMlx91Eu3@n1^Ygie&~VnPTt#kbc?Xi~Cu> zuxv>ydJe6ZD`Gao`{)qGn^`iA5!Y{qV`i$@xtV3az4Ga1rXex-4;Uo*;?h5`p)nJI zh1^+g?iTl9kuQGz2lx;sig*8jN(#jJKd`=G1+tPdvy!P|&>vYY{5`Hevc!mzAWD+R zS{$cL7wi6r$`IK6N6;EBzWyWYH}(RU5=jQyY)*%Eof~vfyUqn5+I6m&_5gev$>O#L zSlWdZy2Snm*rF(RP#4a^#}2dLela)*K_V%SZu4{kdB+x(6jK#sO@0kQ?Z8!H{}wjX zJk%{pggwambXy!m@iP!X0Bb~17K`i$;k9Ux1XTqojhz%N&z_4};VXJoK+!A2(+{#? zQO#|KlToaU0`OEci}Me%6vrxA=!zg^wK4P|h6Ro_;>E3OxY`_KUx*XaVnp|CEIDdz z7d1Am_tm&DpvLt<_KOd?$SILWT1-TAQ)2Dhxz=}X{h?!}gd9+tnaZSxs#HUzr3RA}-0l_hdSTU=E#x@B@ zh`}5&As}vw+fivk@QXal18>takZ&?P5f+%LE^h~uu|p_yA>PW$Eo^Z#C0fsitl8R# zWkY!CvJUy$&wP;~Me;~agtJ*y1gTG^1;Wa>7diW&ZDiCs>Oyo6;-;)N7#s{ot+dYN1EvM zC>;2^jKPnxD|poIPN2*K8*!*dG}{v-!(_z!kF$u-y{J>QJ5Ml#m;Uo{_V1{JU1il; zSg;f4W%|ebVVN`RVdoCzNEcZK9rX>EV*x}SH7k5(hjL6(i>DJo`l5b)L)v(9tg*X= zZQ`PEH>-_0*+tRjk&98Mx_T>d?HhpW=`H}XPWmuB6M*3viP*^?<*bS6OXq?VTxg_y zXK;i_P*@R;+>I6y2Fs14U<}kGGv>S$k$tvc(QL2*VuiuFG3#M4r1sMW8_X%#iiQ6P zD}Pb8;4TEK#2Y)>k3Y@&%Nl}2_0udTD!eOjbI~SJOn;j7(uWLk7@@n^lWJ%TLbFx- zOCKn4!8&CniZ6Gwq1}l?5Vmc{Jugz8Wf^Khuyv4%fy1A>%hlnPd$3xXEI!%8W=17< zRqMhRpv|U8*f{<82#2`u1%|_4j7ML9zux5f&@_obm=b$j$ux|Y*h3VR-9=#&a)YgL zFebR2vvSSs5t|U_J_ff8&-o@z6N6)wiCvT=WZT*OeJ<|U#}Y)pSJ+rg)n%_R4}Mx+ zWl`eTE9?(3(}O9e7+W_QeQ_RcOkvZl_Ydu3MO0$lhwg{_evX*EpH0Iu!{vX0<>3+6 z{RKVz#eP=WA!%ULoG$PhIM+v^D}cheCOHw`DlSPMp4?WA-~WYOhB{14OI~G@VyaBQ zP5c{Wv6W?Fu+kvkC(|{?JFhYoYwJ?ZGSZedtV)lrr zb~Snrh|AxA>{(?jeuKTqqE>fNZo+PE_1l^Ns@6zic5|g!=ttOKwl>&2;MsWl2#aQ6 z>n;2-MFqDV_3RMfSceh+F0-?cO)~f9U}bZ#IB^TYP%eLuUBkAR4}HXo?*XX;;*0lK z4&RCb;}j^&&8KVw=R>IgVN7Gccrk7^U^T$X24IV}-C z6|9`;qVVWW4iG*o7JklB;rdwrIgHeE;@i*J=pN^TDb;7d!IHs1KQG3e!U{Cmh36ET z&TMw^%qfOm)@T)hkF*ucQcAH4eFtMgC#ob_JJox3NBO<0pV%4`%n5pm;}zKTAF+oN;C4YVb0Xrl-MhW$pol@ zu~!Z^?-=f~%sY;|Z1YaV-3ar}hP#pGT@dbatk=P~%{3G4O8k|XC=Vq%+pfE2X-|E{z6egpmFSPLE4XAEol%v1^KPO&LzyUozlG^iU=073mE)9bAi$TFx=n{*!Gbnkz>An>|J@ z@x{Mc3b~Bva}WYi?k*~|&a(CxOTS|ixLRem7n|pOzjdAo_?s$!Wa;W+e`4#8>=-o| zYky+vWMDvd4wv9);%jJyb^jsp%k8UVdpMQVB7^Y^SQ;+Ix8n!EF05TH=DZ$HpK_jr zCCpHjkBM5_31+1#&!qKYt;(Z@uD^goBfz1tAbuk%GXJnmb_JJYo>(kqqKe+)w92z# zRt~W7Az0WfwDEZSm~Vb#<5gjSp-CeC9yo5c%C~()S`beMe%AzX4-`=|!|@>AE3w5+ zStaHMogzg2NaK%ipfCI#7{NQS98aQ~ifV@ib9usqS=5qXJ}zo!=fn+mwAihQWS2?g z_+6b4*^zjNdC0KyU^-|#-JPde z`igq61K7bx{@bX-U6ecKh!5Xmh*0y-0Z0qjCVUhY=LOq@j{;vXxVn&%n8dnX&>h+R2h z7xEB!B%pfaH<1xaThz5M|(HNiChiCNS;Y=Ixc#IC<)lZ$l@H3@ONt56_wmoaVfsy z(gKQ05u+1%de_d1G+B0v13L8MiF_tw*$xC5^)m(}@t26@I?N;Q#r>oB89v4lwjrDM z6rqE73A|9QK|DWv6KQD9iCDPx!tM0bahRv`8)fPI8DdqS_m2L?*bKf~g$VvJi?4*xZOZ0O z#u^=n!bvp#GLp|Db%i6~1bxx;EDIIa=JFq+R&_y%bG5HG)&%s%Y7+}(KPhW)$MD$f z(BBma;_`=Bm^hY)Z{@5tnnv*+q^@_g$J_*qCr9&rQ5!p{N}A;fM|}}mn*yrZBr7;d z5Ycaq;psiLIN)VWl)HYnIOM_J$`%oQ310$9{M$?TrI5a_Uc#qGZSA54ajBhpL~ZZl zZNgR`sVxEZx5)apI&l8Uo=f=`(2E}(i)P#{y65w`sI@Ae4~*K~Nr6(Xj^E=eaBo0? zd(5_rIA~M$%A)bO-%N=;=ui%JQP4#y?%^%~#~kt1cr2hsqyBrYT|BsnA{L~(?OLxns}^ep5VEZq0tD&#|0r0?OO zLOzJam=B{^oG)=;5g!|XJHC0|a=m|evu$RXJ%lxr>CaEsnzx} z#@FyV3a(-VVd@gk)FOx5P#5z!8!Y&~OZaW9F-ZKBtft!<7~K>mA|GZ^j@Yrv%9kIw zv6&m+FX8=&uMWZypv!oa$XLcxpl@BZ4EkWR(X@;o;=RIRP2Z!Jl(j*sqQ-01qbOR= z2Q_6(@KnI->W4TEfM>K>3(W->pEDI(1m&hg-$B-G&R94|EpIHX0A-dRS9)EoZwYu| zHR4~`0ffi91CE?9vmmFdd=bjkns7K?1NQnNW&nFQ{NCHYS~2wjUpxY+c{T<%GU7xH zD2f(nn&nsaeHIBm<~y}Alav5N5CM=`2A?WCYltquff;4#v?(YkA|LxjNc?I!kG5}? z?NX@~>(kFhi58?le7(FJ{jy!;uHd=QK)oyYD)?~DuHc_gggAO5uNN&V!4RtWbR|z` z5PmCv#S?)?>S#CaF7zve+WE=KfQ&2Poew$)t6&n3TsTD9N!-Ea69j-B@h*6<1V ziM*9RK!=T|Zsqq7mUm~~#;4V~Mdt)$!s_ zckolt)*e{P*FjAixsE>s)BK}#d@(;8bY9HV`7$i?9MDl-yy$x;-x@Jm_DQV8eGw5T z^_@HUm84Q+aER{O6D5{z;2At7IL_F%0SfzonBemaEi+ro$N41kI5o5AQ+U`9}68yu-+P&^V%eP|=6uQEnYtcL$U z>K%Rxp1*<{;~$VCU}Y2+?k)TZ^QLtRpUCCA@3-)&jF%NF;);j)H2KcB=V9KPA$r!> z#x)pS?`}i?E*3o=L07C0vmW8|VRt|K2>)~Nc1}Miv`VaclqVu0_K%N3<~ECO9_97w zE)D}_;dXu_Y_89?qu(9E_87Wly~uuykLM0-D81n^{xNQjin7O1vO{cnoX?O4{oBO% zkMlIzC{lKyWj2W^J2*ZcBp%rTRVBt)*urNMEUP_F@S7u!;S+n5)MlVI8?##_HOF64 z#KSxJdo22|B5@m(q`RNu1186iHp^944dXt~9C0x4P1lsR&{Zox;DWuh<`PD#xnJ5m ze+DZy4Q;~;sx`v7+~11Gr+FNui)#!%fF2M{2G3;?|F$a9wsKV*F(6uE#B)#a%f$Mp z`AC(v2KUgf4en#SvUmx*H^n5sz&G~7rw$Tm3QR(a%gir-MMQ*&BQNmb_%@s4MV^aKZb^|MK6sJO68F8x zM^c*c&WrqaJk%LHd&brCOo4AKd4)fSZ|t?Fh_nN|U(B)KsQ8(d^Mm|1cL~=4z6aes z;2{4JBf0x)e4KIfYv>P$Rh1Ikyx3JFH?@h-VM+yq?bX zIA(;2+muX_=82ean9mdk5A%Q7&IYT>SY!ViIF!lw;BCH<=$x_SUH&%l^}(l%!uNPj z>u%xuJewgc)42Z_zmwouGDds^tD8mIMb&X|SDLZuI3JHM7>W}o@Ea$RKjsIJAwhim zF>eO*{pu5ltVD746F$NgZcnza6q)n5W)%IE7vU3z#^#e8(fhv5*H>Df`XP9S)Q|{B z={oR&XTDbLu3uVHw+L(lAuT^F*HDY&;bAVxg(-_|teolMTMUd*_gkVGlYyKV0JCId zdPaJNbvO~ucJP(wP0txGkH9GQpNA@~*mIv@zCVb)CB_e*^JY6l!mVd8)((hA&+vaB zNaX&%^FLzbP51}@MuvWTi;(6-eP{WE=yNLeJ;t}4%PxzKIy z2KCPnO(RK7hG?2g>hq9EeVMv2#%7}eQnSXn7PPgXca?EBQ$5|#LbgbC08KVhBGu_U zrr8eO9E}>+4#P}gj{fNO4`a!&!2btC@L3N`oRwSs~v;-TKkUa~wq10!5!A{O#<^J~*<)?c{ zOzo?-Vz^L0&~j1?>Zj&LoVK3=7+y^s zD%GYxCaOa)dAy#era17Gk}BkZB&Gi95Lo;oy}!C1jrCH0bv#C=eSn&UpD_c}(b9gu zVSw64e#~UC`27GiWmvcaXD^sr3gG30*E83qs8c4n>!;x~h9z#_o5q3)OKDLk(jm?c zP#37-_85mKOHy@=r$oo|ay(@SXR`Vx$M_OICaXi`r%~33%z^46%x{|ps>^{=??LL- zDn53nik4yO6@&6^w3fo!o7JvWEFD_EXlY%o;)JKzsIFikqEkIve8N8~FU-U^U-9)kYgp;#BeVV0B&4bVmt3rYgxACk|EcQ1R9fwNP?)s(LM-fWC`I}U=P{lW0HjD9T>KzyeZ>6aNp{{_OTJ@%Q0sDyH#% zS?VBr1HL?i#AY!qOC9c5VJonq5fd?7o$3IwJxd*EZ?xf{G6nPc`&sH3bZK0+dbNF( zjSeGmy|Fx7UBZGk%BDXgcAVkSA}mME!C2lbCgrFbAcH^5QGczj#+Pb@J6C-JvtUjh zT56Xl%~PA@x=tR(^nUT!DD{9;5=N_U*tWp_BV)!G^(Nlqgd-!qq~24By&MW1wh=yS z_xV_LGMzLs^Hm4urySv8%mj5eKkcxI^ApsKbjA=9)l&qqziN^?0_w%nlhnQm$xvvO z3G&2)nT^%uI8XwSV)bq;QK{^uWbuzl>b2S_$Tg-0a%FAfP^kUG$}ut>!_JAtlhvN{ z9U;rdj+fu5npx{E_stpMArTPfNGo3EONk7L$S_lUQ5P{GsTRak`0Q|2Nqu8nNUGC> dFuxp|7_vOoe6r+5vN%0i?PE&`S)La1{{V8`nKl3b diff --git a/src/substrate/dkg_runtime.rs b/src/substrate/dkg_runtime.rs index 0e4a390..3dc6061 100644 --- a/src/substrate/dkg_runtime.rs +++ b/src/substrate/dkg_runtime.rs @@ -1,7 +1,10 @@ #[allow(dead_code, unused_imports, non_camel_case_types)] #[allow(clippy::all)] pub mod api { - use super::api as root_mod; + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } pub static PALLETS: [&str; 21usize] = [ "System", "Indices", @@ -25,14 +28,21 @@ pub mod api { "Identity", "ImOnline", ]; + #[doc = r" The error type returned when there is a runtime issue."] + pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Event { #[codec(index = 0)] System(system::Event), @@ -69,239 +79,1113 @@ pub mod api { #[codec(index = 20)] ImOnline(im_online::Event), } - pub mod system { + impl ::subxt::events::RootEvent for Event { + fn root_event( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Event::System(system::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Indices" { + return Ok(Event::Indices( + indices::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Grandpa" { + return Ok(Event::Grandpa( + grandpa::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Balances" { + return Ok(Event::Balances( + balances::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKG" { + return Ok(Event::DKG(dkg::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "DKGProposals" { + return Ok(Event::DKGProposals( + dkg_proposals::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKGProposalHandler" { + return Ok(Event::DKGProposalHandler( + dkg_proposal_handler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TransactionPayment" { + return Ok(Event::TransactionPayment( + transaction_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Sudo" { + return Ok(Event::Sudo(sudo::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "ElectionProviderMultiPhase" { + return Ok(Event::ElectionProviderMultiPhase( + election_provider_multi_phase::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BagsList" { + return Ok(Event::BagsList( + bags_list::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "NominationPools" { + return Ok(Event::NominationPools( + nomination_pools::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Event::Staking( + staking::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Session" { + return Ok(Event::Session( + session::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BridgeRegistry" { + return Ok(Event::BridgeRegistry( + bridge_registry::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Identity" { + return Ok(Event::Identity( + identity::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ImOnline" { + return Ok(Event::ImOnline( + im_online::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Event enum", + pallet_name + )) + .into()) + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Call { + #[codec(index = 0)] + System(system::Call), + #[codec(index = 1)] + Indices(indices::Call), + #[codec(index = 3)] + Timestamp(timestamp::Call), + #[codec(index = 5)] + Grandpa(grandpa::Call), + #[codec(index = 6)] + Balances(balances::Call), + #[codec(index = 7)] + DKG(dkg::Call), + #[codec(index = 8)] + DKGProposals(dkg_proposals::Call), + #[codec(index = 9)] + DKGProposalHandler(dkg_proposal_handler::Call), + #[codec(index = 11)] + Sudo(sudo::Call), + #[codec(index = 12)] + ElectionProviderMultiPhase(election_provider_multi_phase::Call), + #[codec(index = 13)] + BagsList(bags_list::Call), + #[codec(index = 14)] + NominationPools(nomination_pools::Call), + #[codec(index = 15)] + Staking(staking::Call), + #[codec(index = 16)] + Session(session::Call), + #[codec(index = 18)] + BridgeRegistry(bridge_registry::Call), + #[codec(index = 19)] + Identity(identity::Call), + #[codec(index = 20)] + ImOnline(im_online::Call), + } + impl ::subxt::blocks::RootExtrinsic for Call { + fn root_extrinsic( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Call::System(system::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Indices" { + return Ok(Call::Indices(indices::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Timestamp" { + return Ok(Call::Timestamp( + timestamp::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Grandpa" { + return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Balances" { + return Ok(Call::Balances( + balances::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKG" { + return Ok(Call::DKG(dkg::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "DKGProposals" { + return Ok(Call::DKGProposals( + dkg_proposals::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKGProposalHandler" { + return Ok(Call::DKGProposalHandler( + dkg_proposal_handler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Sudo" { + return Ok(Call::Sudo(sudo::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "ElectionProviderMultiPhase" { + return Ok(Call::ElectionProviderMultiPhase( + election_provider_multi_phase::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BagsList" { + return Ok(Call::BagsList( + bags_list::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "NominationPools" { + return Ok(Call::NominationPools( + nomination_pools::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Call::Staking(staking::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Session" { + return Ok(Call::Session(session::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "BridgeRegistry" { + return Ok(Call::BridgeRegistry( + bridge_registry::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Identity" { + return Ok(Call::Identity( + identity::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ImOnline" { + return Ok(Call::ImOnline( + im_online::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Call enum", + pallet_name + )) + .into()) + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Error { + #[codec(index = 0)] + System(system::Error), + #[codec(index = 1)] + Indices(indices::Error), + #[codec(index = 5)] + Grandpa(grandpa::Error), + #[codec(index = 6)] + Balances(balances::Error), + #[codec(index = 7)] + DKG(dkg::Error), + #[codec(index = 8)] + DKGProposals(dkg_proposals::Error), + #[codec(index = 9)] + DKGProposalHandler(dkg_proposal_handler::Error), + #[codec(index = 11)] + Sudo(sudo::Error), + #[codec(index = 12)] + ElectionProviderMultiPhase(election_provider_multi_phase::Error), + #[codec(index = 13)] + BagsList(bags_list::Error), + #[codec(index = 14)] + NominationPools(nomination_pools::Error), + #[codec(index = 15)] + Staking(staking::Error), + #[codec(index = 16)] + Session(session::Error), + #[codec(index = 18)] + BridgeRegistry(bridge_registry::Error), + #[codec(index = 19)] + Identity(identity::Error), + #[codec(index = 20)] + ImOnline(im_online::Error), + } + impl ::subxt::error::RootError for Error { + fn root_error( + pallet_bytes: &[u8], + pallet_name: &str, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + let cursor = &mut &pallet_bytes[..]; + if pallet_name == "System" { + let variant_error = system::Error::decode_with_metadata( + cursor, 103u32, metadata, + )?; + return Ok(Error::System(variant_error)); + } + if pallet_name == "Indices" { + let variant_error = indices::Error::decode_with_metadata( + cursor, 108u32, metadata, + )?; + return Ok(Error::Indices(variant_error)); + } + if pallet_name == "Grandpa" { + let variant_error = grandpa::Error::decode_with_metadata( + cursor, 132u32, metadata, + )?; + return Ok(Error::Grandpa(variant_error)); + } + if pallet_name == "Balances" { + let variant_error = balances::Error::decode_with_metadata( + cursor, 141u32, metadata, + )?; + return Ok(Error::Balances(variant_error)); + } + if pallet_name == "DKG" { + let variant_error = + dkg::Error::decode_with_metadata(cursor, 161u32, metadata)?; + return Ok(Error::DKG(variant_error)); + } + if pallet_name == "DKGProposals" { + let variant_error = dkg_proposals::Error::decode_with_metadata( + cursor, 176u32, metadata, + )?; + return Ok(Error::DKGProposals(variant_error)); + } + if pallet_name == "DKGProposalHandler" { + let variant_error = + dkg_proposal_handler::Error::decode_with_metadata( + cursor, 183u32, metadata, + )?; + return Ok(Error::DKGProposalHandler(variant_error)); + } + if pallet_name == "Sudo" { + let variant_error = sudo::Error::decode_with_metadata( + cursor, 321u32, metadata, + )?; + return Ok(Error::Sudo(variant_error)); + } + if pallet_name == "ElectionProviderMultiPhase" { + let variant_error = + election_provider_multi_phase::Error::decode_with_metadata( + cursor, 334u32, metadata, + )?; + return Ok(Error::ElectionProviderMultiPhase(variant_error)); + } + if pallet_name == "BagsList" { + let variant_error = bags_list::Error::decode_with_metadata( + cursor, 338u32, metadata, + )?; + return Ok(Error::BagsList(variant_error)); + } + if pallet_name == "NominationPools" { + let variant_error = + nomination_pools::Error::decode_with_metadata( + cursor, 356u32, metadata, + )?; + return Ok(Error::NominationPools(variant_error)); + } + if pallet_name == "Staking" { + let variant_error = staking::Error::decode_with_metadata( + cursor, 380u32, metadata, + )?; + return Ok(Error::Staking(variant_error)); + } + if pallet_name == "Session" { + let variant_error = session::Error::decode_with_metadata( + cursor, 385u32, metadata, + )?; + return Ok(Error::Session(variant_error)); + } + if pallet_name == "BridgeRegistry" { + let variant_error = + bridge_registry::Error::decode_with_metadata( + cursor, 389u32, metadata, + )?; + return Ok(Error::BridgeRegistry(variant_error)); + } + if pallet_name == "Identity" { + let variant_error = identity::Error::decode_with_metadata( + cursor, 400u32, metadata, + )?; + return Ok(Error::Identity(variant_error)); + } + if pallet_name == "ImOnline" { + let variant_error = im_online::Error::decode_with_metadata( + cursor, 408u32, metadata, + )?; + return Ok(Error::ImOnline(variant_error)); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Error enum", + pallet_name + )) + .into()) + } + } + 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; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Remark { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetHeapPages { - pub pages: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetCode { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetCodeWithoutChecks { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetStorage { - pub items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillStorage { - pub keys: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillPrefix { - pub prefix: ::std::vec::Vec<::core::primitive::u8>, - pub subkeys: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemarkWithEvent { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - pub fn remark( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "remark", - Remark { remark }, - [ - 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, - 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, - 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, - 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, - 181u8, 129u8, 160u8, - ], - ) - } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub fn set_heap_pages( - &self, - pages: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_heap_pages", - SetHeapPages { pages }, - [ - 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, - 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, - 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, - 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, - 86u8, 87u8, - ], - ) - } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - pub fn set_code( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_code", - SetCode { code }, - [ - 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, - 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, - 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, - 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, - 14u8, 40u8, - ], - ) - } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - pub fn set_code_without_checks( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_code_without_checks", - SetCodeWithoutChecks { code }, - [ - 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, - 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, - 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, - 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, - 99u8, 216u8, - ], - ) - } - #[doc = "Set some items of storage."] - pub fn set_storage( - &self, - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_storage", - SetStorage { items }, - [ - 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, - 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, - 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, - 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, - 191u8, 22u8, 116u8, - ], - ) - } - #[doc = "Kill some items from storage."] + use ::subxt::ext::codec::Encode; + pub struct RuntimeApi; + impl RuntimeApi {} + } + pub struct ConstantsApi; + impl ConstantsApi { + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } + pub fn indices(&self) -> indices::constants::ConstantsApi { + indices::constants::ConstantsApi + } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { + timestamp::constants::ConstantsApi + } + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { + grandpa::constants::ConstantsApi + } + pub fn balances(&self) -> balances::constants::ConstantsApi { + balances::constants::ConstantsApi + } + pub fn dkg(&self) -> dkg::constants::ConstantsApi { + dkg::constants::ConstantsApi + } + pub fn dkg_proposals(&self) -> dkg_proposals::constants::ConstantsApi { + dkg_proposals::constants::ConstantsApi + } + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::constants::ConstantsApi { + dkg_proposal_handler::constants::ConstantsApi + } + pub fn transaction_payment( + &self, + ) -> transaction_payment::constants::ConstantsApi { + transaction_payment::constants::ConstantsApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::constants::ConstantsApi { + election_provider_multi_phase::constants::ConstantsApi + } + pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { + bags_list::constants::ConstantsApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } + pub fn bridge_registry( + &self, + ) -> bridge_registry::constants::ConstantsApi { + bridge_registry::constants::ConstantsApi + } + pub fn identity(&self) -> identity::constants::ConstantsApi { + identity::constants::ConstantsApi + } + pub fn im_online(&self) -> im_online::constants::ConstantsApi { + im_online::constants::ConstantsApi + } + } + pub struct StorageApi; + impl StorageApi { + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi + } + pub fn indices(&self) -> indices::storage::StorageApi { + indices::storage::StorageApi + } + pub fn randomness_collective_flip( + &self, + ) -> randomness_collective_flip::storage::StorageApi { + randomness_collective_flip::storage::StorageApi + } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } + pub fn aura(&self) -> aura::storage::StorageApi { + aura::storage::StorageApi + } + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } + pub fn dkg(&self) -> dkg::storage::StorageApi { + dkg::storage::StorageApi + } + pub fn dkg_proposals(&self) -> dkg_proposals::storage::StorageApi { + dkg_proposals::storage::StorageApi + } + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::storage::StorageApi { + dkg_proposal_handler::storage::StorageApi + } + pub fn transaction_payment( + &self, + ) -> transaction_payment::storage::StorageApi { + transaction_payment::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::storage::StorageApi { + election_provider_multi_phase::storage::StorageApi + } + pub fn bags_list(&self) -> bags_list::storage::StorageApi { + bags_list::storage::StorageApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn historical(&self) -> historical::storage::StorageApi { + historical::storage::StorageApi + } + pub fn bridge_registry(&self) -> bridge_registry::storage::StorageApi { + bridge_registry::storage::StorageApi + } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } + pub fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { + timestamp::calls::TransactionApi + } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } + pub fn balances(&self) -> balances::calls::TransactionApi { + balances::calls::TransactionApi + } + pub fn dkg(&self) -> dkg::calls::TransactionApi { + dkg::calls::TransactionApi + } + pub fn dkg_proposals(&self) -> dkg_proposals::calls::TransactionApi { + dkg_proposals::calls::TransactionApi + } + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::calls::TransactionApi { + dkg_proposal_handler::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::calls::TransactionApi { + election_provider_multi_phase::calls::TransactionApi + } + pub fn bags_list(&self) -> bags_list::calls::TransactionApi { + bags_list::calls::TransactionApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } + pub fn bridge_registry( + &self, + ) -> bridge_registry::calls::TransactionApi { + bridge_registry::calls::TransactionApi + } + pub fn identity(&self) -> identity::calls::TransactionApi { + identity::calls::TransactionApi + } + pub fn im_online(&self) -> im_online::calls::TransactionApi { + im_online::calls::TransactionApi + } + } + #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] + pub fn validate_codegen< + T: ::subxt::Config, + C: ::subxt::client::OfflineClientT, + >( + client: &C, + ) -> Result<(), ::subxt::error::MetadataError> { + let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); + if runtime_metadata_hash + != [ + 58u8, 114u8, 248u8, 133u8, 123u8, 22u8, 76u8, 180u8, 165u8, + 147u8, 247u8, 228u8, 163u8, 153u8, 17u8, 226u8, 161u8, 63u8, + 105u8, 250u8, 236u8, 159u8, 135u8, 135u8, 175u8, 54u8, 188u8, + 104u8, 52u8, 230u8, 113u8, 19u8, + ] + { + Err(::subxt::error::MetadataError::IncompatibleMetadata) + } else { + Ok(()) + } + } + 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Remark { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for Remark { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetHeapPages { + pub pages: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_heap_pages"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetCode { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCode { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetCodeWithoutChecks { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code_without_checks"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetStorage { + pub items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_storage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillStorage { + pub keys: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } + impl ::subxt::blocks::StaticExtrinsic for KillStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_storage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillPrefix { + pub prefix: ::std::vec::Vec<::core::primitive::u8>, + pub subkeys: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for KillPrefix { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_prefix"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemarkWithEvent { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark_with_event"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`"] + #[doc = "# "] + pub fn remark( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "remark", + types::Remark { remark }, + [ + 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, + 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, + 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, + 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, + 181u8, 129u8, 160u8, + ], + ) + } + #[doc = "Set the number of pages in the WebAssembly environment's heap."] + pub fn set_heap_pages( + &self, + pages: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_heap_pages", + types::SetHeapPages { pages }, + [ + 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, + 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, + 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, + 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, + 86u8, 87u8, + ], + ) + } + #[doc = "Set the new runtime code."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] + #[doc = " expensive)."] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] + #[doc = "expensive. We will treat this as a full block."] + #[doc = "# "] + pub fn set_code( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_code", + types::SetCode { code }, + [ + 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, + 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, + 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, + 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, + 14u8, 40u8, + ], + ) + } + #[doc = "Set the new runtime code without doing any checks of the given `code`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C)` where `C` length of `code`"] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] + #[doc = "block. # "] + pub fn set_code_without_checks( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "System", + "set_code_without_checks", + types::SetCodeWithoutChecks { code }, + [ + 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, + 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, + 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, + 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, + 99u8, 216u8, + ], + ) + } + #[doc = "Set some items of storage."] + pub fn set_storage( + &self, + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_storage", + types::SetStorage { items }, + [ + 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, + 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, + 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, + 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, + 191u8, 22u8, 116u8, + ], + ) + } + #[doc = "Kill some items from storage."] pub fn kill_storage( &self, keys: ::std::vec::Vec< ::std::vec::Vec<::core::primitive::u8>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "kill_storage", - KillStorage { keys }, + types::KillStorage { keys }, [ 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, @@ -319,11 +1203,11 @@ pub mod api { &self, prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "kill_prefix", - KillPrefix { prefix, subkeys }, + types::KillPrefix { prefix, subkeys }, [ 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, @@ -337,12 +1221,12 @@ pub mod api { pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "System", "remark_with_event", - RemarkWithEvent { remark }, + types::RemarkWithEvent { remark }, [ 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, @@ -361,11 +1245,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: @@ -378,11 +1267,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, @@ -396,11 +1290,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { @@ -410,11 +1309,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new account was created."] pub struct NewAccount { pub account: ::subxt::utils::AccountId32, @@ -426,11 +1330,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was reaped."] pub struct KilledAccount { pub account: ::subxt::utils::AccountId32, @@ -442,11 +1351,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "On on-chain remark happened."] pub struct Remarked { pub sender: ::subxt::utils::AccountId32, @@ -461,11 +1375,40 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The full account information for a particular account ID."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) + #[doc = " The full account information for a particular account ID."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) } - #[doc = " The full account information for a particular account ID."] pub fn account_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The full account information for a particular account ID."] + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "System", "Account", Vec::new(), @@ -478,8 +1421,17 @@ pub mod api { ], ) } - #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Total extrinsics count for the current block."] + pub fn extrinsic_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicCount", vec![], @@ -492,8 +1444,19 @@ pub mod api { ], ) } - #[doc = " The current weight for the block."] pub fn block_weight (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: sp_weights :: weight_v2 :: Weight > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current weight for the block."] + pub fn block_weight( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "BlockWeight", vec![], @@ -506,8 +1469,17 @@ pub mod api { ], ) } - #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] + pub fn all_extrinsics_len( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "System", "AllExtrinsicsLen", vec![], @@ -520,11 +1492,30 @@ pub mod api { ], ) } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [50u8 , 112u8 , 176u8 , 239u8 , 175u8 , 18u8 , 205u8 , 20u8 , 241u8 , 195u8 , 21u8 , 228u8 , 186u8 , 57u8 , 200u8 , 25u8 , 38u8 , 44u8 , 106u8 , 20u8 , 168u8 , 80u8 , 76u8 , 235u8 , 12u8 , 51u8 , 137u8 , 149u8 , 200u8 , 4u8 , 220u8 , 237u8 ,]) + #[doc = " Map of block numbers to block hashes."] + pub fn block_hash( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [50u8 , 112u8 , 176u8 , 239u8 , 175u8 , 18u8 , 205u8 , 20u8 , 241u8 , 195u8 , 21u8 , 228u8 , 186u8 , 57u8 , 200u8 , 25u8 , 38u8 , 44u8 , 106u8 , 20u8 , 168u8 , 80u8 , 76u8 , 235u8 , 12u8 , 51u8 , 137u8 , 149u8 , 200u8 , 4u8 , 220u8 , 237u8 ,]) } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Map of block numbers to block hashes."] + pub fn block_hash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "System", "BlockHash", Vec::new(), @@ -537,11 +1528,30 @@ pub mod api { ], ) } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] + pub fn extrinsic_data( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] + pub fn extrinsic_data_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", Vec::new(), @@ -554,8 +1564,17 @@ pub mod api { ], ) } - #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current block number being processed. Set by `execute_block`."] + pub fn number( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "Number", vec![], @@ -568,8 +1587,17 @@ pub mod api { ], ) } - #[doc = " Hash of the previous block."] pub fn parent_hash (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Hash of the previous block."] + pub fn parent_hash( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "ParentHash", vec![], @@ -582,8 +1610,17 @@ pub mod api { ], ) } - #[doc = " Digest of the current block, also part of the block header."] pub fn digest (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_runtime :: generic :: digest :: Digest > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Digest of the current block, also part of the block header."] + pub fn digest( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_runtime::generic::digest::Digest, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "Digest", vec![], @@ -602,8 +1639,22 @@ pub mod api { #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: dkg_standalone_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " just in case someone still reads them from within the runtime."] + pub fn events( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::frame_system::EventRecord< + runtime_types::dkg_standalone_runtime::RuntimeEvent, + ::subxt::utils::H256, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "Events", vec![], @@ -616,8 +1667,17 @@ pub mod api { ], ) } - #[doc = " The number of events in the `Events` list."] pub fn event_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The number of events in the `Events` list."] + pub fn event_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "EventCount", vec![], @@ -639,8 +1699,21 @@ pub mod api { #[doc = ""] #[doc = " The value has the type `(T::BlockNumber, 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 :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [205u8 , 90u8 , 142u8 , 190u8 , 176u8 , 37u8 , 94u8 , 82u8 , 98u8 , 1u8 , 129u8 , 63u8 , 246u8 , 101u8 , 130u8 , 58u8 , 216u8 , 16u8 , 139u8 , 196u8 , 154u8 , 111u8 , 110u8 , 178u8 , 24u8 , 44u8 , 183u8 , 176u8 , 232u8 , 82u8 , 223u8 , 38u8 ,]) + #[doc = " no notification will be triggered thus the event might be lost."] + pub fn event_topics( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [205u8 , 90u8 , 142u8 , 190u8 , 176u8 , 37u8 , 94u8 , 82u8 , 98u8 , 1u8 , 129u8 , 63u8 , 246u8 , 101u8 , 130u8 , 58u8 , 216u8 , 16u8 , 139u8 , 196u8 , 154u8 , 111u8 , 110u8 , 178u8 , 24u8 , 44u8 , 183u8 , 176u8 , 232u8 , 82u8 , 223u8 , 38u8 ,]) } #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] @@ -651,8 +1724,20 @@ pub mod api { #[doc = ""] #[doc = " The value has the type `(T::BlockNumber, 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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " no notification will be triggered thus the event might be lost."] + pub fn event_topics_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "System", "EventTopics", Vec::new(), @@ -665,8 +1750,17 @@ pub mod api { ], ) } - #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: LastRuntimeUpgradeInfo > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] + pub fn last_runtime_upgrade( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::LastRuntimeUpgradeInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "System", "LastRuntimeUpgrade", vec![], @@ -679,8 +1773,17 @@ pub mod api { ], ) } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "UpgradedToU32RefCount", vec![], @@ -694,8 +1797,17 @@ pub mod api { ) } #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " (default) if not."] + pub fn upgraded_to_triple_ref_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "System", "UpgradedToTripleRefCount", vec![], @@ -708,8 +1820,17 @@ pub mod api { ], ) } - #[doc = " The execution phase of the block."] pub fn execution_phase (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: Phase > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The execution phase of the block."] + pub fn execution_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::Phase, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "System", "ExecutionPhase", vec![], @@ -731,12 +1852,10 @@ pub mod api { #[doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockWeights, - >, + ) -> ::subxt::constants::Address< + runtime_types::frame_system::limits::BlockWeights, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "System", "BlockWeights", [ @@ -751,12 +1870,10 @@ pub mod api { #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockLength, - >, + ) -> ::subxt::constants::Address< + runtime_types::frame_system::limits::BlockLength, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "System", "BlockLength", [ @@ -771,10 +1888,9 @@ pub mod api { #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "System", "BlockHashCount", [ @@ -789,12 +1905,10 @@ pub mod api { #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::RuntimeDbWeight, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::RuntimeDbWeight, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "System", "DbWeight", [ @@ -809,12 +1923,10 @@ pub mod api { #[doc = " Get the chain's current version."] pub fn version( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_version::RuntimeVersion, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_version::RuntimeVersion, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "System", "Version", [ @@ -833,10 +1945,9 @@ pub mod api { #[doc = " an identifier of the chain."] pub fn ss58_prefix( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::new_static( "System", "SS58Prefix", [ @@ -854,77 +1965,148 @@ pub mod api { pub mod indices { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_indices::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Claim { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Free { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Freeze { - pub index: ::core::primitive::u32, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Claim { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Free { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Free { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + pub freeze: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Freeze { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "freeze"; + } } pub struct TransactionApi; impl TransactionApi { @@ -949,11 +2131,11 @@ pub mod api { pub fn claim( &self, index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Indices", "claim", - Claim { index }, + types::Claim { index }, [ 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, @@ -990,11 +2172,11 @@ pub mod api { ::core::primitive::u32, >, index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Indices", "transfer", - Transfer { new, index }, + types::Transfer { new, index }, [ 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, @@ -1025,11 +2207,11 @@ pub mod api { pub fn free( &self, index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Indices", "free", - Free { index }, + types::Free { index }, [ 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, @@ -1068,12 +2250,12 @@ pub mod api { >, index: ::core::primitive::u32, freeze: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Indices", "force_transfer", - ForceTransfer { new, index, freeze }, + types::ForceTransfer { new, index, freeze }, [ 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, @@ -1104,11 +2286,11 @@ pub mod api { pub fn freeze( &self, index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Indices", "freeze", - Freeze { index }, + types::Freeze { index }, [ 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, @@ -1127,11 +2309,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index was assigned."] pub struct IndexAssigned { pub who: ::subxt::utils::AccountId32, @@ -1145,11 +2332,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { pub index: ::core::primitive::u32, @@ -1161,11 +2353,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index: ::core::primitive::u32, @@ -1180,11 +2377,38 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The lookup from index to account."] pub fn accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) + #[doc = " The lookup from index to account."] + pub fn accounts( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) } - #[doc = " The lookup from index to account."] pub fn accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The lookup from index to account."] + pub fn accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Indices", "Accounts", Vec::new(), @@ -1206,12 +2430,9 @@ pub mod api { #[doc = " The deposit needed for reserving an index."] pub fn deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "Indices", "Deposit", [ @@ -1235,8 +2456,19 @@ pub mod api { impl StorageApi { #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] - #[doc = " the oldest hash."] pub fn random_material (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " the oldest hash."] + pub fn random_material( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "RandomnessCollectiveFlip", "RandomMaterial", vec![], @@ -1256,21 +2488,38 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Set { - #[codec(compact)] - pub now: ::core::primitive::u64, + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Set { + #[codec(compact)] + pub now: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for Set { + const PALLET: &'static str = "Timestamp"; + const CALL: &'static str = "set"; + } } pub struct TransactionApi; impl TransactionApi { @@ -1293,11 +2542,11 @@ pub mod api { pub fn set( &self, now: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Timestamp", "set", - Set { now }, + types::Set { now }, [ 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, @@ -1313,8 +2562,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Current time for the current block."] pub fn now (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Current time for the current block."] + pub fn now( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Timestamp", "Now", vec![], @@ -1327,8 +2585,17 @@ pub mod api { ], ) } - #[doc = " Did the timestamp get updated in this block?"] pub fn did_update (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Did the timestamp get updated in this block?"] + pub fn did_update( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Timestamp", "DidUpdate", vec![], @@ -1352,10 +2619,9 @@ pub mod api { #[doc = " double this period on default settings."] pub fn minimum_period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( "Timestamp", "MinimumPeriod", [ @@ -1377,8 +2643,8 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "Aura", "Authorities", vec![], @@ -1393,8 +2659,17 @@ pub mod api { } #[doc = " The current slot of this block."] #[doc = ""] - #[doc = " This will be set in `on_initialize`."] pub fn current_slot (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_slots :: Slot > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This will be set in `on_initialize`."] + pub fn current_slot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Aura", "CurrentSlot", vec![], @@ -1413,56 +2688,101 @@ pub mod api { pub mod grandpa { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_grandpa::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >, >, - >, - pub key_owner_proof: runtime_types::sp_core::Void, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, + pub key_owner_proof: runtime_types::sp_core::Void, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >, >, - >, - pub key_owner_proof: runtime_types::sp_core::Void, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NoteStalled { - pub delay: ::core::primitive::u32, - pub best_finalized_block_number: ::core::primitive::u32, + pub key_owner_proof: runtime_types::sp_core::Void, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct NoteStalled { + pub delay: ::core::primitive::u32, + pub best_finalized_block_number: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for NoteStalled { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "note_stalled"; + } } pub struct TransactionApi; impl TransactionApi { @@ -1474,12 +2794,12 @@ pub mod api { &self, equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, key_owner_proof: runtime_types::sp_core::Void, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Grandpa", "report_equivocation", - ReportEquivocation { + types::ReportEquivocation { equivocation_proof: ::std::boxed::Box::new( equivocation_proof, ), @@ -1507,12 +2827,12 @@ pub mod api { &self, equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, key_owner_proof: runtime_types::sp_core::Void, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Grandpa", "report_equivocation_unsigned", - ReportEquivocationUnsigned { + types::ReportEquivocationUnsigned { equivocation_proof: ::std::boxed::Box::new( equivocation_proof, ), @@ -1542,11 +2862,11 @@ pub mod api { &self, delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Grandpa", "note_stalled", - NoteStalled { + types::NoteStalled { delay, best_finalized_block_number, }, @@ -1568,11 +2888,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set: ::std::vec::Vec<( @@ -1587,11 +2912,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current authority set has been paused."] pub struct Paused; impl ::subxt::events::StaticEvent for Paused { @@ -1601,11 +2931,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current authority set has been resumed."] pub struct Resumed; impl ::subxt::events::StaticEvent for Resumed { @@ -1617,8 +2952,19 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " State of the current authority set."] pub fn state (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_grandpa :: StoredState < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " State of the current authority set."] + pub fn state( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredState< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Grandpa", "State", vec![], @@ -1631,8 +2977,19 @@ pub mod api { ], ) } - #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_grandpa :: StoredPendingChange < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Pending change: (signaled at, scheduled change)."] + pub fn pending_change( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredPendingChange< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Grandpa", "PendingChange", vec![], @@ -1644,8 +3001,17 @@ pub mod api { ], ) } - #[doc = " next block number where we can force a change."] pub fn next_forced (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " next block number where we can force a change."] + pub fn next_forced( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Grandpa", "NextForced", vec![], @@ -1658,8 +3024,17 @@ pub mod api { ], ) } - #[doc = " `true` if we are currently stalled."] pub fn stalled (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " `true` if we are currently stalled."] + pub fn stalled( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Grandpa", "Stalled", vec![], @@ -1673,8 +3048,17 @@ pub mod api { ) } #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " in the \"set\" of Grandpa validators from genesis."] + pub fn current_set_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Grandpa", "CurrentSetId", vec![], @@ -1690,14 +3074,33 @@ pub mod api { #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) + #[doc = " TWOX-NOTE: `SetId` is not under user control."] + pub fn set_id_session( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) } #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " TWOX-NOTE: `SetId` is not under user control."] + pub fn set_id_session_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Grandpa", "SetIdSession", Vec::new(), @@ -1719,10 +3122,9 @@ pub mod api { #[doc = " Max Authorities in use"] pub fn max_authorities( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Grandpa", "MaxAuthorities", [ @@ -1740,110 +3142,194 @@ pub mod api { pub mod balances { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_balances::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub keep_alive: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub amount: ::core::primitive::u128, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub new_reserved: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetBalance { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "set_balance"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnreserve { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_unreserve"; + } } pub struct TransactionApi; impl TransactionApi { @@ -1879,11 +3365,11 @@ pub mod api { ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer", - Transfer { dest, value }, + types::Transfer { dest, value }, [ 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, @@ -1909,11 +3395,11 @@ pub mod api { >, new_free: ::core::primitive::u128, new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "set_balance", - SetBalance { + types::SetBalance { who, new_free, new_reserved, @@ -1944,12 +3430,12 @@ pub mod api { ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Balances", "force_transfer", - ForceTransfer { + types::ForceTransfer { source, dest, value, @@ -1976,12 +3462,12 @@ pub mod api { ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Balances", "transfer_keep_alive", - TransferKeepAlive { dest, value }, + types::TransferKeepAlive { dest, value }, [ 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, @@ -2015,11 +3501,11 @@ pub mod api { ::core::primitive::u32, >, keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_all", - TransferAll { dest, keep_alive }, + types::TransferAll { dest, keep_alive }, [ 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, @@ -2039,12 +3525,12 @@ pub mod api { ::core::primitive::u32, >, amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Balances", "force_unreserve", - ForceUnreserve { who, amount }, + types::ForceUnreserve { who, amount }, [ 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, @@ -2063,11 +3549,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { pub account: ::subxt::utils::AccountId32, @@ -2080,11 +3571,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { @@ -2098,11 +3594,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { pub from: ::subxt::utils::AccountId32, @@ -2116,11 +3617,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { pub who: ::subxt::utils::AccountId32, @@ -2134,11 +3640,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who: ::subxt::utils::AccountId32, @@ -2151,11 +3662,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who: ::subxt::utils::AccountId32, @@ -2168,11 +3684,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } @@ -2183,11 +3704,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who: ::subxt::utils::AccountId32, @@ -2200,11 +3726,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who: ::subxt::utils::AccountId32, @@ -2217,11 +3748,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who: ::subxt::utils::AccountId32, @@ -2236,8 +3772,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The total units issued in the system."] pub fn total_issuance (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The total units issued in the system."] + pub fn total_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Balances", "TotalIssuance", vec![], @@ -2250,8 +3795,17 @@ pub mod api { ], ) } - #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The total units of outstanding deactivated balance in the system."] + pub fn inactive_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Balances", "InactiveIssuance", vec![], @@ -2287,8 +3841,20 @@ pub mod api { #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) } #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] @@ -2313,8 +3879,19 @@ pub mod api { #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Balances", "Account", Vec::new(), @@ -2328,12 +3905,12 @@ pub mod api { ) } #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) } #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "Balances", "Locks", Vec::new(), @@ -2346,11 +3923,40 @@ pub mod api { ], ) } - #[doc = " Named reserves on some account balances."] pub fn reserves (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) + #[doc = " Named reserves on some account balances."] + pub fn reserves( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) } - #[doc = " Named reserves on some account balances."] pub fn reserves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Named reserves on some account balances."] + pub fn reserves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Balances", "Reserves", Vec::new(), @@ -2372,12 +3978,9 @@ pub mod api { #[doc = " The minimum amount required to keep an account open."] pub fn existential_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "Balances", "ExistentialDeposit", [ @@ -2389,183 +3992,337 @@ pub mod api { ], ) } - #[doc = " The maximum number of locks that should exist on an account."] - #[doc = " Not strictly enforced, but used for weight estimation."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 locks that should exist on an account."] + #[doc = " Not strictly enforced, but used for weight estimation."] + pub fn max_locks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "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."] + pub fn max_reserves( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + pub mod dkg { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_dkg_metadata::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_dkg_metadata::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetSignatureThreshold { + pub new_threshold: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for SetSignatureThreshold { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "set_signature_threshold"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKeygenThreshold { + pub new_threshold: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for SetKeygenThreshold { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "set_keygen_threshold"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetRefreshDelay { + pub new_delay: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for SetRefreshDelay { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "set_refresh_delay"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitPublicKey { pub keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } + impl ::subxt::blocks::StaticExtrinsic for SubmitPublicKey { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_public_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitNextPublicKey { pub keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } + impl ::subxt::blocks::StaticExtrinsic for SubmitNextPublicKey { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_next_public_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitPublicKeySignature { pub signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } + impl ::subxt::blocks::StaticExtrinsic for SubmitPublicKeySignature { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_public_key_signature"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitMisbehaviourReports { pub reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } + impl ::subxt::blocks::StaticExtrinsic for SubmitMisbehaviourReports { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_misbehaviour_reports"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unjail; + impl ::subxt::blocks::StaticExtrinsic for Unjail { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "unjail"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnjailKeygen { + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnjailKeygen { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "force_unjail_keygen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnjailSigning { + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnjailSigning { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "force_unjail_signing"; } - #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceChangeAuthorities; + impl ::subxt::blocks::StaticExtrinsic for ForceChangeAuthorities { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "force_change_authorities"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TriggerEmergencyKeygen; + impl ::subxt::blocks::StaticExtrinsic for TriggerEmergencyKeygen { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "trigger_emergency_keygen"; } } - } - } - pub mod dkg { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetSignatureThreshold { - pub new_threshold: ::core::primitive::u16, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKeygenThreshold { - pub new_threshold: ::core::primitive::u16, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetRefreshDelay { - pub new_delay: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitPublicKey { - pub keys_and_signatures: - runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitNextPublicKey { - pub keys_and_signatures: - runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitPublicKeySignature { pub signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitMisbehaviourReports { pub reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unjail; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnjailKeygen { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnjailSigning { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceChangeAuthorities; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TriggerEmergencyKeygen; pub struct TransactionApi; impl TransactionApi { #[doc = "Set the pending signature threshold for the session following the next session."] @@ -2580,12 +4337,12 @@ pub mod api { pub fn set_signature_threshold( &self, new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "set_signature_threshold", - SetSignatureThreshold { new_threshold }, + types::SetSignatureThreshold { new_threshold }, [ 160u8, 195u8, 237u8, 69u8, 171u8, 13u8, 28u8, 110u8, 245u8, 159u8, 172u8, 115u8, 125u8, 245u8, @@ -2607,12 +4364,12 @@ pub mod api { pub fn set_keygen_threshold( &self, new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "set_keygen_threshold", - SetKeygenThreshold { new_threshold }, + types::SetKeygenThreshold { new_threshold }, [ 181u8, 23u8, 76u8, 117u8, 56u8, 235u8, 59u8, 254u8, 242u8, 114u8, 147u8, 247u8, 248u8, 168u8, 235u8, @@ -2631,12 +4388,12 @@ pub mod api { pub fn set_refresh_delay( &self, new_delay: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "set_refresh_delay", - SetRefreshDelay { new_delay }, + types::SetRefreshDelay { new_delay }, [ 16u8, 74u8, 191u8, 229u8, 37u8, 51u8, 217u8, 83u8, 211u8, 119u8, 177u8, 127u8, 207u8, 133u8, 218u8, @@ -2660,12 +4417,12 @@ pub mod api { pub fn submit_public_key( &self, keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "submit_public_key", - SubmitPublicKey { + types::SubmitPublicKey { keys_and_signatures, }, [ @@ -2689,12 +4446,12 @@ pub mod api { pub fn submit_next_public_key( &self, keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "submit_next_public_key", - SubmitNextPublicKey { + types::SubmitNextPublicKey { keys_and_signatures, }, [ @@ -2723,12 +4480,12 @@ pub mod api { pub fn submit_public_key_signature( &self, signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "submit_public_key_signature", - SubmitPublicKeySignature { signature_proposal }, + types::SubmitPublicKeySignature { signature_proposal }, [ 74u8, 197u8, 64u8, 71u8, 121u8, 35u8, 252u8, 67u8, 136u8, 25u8, 110u8, 230u8, 219u8, 44u8, 146u8, @@ -2759,12 +4516,12 @@ pub mod api { pub fn submit_misbehaviour_reports( &self, reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "submit_misbehaviour_reports", - SubmitMisbehaviourReports { reports }, + types::SubmitMisbehaviourReports { reports }, [ 217u8, 75u8, 94u8, 66u8, 26u8, 160u8, 229u8, 184u8, 66u8, 97u8, 190u8, 21u8, 127u8, 165u8, 67u8, 85u8, @@ -2782,11 +4539,11 @@ pub mod api { #[doc = "for the authority to be removed from the jail."] #[doc = ""] #[doc = "* `origin` - The account origin."] - pub fn unjail(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn unjail(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "DKG", "unjail", - Unjail {}, + types::Unjail {}, [ 209u8, 5u8, 90u8, 85u8, 167u8, 92u8, 85u8, 132u8, 48u8, 27u8, 89u8, 149u8, 242u8, 209u8, 97u8, 87u8, @@ -2804,12 +4561,12 @@ pub mod api { pub fn force_unjail_keygen( &self, authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "force_unjail_keygen", - ForceUnjailKeygen { authority }, + types::ForceUnjailKeygen { authority }, [ 7u8, 2u8, 72u8, 189u8, 190u8, 208u8, 55u8, 117u8, 205u8, 174u8, 223u8, 90u8, 12u8, 136u8, 64u8, @@ -2828,12 +4585,12 @@ pub mod api { pub fn force_unjail_signing( &self, authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "force_unjail_signing", - ForceUnjailSigning { authority }, + types::ForceUnjailSigning { authority }, [ 195u8, 160u8, 19u8, 141u8, 200u8, 170u8, 41u8, 189u8, 18u8, 98u8, 112u8, 34u8, 55u8, 46u8, 101u8, @@ -2850,12 +4607,12 @@ pub mod api { #[doc = "to execute the rotation forcefully."] pub fn force_change_authorities( &self, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "force_change_authorities", - ForceChangeAuthorities {}, + types::ForceChangeAuthorities {}, [ 98u8, 226u8, 238u8, 39u8, 98u8, 79u8, 85u8, 160u8, 82u8, 3u8, 34u8, 195u8, 220u8, 178u8, 25u8, 110u8, @@ -2873,12 +4630,12 @@ pub mod api { #[doc = "Note that, this will clear the next public key and its signature, if any."] pub fn trigger_emergency_keygen( &self, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKG", "trigger_emergency_keygen", - TriggerEmergencyKeygen {}, + types::TriggerEmergencyKeygen {}, [ 169u8, 123u8, 131u8, 42u8, 202u8, 219u8, 162u8, 1u8, 134u8, 223u8, 197u8, 245u8, 64u8, 51u8, 46u8, @@ -2897,11 +4654,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current public key submitted"] pub struct PublicKeySubmitted { pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, @@ -2915,11 +4677,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Next public key submitted"] pub struct NextPublicKeySubmitted { pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, @@ -2933,11 +4700,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Next public key signature submitted"] pub struct NextPublicKeySignatureSubmitted { pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, @@ -2953,11 +4725,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current Public Key Changed."] pub struct PublicKeyChanged { pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, @@ -2971,11 +4748,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current Public Key Signature Changed."] pub struct PublicKeySignatureChanged { pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, @@ -2991,11 +4773,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Misbehaviour reports submitted"] pub struct MisbehaviourReportsSubmitted { pub misbehaviour_type: @@ -3014,11 +4801,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Refresh DKG Keys Finished (forcefully)."] pub struct RefreshKeysFinished { pub next_authority_set_id: ::core::primitive::u64, @@ -3031,11 +4823,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "NextKeygenThreshold updated"] pub struct NextKeygenThresholdUpdated { pub next_keygen_threshold: ::core::primitive::u16, @@ -3048,11 +4845,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "NextSignatureThreshold updated"] pub struct NextSignatureThresholdUpdated { pub next_signature_threshold: ::core::primitive::u16, @@ -3065,11 +4867,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "PendingKeygenThreshold updated"] pub struct PendingKeygenThresholdUpdated { pub pending_keygen_threshold: ::core::primitive::u16, @@ -3082,11 +4889,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "PendingSignatureThreshold updated"] pub struct PendingSignatureThresholdUpdated { pub pending_signature_threshold: ::core::primitive::u16, @@ -3098,11 +4910,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An Emergency Keygen Protocol was triggered."] pub struct EmergencyKeygenTriggered; impl ::subxt::events::StaticEvent for EmergencyKeygenTriggered { @@ -3112,11 +4929,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An authority has been jailed for misbehaviour"] pub struct AuthorityJailed { pub misbehaviour_type: @@ -3131,11 +4953,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An authority has been unjailed"] pub struct AuthorityUnJailed { pub authority: @@ -3150,8 +4977,8 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "DKG", "UsedSignatures", vec![], @@ -3164,8 +4991,17 @@ pub mod api { ], ) } - #[doc = " Nonce value for next refresh proposal"] pub fn refresh_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Nonce value for next refresh proposal"] + pub fn refresh_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "RefreshNonce", vec![], @@ -3178,8 +5014,17 @@ pub mod api { ], ) } - #[doc = " Session progress required to kickstart refresh process"] pub fn refresh_delay (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Permill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Session progress required to kickstart refresh process"] + pub fn refresh_delay( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Permill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "RefreshDelay", vec![], @@ -3196,8 +5041,17 @@ pub mod api { #[doc = ""] #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] - #[doc = " This storage entry defines when new transaction is going to be accepted."] pub fn next_unsigned_at (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This storage entry defines when new transaction is going to be accepted."] + pub fn next_unsigned_at( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextUnsignedAt", vec![], @@ -3210,8 +5064,17 @@ pub mod api { ], ) } - #[doc = " Check if there is a refresh in progress."] pub fn refresh_in_progress (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Check if there is a refresh in progress."] + pub fn refresh_in_progress( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "RefreshInProgress", vec![], @@ -3224,8 +5087,17 @@ pub mod api { ], ) } - #[doc = " Should we start a new Keygen"] pub fn should_execute_new_keygen (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Should we start a new Keygen"] + pub fn should_execute_new_keygen( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "ShouldExecuteNewKeygen", vec![], @@ -3238,8 +5110,8 @@ pub mod api { ], ) } - #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( "DKG", "NextDKGPublicKey", vec![], @@ -3252,8 +5124,19 @@ pub mod api { ], ) } - #[doc = " Signature of the DKG public key for the next session"] pub fn next_public_key_signature (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Signature of the DKG public key for the next session"] + pub fn next_public_key_signature( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextPublicKeySignature", vec![], @@ -3266,8 +5149,8 @@ pub mod api { ], ) } - #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "DKG", "DKGPublicKey", vec![], @@ -3280,8 +5163,19 @@ pub mod api { ], ) } - #[doc = " Signature of the current DKG public key"] pub fn dkg_public_key_signature (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Signature of the current DKG public key"] + pub fn dkg_public_key_signature( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "DKGPublicKeySignature", vec![], @@ -3294,8 +5188,8 @@ pub mod api { ], ) } - #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "DKG", "PreviousPublicKey", vec![], @@ -3308,11 +5202,36 @@ pub mod api { ], ) } - #[doc = " Tracks current proposer set"] pub fn historical_rounds (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_metadata :: types :: RoundMetadata < runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "HistoricalRounds" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [69u8 , 172u8 , 38u8 , 240u8 , 139u8 , 118u8 , 160u8 , 111u8 , 95u8 , 143u8 , 196u8 , 94u8 , 149u8 , 125u8 , 176u8 , 142u8 , 53u8 , 141u8 , 70u8 , 132u8 , 71u8 , 23u8 , 174u8 , 221u8 , 72u8 , 69u8 , 14u8 , 191u8 , 225u8 , 43u8 , 67u8 , 79u8 ,]) + #[doc = " Tracks current proposer set"] + pub fn historical_rounds( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_metadata::types::RoundMetadata< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "HistoricalRounds" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [69u8 , 172u8 , 38u8 , 240u8 , 139u8 , 118u8 , 160u8 , 111u8 , 95u8 , 143u8 , 196u8 , 94u8 , 149u8 , 125u8 , 176u8 , 142u8 , 53u8 , 141u8 , 70u8 , 132u8 , 71u8 , 23u8 , 174u8 , 221u8 , 72u8 , 69u8 , 14u8 , 191u8 , 225u8 , 43u8 , 67u8 , 79u8 ,]) } - #[doc = " Tracks current proposer set"] pub fn historical_rounds_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_metadata :: types :: RoundMetadata < runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Tracks current proposer set"] + pub fn historical_rounds_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_metadata::types::RoundMetadata< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKG", "HistoricalRounds", Vec::new(), @@ -3325,8 +5244,17 @@ pub mod api { ], ) } - #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] pub fn signature_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] + pub fn signature_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "SignatureThreshold", vec![], @@ -3339,8 +5267,17 @@ pub mod api { ], ) } - #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] pub fn keygen_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] + pub fn keygen_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "KeygenThreshold", vec![], @@ -3352,8 +5289,17 @@ pub mod api { ], ) } - #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] pub fn next_signature_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] + pub fn next_signature_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextSignatureThreshold", vec![], @@ -3366,8 +5312,17 @@ pub mod api { ], ) } - #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] pub fn next_keygen_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] + pub fn next_keygen_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextKeygenThreshold", vec![], @@ -3380,8 +5335,17 @@ pub mod api { ], ) } - #[doc = " The pending signature threshold (i.e. the `t` in t-of-n)"] pub fn pending_signature_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The pending signature threshold (i.e. the `t` in t-of-n)"] + pub fn pending_signature_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "PendingSignatureThreshold", vec![], @@ -3394,8 +5358,17 @@ pub mod api { ], ) } - #[doc = " The pending signature threshold (i.e. the `n` in t-of-n)"] pub fn pending_keygen_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The pending signature threshold (i.e. the `n` in t-of-n)"] + pub fn pending_keygen_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "PendingKeygenThreshold", vec![], @@ -3408,8 +5381,19 @@ pub mod api { ], ) } - #[doc = " The current authorities set"] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current authorities set"] + pub fn authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "Authorities", vec![], @@ -3422,8 +5406,17 @@ pub mod api { ], ) } - #[doc = " The current authority set id"] pub fn authority_set_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current authority set id"] + pub fn authority_set_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "AuthoritySetId", vec![], @@ -3436,8 +5429,17 @@ pub mod api { ], ) } - #[doc = " The next authority set id"] pub fn next_authority_set_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The next authority set id"] + pub fn next_authority_set_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextAuthoritySetId", vec![], @@ -3450,8 +5452,19 @@ pub mod api { ], ) } - #[doc = " Authorities set scheduled to be used with the next session"] pub fn next_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Authorities set scheduled to be used with the next session"] + pub fn next_authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextAuthorities", vec![], @@ -3464,8 +5477,19 @@ pub mod api { ], ) } - #[doc = " Accounts for the current authorities"] pub fn current_authorities_accounts (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Accounts for the current authorities"] + pub fn current_authorities_accounts( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "CurrentAuthoritiesAccounts", vec![], @@ -3478,8 +5502,19 @@ pub mod api { ], ) } - #[doc = " Authority account ids scheduled for the next session"] pub fn next_authorities_accounts (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Authority account ids scheduled for the next session"] + pub fn next_authorities_accounts( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextAuthoritiesAccounts", vec![], @@ -3492,11 +5527,30 @@ pub mod api { ], ) } - #[doc = " Authority account ids scheduled for the next session"] pub fn account_to_authority (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "AccountToAuthority" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [153u8 , 156u8 , 238u8 , 107u8 , 10u8 , 129u8 , 109u8 , 32u8 , 111u8 , 45u8 , 223u8 , 84u8 , 30u8 , 115u8 , 139u8 , 254u8 , 58u8 , 194u8 , 205u8 , 73u8 , 249u8 , 102u8 , 217u8 , 125u8 , 137u8 , 206u8 , 87u8 , 34u8 , 100u8 , 45u8 , 223u8 , 252u8 ,]) + #[doc = " Authority account ids scheduled for the next session"] + pub fn account_to_authority( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::dkg_runtime_primitives::crypto::Public, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "AccountToAuthority" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [153u8 , 156u8 , 238u8 , 107u8 , 10u8 , 129u8 , 109u8 , 32u8 , 111u8 , 45u8 , 223u8 , 84u8 , 30u8 , 115u8 , 139u8 , 254u8 , 58u8 , 194u8 , 205u8 , 73u8 , 249u8 , 102u8 , 217u8 , 125u8 , 137u8 , 206u8 , 87u8 , 34u8 , 100u8 , 45u8 , 223u8 , 252u8 ,]) } - #[doc = " Authority account ids scheduled for the next session"] pub fn account_to_authority_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Authority account ids scheduled for the next session"] + pub fn account_to_authority_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::dkg_runtime_primitives::crypto::Public, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKG", "AccountToAuthority", Vec::new(), @@ -3509,11 +5563,11 @@ pub mod api { ], ) } - #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: MisbehaviourType > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > , _2 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "MisbehaviourReports" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow () , _2 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [2u8 , 14u8 , 23u8 , 57u8 , 168u8 , 205u8 , 55u8 , 220u8 , 203u8 , 236u8 , 126u8 , 46u8 , 31u8 , 215u8 , 25u8 , 163u8 , 138u8 , 62u8 , 188u8 , 146u8 , 131u8 , 165u8 , 100u8 , 50u8 , 66u8 , 94u8 , 236u8 , 25u8 , 147u8 , 11u8 , 231u8 , 182u8 ,]) + #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: MisbehaviourType > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > , _2 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "MisbehaviourReports" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_2 . borrow ())] , [2u8 , 14u8 , 23u8 , 57u8 , 168u8 , 205u8 , 55u8 , 220u8 , 203u8 , 236u8 , 126u8 , 46u8 , 31u8 , 215u8 , 25u8 , 163u8 , 138u8 , 62u8 , 188u8 , 146u8 , 131u8 , 165u8 , 100u8 , 50u8 , 66u8 , 94u8 , 236u8 , 25u8 , 147u8 , 11u8 , 231u8 , 182u8 ,]) } - #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "DKG", "MisbehaviourReports", Vec::new(), @@ -3526,11 +5580,32 @@ pub mod api { ], ) } - #[doc = " Tracks authority reputations"] pub fn authority_reputations (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "AuthorityReputations" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [232u8 , 88u8 , 120u8 , 58u8 , 141u8 , 39u8 , 76u8 , 249u8 , 250u8 , 154u8 , 173u8 , 127u8 , 163u8 , 70u8 , 186u8 , 193u8 , 210u8 , 43u8 , 225u8 , 11u8 , 254u8 , 208u8 , 46u8 , 87u8 , 66u8 , 21u8 , 111u8 , 228u8 , 54u8 , 200u8 , 46u8 , 2u8 ,]) + #[doc = " Tracks authority reputations"] + pub fn authority_reputations( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "AuthorityReputations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [232u8 , 88u8 , 120u8 , 58u8 , 141u8 , 39u8 , 76u8 , 249u8 , 250u8 , 154u8 , 173u8 , 127u8 , 163u8 , 70u8 , 186u8 , 193u8 , 210u8 , 43u8 , 225u8 , 11u8 , 254u8 , 208u8 , 46u8 , 87u8 , 66u8 , 21u8 , 111u8 , 228u8 , 54u8 , 200u8 , 46u8 , 2u8 ,]) } - #[doc = " Tracks authority reputations"] pub fn authority_reputations_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Tracks authority reputations"] + pub fn authority_reputations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKG", "AuthorityReputations", Vec::new(), @@ -3544,12 +5619,33 @@ pub mod api { ) } #[doc = " Tracks jailed authorities for keygen by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_keygen_authorities (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "JailedKeygenAuthorities" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [59u8 , 86u8 , 235u8 , 7u8 , 94u8 , 26u8 , 253u8 , 179u8 , 186u8 , 33u8 , 6u8 , 242u8 , 46u8 , 174u8 , 254u8 , 118u8 , 92u8 , 208u8 , 166u8 , 181u8 , 45u8 , 137u8 , 41u8 , 87u8 , 109u8 , 37u8 , 171u8 , 59u8 , 169u8 , 48u8 , 78u8 , 107u8 ,]) + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_keygen_authorities( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "JailedKeygenAuthorities" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [59u8 , 86u8 , 235u8 , 7u8 , 94u8 , 26u8 , 253u8 , 179u8 , 186u8 , 33u8 , 6u8 , 242u8 , 46u8 , 174u8 , 254u8 , 118u8 , 92u8 , 208u8 , 166u8 , 181u8 , 45u8 , 137u8 , 41u8 , 87u8 , 109u8 , 37u8 , 171u8 , 59u8 , 169u8 , 48u8 , 78u8 , 107u8 ,]) } #[doc = " Tracks jailed authorities for keygen by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_keygen_authorities_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_keygen_authorities_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKG", "JailedKeygenAuthorities", Vec::new(), @@ -3562,12 +5658,33 @@ pub mod api { ) } #[doc = " Tracks jailed authorities for signing by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_signing_authorities (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "JailedSigningAuthorities" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [32u8 , 100u8 , 53u8 , 234u8 , 245u8 , 105u8 , 136u8 , 132u8 , 225u8 , 219u8 , 138u8 , 165u8 , 124u8 , 174u8 , 201u8 , 219u8 , 255u8 , 214u8 , 104u8 , 204u8 , 14u8 , 32u8 , 181u8 , 79u8 , 135u8 , 172u8 , 26u8 , 1u8 , 115u8 , 98u8 , 110u8 , 89u8 ,]) + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_signing_authorities( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "JailedSigningAuthorities" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [32u8 , 100u8 , 53u8 , 234u8 , 245u8 , 105u8 , 136u8 , 132u8 , 225u8 , 219u8 , 138u8 , 165u8 , 124u8 , 174u8 , 201u8 , 219u8 , 255u8 , 214u8 , 104u8 , 204u8 , 14u8 , 32u8 , 181u8 , 79u8 , 135u8 , 172u8 , 26u8 , 1u8 , 115u8 , 98u8 , 110u8 , 89u8 ,]) } #[doc = " Tracks jailed authorities for signing by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_signing_authorities_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_signing_authorities_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKG", "JailedSigningAuthorities", Vec::new(), @@ -3580,8 +5697,20 @@ pub mod api { ], ) } - #[doc = " The current best authorities of the active keygen set"] pub fn best_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current best authorities of the active keygen set"] + pub fn best_authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + ::core::primitive::u16, + runtime_types::dkg_runtime_primitives::crypto::Public, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "BestAuthorities", vec![], @@ -3594,8 +5723,20 @@ pub mod api { ], ) } - #[doc = " The next best authorities of the active keygen set"] pub fn next_best_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The next best authorities of the active keygen set"] + pub fn next_best_authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + ::core::primitive::u16, + runtime_types::dkg_runtime_primitives::crypto::Public, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "NextBestAuthorities", vec![], @@ -3608,8 +5749,17 @@ pub mod api { ], ) } - #[doc = " The last BlockNumber at which the session rotation happened"] pub fn last_session_rotation_block (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The last BlockNumber at which the session rotation happened"] + pub fn last_session_rotation_block( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKG", "LastSessionRotationBlock", vec![], @@ -3631,12 +5781,10 @@ pub mod api { #[doc = " Percentage session should have progressed for refresh to begin"] pub fn refresh_delay( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "DKG", "RefreshDelay", [ @@ -3654,10 +5802,9 @@ pub mod api { #[doc = " blocks."] pub fn unsigned_interval( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKG", "UnsignedInterval", [ @@ -3675,10 +5822,9 @@ pub mod api { #[doc = " multiple pallets send unsigned transactions."] pub fn unsigned_priority( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( "DKG", "UnsignedPriority", [ @@ -3693,10 +5839,9 @@ pub mod api { #[doc = " Session length helper allowing to query session length across runtime upgrades."] pub fn session_period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKG", "SessionPeriod", [ @@ -3711,10 +5856,9 @@ pub mod api { #[doc = " MaxLength for keys"] pub fn max_key_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKG", "MaxKeyLength", [ @@ -3729,10 +5873,9 @@ pub mod api { #[doc = " MaxLength for signature"] pub fn max_signature_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKG", "MaxSignatureLength", [ @@ -3747,10 +5890,9 @@ pub mod api { #[doc = " Max authorities to store"] pub fn max_authorities( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKG", "MaxAuthorities", [ @@ -3765,10 +5907,9 @@ pub mod api { #[doc = " Max reporters to store"] pub fn max_reporters( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKG", "MaxReporters", [ @@ -3786,133 +5927,231 @@ pub mod api { pub mod dkg_proposals { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_dkg_proposals::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_dkg_proposals::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetThreshold { - pub threshold: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - pub method: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WhitelistChain { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddProposer { - pub native_account: ::subxt::utils::AccountId32, - pub external_account: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveProposer { - pub v: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AcknowledgeProposal { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub prop: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RejectProposal { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub prop: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EvalVoteState { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub prop: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetThreshold { + pub threshold: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetThreshold { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "set_threshold"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + pub method: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetResource { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "set_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveResource { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "remove_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WhitelistChain { + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + } + impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "whitelist_chain"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddProposer { + pub native_account: ::subxt::utils::AccountId32, + pub external_account: + ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for AddProposer { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "add_proposer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveProposer { + pub v: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveProposer { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "remove_proposer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AcknowledgeProposal { pub nonce : runtime_types :: webb_proposals :: nonce :: Nonce , pub src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , pub r_id : runtime_types :: webb_proposals :: header :: ResourceId , pub prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for AcknowledgeProposal { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "acknowledge_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RejectProposal { pub nonce : runtime_types :: webb_proposals :: nonce :: Nonce , pub src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , pub r_id : runtime_types :: webb_proposals :: header :: ResourceId , pub prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "reject_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct EvalVoteState { pub nonce : runtime_types :: webb_proposals :: nonce :: Nonce , pub src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , pub prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for EvalVoteState { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "eval_vote_state"; + } } pub struct TransactionApi; impl TransactionApi { @@ -3927,12 +6166,11 @@ pub mod api { pub fn set_threshold( &self, threshold: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "DKGProposals", "set_threshold", - SetThreshold { threshold }, + types::SetThreshold { threshold }, [ 97u8, 156u8, 187u8, 176u8, 219u8, 218u8, 220u8, 12u8, 153u8, 121u8, 167u8, 142u8, 88u8, 249u8, @@ -3951,11 +6189,11 @@ pub mod api { &self, id: runtime_types::webb_proposals::header::ResourceId, method: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "DKGProposals", "set_resource", - SetResource { id, method }, + types::SetResource { id, method }, [ 72u8, 53u8, 0u8, 252u8, 156u8, 111u8, 215u8, 92u8, 184u8, 69u8, 64u8, 26u8, 251u8, 229u8, 240u8, @@ -3976,12 +6214,12 @@ pub mod api { pub fn remove_resource( &self, id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposals", "remove_resource", - RemoveResource { id }, + types::RemoveResource { id }, [ 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, @@ -3999,12 +6237,12 @@ pub mod api { pub fn whitelist_chain( &self, chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposals", "whitelist_chain", - WhitelistChain { chain_id }, + types::WhitelistChain { chain_id }, [ 143u8, 172u8, 215u8, 87u8, 23u8, 86u8, 95u8, 116u8, 205u8, 140u8, 58u8, 104u8, 6u8, 162u8, 28u8, 115u8, @@ -4023,11 +6261,11 @@ pub mod api { &self, native_account: ::subxt::utils::AccountId32, external_account: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "DKGProposals", "add_proposer", - AddProposer { + types::AddProposer { native_account, external_account, }, @@ -4048,12 +6286,12 @@ pub mod api { pub fn remove_proposer( &self, v: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposals", "remove_proposer", - RemoveProposer { v }, + types::RemoveProposer { v }, [ 21u8, 136u8, 197u8, 105u8, 101u8, 203u8, 64u8, 170u8, 57u8, 37u8, 253u8, 246u8, 124u8, 127u8, @@ -4078,12 +6316,12 @@ pub mod api { src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, r_id: runtime_types::webb_proposals::header::ResourceId, prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposals", "acknowledge_proposal", - AcknowledgeProposal { + types::AcknowledgeProposal { nonce, src_chain_id, r_id, @@ -4109,12 +6347,12 @@ pub mod api { src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, r_id: runtime_types::webb_proposals::header::ResourceId, prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposals", "reject_proposal", - RejectProposal { + types::RejectProposal { nonce, src_chain_id, r_id, @@ -4141,12 +6379,12 @@ pub mod api { nonce: runtime_types::webb_proposals::nonce::Nonce, src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposals", "eval_vote_state", - EvalVoteState { + types::EvalVoteState { nonce, src_chain_id, prop, @@ -4170,11 +6408,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Vote threshold has changed (new_threshold)"] pub struct ProposerThresholdChanged { pub new_threshold: ::core::primitive::u32, @@ -4186,11 +6429,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Chain now available for transfers (chain_id)"] pub struct ChainWhitelisted { pub chain_id: @@ -4203,11 +6451,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Proposer added to set"] pub struct ProposerAdded { pub proposer_id: ::subxt::utils::AccountId32, @@ -4219,11 +6472,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Proposer removed from set"] pub struct ProposerRemoved { pub proposer_id: ::subxt::utils::AccountId32, @@ -4235,11 +6493,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Vote submitted in favour of proposal"] pub struct VoteFor { pub chain_id: @@ -4254,11 +6517,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Vot submitted against proposal"] pub struct VoteAgainst { pub chain_id: @@ -4273,11 +6541,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Voting successful for a proposal"] pub struct ProposalApproved { pub chain_id: @@ -4291,11 +6564,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Voting rejected a proposal"] pub struct ProposalRejected { pub chain_id: @@ -4309,11 +6587,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of call succeeded"] pub struct ProposalSucceeded { pub chain_id: @@ -4327,11 +6610,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of call failed"] pub struct ProposalFailed { pub chain_id: @@ -4345,11 +6633,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Proposers have been reset"] pub struct AuthorityProposersReset { pub proposers: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -4363,11 +6656,32 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: nonce :: Nonce > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [153u8 , 41u8 , 103u8 , 222u8 , 96u8 , 64u8 , 161u8 , 162u8 , 39u8 , 95u8 , 154u8 , 67u8 , 167u8 , 127u8 , 163u8 , 149u8 , 38u8 , 175u8 , 245u8 , 223u8 , 182u8 , 86u8 , 163u8 , 10u8 , 143u8 , 190u8 , 137u8 , 192u8 , 227u8 , 12u8 , 135u8 , 227u8 ,]) + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::nonce::Nonce, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [153u8 , 41u8 , 103u8 , 222u8 , 96u8 , 64u8 , 161u8 , 162u8 , 39u8 , 95u8 , 154u8 , 67u8 , 167u8 , 127u8 , 163u8 , 149u8 , 38u8 , 175u8 , 245u8 , 223u8 , 182u8 , 86u8 , 163u8 , 10u8 , 143u8 , 190u8 , 137u8 , 192u8 , 227u8 , 12u8 , 135u8 , 227u8 ,]) } - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: nonce :: Nonce > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::nonce::Nonce, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "ChainNonces", Vec::new(), @@ -4380,8 +6694,17 @@ pub mod api { ], ) } - #[doc = " Number of votes required for a proposal to execute"] pub fn proposer_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Number of votes required for a proposal to execute"] + pub fn proposer_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "ProposerThreshold", vec![], @@ -4394,8 +6717,17 @@ pub mod api { ], ) } - #[doc = " Proposer Set Update Proposal Nonce"] pub fn proposer_set_update_proposal_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Proposer Set Update Proposal Nonce"] + pub fn proposer_set_update_proposal_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "ProposerSetUpdateProposalNonce", vec![], @@ -4408,11 +6740,30 @@ pub mod api { ], ) } - #[doc = " Tracks current proposer set"] pub fn proposers (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "Proposers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [163u8 , 252u8 , 227u8 , 131u8 , 254u8 , 6u8 , 64u8 , 191u8 , 158u8 , 117u8 , 69u8 , 137u8 , 184u8 , 85u8 , 112u8 , 252u8 , 137u8 , 30u8 , 24u8 , 87u8 , 55u8 , 82u8 , 22u8 , 241u8 , 124u8 , 222u8 , 155u8 , 60u8 , 123u8 , 5u8 , 191u8 , 79u8 ,]) + #[doc = " Tracks current proposer set"] + pub fn proposers( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Proposers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [163u8 , 252u8 , 227u8 , 131u8 , 254u8 , 6u8 , 64u8 , 191u8 , 158u8 , 117u8 , 69u8 , 137u8 , 184u8 , 85u8 , 112u8 , 252u8 , 137u8 , 30u8 , 24u8 , 87u8 , 55u8 , 82u8 , 22u8 , 241u8 , 124u8 , 222u8 , 155u8 , 60u8 , 123u8 , 5u8 , 191u8 , 79u8 ,]) } - #[doc = " Tracks current proposer set"] pub fn proposers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Tracks current proposer set"] + pub fn proposers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "Proposers", Vec::new(), @@ -4426,12 +6777,35 @@ pub mod api { ) } #[doc = " Tracks current proposer set external accounts"] - #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] pub fn external_proposer_accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "ExternalProposerAccounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [20u8 , 120u8 , 130u8 , 198u8 , 23u8 , 142u8 , 44u8 , 2u8 , 227u8 , 81u8 , 19u8 , 161u8 , 131u8 , 103u8 , 182u8 , 14u8 , 83u8 , 59u8 , 88u8 , 35u8 , 193u8 , 118u8 , 232u8 , 48u8 , 119u8 , 28u8 , 143u8 , 242u8 , 168u8 , 76u8 , 194u8 , 117u8 ,]) + #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] + pub fn external_proposer_accounts( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "ExternalProposerAccounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [20u8 , 120u8 , 130u8 , 198u8 , 23u8 , 142u8 , 44u8 , 2u8 , 227u8 , 81u8 , 19u8 , 161u8 , 131u8 , 103u8 , 182u8 , 14u8 , 83u8 , 59u8 , 88u8 , 35u8 , 193u8 , 118u8 , 232u8 , 48u8 , 119u8 , 28u8 , 143u8 , 242u8 , 168u8 , 76u8 , 194u8 , 117u8 ,]) } #[doc = " Tracks current proposer set external accounts"] - #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] pub fn external_proposer_accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] + pub fn external_proposer_accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "ExternalProposerAccounts", Vec::new(), @@ -4445,8 +6819,19 @@ pub mod api { ) } #[doc = " Tracks the authorities that are proposers so we can properly update the proposer set"] - #[doc = " across sessions and authority changes."] pub fn authority_proposers (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " across sessions and authority changes."] + pub fn authority_proposers( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "AuthorityProposers", vec![], @@ -4459,8 +6844,8 @@ pub mod api { ], ) } - #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "DKGProposals", "ExternalAuthorityProposerAccounts", vec![], @@ -4473,8 +6858,17 @@ pub mod api { ], ) } - #[doc = " Number of proposers in set"] pub fn proposer_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Number of proposers in set"] + pub fn proposer_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "ProposerCount", vec![], @@ -4489,13 +6883,43 @@ pub mod api { } #[doc = " All known proposals."] #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] - #[doc = " unique."] pub fn votes (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_proposals :: types :: ProposalVotes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: dkg_standalone_runtime :: MaxVotes > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [75u8 , 254u8 , 1u8 , 75u8 , 188u8 , 119u8 , 42u8 , 136u8 , 232u8 , 20u8 , 216u8 , 3u8 , 162u8 , 140u8 , 72u8 , 228u8 , 161u8 , 130u8 , 132u8 , 248u8 , 72u8 , 10u8 , 213u8 , 163u8 , 212u8 , 79u8 , 245u8 , 46u8 , 169u8 , 71u8 , 165u8 , 10u8 ,]) + #[doc = " unique."] + pub fn votes( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_proposals::types::ProposalVotes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + runtime_types::dkg_standalone_runtime::MaxVotes, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [75u8 , 254u8 , 1u8 , 75u8 , 188u8 , 119u8 , 42u8 , 136u8 , 232u8 , 20u8 , 216u8 , 3u8 , 162u8 , 140u8 , 72u8 , 228u8 , 161u8 , 130u8 , 132u8 , 248u8 , 72u8 , 10u8 , 213u8 , 163u8 , 212u8 , 79u8 , 245u8 , 46u8 , 169u8 , 71u8 , 165u8 , 10u8 ,]) } #[doc = " All known proposals."] #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] - #[doc = " unique."] pub fn votes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_proposals :: types :: ProposalVotes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: dkg_standalone_runtime :: MaxVotes > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " unique."] + pub fn votes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_proposals::types::ProposalVotes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + runtime_types::dkg_standalone_runtime::MaxVotes, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "Votes", Vec::new(), @@ -4508,11 +6932,36 @@ pub mod api { ], ) } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "Resources" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [137u8 , 242u8 , 218u8 , 244u8 , 20u8 , 237u8 , 53u8 , 254u8 , 119u8 , 30u8 , 2u8 , 81u8 , 72u8 , 214u8 , 164u8 , 126u8 , 73u8 , 252u8 , 191u8 , 64u8 , 154u8 , 248u8 , 124u8 , 6u8 , 200u8 , 218u8 , 221u8 , 35u8 , 15u8 , 129u8 , 65u8 , 182u8 ,]) + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Resources" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [137u8 , 242u8 , 218u8 , 244u8 , 20u8 , 237u8 , 53u8 , 254u8 , 119u8 , 30u8 , 2u8 , 81u8 , 72u8 , 214u8 , 164u8 , 126u8 , 73u8 , 252u8 , 191u8 , 64u8 , 154u8 , 248u8 , 124u8 , 6u8 , 200u8 , 218u8 , 221u8 , 35u8 , 15u8 , 129u8 , 65u8 , 182u8 ,]) } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKGProposals", "Resources", Vec::new(), @@ -4536,12 +6985,10 @@ pub mod api { #[doc = " set of bridged chains."] pub fn chain_identifier( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::webb_proposals::header::TypedChainId, - >, + ) -> ::subxt::constants::Address< + runtime_types::webb_proposals::header::TypedChainId, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "DKGProposals", "ChainIdentifier", [ @@ -4555,10 +7002,9 @@ pub mod api { } pub fn proposal_lifetime( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposals", "ProposalLifetime", [ @@ -4573,10 +7019,9 @@ pub mod api { #[doc = " The session period"] pub fn period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposals", "Period", [ @@ -4591,10 +7036,9 @@ pub mod api { #[doc = " The max votes to store for for and against"] pub fn max_votes( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposals", "MaxVotes", [ @@ -4609,10 +7053,9 @@ pub mod api { #[doc = " The max resources that can be stored in storage"] pub fn max_resources( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposals", "MaxResources", [ @@ -4627,10 +7070,9 @@ pub mod api { #[doc = " The max authority proposers that can be stored in storage"] pub fn max_authority_proposers( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposals", "MaxAuthorityProposers", [ @@ -4645,10 +7087,9 @@ pub mod api { #[doc = " The max external proposer accounts that can be stored in storage"] pub fn max_external_proposer_accounts( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposals", "MaxExternalProposerAccounts", [ @@ -4666,50 +7107,78 @@ pub mod api { pub mod dkg_proposal_handler { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = + runtime_types::pallet_dkg_proposal_handler::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = + runtime_types::pallet_dkg_proposal_handler::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitSignedProposals { - pub props: ::std::vec::Vec< - runtime_types::webb_proposals::proposal::Proposal< + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitSignedProposals { pub props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } + impl ::subxt::blocks::StaticExtrinsic for SubmitSignedProposals { + const PALLET: &'static str = "DKGProposalHandler"; + const CALL: &'static str = "submit_signed_proposals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSubmitUnsignedProposal { + pub prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSubmitUnsignedProposal { - pub prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSubmitUnsignedProposal { + const PALLET: &'static str = "DKGProposalHandler"; + const CALL: &'static str = "force_submit_unsigned_proposal"; + } } pub struct TransactionApi; impl TransactionApi { pub fn submit_signed_proposals( &self, props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposalHandler", "submit_signed_proposals", - SubmitSignedProposals { props }, + types::SubmitSignedProposals { props }, [ 40u8, 38u8, 237u8, 6u8, 145u8, 127u8, 224u8, 153u8, 97u8, 77u8, 26u8, 198u8, 143u8, 255u8, 229u8, @@ -4729,12 +7198,12 @@ pub mod api { prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "DKGProposalHandler", "force_submit_unsigned_proposal", - ForceSubmitUnsignedProposal { prop }, + types::ForceSubmitUnsignedProposal { prop }, [ 213u8, 166u8, 49u8, 2u8, 146u8, 30u8, 105u8, 213u8, 119u8, 50u8, 83u8, 22u8, 234u8, 221u8, 92u8, 156u8, @@ -4753,11 +7222,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] pub struct InvalidProposalSignature { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, @@ -4777,11 +7251,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] pub struct ProposalAdded { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } impl ::subxt::events::StaticEvent for ProposalAdded { @@ -4791,11 +7270,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] pub struct ProposalRemoved { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub expired : :: core :: primitive :: bool , } impl ::subxt::events::StaticEvent for ProposalRemoved { @@ -4805,11 +7289,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] pub struct ProposalSigned { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } impl ::subxt::events::StaticEvent for ProposalSigned { @@ -4821,11 +7310,11 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposalHandler" , "UnsignedProposalQueue" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [180u8 , 168u8 , 253u8 , 235u8 , 22u8 , 205u8 , 104u8 , 231u8 , 206u8 , 162u8 , 69u8 , 53u8 , 120u8 , 242u8 , 94u8 , 192u8 , 63u8 , 147u8 , 54u8 , 66u8 , 54u8 , 195u8 , 19u8 , 252u8 , 129u8 , 118u8 , 114u8 , 37u8 , 231u8 , 137u8 , 66u8 , 228u8 ,]) + #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("DKGProposalHandler" , "UnsignedProposalQueue" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [180u8 , 168u8 , 253u8 , 235u8 , 22u8 , 205u8 , 104u8 , 231u8 , 206u8 , 162u8 , 69u8 , 53u8 , 120u8 , 242u8 , 94u8 , 192u8 , 63u8 , 147u8 , 54u8 , 66u8 , 54u8 , 195u8 , 19u8 , 252u8 , 129u8 , 118u8 , 114u8 , 37u8 , 231u8 , 137u8 , 66u8 , 228u8 ,]) } - #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "UnsignedProposalQueue", Vec::new(), @@ -4842,8 +7331,17 @@ pub mod api { #[doc = ""] #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] - #[doc = " This storage entry defines when new transaction is going to be accepted."] pub fn next_unsigned_at (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This storage entry defines when new transaction is going to be accepted."] + pub fn next_unsigned_at( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "NextUnsignedAt", vec![], @@ -4856,11 +7354,37 @@ pub mod api { ], ) } - #[doc = " All signed proposals."] pub fn signed_proposals (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposalHandler" , "SignedProposals" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [40u8 , 252u8 , 222u8 , 220u8 , 87u8 , 195u8 , 206u8 , 177u8 , 252u8 , 151u8 , 163u8 , 130u8 , 212u8 , 57u8 , 250u8 , 155u8 , 16u8 , 65u8 , 94u8 , 201u8 , 52u8 , 174u8 , 75u8 , 9u8 , 185u8 , 240u8 , 218u8 , 241u8 , 208u8 , 36u8 , 17u8 , 196u8 ,]) + #[doc = " All signed proposals."] + pub fn signed_proposals( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposalHandler" , "SignedProposals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [40u8 , 252u8 , 222u8 , 220u8 , 87u8 , 195u8 , 206u8 , 177u8 , 252u8 , 151u8 , 163u8 , 130u8 , 212u8 , 57u8 , 250u8 , 155u8 , 16u8 , 65u8 , 94u8 , 201u8 , 52u8 , 174u8 , 75u8 , 9u8 , 185u8 , 240u8 , 218u8 , 241u8 , 208u8 , 36u8 , 17u8 , 196u8 ,]) } - #[doc = " All signed proposals."] pub fn signed_proposals_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " All signed proposals."] + pub fn signed_proposals_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "SignedProposals", Vec::new(), @@ -4882,10 +7406,9 @@ pub mod api { #[doc = " Max number of signed proposal submissions per batch;"] pub fn max_submissions_per_batch( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::new_static( "DKGProposalHandler", "MaxSubmissionsPerBatch", [ @@ -4900,10 +7423,9 @@ pub mod api { #[doc = " Max blocks to store an unsigned proposal"] pub fn unsigned_proposal_expiry( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposalHandler", "UnsignedProposalExpiry", [ @@ -4918,10 +7440,9 @@ pub mod api { #[doc = " Max length of a proposal"] pub fn max_proposal_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "DKGProposalHandler", "MaxProposalLength", [ @@ -4947,11 +7468,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] pub struct TransactionFeePaid { @@ -4968,8 +7494,16 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - pub fn next_fee_multiplier (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + pub fn next_fee_multiplier( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::fixed_point::FixedU128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "TransactionPayment", "NextFeeMultiplier", vec![], @@ -4981,8 +7515,17 @@ pub mod api { 203u8, 206u8, 180u8, ], ) - } pub fn storage_version (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_transaction_payment :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + } + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_transaction_payment::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "TransactionPayment", "StorageVersion", vec![], @@ -5024,10 +7567,9 @@ pub mod api { #[doc = " transactions."] pub fn operational_fee_multiplier( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u8> + { + ::subxt::constants::Address::new_static( "TransactionPayment", "OperationalFeeMultiplier", [ @@ -5045,68 +7587,126 @@ pub mod api { 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 one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Sudo { - pub call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKey { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SudoAs { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Sudo { + pub call: ::std::boxed::Box< + runtime_types::dkg_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Sudo { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box< + runtime_types::dkg_standalone_runtime::RuntimeCall, + >, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKey { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SudoAs { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call: ::std::boxed::Box< + runtime_types::dkg_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SudoAs { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; + } } pub struct TransactionApi; impl TransactionApi { @@ -5123,11 +7723,11 @@ pub mod api { pub fn sudo( &self, call: runtime_types::dkg_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo", - Sudo { + types::Sudo { call: ::std::boxed::Box::new(call), }, [ @@ -5153,12 +7753,12 @@ pub mod api { &self, call: runtime_types::dkg_standalone_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Sudo", "sudo_unchecked_weight", - SudoUncheckedWeight { + types::SudoUncheckedWeight { call: ::std::boxed::Box::new(call), weight, }, @@ -5187,11 +7787,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "set_key", - SetKey { new }, + types::SetKey { new }, [ 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, @@ -5219,11 +7819,11 @@ pub mod api { ::core::primitive::u32, >, call: runtime_types::dkg_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo_as", - SudoAs { + types::SudoAs { who, call: ::std::boxed::Box::new(call), }, @@ -5245,11 +7845,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo just took place. \\[result\\]"] pub struct Sudid { pub sudo_result: ::core::result::Result< @@ -5264,11 +7869,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] pub struct KeyChanged { pub old_sudoer: @@ -5281,11 +7891,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo just took place. \\[result\\]"] pub struct SudoAsDone { pub sudo_result: ::core::result::Result< @@ -5302,8 +7917,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The `AccountId` of the sudo key."] pub fn key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The `AccountId` of the sudo key."] + pub fn key( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Sudo", "Key", vec![], @@ -5322,71 +7946,144 @@ pub mod api { 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 one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } + impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, >, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct GovernanceFallback { - pub maybe_max_voters: - ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: - ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_minimum_untrusted_score"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetEmergencyElectionResult { + pub supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::utils::AccountId32, + >, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_emergency_election_result"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct GovernanceFallback { + pub maybe_max_voters: + ::core::option::Option<::core::primitive::u32>, + pub maybe_max_targets: + ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "governance_fallback"; + } } pub struct TransactionApi; impl TransactionApi { @@ -5408,12 +8105,12 @@ pub mod api { &self, raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 >, witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "submit_unsigned", - SubmitUnsigned { + types::SubmitUnsigned { raw_solution: ::std::boxed::Box::new(raw_solution), witness, }, @@ -5435,12 +8132,12 @@ pub mod api { maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "set_minimum_untrusted_score", - SetMinimumUntrustedScore { maybe_next_score }, + types::SetMinimumUntrustedScore { maybe_next_score }, [ 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, @@ -5466,12 +8163,12 @@ pub mod api { ::subxt::utils::AccountId32, >, )>, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "set_emergency_election_result", - SetEmergencyElectionResult { supports }, + types::SetEmergencyElectionResult { supports }, [ 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, @@ -5492,11 +8189,11 @@ pub mod api { pub fn submit( &self, raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "submit", - Submit { + types::Submit { raw_solution: ::std::boxed::Box::new(raw_solution), }, [ @@ -5520,12 +8217,12 @@ pub mod api { maybe_max_targets: ::core::option::Option< ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "governance_fallback", - GovernanceFallback { + types::GovernanceFallback { maybe_max_voters, maybe_max_targets, }, @@ -5548,11 +8245,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A solution was stored with the given compute."] #[doc = ""] #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] @@ -5567,11 +8269,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The election has been finalized, with the given computation and score."] pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } impl ::subxt::events::StaticEvent for ElectionFinalized { @@ -5581,11 +8288,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An election failed."] #[doc = ""] #[doc = "Not much can be said about which computes failed in the process."] @@ -5597,11 +8309,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has been rewarded for their signed submission being finalized."] pub struct Rewarded { pub account: ::subxt::utils::AccountId32, @@ -5614,11 +8331,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has been slashed for submitting an invalid signed submission."] pub struct Slashed { pub account: ::subxt::utils::AccountId32, @@ -5632,11 +8354,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The signed phase of the given round has started."] pub struct SignedPhaseStarted { pub round: ::core::primitive::u32, @@ -5649,11 +8376,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The unsigned phase of the given round has started."] pub struct UnsignedPhaseStarted { pub round: ::core::primitive::u32, @@ -5672,8 +8404,17 @@ pub mod api { #[doc = " This is useful for de-duplication of transactions submitted to the pool, and general"] #[doc = " diagnostics of the pallet."] #[doc = ""] - #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] pub fn round (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] + pub fn round( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "Round", vec![], @@ -5685,8 +8426,19 @@ pub mod api { ], ) } - #[doc = " Current phase."] pub fn current_phase (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Current phase."] + pub fn current_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "CurrentPhase", vec![], @@ -5699,8 +8451,8 @@ pub mod api { ], ) } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: ReadySolution , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "QueuedSolution", vec![], @@ -5715,8 +8467,8 @@ pub mod api { } #[doc = " Snapshot data of the round."] #[doc = ""] - #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "Snapshot", vec![], @@ -5731,8 +8483,17 @@ pub mod api { } #[doc = " Desired number of targets to elect for this round."] #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn desired_targets (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Only exists when [`Snapshot`] is present."] + pub fn desired_targets( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "DesiredTargets", vec![], @@ -5747,8 +8508,8 @@ pub mod api { } #[doc = " The metadata of the [`RoundSnapshot`]"] #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SnapshotMetadata", vec![], @@ -5769,8 +8530,17 @@ pub mod api { #[doc = ""] #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] - #[doc = " because iteration is slow. Instead, we store the value here."] pub fn signed_submission_next_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " because iteration is slow. Instead, we store the value here."] + pub fn signed_submission_next_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionNextIndex", vec![], @@ -5788,8 +8558,21 @@ pub mod api { #[doc = ""] #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] - #[doc = " them one at a time instead of reading and decoding all of them at once."] pub fn signed_submission_indices (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " them one at a time instead of reading and decoding all of them at once."] + pub fn signed_submission_indices( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + runtime_types::sp_npos_elections::ElectionScore, + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionIndices", vec![], @@ -5808,8 +8591,8 @@ pub mod api { #[doc = " allowing us to keep only a single one in memory at a time."] #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: dkg_standalone_runtime :: NposSolution16 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) } #[doc = " Unchecked, signed solutions."] #[doc = ""] @@ -5817,8 +8600,8 @@ pub mod api { #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: dkg_standalone_runtime :: NposSolution16 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", Vec::new(), @@ -5834,8 +8617,17 @@ pub mod api { #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] #[doc = " feasible."] #[doc = ""] - #[doc = " Can be set via `set_minimum_untrusted_score`."] pub fn minimum_untrusted_score (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_npos_elections :: ElectionScore > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Can be set via `set_minimum_untrusted_score`."] + pub fn minimum_untrusted_score( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_npos_elections::ElectionScore, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "MinimumUntrustedScore", vec![], @@ -5857,10 +8649,9 @@ pub mod api { #[doc = " Duration of the unsigned phase."] pub fn unsigned_phase( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "UnsignedPhase", [ @@ -5875,10 +8666,9 @@ pub mod api { #[doc = " Duration of the signed phase."] pub fn signed_phase( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedPhase", [ @@ -5894,12 +8684,10 @@ pub mod api { #[doc = " \"better\" in the Signed phase."] pub fn better_signed_threshold( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perbill, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "BetterSignedThreshold", [ @@ -5915,12 +8703,10 @@ pub mod api { #[doc = " \"better\" in the Unsigned phase."] pub fn better_unsigned_threshold( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perbill, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "BetterUnsignedThreshold", [ @@ -5938,10 +8724,9 @@ pub mod api { #[doc = " to submit the worker's solution."] pub fn offchain_repeat( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "OffchainRepeat", [ @@ -5956,10 +8741,9 @@ pub mod api { #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] pub fn miner_tx_priority( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerTxPriority", [ @@ -5980,10 +8764,9 @@ pub mod api { #[doc = " attempts to submit new solutions may cause a runtime panic."] pub fn signed_max_submissions( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxSubmissions", [ @@ -6002,12 +8785,10 @@ pub mod api { #[doc = " this value."] pub fn signed_max_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxWeight", [ @@ -6022,10 +8803,9 @@ pub mod api { #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] pub fn signed_max_refunds( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxRefunds", [ @@ -6040,12 +8820,9 @@ pub mod api { #[doc = " Base reward for a signed solution"] pub fn signed_reward_base( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedRewardBase", [ @@ -6060,12 +8837,9 @@ pub mod api { #[doc = " Base deposit for a signed solution."] pub fn signed_deposit_base( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositBase", [ @@ -6080,12 +8854,9 @@ pub mod api { #[doc = " Per-byte deposit for a signed solution."] pub fn signed_deposit_byte( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositByte", [ @@ -6100,12 +8871,9 @@ pub mod api { #[doc = " Per-weight deposit for a signed solution."] pub fn signed_deposit_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositWeight", [ @@ -6122,10 +8890,9 @@ pub mod api { #[doc = " take place over multiple blocks."] pub fn max_electing_voters( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxElectingVoters", [ @@ -6140,10 +8907,9 @@ pub mod api { #[doc = " The maximum number of electable targets to put in the snapshot."] pub fn max_electable_targets( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxElectableTargets", [ @@ -6161,10 +8927,9 @@ pub mod api { #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] pub fn max_winners( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxWinners", [ @@ -6178,10 +8943,9 @@ pub mod api { } pub fn miner_max_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxLength", [ @@ -6195,12 +8959,10 @@ pub mod api { } pub fn miner_max_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxWeight", [ @@ -6214,10 +8976,9 @@ pub mod api { } pub fn miner_max_votes_per_voter( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxVotesPerVoter", [ @@ -6235,38 +8996,70 @@ pub mod api { pub mod bags_list { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bags_list::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Rebag { + pub dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Rebag { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "rebag"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PutInFrontOf { + pub lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "put_in_front_of"; + } } pub struct TransactionApi; impl TransactionApi { @@ -6286,11 +9079,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BagsList", "rebag", - Rebag { dislocated }, + types::Rebag { dislocated }, [ 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, @@ -6314,12 +9107,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BagsList", "put_in_front_of", - PutInFrontOf { lighter }, + types::PutInFrontOf { lighter }, [ 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, @@ -6338,11 +9130,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Moved an account from one bag to another."] pub struct Rebagged { pub who: ::subxt::utils::AccountId32, @@ -6356,11 +9153,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Updated the score of some account to the given amount."] pub struct ScoreUpdated { pub who: ::subxt::utils::AccountId32, @@ -6377,13 +9179,32 @@ pub mod api { 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 (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Node > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) + #[doc = " Nodes store links forward and back within their respective bags."] + pub fn list_nodes( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) } #[doc = " A single node, within some bag."] #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Node > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Nodes store links forward and back within their respective bags."] + pub fn list_nodes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "BagsList", "ListNodes", Vec::new(), @@ -6396,8 +9217,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_list_nodes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "BagsList", "CounterForListNodes", vec![], @@ -6412,13 +9242,32 @@ pub mod api { } #[doc = " A bag stored in storage."] #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Bag > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) } #[doc = " A bag stored in storage."] #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Bag > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "BagsList", "ListBags", Vec::new(), @@ -6482,12 +9331,10 @@ pub mod api { #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] pub fn bag_thresholds( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::core::primitive::u64>, - >, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<::core::primitive::u64>, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "BagsList", "BagThresholds", [ @@ -6505,236 +9352,429 @@ pub mod api { pub mod nomination_pools { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Join { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondExtra { - pub extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimPayout; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unbond { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithdrawUnbonded { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub pool_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: runtime_types::pallet_nomination_pools::PoolState, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetConfigs { - pub min_join_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Join { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Join { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "join"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtra { + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimPayout; + impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unbond { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub unbonding_points: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PoolWithdrawUnbonded { + pub pool_id: ::core::primitive::u32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "pool_withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithdrawUnbonded { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, >, - pub min_create_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, >, - pub max_pools: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members: - runtime_types::pallet_nomination_pools::ConfigOp< + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub max_members_per_pool: - runtime_types::pallet_nomination_pools::ConfigOp< + pub state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CreateWithPoolId { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, + ::core::primitive::u32, >, - pub new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< + pub nominator: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, + ::core::primitive::u32, >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Chill { - pub pool_id: ::core::primitive::u32, + pub state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create_with_pool_id"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nominate { + pub pool_id: ::core::primitive::u32, + pub validators: + ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetState { + pub pool_id: ::core::primitive::u32, + pub state: + runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::blocks::StaticExtrinsic for SetState { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_state"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { + pub pool_id: ::core::primitive::u32, + pub metadata: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetConfigs { + pub min_join_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub min_create_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub max_pools: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members_per_pool: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetConfigs { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UpdateRoles { + pub pool_id: ::core::primitive::u32, + pub new_root: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_nominator: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_state_toggler: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "update_roles"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Chill { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "chill"; + } } pub struct TransactionApi; impl TransactionApi { @@ -6752,11 +9792,11 @@ pub mod api { &self, amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "join", - Join { amount, pool_id }, + types::Join { amount, pool_id }, [ 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, @@ -6777,11 +9817,11 @@ pub mod api { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra", - BondExtra { extra }, + types::BondExtra { extra }, [ 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, @@ -6799,11 +9839,11 @@ pub mod api { #[doc = "members in the pools stake. Rewards do not \"expire\"."] pub fn claim_payout( &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout", - ClaimPayout {}, + types::ClaimPayout {}, [ 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, @@ -6851,11 +9891,11 @@ pub mod api { ::core::primitive::u32, >, unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "unbond", - Unbond { + types::Unbond { member_account, unbonding_points, }, @@ -6878,12 +9918,12 @@ pub mod api { &self, pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "NominationPools", "pool_withdraw_unbonded", - PoolWithdrawUnbonded { + types::PoolWithdrawUnbonded { pool_id, num_slashing_spans, }, @@ -6922,12 +9962,12 @@ pub mod api { ::core::primitive::u32, >, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "NominationPools", "withdraw_unbonded", - WithdrawUnbonded { + types::WithdrawUnbonded { member_account, num_slashing_spans, }, @@ -6972,11 +10012,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "create", - Create { + types::Create { amount, root, nominator, @@ -7013,12 +10053,12 @@ pub mod api { ::core::primitive::u32, >, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "NominationPools", "create_with_pool_id", - CreateWithPoolId { + types::CreateWithPoolId { amount, root, nominator, @@ -7045,11 +10085,11 @@ pub mod api { &self, pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "nominate", - Nominate { + types::Nominate { pool_id, validators, }, @@ -7076,11 +10116,11 @@ pub mod api { &self, pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_state", - SetState { pool_id, state }, + types::SetState { pool_id, state }, [ 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, @@ -7098,11 +10138,11 @@ pub mod api { &self, pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_metadata", - SetMetadata { pool_id, metadata }, + types::SetMetadata { pool_id, metadata }, [ 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, @@ -7131,11 +10171,11 @@ pub mod api { >, max_members : runtime_types :: pallet_nomination_pools :: ConfigOp < :: core :: primitive :: u32 >, max_members_per_pool : runtime_types :: pallet_nomination_pools :: ConfigOp < :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_configs", - SetConfigs { + types::SetConfigs { min_join_bond, min_create_bond, max_pools, @@ -7166,11 +10206,11 @@ pub mod api { >, new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, new_state_toggler : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "update_roles", - UpdateRoles { + types::UpdateRoles { pool_id, new_root, new_nominator, @@ -7195,11 +10235,11 @@ pub mod api { pub fn chill( &self, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "chill", - Chill { pool_id }, + types::Chill { pool_id }, [ 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, @@ -7218,11 +10258,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been created."] pub struct Created { pub depositor: ::subxt::utils::AccountId32, @@ -7235,11 +10280,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has became bonded in a pool."] pub struct Bonded { pub member: ::subxt::utils::AccountId32, @@ -7254,11 +10304,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A payout has been made to a member."] pub struct PaidOut { pub member: ::subxt::utils::AccountId32, @@ -7272,11 +10327,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] @@ -7302,11 +10362,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] @@ -7327,11 +10392,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: ::core::primitive::u32, @@ -7343,11 +10413,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: ::core::primitive::u32, @@ -7361,11 +10436,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] @@ -7380,11 +10460,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { @@ -7401,11 +10486,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: ::core::primitive::u32, @@ -7418,11 +10508,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: ::core::primitive::u32, @@ -7438,8 +10533,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Minimum amount to bond to join a pool."] + pub fn min_join_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "MinJoinBond", vec![], @@ -7458,8 +10562,17 @@ pub mod api { #[doc = " indication of \"skin in the game\"."] #[doc = ""] #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] - #[doc = " while all other accounts leave."] pub fn min_create_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " while all other accounts leave."] + pub fn min_create_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "MinCreateBond", vec![], @@ -7473,8 +10586,17 @@ pub mod api { ) } #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] - #[doc = " pools can exist."] pub fn max_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " pools can exist."] + pub fn max_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPools", vec![], @@ -7488,8 +10610,17 @@ pub mod api { ) } #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] - #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " members are not bound on a system wide basis."] + pub fn max_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembers", vec![], @@ -7503,8 +10634,17 @@ pub mod api { ) } #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] - #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " members is not bound on a per pool basis."] + pub fn max_pool_members_per_pool( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembersPerPool", vec![], @@ -7517,11 +10657,30 @@ pub mod api { ], ) } - #[doc = " Active members."] pub fn pool_members (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: PoolMember > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) + #[doc = " Active members."] + pub fn pool_members( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) } - #[doc = " Active members."] pub fn pool_members_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: PoolMember > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Active members."] + pub fn pool_members_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", Vec::new(), @@ -7534,8 +10693,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForPoolMembers", vec![], @@ -7548,11 +10716,30 @@ pub mod api { ], ) } - #[doc = " Storage for bonded pools."] pub fn bonded_pools (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: BondedPoolInner > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) + #[doc = " Storage for bonded pools."] + pub fn bonded_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) } - #[doc = " Storage for bonded pools."] pub fn bonded_pools_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: BondedPoolInner > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Storage for bonded pools."] + pub fn bonded_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", Vec::new(), @@ -7564,8 +10751,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_bonded_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForBondedPools", vec![], @@ -7579,12 +10775,31 @@ pub mod api { ) } #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: RewardPool > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) + #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) } #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: RewardPool > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", Vec::new(), @@ -7597,8 +10812,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reward_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForRewardPools", vec![], @@ -7612,12 +10836,31 @@ pub mod api { ) } #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: SubPools > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) + #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) } #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: SubPools > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", Vec::new(), @@ -7630,8 +10873,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_sub_pools_storage( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForSubPoolsStorage", vec![], @@ -7644,11 +10896,34 @@ pub mod api { ], ) } - #[doc = " Metadata for the pool."] pub fn metadata (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) + #[doc = " Metadata for the pool."] + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) } - #[doc = " Metadata for the pool."] pub fn metadata_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Metadata for the pool."] + pub fn metadata_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", Vec::new(), @@ -7661,8 +10936,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForMetadata", vec![], @@ -7675,8 +10959,17 @@ pub mod api { ], ) } - #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Ever increasing number of all pools created so far."] + pub fn last_pool_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "LastPoolId", vec![], @@ -7692,14 +10985,33 @@ pub mod api { #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) } #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", Vec::new(), @@ -7712,8 +11024,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reverse_pool_id_lookup( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForReversePoolIdLookup", vec![], @@ -7735,12 +11056,10 @@ pub mod api { #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, > { - ::subxt::constants::StaticConstantAddress::new( + ::subxt::constants::Address::new_static( "NominationPools", "PalletId", [ @@ -7764,356 +11083,688 @@ pub mod api { #[doc = ""] #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] - pub fn max_points_to_balance( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod staking { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bond { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Chill; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNoEras; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNewEra; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNewEraAlways; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, + pub fn max_points_to_balance( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> + { + ::subxt::constants::Address::new_static( + "NominationPools", + "MaxPointsToBalance", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, + 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, + 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, + 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, + 228u8, 183u8, 165u8, + ], + ) + } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::utils::MultiAddress< + } + } + pub mod staking { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Bond { + pub controller: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetStakingConfigs { - pub min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, >, - pub min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Bond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtra { + #[codec(compact)] + pub max_additional: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unbond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithdrawUnbonded { + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Validate { + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::blocks::StaticExtrinsic for Validate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "validate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nominate { + pub targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, >, - pub max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Chill; + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetPayee { + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, >, - pub max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< + } + impl ::subxt::blocks::StaticExtrinsic for SetPayee { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_payee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetController { + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< + } + impl ::subxt::blocks::StaticExtrinsic for SetController { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_controller"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetValidatorCount { + #[codec(compact)] + pub new: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct IncreaseValidatorCount { + #[codec(compact)] + pub additional: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "increase_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScaleValidatorCount { + pub factor: runtime_types::sp_arithmetic::per_things::Percent, + } + impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "scale_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNoEras; + impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_no_eras"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNewEra; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetInvulnerables { + pub invulnerables: + ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_invulnerables"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnstake { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_unstake"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNewEraAlways; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era_always"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelDeferredSlash { + pub era: ::core::primitive::u32, + pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "cancel_deferred_slash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PayoutStakers { + pub validator_stash: ::subxt::utils::AccountId32, + pub era: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Rebond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Rebond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "rebond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReapStash { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ReapStash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "reap_stash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Kick { + pub who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, >, - pub min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for Kick { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "kick"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetStakingConfigs { + pub min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + pub min_commission: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_staking_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ChillOther { + pub controller: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ChillOther { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceApplyMinCommission { + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_apply_min_commission"; + } } pub struct TransactionApi; impl TransactionApi { @@ -8144,11 +11795,11 @@ pub mod api { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "bond", - Bond { + types::Bond { controller, value, payee, @@ -8180,11 +11831,11 @@ pub mod api { pub fn bond_extra( &self, max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "bond_extra", - BondExtra { max_additional }, + types::BondExtra { max_additional }, [ 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, @@ -8215,11 +11866,11 @@ pub mod api { pub fn unbond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "unbond", - Unbond { value }, + types::Unbond { value }, [ 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, @@ -8247,12 +11898,12 @@ pub mod api { pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "withdraw_unbonded", - WithdrawUnbonded { num_slashing_spans }, + types::WithdrawUnbonded { num_slashing_spans }, [ 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, @@ -8270,11 +11921,11 @@ pub mod api { pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "validate", - Validate { prefs }, + types::Validate { prefs }, [ 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, @@ -8303,11 +11954,11 @@ pub mod api { ::core::primitive::u32, >, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "nominate", - Nominate { targets }, + types::Nominate { targets }, [ 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, @@ -8328,11 +11979,11 @@ pub mod api { #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] #[doc = "# "] - pub fn chill(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "chill", - Chill {}, + types::Chill {}, [ 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, @@ -8363,11 +12014,11 @@ pub mod api { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_payee", - SetPayee { payee }, + types::SetPayee { payee }, [ 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, @@ -8399,12 +12050,12 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "set_controller", - SetController { controller }, + types::SetController { controller }, [ 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, @@ -8425,12 +12076,12 @@ pub mod api { pub fn set_validator_count( &self, new: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "set_validator_count", - SetValidatorCount { new }, + types::SetValidatorCount { new }, [ 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, @@ -8451,12 +12102,12 @@ pub mod api { pub fn increase_validator_count( &self, additional: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "increase_validator_count", - IncreaseValidatorCount { additional }, + types::IncreaseValidatorCount { additional }, [ 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, @@ -8477,12 +12128,12 @@ pub mod api { pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "scale_validator_count", - ScaleValidatorCount { factor }, + types::ScaleValidatorCount { factor }, [ 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, @@ -8509,11 +12160,11 @@ pub mod api { #[doc = "# "] pub fn force_no_eras( &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_no_eras", - ForceNoEras {}, + types::ForceNoEras {}, [ 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, @@ -8541,11 +12192,11 @@ pub mod api { #[doc = "# "] pub fn force_new_era( &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_new_era", - ForceNewEra {}, + types::ForceNewEra {}, [ 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, @@ -8561,12 +12212,12 @@ pub mod api { pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "set_invulnerables", - SetInvulnerables { invulnerables }, + types::SetInvulnerables { invulnerables }, [ 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, @@ -8582,12 +12233,11 @@ pub mod api { &self, stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_unstake", - ForceUnstake { + types::ForceUnstake { stash, num_slashing_spans, }, @@ -8611,12 +12261,12 @@ pub mod api { #[doc = "have enough blocks to get a result."] pub fn force_new_era_always( &self, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "force_new_era_always", - ForceNewEraAlways {}, + types::ForceNewEraAlways {}, [ 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, @@ -8635,12 +12285,12 @@ pub mod api { &self, era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "cancel_deferred_slash", - CancelDeferredSlash { era, slash_indices }, + types::CancelDeferredSlash { era, slash_indices }, [ 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, @@ -8675,12 +12325,12 @@ pub mod api { &self, validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "payout_stakers", - PayoutStakers { + types::PayoutStakers { validator_stash, era, }, @@ -8705,11 +12355,11 @@ pub mod api { pub fn rebond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "rebond", - Rebond { value }, + types::Rebond { value }, [ 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, @@ -8735,11 +12385,11 @@ pub mod api { &self, stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "reap_stash", - ReapStash { + types::ReapStash { stash, num_slashing_spans, }, @@ -8771,11 +12421,11 @@ pub mod api { ::core::primitive::u32, >, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "kick", - Kick { who }, + types::Kick { who }, [ 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, @@ -8810,12 +12460,12 @@ pub mod api { 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 >, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "set_staking_configs", - SetStakingConfigs { + types::SetStakingConfigs { min_nominator_bond, min_validator_bond, max_nominator_count, @@ -8861,11 +12511,11 @@ pub mod api { pub fn chill_other( &self, controller: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "chill_other", - ChillOther { controller }, + types::ChillOther { controller }, [ 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, @@ -8881,12 +12531,12 @@ pub mod api { pub fn force_apply_min_commission( &self, validator_stash: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Staking", "force_apply_min_commission", - ForceApplyMinCommission { validator_stash }, + types::ForceApplyMinCommission { validator_stash }, [ 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, @@ -8905,11 +12555,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] pub struct EraPaid { @@ -8924,11 +12579,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The nominator has been rewarded by this amount."] pub struct Rewarded { pub stash: ::subxt::utils::AccountId32, @@ -8941,11 +12601,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { pub staker: ::subxt::utils::AccountId32, @@ -8958,11 +12623,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] pub struct SlashReported { @@ -8978,11 +12648,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed."] pub struct OldSlashingReportDiscarded { @@ -8995,11 +12670,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { @@ -9009,11 +12689,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] @@ -9029,11 +12714,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has unbonded this amount."] pub struct Unbonded { pub stash: ::subxt::utils::AccountId32, @@ -9046,11 +12736,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] pub struct Withdrawn { @@ -9064,11 +12759,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { pub nominator: ::subxt::utils::AccountId32, @@ -9081,11 +12781,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { @@ -9095,11 +12800,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { pub stash: ::subxt::utils::AccountId32, @@ -9111,11 +12821,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, @@ -9128,11 +12843,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { pub stash: ::subxt::utils::AccountId32, @@ -9147,8 +12867,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The ideal number of active validators."] pub fn validator_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The ideal number of active validators."] + pub fn validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorCount", vec![], @@ -9161,8 +12890,17 @@ pub mod api { ], ) } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Minimum number of staking participants before emergency conditions are imposed."] + pub fn minimum_validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MinimumValidatorCount", vec![], @@ -9177,8 +12915,17 @@ pub mod api { } #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] - #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " invulnerables) and restricted to testnets."] + pub fn invulnerables( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "Invulnerables", vec![], @@ -9191,11 +12938,30 @@ pub mod api { ], ) } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] pub fn bonded (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + pub fn bonded( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] pub fn bonded_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + pub fn bonded_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "Bonded", Vec::new(), @@ -9208,8 +12974,17 @@ pub mod api { ], ) } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The minimum active bond to become and maintain the role of a nominator."] + pub fn min_nominator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MinNominatorBond", vec![], @@ -9222,8 +12997,17 @@ pub mod api { ], ) } - #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The minimum active bond to become and maintain the role of a validator."] + pub fn min_validator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MinValidatorBond", vec![], @@ -9236,8 +13020,17 @@ pub mod api { ], ) } - #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The minimum active nominator stake of the last successful election."] + pub fn minimum_active_stake( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MinimumActiveStake", vec![], @@ -9252,8 +13045,17 @@ pub mod api { } #[doc = " The minimum amount of commission that validators can set."] #[doc = ""] - #[doc = " If set to `0`, no limit exists."] pub fn min_commission (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Perbill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " If set to `0`, no limit exists."] + pub fn min_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MinCommission", vec![], @@ -9266,11 +13068,30 @@ pub mod api { ], ) } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: StakingLedger > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + pub fn ledger( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: StakingLedger > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + pub fn ledger_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "Ledger", Vec::new(), @@ -9283,11 +13104,34 @@ pub mod api { ], ) } - #[doc = " Where the reward payment should be made. Keyed by stash."] pub fn payee (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) + #[doc = " Where the reward payment should be made. Keyed by stash."] + pub fn payee( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) } - #[doc = " Where the reward payment should be made. Keyed by stash."] pub fn payee_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Where the reward payment should be made. Keyed by stash."] + pub fn payee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "Payee", Vec::new(), @@ -9300,11 +13144,30 @@ pub mod api { ], ) } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] pub fn validators (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + pub fn validators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] pub fn validators_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + pub fn validators_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "Validators", Vec::new(), @@ -9317,8 +13180,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "CounterForValidators", vec![], @@ -9332,8 +13204,17 @@ pub mod api { } #[doc = " The maximum validator count before we stop allowing new validators to join."] #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_validators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MaxValidatorsCount", vec![], @@ -9361,8 +13242,18 @@ pub mod api { #[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."] pub fn nominators (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Nominations > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + pub fn nominators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) } #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] @@ -9379,8 +13270,17 @@ pub mod api { #[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."] pub fn nominators_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Nominations > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + pub fn nominators_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "Nominators", Vec::new(), @@ -9393,8 +13293,17 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_nominators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "CounterForNominators", vec![], @@ -9408,8 +13317,17 @@ pub mod api { } #[doc = " The maximum nominator count before we stop allowing new validators to join."] #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_nominators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "MaxNominatorsCount", vec![], @@ -9425,8 +13343,17 @@ pub mod api { #[doc = " The current era index."] #[doc = ""] #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] - #[doc = " set, it might be active or not."] pub fn current_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " set, it might be active or not."] + pub fn current_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "CurrentEra", vec![], @@ -9442,8 +13369,17 @@ pub mod api { #[doc = " The active era information, it holds index and start."] #[doc = ""] #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] - #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ActiveEraInfo > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " equal to [`SessionInterface::validators`]."] + pub fn active_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "ActiveEra", vec![], @@ -9459,14 +13395,33 @@ pub mod api { #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] + pub fn eras_start_session_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) } #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] + pub fn eras_start_session_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", Vec::new(), @@ -9484,16 +13439,42 @@ pub mod api { #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) } #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", Vec::new(), @@ -9516,8 +13497,22 @@ pub mod api { #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_clipped( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) } #[doc = " Clipped Exposure of validator at era."] #[doc = ""] @@ -9529,8 +13524,20 @@ pub mod api { #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_clipped_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", Vec::new(), @@ -9547,15 +13554,35 @@ pub mod api { #[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 `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] + pub fn eras_validator_prefs( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) } #[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 `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] + pub fn eras_validator_prefs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", Vec::new(), @@ -9570,13 +13597,32 @@ pub mod api { } #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) } #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", Vec::new(), @@ -9590,12 +13636,35 @@ pub mod api { ) } #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: EraRewardPoints < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) } #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: EraRewardPoints < :: subxt :: utils :: AccountId32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::AccountId32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", Vec::new(), @@ -9608,12 +13677,31 @@ pub mod api { ) } #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) } #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", Vec::new(), @@ -9626,8 +13714,17 @@ pub mod api { ], ) } - #[doc = " Mode of era forcing."] pub fn force_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Forcing > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Mode of era forcing."] + pub fn force_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Forcing, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "ForceEra", vec![], @@ -9642,8 +13739,17 @@ pub mod api { } #[doc = " The percentage of the slash that is distributed to reporters."] #[doc = ""] - #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Perbill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The rest of the slashed value is handled by the `Slash`."] + pub fn slash_reward_fraction( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "SlashRewardFraction", vec![], @@ -9657,8 +13763,17 @@ pub mod api { ) } #[doc = " The amount of currency given to reporters of a slash event which was"] - #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " canceled by extraordinary circumstances (e.g. governance)."] + pub fn canceled_slash_payout( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "CanceledSlashPayout", vec![], @@ -9671,11 +13786,40 @@ pub mod api { ], ) } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", Vec::new(), @@ -9691,8 +13835,20 @@ pub mod api { #[doc = " A mapping from still-bonded eras to the first session index of that era."] #[doc = ""] #[doc = " Must contains information for eras for the range:"] - #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " `[active_era - bounding_duration; active_era]`"] + pub fn bonded_eras( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "BondedEras", vec![], @@ -9706,12 +13862,38 @@ pub mod api { ) } #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] pub fn validator_slash_in_era (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) } #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: core :: primitive :: u128 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", Vec::new(), @@ -9724,11 +13906,31 @@ pub mod api { ], ) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", Vec::new(), @@ -9741,11 +13943,30 @@ pub mod api { ], ) } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SlashingSpans > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SlashingSpans > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", Vec::new(), @@ -9759,12 +13980,36 @@ pub mod api { ) } #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] pub fn span_slash (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SpanRecord < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) } #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SpanRecord < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", Vec::new(), @@ -9779,8 +14024,17 @@ pub mod api { } #[doc = " The last planned session scheduled by the session pallet."] #[doc = ""] - #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] + pub fn current_planned_session( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "CurrentPlannedSession", vec![], @@ -9801,8 +14055,20 @@ pub mod api { #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] pub fn offending_validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: bool ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " the era ends."] + pub fn offending_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::bool, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "OffendingValidators", vec![], @@ -9818,8 +14084,17 @@ pub mod api { #[doc = " True if network has been upgraded to this version."] #[doc = " Storage version of the pallet."] #[doc = ""] - #[doc = " This is set to v7.0.0 for new networks."] pub fn storage_version (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " This is set to v7.0.0 for new networks."] + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "StorageVersion", vec![], @@ -9834,8 +14109,17 @@ pub mod api { } #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] - #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Percent > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] + pub fn chill_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Staking", "ChillThreshold", vec![], @@ -9857,10 +14141,9 @@ pub mod api { #[doc = " Maximum number of nominations per nominator."] pub fn max_nominations( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "MaxNominations", [ @@ -9894,10 +14177,9 @@ pub mod api { #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "HistoryDepth", [ @@ -9912,10 +14194,9 @@ pub mod api { #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "SessionsPerEra", [ @@ -9930,10 +14211,9 @@ pub mod api { #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "BondingDuration", [ @@ -9951,10 +14231,9 @@ pub mod api { #[doc = " should be applied immediately, without opportunity for intervention."] pub fn slash_defer_duration( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "SlashDeferDuration", [ @@ -9972,10 +14251,9 @@ pub mod api { #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] pub fn max_nominator_rewarded_per_validator( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "MaxNominatorRewardedPerValidator", [ @@ -9999,10 +14277,9 @@ pub mod api { #[doc = " this effect."] pub fn max_unlocking_chunks( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Staking", "MaxUnlockingChunks", [ @@ -10020,33 +14297,61 @@ pub mod api { 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 one variant per dispatchable that can be called by an extrinsic."] + 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; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKeys { - pub keys: - runtime_types::dkg_standalone_runtime::opaque::SessionKeys, - pub proof: ::std::vec::Vec<::core::primitive::u8>, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKeys { pub keys : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys , pub proof : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for SetKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PurgeKeys; + impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "purge_keys"; + } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PurgeKeys; pub struct TransactionApi; impl TransactionApi { #[doc = "Sets the session key(s) of the function caller to `keys`."] @@ -10067,11 +14372,11 @@ pub mod api { &self, keys : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Session", "set_keys", - SetKeys { keys, proof }, + types::SetKeys { keys, proof }, [ 96u8, 118u8, 0u8, 203u8, 157u8, 82u8, 2u8, 238u8, 94u8, 39u8, 248u8, 255u8, 155u8, 43u8, 191u8, 64u8, @@ -10099,11 +14404,11 @@ pub mod api { #[doc = "# "] pub fn purge_keys( &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Session", "purge_keys", - PurgeKeys {}, + types::PurgeKeys {}, [ 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, @@ -10123,11 +14428,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] pub struct NewSession { @@ -10142,8 +14452,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The current set of validators."] pub fn validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current set of validators."] + pub fn validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Session", "Validators", vec![], @@ -10156,8 +14475,17 @@ pub mod api { ], ) } - #[doc = " Current index of the session."] pub fn current_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Current index of the session."] + pub fn current_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Session", "CurrentIndex", vec![], @@ -10171,8 +14499,17 @@ pub mod api { ) } #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " has changed in the queued validator set."] + pub fn queued_changed( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Session", "QueuedChanged", vec![], @@ -10186,8 +14523,8 @@ pub mod api { ) } #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "Session", "QueuedKeys", vec![], @@ -10204,8 +14541,17 @@ pub mod api { #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " a new set of identities."] + pub fn disabled_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "Session", "DisabledValidators", vec![], @@ -10218,11 +14564,30 @@ pub mod api { ], ) } - #[doc = " The next session keys for a validator."] pub fn next_keys (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [227u8 , 242u8 , 225u8 , 78u8 , 154u8 , 151u8 , 147u8 , 206u8 , 94u8 , 82u8 , 85u8 , 255u8 , 86u8 , 111u8 , 54u8 , 199u8 , 116u8 , 193u8 , 170u8 , 217u8 , 87u8 , 169u8 , 81u8 , 99u8 , 247u8 , 214u8 , 241u8 , 221u8 , 116u8 , 133u8 , 146u8 , 117u8 ,]) + #[doc = " The next session keys for a validator."] + pub fn next_keys( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::dkg_standalone_runtime::opaque::SessionKeys, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [227u8 , 242u8 , 225u8 , 78u8 , 154u8 , 151u8 , 147u8 , 206u8 , 94u8 , 82u8 , 85u8 , 255u8 , 86u8 , 111u8 , 54u8 , 199u8 , 116u8 , 193u8 , 170u8 , 217u8 , 87u8 , 169u8 , 81u8 , 99u8 , 247u8 , 214u8 , 241u8 , 221u8 , 116u8 , 133u8 , 146u8 , 117u8 ,]) } - #[doc = " The next session keys for a validator."] pub fn next_keys_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The next session keys for a validator."] + pub fn next_keys_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::dkg_standalone_runtime::opaque::SessionKeys, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Session", "NextKeys", Vec::new(), @@ -10235,11 +14600,33 @@ pub mod api { ], ) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: crypto :: KeyTypeId > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::sp_core::crypto::KeyTypeId, + >, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", Vec::new(), @@ -10262,11 +14649,30 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: H256 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Historical" , "HistoricalSessions" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [94u8 , 72u8 , 245u8 , 151u8 , 214u8 , 10u8 , 12u8 , 113u8 , 13u8 , 141u8 , 176u8 , 178u8 , 115u8 , 238u8 , 224u8 , 181u8 , 18u8 , 5u8 , 71u8 , 65u8 , 189u8 , 148u8 , 161u8 , 106u8 , 24u8 , 211u8 , 72u8 , 66u8 , 221u8 , 244u8 , 117u8 , 184u8 ,]) + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] + pub fn historical_sessions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Historical" , "HistoricalSessions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [94u8 , 72u8 , 245u8 , 151u8 , 214u8 , 10u8 , 12u8 , 113u8 , 13u8 , 141u8 , 176u8 , 178u8 , 115u8 , 238u8 , 224u8 , 181u8 , 18u8 , 5u8 , 71u8 , 65u8 , 189u8 , 148u8 , 161u8 , 106u8 , 24u8 , 211u8 , 72u8 , 66u8 , 221u8 , 244u8 , 117u8 , 184u8 ,]) } - #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: H256 , :: core :: primitive :: u32 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] + pub fn historical_sessions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Historical", "HistoricalSessions", Vec::new(), @@ -10279,8 +14685,17 @@ pub mod api { ], ) } - #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The range of historical sessions we store. [first, last)"] + pub fn stored_range( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( "Historical", "StoredRange", vec![], @@ -10299,37 +14714,65 @@ pub mod api { pub mod bridge_registry { use super::root_mod; use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bridge_registry::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_bridge_registry::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub bridge_index: ::core::primitive::u32, - pub info: - runtime_types::pallet_bridge_registry::types::BridgeInfo, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceResetIndices { - pub resource_ids: ::std::vec::Vec< - runtime_types::webb_proposals::header::ResourceId, - >, - pub bridge_index: ::core::primitive::u32, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { pub bridge_index : :: core :: primitive :: u32 , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "BridgeRegistry"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceResetIndices { + pub resource_ids: ::std::vec::Vec< + runtime_types::webb_proposals::header::ResourceId, + >, + pub bridge_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceResetIndices { + const PALLET: &'static str = "BridgeRegistry"; + const CALL: &'static str = "force_reset_indices"; + } } pub struct TransactionApi; impl TransactionApi { @@ -10347,11 +14790,11 @@ pub mod api { &self, bridge_index: ::core::primitive::u32, info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BridgeRegistry", "set_metadata", - SetMetadata { bridge_index, info }, + types::SetMetadata { bridge_index, info }, [ 72u8, 84u8, 159u8, 244u8, 136u8, 19u8, 190u8, 187u8, 185u8, 86u8, 180u8, 197u8, 241u8, 97u8, @@ -10367,12 +14810,12 @@ pub mod api { runtime_types::webb_proposals::header::ResourceId, >, bridge_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "BridgeRegistry", "force_reset_indices", - ForceResetIndices { + types::ForceResetIndices { resource_ids, bridge_index, }, @@ -10396,8 +14839,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Storage for next bridge index"] pub fn next_bridge_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Storage for next bridge index"] + pub fn next_bridge_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "BridgeRegistry", "NextBridgeIndex", vec![], @@ -10410,11 +14862,11 @@ pub mod api { ], ) } - #[doc = " Storage for map of all bridges"] pub fn bridges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BridgeRegistry" , "Bridges" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [1u8 , 112u8 , 75u8 , 147u8 , 69u8 , 209u8 , 218u8 , 149u8 , 213u8 , 112u8 , 94u8 , 202u8 , 240u8 , 100u8 , 216u8 , 77u8 , 14u8 , 111u8 , 54u8 , 86u8 , 79u8 , 109u8 , 31u8 , 34u8 , 31u8 , 24u8 , 30u8 , 64u8 , 29u8 , 29u8 , 64u8 , 3u8 ,]) + #[doc = " Storage for map of all bridges"] pub fn bridges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("BridgeRegistry" , "Bridges" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 112u8 , 75u8 , 147u8 , 69u8 , 209u8 , 218u8 , 149u8 , 213u8 , 112u8 , 94u8 , 202u8 , 240u8 , 100u8 , 216u8 , 77u8 , 14u8 , 111u8 , 54u8 , 86u8 , 79u8 , 109u8 , 31u8 , 34u8 , 31u8 , 24u8 , 30u8 , 64u8 , 29u8 , 29u8 , 64u8 , 3u8 ,]) } - #[doc = " Storage for map of all bridges"] pub fn bridges_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Storage for map of all bridges"] pub fn bridges_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "BridgeRegistry", "Bridges", Vec::new(), @@ -10427,11 +14879,32 @@ pub mod api { ], ) } - #[doc = " Mapping of resource to bridge index"] pub fn resource_to_bridge_index (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BridgeRegistry" , "ResourceToBridgeIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [130u8 , 216u8 , 179u8 , 142u8 , 98u8 , 4u8 , 178u8 , 25u8 , 179u8 , 57u8 , 140u8 , 220u8 , 202u8 , 186u8 , 74u8 , 115u8 , 145u8 , 63u8 , 69u8 , 239u8 , 102u8 , 91u8 , 1u8 , 43u8 , 46u8 , 165u8 , 18u8 , 191u8 , 7u8 , 97u8 , 84u8 , 111u8 ,]) + #[doc = " Mapping of resource to bridge index"] + pub fn resource_to_bridge_index( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BridgeRegistry" , "ResourceToBridgeIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 216u8 , 179u8 , 142u8 , 98u8 , 4u8 , 178u8 , 25u8 , 179u8 , 57u8 , 140u8 , 220u8 , 202u8 , 186u8 , 74u8 , 115u8 , 145u8 , 63u8 , 69u8 , 239u8 , 102u8 , 91u8 , 1u8 , 43u8 , 46u8 , 165u8 , 18u8 , 191u8 , 7u8 , 97u8 , 84u8 , 111u8 ,]) } - #[doc = " Mapping of resource to bridge index"] pub fn resource_to_bridge_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " Mapping of resource to bridge index"] + pub fn resource_to_bridge_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "BridgeRegistry", "ResourceToBridgeIndex", Vec::new(), @@ -10454,10 +14927,9 @@ pub mod api { #[doc = " bound the I/O required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "BridgeRegistry", "MaxAdditionalFields", [ @@ -10474,10 +14946,9 @@ pub mod api { #[doc = " required to access a metadata object, but can be pretty high."] pub fn max_resources( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "BridgeRegistry", "MaxResources", [ @@ -10492,10 +14963,9 @@ pub mod api { #[doc = " Max length of a proposal"] pub fn max_proposal_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "BridgeRegistry", "MaxProposalLength", [ @@ -10508,224 +14978,426 @@ pub mod api { ) } } - } - } - pub mod identity { - use super::root_mod; - use super::runtime_types; - #[doc = "Identity pallet declaration."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddRegistrar { - pub account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetIdentity { - pub info: ::std::boxed::Box< - runtime_types::pallet_identity::types::IdentityInfo, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetSubs { - pub subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClearIdentity; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - #[codec(compact)] - pub max_fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelRequest { - pub reg_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetFee { - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetAccountId { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetFields { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - pub identity: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillIdentity { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub data: runtime_types::pallet_identity::types::Data, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RenameSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub data: runtime_types::pallet_identity::types::Data, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct QuitSub; + } + } + pub mod identity { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_identity::pallet::Error; + #[doc = "Identity pallet declaration."] + pub type Call = runtime_types::pallet_identity::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddRegistrar { + pub account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_registrar"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetIdentity { + pub info: ::std::boxed::Box< + runtime_types::pallet_identity::types::IdentityInfo, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetSubs { + pub subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetSubs { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_subs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClearIdentity; + impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "clear_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RequestJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + #[codec(compact)] + pub max_fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "request_judgement"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelRequest { + pub reg_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelRequest { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "cancel_request"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetFee { + #[codec(compact)] + pub index: ::core::primitive::u32, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetAccountId { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetAccountId { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_account_id"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetFields { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetFields { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fields"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProvideJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub judgement: + runtime_types::pallet_identity::types::Judgement< + ::core::primitive::u128, + >, + pub identity: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "provide_judgement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillIdentity { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for KillIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "kill_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for AddSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RenameSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for RenameSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "rename_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct QuitSub; + impl ::subxt::blocks::StaticExtrinsic for QuitSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "quit_sub"; + } + } pub struct TransactionApi; impl TransactionApi { #[doc = "Add a registrar to the system."] @@ -10747,12 +15419,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "add_registrar", - AddRegistrar { account }, + types::AddRegistrar { account }, [ 96u8, 200u8, 92u8, 23u8, 3u8, 144u8, 56u8, 53u8, 245u8, 210u8, 33u8, 36u8, 183u8, 233u8, 41u8, 1u8, @@ -10784,11 +15455,11 @@ pub mod api { pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_identity", - SetIdentity { + types::SetIdentity { info: ::std::boxed::Box::new(info), }, [ @@ -10827,11 +15498,11 @@ pub mod api { ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_subs", - SetSubs { subs }, + types::SetSubs { subs }, [ 177u8, 219u8, 84u8, 183u8, 5u8, 32u8, 192u8, 82u8, 174u8, 68u8, 198u8, 224u8, 56u8, 85u8, 134u8, @@ -10861,12 +15532,12 @@ pub mod api { #[doc = "# "] pub fn clear_identity( &self, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Identity", "clear_identity", - ClearIdentity {}, + types::ClearIdentity {}, [ 75u8, 44u8, 74u8, 122u8, 149u8, 202u8, 114u8, 230u8, 0u8, 255u8, 140u8, 122u8, 14u8, 196u8, @@ -10903,12 +15574,12 @@ pub mod api { &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Identity", "request_judgement", - RequestJudgement { reg_index, max_fee }, + types::RequestJudgement { reg_index, max_fee }, [ 186u8, 149u8, 61u8, 54u8, 159u8, 194u8, 77u8, 161u8, 220u8, 157u8, 3u8, 216u8, 23u8, 105u8, @@ -10938,12 +15609,12 @@ pub mod api { pub fn cancel_request( &self, reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Identity", "cancel_request", - CancelRequest { reg_index }, + types::CancelRequest { reg_index }, [ 83u8, 180u8, 239u8, 126u8, 32u8, 51u8, 17u8, 20u8, 180u8, 3u8, 59u8, 96u8, 24u8, 32u8, 136u8, 92u8, @@ -10969,11 +15640,11 @@ pub mod api { &self, index: ::core::primitive::u32, fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_fee", - SetFee { index, fee }, + types::SetFee { index, fee }, [ 21u8, 157u8, 123u8, 182u8, 160u8, 190u8, 117u8, 37u8, 136u8, 133u8, 104u8, 234u8, 31u8, 145u8, @@ -11003,12 +15674,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_account_id", - SetAccountId { index, new }, + types::SetAccountId { index, new }, [ 14u8, 154u8, 84u8, 48u8, 59u8, 133u8, 45u8, 204u8, 255u8, 85u8, 157u8, 88u8, 56u8, 207u8, 113u8, @@ -11037,11 +15707,11 @@ pub mod api { fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_fields", - SetFields { index, fields }, + types::SetFields { index, fields }, [ 50u8, 196u8, 179u8, 71u8, 66u8, 65u8, 235u8, 7u8, 51u8, 14u8, 81u8, 173u8, 201u8, 58u8, 6u8, 151u8, @@ -11082,12 +15752,12 @@ pub mod api { ::core::primitive::u128, >, identity: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload + ) -> ::subxt::tx::Payload { - ::subxt::tx::StaticTxPayload::new( + ::subxt::tx::Payload::new_static( "Identity", "provide_judgement", - ProvideJudgement { + types::ProvideJudgement { reg_index, target, judgement, @@ -11127,12 +15797,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "kill_identity", - KillIdentity { target }, + types::KillIdentity { target }, [ 65u8, 106u8, 116u8, 209u8, 219u8, 181u8, 185u8, 75u8, 146u8, 194u8, 187u8, 170u8, 7u8, 34u8, 140u8, @@ -11156,11 +15825,11 @@ pub mod api { ::core::primitive::u32, >, data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "add_sub", - AddSub { sub, data }, + types::AddSub { sub, data }, [ 206u8, 112u8, 143u8, 96u8, 152u8, 12u8, 174u8, 226u8, 23u8, 27u8, 154u8, 188u8, 195u8, 233u8, @@ -11181,11 +15850,11 @@ pub mod api { ::core::primitive::u32, >, data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "rename_sub", - RenameSub { sub, data }, + types::RenameSub { sub, data }, [ 110u8, 28u8, 134u8, 225u8, 44u8, 242u8, 20u8, 22u8, 197u8, 49u8, 173u8, 178u8, 106u8, 181u8, 103u8, @@ -11208,11 +15877,11 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "remove_sub", - RemoveSub { sub }, + types::RemoveSub { sub }, [ 92u8, 201u8, 70u8, 170u8, 248u8, 110u8, 179u8, 186u8, 213u8, 197u8, 150u8, 156u8, 156u8, 50u8, @@ -11232,13 +15901,11 @@ pub mod api { #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] - pub fn quit_sub( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn quit_sub(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "quit_sub", - QuitSub {}, + types::QuitSub {}, [ 62u8, 57u8, 73u8, 72u8, 119u8, 216u8, 250u8, 155u8, 57u8, 169u8, 157u8, 44u8, 87u8, 51u8, 63u8, 231u8, @@ -11256,11 +15923,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { pub who: ::subxt::utils::AccountId32, @@ -11272,11 +15944,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { pub who: ::subxt::utils::AccountId32, @@ -11289,11 +15966,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { pub who: ::subxt::utils::AccountId32, @@ -11306,11 +15988,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { pub who: ::subxt::utils::AccountId32, @@ -11323,11 +16010,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { pub who: ::subxt::utils::AccountId32, @@ -11340,11 +16032,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { pub target: ::subxt::utils::AccountId32, @@ -11358,11 +16055,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A registrar was added."] pub struct RegistrarAdded { pub registrar_index: ::core::primitive::u32, @@ -11374,11 +16076,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { pub sub: ::subxt::utils::AccountId32, @@ -11392,11 +16099,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { pub sub: ::subxt::utils::AccountId32, @@ -11410,11 +16122,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { @@ -11433,13 +16150,36 @@ pub mod api { impl StorageApi { #[doc = " Information that is pertinent to identify the entity behind an account."] #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_identity :: types :: Registration < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Identity" , "IdentityOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [193u8 , 195u8 , 180u8 , 188u8 , 129u8 , 250u8 , 180u8 , 219u8 , 22u8 , 95u8 , 175u8 , 170u8 , 143u8 , 188u8 , 80u8 , 124u8 , 234u8 , 228u8 , 245u8 , 39u8 , 72u8 , 153u8 , 107u8 , 199u8 , 23u8 , 75u8 , 47u8 , 247u8 , 104u8 , 208u8 , 171u8 , 82u8 ,]) + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn identity_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Identity" , "IdentityOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [193u8 , 195u8 , 180u8 , 188u8 , 129u8 , 250u8 , 180u8 , 219u8 , 22u8 , 95u8 , 175u8 , 170u8 , 143u8 , 188u8 , 80u8 , 124u8 , 234u8 , 228u8 , 245u8 , 39u8 , 72u8 , 153u8 , 107u8 , 199u8 , 23u8 , 75u8 , 47u8 , 247u8 , 104u8 , 208u8 , 171u8 , 82u8 ,]) } #[doc = " Information that is pertinent to identify the entity behind an account."] #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_identity :: types :: Registration < :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn identity_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration< + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", Vec::new(), @@ -11453,12 +16193,37 @@ pub mod api { ) } #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Identity" , "SuperOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [170u8 , 249u8 , 112u8 , 249u8 , 75u8 , 176u8 , 21u8 , 29u8 , 152u8 , 149u8 , 69u8 , 113u8 , 20u8 , 92u8 , 113u8 , 130u8 , 135u8 , 62u8 , 18u8 , 204u8 , 166u8 , 193u8 , 133u8 , 167u8 , 248u8 , 117u8 , 80u8 , 137u8 , 158u8 , 111u8 , 100u8 , 137u8 ,]) + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] + pub fn super_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SuperOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [170u8 , 249u8 , 112u8 , 249u8 , 75u8 , 176u8 , 21u8 , 29u8 , 152u8 , 149u8 , 69u8 , 113u8 , 20u8 , 92u8 , 113u8 , 130u8 , 135u8 , 62u8 , 18u8 , 204u8 , 166u8 , 193u8 , 133u8 , 167u8 , 248u8 , 117u8 , 80u8 , 137u8 , 158u8 , 111u8 , 100u8 , 137u8 ,]) } #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] + pub fn super_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", Vec::new(), @@ -11475,15 +16240,15 @@ pub mod api { #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Identity" , "SubsOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [128u8 , 15u8 , 175u8 , 155u8 , 216u8 , 225u8 , 200u8 , 169u8 , 215u8 , 206u8 , 110u8 , 22u8 , 204u8 , 89u8 , 212u8 , 210u8 , 159u8 , 169u8 , 53u8 , 7u8 , 44u8 , 164u8 , 91u8 , 151u8 , 7u8 , 227u8 , 38u8 , 230u8 , 175u8 , 84u8 , 6u8 , 4u8 ,]) + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SubsOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [128u8 , 15u8 , 175u8 , 155u8 , 216u8 , 225u8 , 200u8 , 169u8 , 215u8 , 206u8 , 110u8 , 22u8 , 204u8 , 89u8 , 212u8 , 210u8 , 159u8 , 169u8 , 53u8 , 7u8 , 44u8 , 164u8 , 91u8 , 151u8 , 7u8 , 227u8 , 38u8 , 230u8 , 175u8 , 84u8 , 6u8 , 4u8 ,]) } #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", Vec::new(), @@ -11499,8 +16264,8 @@ pub mod api { #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] #[doc = " special origin (likely a council motion)."] #[doc = ""] - #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "Identity", "Registrars", vec![], @@ -11522,12 +16287,9 @@ pub mod api { #[doc = " The amount held on deposit for a registered identity"] pub fn basic_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "Identity", "BasicDeposit", [ @@ -11542,12 +16304,9 @@ pub mod api { #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "Identity", "FieldDeposit", [ @@ -11564,12 +16323,9 @@ pub mod api { #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( "Identity", "SubAccountDeposit", [ @@ -11584,10 +16340,9 @@ pub mod api { #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Identity", "MaxSubAccounts", [ @@ -11603,10 +16358,9 @@ pub mod api { #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Identity", "MaxAdditionalFields", [ @@ -11622,10 +16376,9 @@ pub mod api { #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( "Identity", "MaxRegistrars", [ @@ -11638,25 +16391,44 @@ pub mod api { ) } } - } - } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } + } + } + pub mod im_online { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_im_online::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } + impl ::subxt::blocks::StaticExtrinsic for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; + } + } pub struct TransactionApi; impl TransactionApi { #[doc = "# "] @@ -11674,11 +16446,11 @@ pub mod api { ::core::primitive::u32, >, signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "ImOnline", "heartbeat", - Heartbeat { + types::Heartbeat { heartbeat, signature, }, @@ -11700,11 +16472,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new heartbeat was received from `AuthorityId`."] pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } impl ::subxt::events::StaticEvent for HeartbeatReceived { @@ -11714,11 +16491,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; impl ::subxt::events::StaticEvent for AllGood { @@ -11728,11 +16510,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "At the end of the session, at least one validator was found to be offline."] pub struct SomeOffline { pub offline: ::std::vec::Vec<( @@ -11762,8 +16549,17 @@ pub mod api { #[doc = ""] #[doc = " This value will only be used as a fallback if we fail to get a proper session"] #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] pub fn heartbeat_after (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] + pub fn heartbeat_after( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( "ImOnline", "HeartbeatAfter", vec![], @@ -11776,8 +16572,8 @@ pub mod api { ], ) } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( "ImOnline", "Keys", vec![], @@ -11791,12 +16587,12 @@ pub mod api { ) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) + #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( "ImOnline", "ReceivedHeartbeats", Vec::new(), @@ -11810,12 +16606,32 @@ pub mod api { ) } #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) } #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( "ImOnline", "AuthoredBlocks", Vec::new(), @@ -11840,10 +16656,9 @@ pub mod api { #[doc = " multiple pallets send unsigned transactions."] pub fn unsigned_priority( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( "ImOnline", "UnsignedPriority", [ @@ -11867,11 +16682,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub runtime_types::sp_core::ecdsa::Public); } pub mod proposal { @@ -11879,11 +16703,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DKGPayloadKey { #[codec(index = 0)] EVMProposal(runtime_types::webb_proposals::nonce::Nonce), @@ -11945,11 +16778,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RefreshProposalSigned { pub nonce: runtime_types::webb_proposals::nonce::Nonce, pub signature: ::std::vec::Vec<::core::primitive::u8>, @@ -11957,11 +16799,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct StoredUnsignedProposal<_0, _1> { pub proposal: runtime_types::webb_proposals::proposal::Proposal<_1>, @@ -11971,20 +16822,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AggregatedMisbehaviourReports < _0 , _1 , _2 > { pub misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , pub session_id : :: core :: primitive :: u64 , pub offender : _0 , pub reporters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub signatures : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_1 , _2) > } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AggregatedPublicKeys { pub keys_and_signatures: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -11994,20 +16855,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CustomU32Getter; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MisbehaviourType { #[codec(index = 0)] Keygen, @@ -12022,30 +16893,49 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SessionKeys { pub aura : runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public , pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub dkg : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxVotes; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NposSolution16 { pub votes1: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, @@ -12205,30 +17095,45 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Runtime; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeCall { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 3)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 5)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 7)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Call ,) , # [codec (index = 8)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Call ,) , # [codec (index = 9)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Call ,) , # [codec (index = 11)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 12)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 13)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 14)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 15)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 16)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 18)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Call ,) , # [codec (index = 19)] Identity (runtime_types :: pallet_identity :: pallet :: Call ,) , # [codec (index = 20)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeEvent { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 1)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 5)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Event ,) , # [codec (index = 8)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Event ,) , # [codec (index = 9)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Event ,) , # [codec (index = 10)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 11)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 12)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 13)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 14)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 15)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 16)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 18)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Event ,) , # [codec (index = 19)] Identity (runtime_types :: pallet_identity :: pallet :: Event ,) , # [codec (index = 20)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , } } @@ -12237,11 +17142,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Equivocation<_0, _1, _2> { pub round_number: ::core::primitive::u64, pub identity: _0, @@ -12251,11 +17161,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Precommit<_0, _1> { pub target_hash: _0, pub target_number: _1, @@ -12263,11 +17178,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Prevote<_0, _1> { pub target_hash: _0, pub target_number: _1, @@ -12280,11 +17200,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DispatchClass { #[codec(index = 0)] Normal, @@ -12296,11 +17225,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct DispatchInfo { pub weight: runtime_types::sp_weights::weight_v2::Weight, pub class: @@ -12310,11 +17248,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Pays { #[codec(index = 0)] Yes, @@ -12324,11 +17271,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PerDispatchClass<_0> { pub normal: _0, pub operational: _0, @@ -12342,11 +17298,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WrapperOpaque<_0>( #[codec(compact)] pub ::core::primitive::u32, pub _0, @@ -12359,11 +17324,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum BalanceStatus { #[codec(index = 0)] Free, @@ -12376,11 +17350,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PalletId(pub [::core::primitive::u8; 8usize]); } pub mod frame_system { @@ -12392,11 +17371,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckGenesis; } pub mod check_mortality { @@ -12404,11 +17392,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckMortality( pub runtime_types::sp_runtime::generic::era::Era, ); @@ -12418,11 +17415,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckNonZeroSender; } pub mod check_nonce { @@ -12430,11 +17436,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckNonce( #[codec(compact)] pub ::core::primitive::u32, ); @@ -12444,11 +17459,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckSpecVersion; } pub mod check_tx_version { @@ -12456,11 +17480,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckTxVersion; } pub mod check_weight { @@ -12468,11 +17501,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckWeight; } } @@ -12481,29 +17523,56 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WeightsPerClass { pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, @@ -12523,11 +17592,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -12604,11 +17682,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Error for the System pallet"] pub enum Error { #[codec(index = 0)] @@ -12637,11 +17724,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Event 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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } @@ -12649,11 +17745,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountInfo<_0, _1> { pub nonce: _0, pub consumers: _0, @@ -12664,11 +17765,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EventRecord<_0, _1> { pub phase: runtime_types::frame_system::Phase, pub event: _0, @@ -12677,11 +17783,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { #[codec(compact)] pub spec_version: ::core::primitive::u32, @@ -12690,11 +17801,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase { #[codec(index = 0)] ApplyExtrinsic(::core::primitive::u32), @@ -12711,11 +17827,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Bag { pub head: ::core::option::Option<::subxt::utils::AccountId32>, @@ -12725,11 +17850,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ListError { #[codec(index = 0)] Duplicate, @@ -12743,11 +17877,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Node { pub id: ::subxt::utils::AccountId32, pub prev: @@ -12763,11 +17906,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -12806,11 +17958,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -12820,11 +17981,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -12850,11 +18020,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -12984,11 +18163,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13019,11 +18207,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } @@ -13031,11 +18228,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, @@ -13045,11 +18247,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, @@ -13058,11 +18265,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Reasons { #[codec(index = 0)] Fee, @@ -13074,11 +18286,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, @@ -13091,22 +18308,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_metadata { bridge_index : :: core :: primitive :: u32 , info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } , # [codec (index = 1)] force_reset_indices { resource_ids : :: std :: vec :: Vec < runtime_types :: webb_proposals :: header :: ResourceId > , bridge_index : :: core :: primitive :: u32 , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13134,11 +18369,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event {} } @@ -13147,29 +18391,56 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BridgeInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_bridge_registry :: types :: SerdeData , runtime_types :: pallet_bridge_registry :: types :: SerdeData ,) > , pub display : runtime_types :: pallet_bridge_registry :: types :: SerdeData , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BridgeMetadata { pub resource_ids : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_proposals :: header :: ResourceId > , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SerdeData( pub runtime_types::pallet_identity::types::Data, ); @@ -13182,22 +18453,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] # [doc = "Set the pending signature threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new signature threshold for the DKG."] set_signature_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 1)] # [doc = "Set the pending keygen threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new keygen threshold for the DKG."] set_keygen_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] # [doc = "proposal queue."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] # [doc = " unsigned refresh proposal to the unsigned proposal queue."] set_refresh_delay { new_delay : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Submits and stores the active public key for the genesis session into the on-chain"] # [doc = "storage. This is primarily used to separate the genesis public key submission from"] # [doc = "non-genesis rounds."] # [doc = ""] # [doc = "Can only be submitted by the current authorities. It is also required that a"] # [doc = "`SignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] # [doc = " DKG public keys."] submit_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 4)] # [doc = "Submits and stores the next public key for the next session into the on-chain storage."] # [doc = ""] # [doc = "Can only be submitted by the next authorities. It is also required that a"] # [doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] # [doc = " DKG public keys."] submit_next_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 5)] # [doc = "Submits the public key signature for the key refresh/rotation process."] # [doc = ""] # [doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] # [doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] # [doc = "DKG's public key. Successful storage of this public key signature also removes"] # [doc = "the unsigned `RefreshProposal` from the unsigned queue."] # [doc = ""] # [doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] # [doc = "the keys are immediately refreshed and the authority set is immediately rotated"] # [doc = "and incremented."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] # [doc = " and nonce."] submit_public_key_signature { signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } , # [codec (index = 6)] # [doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] # [doc = "verified against the current or next authorities depending on the type of misbehaviour."] # [doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] # [doc = "- Signing: Verifies against the current authorities, since they are doing signing."] # [doc = ""] # [doc = "Verifies the reports against the respective thresholds and if enough reports are met"] # [doc = "begins to jail and decrease the reputation of the offending authority."] # [doc = ""] # [doc = "The misbehaviour reputation update is:"] # [doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] # [doc = ""] # [doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] # [doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] # [doc = "accordingly."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] # [doc = " authority"] submit_misbehaviour_reports { reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] # [doc = "This can only be called by the controller of the authority in jail. The"] # [doc = "origin must map directly to the authority in jail."] # [doc = ""] # [doc = "The authority's jail sentence for either keygen or signing must be elapsed"] # [doc = "for the authority to be removed from the jail."] # [doc = ""] # [doc = "* `origin` - The account origin."] unjail , # [codec (index = 8)] # [doc = "Force removes an authority from keygen jail."] # [doc = ""] # [doc = "Can only be called by DKG"] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the keygen jail."] force_unjail_keygen { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 9)] # [doc = "Force removes an authority from signing jail."] # [doc = ""] # [doc = "Can only be called by the root origin."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the signing jail."] force_unjail_signing { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 10)] # [doc = "Forcefully rotate the DKG"] # [doc = ""] # [doc = "This forces the next authorities into the current authority spot and"] # [doc = "automatically increments the authority ID. It uses `change_authorities`"] # [doc = "to execute the rotation forcefully."] force_change_authorities , # [codec (index = 11)] # [doc = "Triggers an Emergency Keygen Porotocol."] # [doc = ""] # [doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] # [doc = "storage, which will be picked up by the on chain worker and stored on chain."] # [doc = ""] # [doc = "Note that, this will clear the next public key and its signature, if any."] trigger_emergency_keygen , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13252,11 +18541,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { # [codec (index = 0)] # [doc = "Current public key submitted"] PublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Next public key submitted"] NextPublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Next public key signature submitted"] NextPublicKeySignatureSubmitted { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Current Public Key Changed."] PublicKeyChanged { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Current Public Key Signature Changed."] PublicKeySignatureChanged { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Misbehaviour reports submitted"] MisbehaviourReportsSubmitted { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , reporters : :: std :: vec :: Vec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , offender : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 6)] # [doc = "Refresh DKG Keys Finished (forcefully)."] RefreshKeysFinished { next_authority_set_id : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "NextKeygenThreshold updated"] NextKeygenThresholdUpdated { next_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 8)] # [doc = "NextSignatureThreshold updated"] NextSignatureThresholdUpdated { next_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 9)] # [doc = "PendingKeygenThreshold updated"] PendingKeygenThresholdUpdated { pending_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 10)] # [doc = "PendingSignatureThreshold updated"] PendingSignatureThresholdUpdated { pending_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 11)] # [doc = "An Emergency Keygen Protocol was triggered."] EmergencyKeygenTriggered , # [codec (index = 12)] # [doc = "An authority has been jailed for misbehaviour"] AuthorityJailed { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 13)] # [doc = "An authority has been unjailed"] AuthorityUnJailed { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , } @@ -13266,11 +18564,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RoundMetadata < _0 , _1 > { pub curr_round_pub_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub next_round_pub_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub refresh_signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_0 , _1) > } } } @@ -13281,22 +18588,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] submit_signed_proposals { props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } , # [codec (index = 1)] # [doc = "Force submit an unsigned proposal to the DKG"] # [doc = ""] # [doc = "There are certain proposals we'd like to be proposable only"] # [doc = "through root actions. The currently supported proposals are"] # [doc = "\t1. Updating"] force_submit_unsigned_proposal { prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13336,11 +18661,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { # [codec (index = 0)] # [doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] InvalidProposalSignature { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , invalid_signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , expected_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , actual_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 1)] # [doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] ProposalAdded { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] ProposalRemoved { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , expired : :: core :: primitive :: bool , } , # [codec (index = 3)] # [doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] ProposalSigned { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , } @@ -13353,22 +18687,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] # [doc = "Sets the vote threshold for proposals."] # [doc = ""] # [doc = "This threshold is used to determine how many votes are required"] # [doc = "before a proposal is executed."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] set_threshold { threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , method : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 4)] # [doc = "Adds a new proposer to the proposer set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] add_proposer { native_account : :: subxt :: utils :: AccountId32 , external_account : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "Removes an existing proposer from the set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and removal"] # [doc = "# "] remove_proposer { v : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Commits a vote in favour of the provided proposal."] # [doc = ""] # [doc = "If a proposal with the given nonce and source chain ID does not"] # [doc = "already exist, it will be created with an initial vote in favour"] # [doc = "from the caller."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] acknowledge_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 7)] # [doc = "Commits a vote against a provided proposal."] # [doc = ""] # [doc = "# "] # [doc = "- Fixed, since execution of proposal should not be included"] # [doc = "# "] reject_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 8)] # [doc = "Evaluate the state of a proposal given the current vote threshold."] # [doc = ""] # [doc = "A proposal with enough votes will be either executed or cancelled,"] # [doc = "and the status will be updated accordingly."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] eval_vote_state { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13429,11 +18781,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -13519,11 +18880,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ProposalStatus { #[codec(index = 0)] Initiated, @@ -13535,11 +18905,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProposalVotes < _0 , _1 , _2 > { pub votes_for : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub votes_against : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub status : runtime_types :: pallet_dkg_proposals :: types :: ProposalStatus , pub expiry : _1 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _2 > } } } @@ -13550,22 +18929,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Error of the pallet that can be returned in response to dispatches."] pub enum Error { #[codec(index = 0)] @@ -13614,11 +19011,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } @@ -13628,21 +19034,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ElectionCompute { #[codec(index = 0)] OnChain, @@ -13658,11 +19078,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase<_0> { #[codec(index = 0)] Off, @@ -13676,11 +19101,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RawSolution<_0> { pub solution: _0, pub score: runtime_types::sp_npos_elections::ElectionScore, @@ -13689,20 +19119,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReadySolution { pub supports : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RoundSnapshot { pub voters: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -13716,11 +19156,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SolutionOrSnapshotSize { #[codec(compact)] pub voters: ::core::primitive::u32, @@ -13735,22 +19180,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [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 :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13780,11 +19243,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -13806,20 +19278,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum StoredState<_0> { #[codec(index = 0)] Live, @@ -13838,22 +19320,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Identity pallet declaration."] pub enum Call { # [codec (index = 0)] # [doc = "Add a registrar to the system."] # [doc = ""] # [doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] # [doc = ""] # [doc = "- `account`: the account of the registrar."] # [doc = ""] # [doc = "Emits `RegistrarAdded` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] # [doc = "- One storage mutation (codec `O(R)`)."] # [doc = "- One event."] # [doc = "# "] add_registrar { account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `IdentitySet` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(X + X' + R)`"] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] # [doc = " - where `R` judgements-count (registrar-count-bounded)"] # [doc = "- One balance reserve operation."] # [doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] # [doc = "- One event."] # [doc = "# "] set_identity { info : :: std :: boxed :: Box < runtime_types :: pallet_identity :: types :: IdentityInfo > , } , # [codec (index = 2)] # [doc = "Set the sub-accounts of the sender."] # [doc = ""] # [doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] # [doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "- `subs`: The identity's (new) sub-accounts."] # [doc = ""] # [doc = "# "] # [doc = "- `O(P + S)`"] # [doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = "- At most one balance operations."] # [doc = "- DB:"] # [doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] # [doc = " - One storage read (codec complexity `O(P)`)."] # [doc = " - One storage write (codec complexity `O(S)`)."] # [doc = " - One storage-exists (`IdentityOf::contains_key`)."] # [doc = "# "] set_subs { subs : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , } , # [codec (index = 3)] # [doc = "Clear an account's identity info and all sub-accounts and return all deposits."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "Emits `IdentityCleared` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] # [doc = "- One balance-unreserve operation."] # [doc = "- `2` storage reads and `S + 2` storage deletions."] # [doc = "- One event."] # [doc = "# "] clear_identity , # [codec (index = 4)] # [doc = "Request a judgement from a registrar."] # [doc = ""] # [doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] # [doc = "given."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is requested."] # [doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] # [doc = ""] # [doc = "```nocompile"] # [doc = "Self::registrars().get(reg_index).unwrap().fee"] # [doc = "```"] # [doc = ""] # [doc = "Emits `JudgementRequested` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] # [doc = "- One event."] # [doc = "# "] request_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , # [codec (compact)] max_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Cancel a previous request."] # [doc = ""] # [doc = "Payment: A previously reserved deposit is returned on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] # [doc = ""] # [doc = "Emits `JudgementUnrequested` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- One storage mutation `O(R + X)`."] # [doc = "- One event"] # [doc = "# "] cancel_request { reg_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the fee required for a judgement to be requested from a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fee`: the new fee."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] # [doc = "# "] set_fee { # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "Change the account associated with a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `new`: the new account ID."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] # [doc = "# "] set_account_id { # [codec (compact)] index : :: core :: primitive :: u32 , new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 8)] # [doc = "Set the field information for a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fields`: the fields that the registrar concerns themselves with."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] # [doc = "# "] set_fields { # [codec (compact)] index : :: core :: primitive :: u32 , fields : runtime_types :: pallet_identity :: types :: BitFlags < runtime_types :: pallet_identity :: types :: IdentityField > , } , # [codec (index = 9)] # [doc = "Provide a judgement for an account's identity."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `reg_index`."] # [doc = ""] # [doc = "- `reg_index`: the index of the registrar whose judgement is being made."] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] # [doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] # [doc = ""] # [doc = "Emits `JudgementGiven` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-transfer operation."] # [doc = "- Up to one account-lookup operation."] # [doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] # [doc = "- One event."] # [doc = "# "] provide_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , judgement : runtime_types :: pallet_identity :: types :: Judgement < :: core :: primitive :: u128 > , identity : :: subxt :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Remove an account's identity and sub-account information and slash the deposits."] # [doc = ""] # [doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] # [doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] # [doc = "manually using `cancel_request`."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] # [doc = ""] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = ""] # [doc = "Emits `IdentityKilled` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + S + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- `S + 2` storage mutations."] # [doc = "- One event."] # [doc = "# "] kill_identity { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 11)] # [doc = "Add the given account to the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] add_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 12)] # [doc = "Alter the associated name of the given sub-account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] rename_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 13)] # [doc = "Remove the given account from the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] remove_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove the sender as a sub-account."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender (*not* the original depositor)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "super-identity."] # [doc = ""] # [doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] # [doc = "controller of an account is maliciously registered as a sub-account."] quit_sub , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -13914,11 +19414,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -13989,11 +19498,20 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BitFlags<_0>( pub ::core::primitive::u64, #[codec(skip)] pub ::core::marker::PhantomData<_0>, @@ -14001,11 +19519,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Data { #[codec(index = 0)] None, @@ -14087,11 +19614,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum IdentityField { #[codec(index = 1)] Display, @@ -14113,20 +19649,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct IdentityInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub legal : runtime_types :: pallet_identity :: types :: Data , pub web : runtime_types :: pallet_identity :: types :: Data , pub riot : runtime_types :: pallet_identity :: types :: Data , pub email : runtime_types :: pallet_identity :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_identity :: types :: Data , pub twitter : runtime_types :: pallet_identity :: types :: Data , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, @@ -14146,11 +19700,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RegistrarInfo<_0, _1> { pub account: _1, pub fee: _0, @@ -14161,11 +19724,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Registration < _0 > { pub judgements : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_identity :: types :: Judgement < _0 > ,) > , pub deposit : _0 , pub info : runtime_types :: pallet_identity :: types :: IdentityInfo , } } } @@ -14176,22 +19748,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -14204,11 +19794,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } @@ -14220,22 +19819,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public( pub runtime_types::sp_core::sr25519::Public, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature( pub runtime_types::sp_core::sr25519::Signature, ); @@ -14244,20 +19861,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, pub network_state: @@ -14274,11 +19901,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -14403,11 +20039,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -14429,11 +20074,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -14461,11 +20115,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -14748,11 +20411,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, @@ -14768,22 +20440,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Events of this pallet."] pub enum Event { #[codec(index = 0)] @@ -14886,11 +20576,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BondExtra<_0> { #[codec(index = 0)] FreeBalance(_0), @@ -14900,11 +20595,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { pub points: ::core::primitive::u128, pub state: runtime_types::pallet_nomination_pools::PoolState, @@ -14916,11 +20616,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -14932,20 +20637,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolMember { pub pool_id : :: core :: primitive :: u32 , pub points : :: core :: primitive :: u128 , pub last_recorded_reward_counter : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub unbonding_eras : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolRoles<_0> { pub depositor: _0, pub root: ::core::option::Option<_0>, @@ -14955,11 +20670,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PoolState { #[codec(index = 0)] Open, @@ -14971,11 +20691,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RewardPool { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, @@ -14985,20 +20710,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnbondPool { pub points: ::core::primitive::u128, pub balance: ::core::primitive::u128, @@ -15011,22 +20746,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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 = "# "] # [doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] # [doc = " `T::Keys::key_ids()` which is fixed."] # [doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] # [doc = "- DbWrites: `origin account`, `NextKeys`"] # [doc = "- DbReads per key id: `KeyOwner`"] # [doc = "- DbWrites per key id: `KeyOwner`"] # [doc = "# "] set_keys { keys : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys , proof : :: std :: 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 = "# "] # [doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] # [doc = " of `T::Keys::key_ids()` which is fixed."] # [doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] # [doc = "- DbWrites: `NextKeys`, `origin account`"] # [doc = "- DbWrites per key id: `KeyOwner`"] # [doc = "# "] purge_keys , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Error for the session pallet."] pub enum Error { #[codec(index = 0)] @@ -15048,11 +20801,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15073,22 +20835,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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 = "# "] # [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_ and gets removed as dust."] # [doc = "------------------"] # [doc = "# "] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] # [doc = "# "] 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"] # [doc = "whatever 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 = "# "] # [doc = "Complexity O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] # [doc = "# "] 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 = "# "] # [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."] # [doc = "# "] nominate { targets : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "# "] 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] # [doc = "- Weight: O(1)"] # [doc = "- DB Weight:"] # [doc = " - Read: Ledger"] # [doc = " - Write: Payee"] # [doc = "# "] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "----------"] # [doc = "Weight: O(1)"] # [doc = "DB Weight:"] # [doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "# "] set_controller { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Weight: O(1)"] # [doc = "Write: Validator Count"] # [doc = "# "] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write: ForceEra"] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write ForceEra"] # [doc = "# "] 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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::SlashCancelOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "# "] # [doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] # [doc = "- Contains a limited number of reads and writes."] # [doc = "-----------"] # [doc = "N is the Number of payouts for the validator (including the validator)"] # [doc = "Weight:"] # [doc = "- Reward Destination Staked: O(N)"] # [doc = "- Reward Destination Controller (Creating): O(N)"] # [doc = ""] # [doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] # [doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] # [doc = "# "] payout_stakers { validator_stash : :: subxt :: 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 = "# "] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] # [doc = "- Storage changes: Can't increase storage, only decrease it."] # [doc = "# "] 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: utils :: AccountId32 , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -15100,11 +20880,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15190,11 +20979,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , } @@ -15205,11 +21003,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, pub last_start: ::core::primitive::u32, @@ -15219,11 +21026,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, @@ -15232,11 +21048,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ActiveEraInfo { pub index: ::core::primitive::u32, pub start: ::core::option::Option<::core::primitive::u64>, @@ -15244,11 +21065,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, pub individual: @@ -15257,11 +21083,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Exposure<_0, _1> { #[codec(compact)] pub total: _1, @@ -15274,11 +21105,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Forcing { #[codec(index = 0)] NotForcing, @@ -15292,11 +21128,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndividualExposure<_0, _1> { pub who: _0, #[codec(compact)] @@ -15305,11 +21146,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { pub targets: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< @@ -15321,11 +21167,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V1_0_0Ancient, @@ -15355,11 +21206,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, @@ -15375,11 +21231,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StakingLedger { pub stash: ::subxt::utils::AccountId32, #[codec(compact)] @@ -15400,11 +21261,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlash<_0, _1> { pub validator: _0, pub own: _1, @@ -15415,11 +21281,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnlockChunk<_0> { #[codec(compact)] pub value: _0, @@ -15429,11 +21300,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorPrefs { #[codec(compact)] pub commission: @@ -15448,11 +21324,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -15530,11 +21415,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Error for the Sudo pallet"] pub enum Error { #[codec(index = 0)] @@ -15544,11 +21438,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15583,11 +21486,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -15621,11 +21533,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15641,22 +21562,32 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChargeTransactionPayment( #[codec(compact)] pub ::core::primitive::u128, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V1Ancient, @@ -15672,11 +21603,20 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { @@ -15685,41 +21625,77 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PerU16(pub ::core::primitive::u16); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Perbill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Percent(pub ::core::primitive::u8); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Permill(pub ::core::primitive::u32); } } @@ -15732,11 +21708,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public( pub runtime_types::sp_core::sr25519::Public, ); @@ -15749,11 +21734,16 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Slot(pub ::core::primitive::u64); } pub mod sp_core { @@ -15765,11 +21755,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BoundedBTreeMap<_0, _1>( pub ::subxt::utils::KeyedVec<_0, _1>, ); @@ -15779,11 +21778,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); } pub mod weak_bounded_vec { @@ -15791,11 +21799,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } } @@ -15804,11 +21821,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { @@ -15816,20 +21842,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub [::core::primitive::u8; 33usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature(pub [::core::primitive::u8; 65usize]); } pub mod ed25519 { @@ -15837,20 +21881,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature(pub [::core::primitive::u8; 64usize]); } pub mod offchain { @@ -15858,22 +21920,40 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct OpaqueMultiaddr( pub ::std::vec::Vec<::core::primitive::u8>, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct OpaqueNetworkState { pub peer_id: runtime_types::sp_core::OpaquePeerId, pub external_addresses: ::std::vec::Vec< @@ -15886,39 +21966,67 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } pub mod sp_finality_grandpa { @@ -15928,20 +22036,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature( pub runtime_types::sp_core::ed25519::Signature, ); @@ -15949,11 +22075,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Equivocation<_0, _1> { #[codec(index = 0)] Prevote( @@ -15975,11 +22106,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { pub set_id: ::core::primitive::u64, pub equivocation: @@ -15991,11 +22127,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ElectionScore { pub minimal_stake: ::core::primitive::u128, pub sum_stake: ::core::primitive::u128, @@ -16004,11 +22145,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Support<_0> { pub total: ::core::primitive::u128, pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, @@ -16023,20 +22169,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DigestItem { #[codec(index = 6)] PreRuntime( @@ -16064,11 +22228,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Era { #[codec(index = 0)] Immortal, @@ -16589,11 +22762,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, #[codec(skip)] @@ -16604,11 +22786,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ArithmeticError { #[codec(index = 0)] Underflow, @@ -16620,11 +22807,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchError { #[codec(index = 0)] Other, @@ -16656,11 +22848,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ModuleError { pub index: ::core::primitive::u8, pub error: [::core::primitive::u8; 4usize], @@ -16668,11 +22865,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiSignature { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Signature), @@ -16684,11 +22886,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] NoFunds, @@ -16708,11 +22915,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionalError { #[codec(index = 0)] LimitReached, @@ -16725,11 +22937,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name: ::std::string::String, pub impl_name: ::std::string::String, @@ -16751,11 +22968,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Weight { #[codec(compact)] pub ref_time: ::core::primitive::u64, @@ -16766,11 +22992,16 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read: ::core::primitive::u64, pub write: ::core::primitive::u64, @@ -16783,20 +23014,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ResourceId(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum TypedChainId { #[codec(index = 0)] None, @@ -16824,11 +23073,20 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Nonce(pub ::core::primitive::u32); } pub mod proposal { @@ -16836,21 +23094,39 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Proposal<_0> { # [codec (index = 0)] Signed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] Unsigned { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ProposalKind { #[codec(index = 0)] Refresh, @@ -16886,236 +23162,4 @@ pub mod api { } } } - #[doc = r" The default error type returned when there is a runtime issue,"] - #[doc = r" exposed here for ease of use."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - pub fn constants() -> ConstantsApi { - ConstantsApi - } - pub fn storage() -> StorageApi { - StorageApi - } - pub fn tx() -> TransactionApi { - TransactionApi - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn indices(&self) -> indices::constants::ConstantsApi { - indices::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi - } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi - } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi - } - pub fn dkg(&self) -> dkg::constants::ConstantsApi { - dkg::constants::ConstantsApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::constants::ConstantsApi { - dkg_proposals::constants::ConstantsApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::constants::ConstantsApi { - dkg_proposal_handler::constants::ConstantsApi - } - pub fn transaction_payment( - &self, - ) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi - } - pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn bridge_registry( - &self, - ) -> bridge_registry::constants::ConstantsApi { - bridge_registry::constants::ConstantsApi - } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi - } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi - } - } - pub struct StorageApi; - impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { - system::storage::StorageApi - } - pub fn indices(&self) -> indices::storage::StorageApi { - indices::storage::StorageApi - } - pub fn randomness_collective_flip( - &self, - ) -> randomness_collective_flip::storage::StorageApi { - randomness_collective_flip::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn aura(&self) -> aura::storage::StorageApi { - aura::storage::StorageApi - } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { - grandpa::storage::StorageApi - } - pub fn balances(&self) -> balances::storage::StorageApi { - balances::storage::StorageApi - } - pub fn dkg(&self) -> dkg::storage::StorageApi { - dkg::storage::StorageApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::storage::StorageApi { - dkg_proposals::storage::StorageApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::storage::StorageApi { - dkg_proposal_handler::storage::StorageApi - } - pub fn transaction_payment( - &self, - ) -> transaction_payment::storage::StorageApi { - transaction_payment::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi { - election_provider_multi_phase::storage::StorageApi - } - pub fn bags_list(&self) -> bags_list::storage::StorageApi { - bags_list::storage::StorageApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn historical(&self) -> historical::storage::StorageApi { - historical::storage::StorageApi - } - pub fn bridge_registry(&self) -> bridge_registry::storage::StorageApi { - bridge_registry::storage::StorageApi - } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi - } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi - } - pub fn indices(&self) -> indices::calls::TransactionApi { - indices::calls::TransactionApi - } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi - } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { - grandpa::calls::TransactionApi - } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi - } - pub fn dkg(&self) -> dkg::calls::TransactionApi { - dkg::calls::TransactionApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::calls::TransactionApi { - dkg_proposals::calls::TransactionApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::calls::TransactionApi { - dkg_proposal_handler::calls::TransactionApi - } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi { - election_provider_multi_phase::calls::TransactionApi - } - pub fn bags_list(&self) -> bags_list::calls::TransactionApi { - bags_list::calls::TransactionApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi - } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi - } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi - } - pub fn bridge_registry( - &self, - ) -> bridge_registry::calls::TransactionApi { - bridge_registry::calls::TransactionApi - } - pub fn identity(&self) -> identity::calls::TransactionApi { - identity::calls::TransactionApi - } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::calls::TransactionApi - } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen< - T: ::subxt::Config, - C: ::subxt::client::OfflineClientT, - >( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 58u8, 114u8, 248u8, 133u8, 123u8, 22u8, 76u8, 180u8, 165u8, - 147u8, 247u8, 228u8, 163u8, 153u8, 17u8, 226u8, 161u8, 63u8, - 105u8, 250u8, 236u8, 159u8, 135u8, 135u8, 175u8, 54u8, 188u8, - 104u8, 52u8, 230u8, 113u8, 19u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) - } - } } diff --git a/src/substrate/protocol_substrate_runtime.rs b/src/substrate/protocol_substrate_runtime.rs index 85dac88..8919bdc 100644 --- a/src/substrate/protocol_substrate_runtime.rs +++ b/src/substrate/protocol_substrate_runtime.rs @@ -1,7 +1,10 @@ #[allow(dead_code, unused_imports, non_camel_case_types)] #[allow(clippy::all)] pub mod api { - use super::api as root_mod; + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } pub static PALLETS: [&str; 48usize] = [ "System", "RandomnessCollectiveFlip", @@ -52,14 +55,21 @@ pub mod api { "RelayerRegistry", "KeyStorage", ]; + #[doc = r" The error type returned when there is a runtime issue."] + pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Event { #[codec(index = 0)] System(system::Event), @@ -144,32914 +154,43611 @@ pub mod api { #[codec(index = 47)] KeyStorage(key_storage::Event), } - pub mod system { + impl ::subxt::events::RootEvent for Event { + fn root_event( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Event::System(system::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Indices" { + return Ok(Event::Indices( + indices::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Balances" { + return Ok(Event::Balances( + balances::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TransactionPayment" { + return Ok(Event::TransactionPayment( + transaction_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "AssetTxPayment" { + return Ok(Event::AssetTxPayment( + asset_tx_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ElectionProviderMultiPhase" { + return Ok(Event::ElectionProviderMultiPhase( + election_provider_multi_phase::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Event::Staking( + staking::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Session" { + return Ok(Event::Session( + session::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Democracy" { + return Ok(Event::Democracy( + democracy::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Council" { + return Ok(Event::Council( + council::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Elections" { + return Ok(Event::Elections( + elections::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Grandpa" { + return Ok(Event::Grandpa( + grandpa::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Treasury" { + return Ok(Event::Treasury( + treasury::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Utility" { + return Ok(Event::Utility( + utility::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Multisig" { + return Ok(Event::Multisig( + multisig::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Scheduler" { + return Ok(Event::Scheduler( + scheduler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Preimage" { + return Ok(Event::Preimage( + preimage::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Proxy" { + return Ok(Event::Proxy(proxy::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Assets" { + return Ok(Event::Assets(assets::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Sudo" { + return Ok(Event::Sudo(sudo::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "ImOnline" { + return Ok(Event::ImOnline( + im_online::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Offences" { + return Ok(Event::Offences( + offences::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Bounties" { + return Ok(Event::Bounties( + bounties::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ChildBounties" { + return Ok(Event::ChildBounties( + child_bounties::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BagsList" { + return Ok(Event::BagsList( + bags_list::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "NominationPools" { + return Ok(Event::NominationPools( + nomination_pools::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "HasherBn254" { + return Ok(Event::HasherBn254( + hasher_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "AssetRegistry" { + return Ok(Event::AssetRegistry( + asset_registry::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Tokens" { + return Ok(Event::Tokens(tokens::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "TokenWrapper" { + return Ok(Event::TokenWrapper( + token_wrapper::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TokenWrapperHandler" { + return Ok(Event::TokenWrapperHandler( + token_wrapper_handler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerVerifierBn254" { + return Ok(Event::MixerVerifierBn254( + mixer_verifier_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorVerifier" { + return Ok(Event::VAnchorVerifier( + v_anchor_verifier::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MerkleTreeBn254" { + return Ok(Event::MerkleTreeBn254( + merkle_tree_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "LinkableTreeBn254" { + return Ok(Event::LinkableTreeBn254( + linkable_tree_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerBn254" { + return Ok(Event::MixerBn254( + mixer_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorBn254" { + return Ok(Event::VAnchorBn254( + v_anchor_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorHandlerBn254" { + return Ok(Event::VAnchorHandlerBn254( + v_anchor_handler_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "SignatureBridge" { + return Ok(Event::SignatureBridge( + signature_bridge::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "RelayerRegistry" { + return Ok(Event::RelayerRegistry( + relayer_registry::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "KeyStorage" { + return Ok(Event::KeyStorage( + key_storage::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Event enum", + pallet_name + )) + .into()) + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Call { + #[codec(index = 0)] + System(system::Call), + #[codec(index = 2)] + Timestamp(timestamp::Call), + #[codec(index = 3)] + Babe(babe::Call), + #[codec(index = 4)] + Authorship(authorship::Call), + #[codec(index = 5)] + Indices(indices::Call), + #[codec(index = 6)] + Balances(balances::Call), + #[codec(index = 9)] + ElectionProviderMultiPhase(election_provider_multi_phase::Call), + #[codec(index = 10)] + Staking(staking::Call), + #[codec(index = 11)] + Session(session::Call), + #[codec(index = 12)] + Democracy(democracy::Call), + #[codec(index = 13)] + Council(council::Call), + #[codec(index = 14)] + Elections(elections::Call), + #[codec(index = 15)] + Grandpa(grandpa::Call), + #[codec(index = 16)] + Treasury(treasury::Call), + #[codec(index = 17)] + Utility(utility::Call), + #[codec(index = 18)] + Multisig(multisig::Call), + #[codec(index = 19)] + Scheduler(scheduler::Call), + #[codec(index = 20)] + Preimage(preimage::Call), + #[codec(index = 21)] + Proxy(proxy::Call), + #[codec(index = 22)] + Assets(assets::Call), + #[codec(index = 23)] + Sudo(sudo::Call), + #[codec(index = 24)] + ImOnline(im_online::Call), + #[codec(index = 28)] + Bounties(bounties::Call), + #[codec(index = 29)] + ChildBounties(child_bounties::Call), + #[codec(index = 30)] + BagsList(bags_list::Call), + #[codec(index = 31)] + NominationPools(nomination_pools::Call), + #[codec(index = 32)] + HasherBn254(hasher_bn254::Call), + #[codec(index = 33)] + AssetRegistry(asset_registry::Call), + #[codec(index = 34)] + Currencies(currencies::Call), + #[codec(index = 35)] + Tokens(tokens::Call), + #[codec(index = 36)] + TokenWrapper(token_wrapper::Call), + #[codec(index = 37)] + TokenWrapperHandler(token_wrapper_handler::Call), + #[codec(index = 38)] + MixerVerifierBn254(mixer_verifier_bn254::Call), + #[codec(index = 39)] + VAnchorVerifier(v_anchor_verifier::Call), + #[codec(index = 40)] + MerkleTreeBn254(merkle_tree_bn254::Call), + #[codec(index = 41)] + LinkableTreeBn254(linkable_tree_bn254::Call), + #[codec(index = 42)] + MixerBn254(mixer_bn254::Call), + #[codec(index = 43)] + VAnchorBn254(v_anchor_bn254::Call), + #[codec(index = 44)] + VAnchorHandlerBn254(v_anchor_handler_bn254::Call), + #[codec(index = 45)] + SignatureBridge(signature_bridge::Call), + #[codec(index = 46)] + RelayerRegistry(relayer_registry::Call), + #[codec(index = 47)] + KeyStorage(key_storage::Call), + } + impl ::subxt::blocks::RootExtrinsic for Call { + fn root_extrinsic( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Call::System(system::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Timestamp" { + return Ok(Call::Timestamp( + timestamp::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Babe" { + return Ok(Call::Babe(babe::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Authorship" { + return Ok(Call::Authorship( + authorship::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Indices" { + return Ok(Call::Indices(indices::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Balances" { + return Ok(Call::Balances( + balances::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ElectionProviderMultiPhase" { + return Ok(Call::ElectionProviderMultiPhase( + election_provider_multi_phase::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Call::Staking(staking::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Session" { + return Ok(Call::Session(session::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Democracy" { + return Ok(Call::Democracy( + democracy::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Council" { + return Ok(Call::Council(council::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Elections" { + return Ok(Call::Elections( + elections::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Grandpa" { + return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Treasury" { + return Ok(Call::Treasury( + treasury::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Utility" { + return Ok(Call::Utility(utility::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Multisig" { + return Ok(Call::Multisig( + multisig::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Scheduler" { + return Ok(Call::Scheduler( + scheduler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Preimage" { + return Ok(Call::Preimage( + preimage::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Proxy" { + return Ok(Call::Proxy(proxy::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Assets" { + return Ok(Call::Assets(assets::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Sudo" { + return Ok(Call::Sudo(sudo::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "ImOnline" { + return Ok(Call::ImOnline( + im_online::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Bounties" { + return Ok(Call::Bounties( + bounties::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ChildBounties" { + return Ok(Call::ChildBounties( + child_bounties::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BagsList" { + return Ok(Call::BagsList( + bags_list::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "NominationPools" { + return Ok(Call::NominationPools( + nomination_pools::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "HasherBn254" { + return Ok(Call::HasherBn254( + hasher_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "AssetRegistry" { + return Ok(Call::AssetRegistry( + asset_registry::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Currencies" { + return Ok(Call::Currencies( + currencies::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Tokens" { + return Ok(Call::Tokens(tokens::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "TokenWrapper" { + return Ok(Call::TokenWrapper( + token_wrapper::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TokenWrapperHandler" { + return Ok(Call::TokenWrapperHandler( + token_wrapper_handler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerVerifierBn254" { + return Ok(Call::MixerVerifierBn254( + mixer_verifier_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorVerifier" { + return Ok(Call::VAnchorVerifier( + v_anchor_verifier::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MerkleTreeBn254" { + return Ok(Call::MerkleTreeBn254( + merkle_tree_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "LinkableTreeBn254" { + return Ok(Call::LinkableTreeBn254( + linkable_tree_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerBn254" { + return Ok(Call::MixerBn254( + mixer_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorBn254" { + return Ok(Call::VAnchorBn254( + v_anchor_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorHandlerBn254" { + return Ok(Call::VAnchorHandlerBn254( + v_anchor_handler_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "SignatureBridge" { + return Ok(Call::SignatureBridge( + signature_bridge::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "RelayerRegistry" { + return Ok(Call::RelayerRegistry( + relayer_registry::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "KeyStorage" { + return Ok(Call::KeyStorage( + key_storage::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Call enum", + pallet_name + )) + .into()) + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Error { + #[codec(index = 0)] + System(system::Error), + #[codec(index = 3)] + Babe(babe::Error), + #[codec(index = 4)] + Authorship(authorship::Error), + #[codec(index = 5)] + Indices(indices::Error), + #[codec(index = 6)] + Balances(balances::Error), + #[codec(index = 9)] + ElectionProviderMultiPhase(election_provider_multi_phase::Error), + #[codec(index = 10)] + Staking(staking::Error), + #[codec(index = 11)] + Session(session::Error), + #[codec(index = 12)] + Democracy(democracy::Error), + #[codec(index = 13)] + Council(council::Error), + #[codec(index = 14)] + Elections(elections::Error), + #[codec(index = 15)] + Grandpa(grandpa::Error), + #[codec(index = 16)] + Treasury(treasury::Error), + #[codec(index = 17)] + Utility(utility::Error), + #[codec(index = 18)] + Multisig(multisig::Error), + #[codec(index = 19)] + Scheduler(scheduler::Error), + #[codec(index = 20)] + Preimage(preimage::Error), + #[codec(index = 21)] + Proxy(proxy::Error), + #[codec(index = 22)] + Assets(assets::Error), + #[codec(index = 23)] + Sudo(sudo::Error), + #[codec(index = 24)] + ImOnline(im_online::Error), + #[codec(index = 28)] + Bounties(bounties::Error), + #[codec(index = 29)] + ChildBounties(child_bounties::Error), + #[codec(index = 30)] + BagsList(bags_list::Error), + #[codec(index = 31)] + NominationPools(nomination_pools::Error), + #[codec(index = 32)] + HasherBn254(hasher_bn254::Error), + #[codec(index = 33)] + AssetRegistry(asset_registry::Error), + #[codec(index = 34)] + Currencies(currencies::Error), + #[codec(index = 35)] + Tokens(tokens::Error), + #[codec(index = 36)] + TokenWrapper(token_wrapper::Error), + #[codec(index = 37)] + TokenWrapperHandler(token_wrapper_handler::Error), + #[codec(index = 38)] + MixerVerifierBn254(mixer_verifier_bn254::Error), + #[codec(index = 39)] + VAnchorVerifier(v_anchor_verifier::Error), + #[codec(index = 40)] + MerkleTreeBn254(merkle_tree_bn254::Error), + #[codec(index = 41)] + LinkableTreeBn254(linkable_tree_bn254::Error), + #[codec(index = 42)] + MixerBn254(mixer_bn254::Error), + #[codec(index = 43)] + VAnchorBn254(v_anchor_bn254::Error), + #[codec(index = 44)] + VAnchorHandlerBn254(v_anchor_handler_bn254::Error), + #[codec(index = 45)] + SignatureBridge(signature_bridge::Error), + #[codec(index = 46)] + RelayerRegistry(relayer_registry::Error), + #[codec(index = 47)] + KeyStorage(key_storage::Error), + } + impl ::subxt::error::RootError for Error { + fn root_error( + pallet_bytes: &[u8], + pallet_name: &str, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + let cursor = &mut &pallet_bytes[..]; + if pallet_name == "System" { + let variant_error = system::Error::decode_with_metadata( + cursor, 136u32, metadata, + )?; + return Ok(Error::System(variant_error)); + } + if pallet_name == "Babe" { + let variant_error = babe::Error::decode_with_metadata( + cursor, 161u32, metadata, + )?; + return Ok(Error::Babe(variant_error)); + } + if pallet_name == "Authorship" { + let variant_error = authorship::Error::decode_with_metadata( + cursor, 167u32, metadata, + )?; + return Ok(Error::Authorship(variant_error)); + } + if pallet_name == "Indices" { + let variant_error = indices::Error::decode_with_metadata( + cursor, 172u32, metadata, + )?; + return Ok(Error::Indices(variant_error)); + } + if pallet_name == "Balances" { + let variant_error = balances::Error::decode_with_metadata( + cursor, 181u32, metadata, + )?; + return Ok(Error::Balances(variant_error)); + } + if pallet_name == "ElectionProviderMultiPhase" { + let variant_error = + election_provider_multi_phase::Error::decode_with_metadata( + cursor, 255u32, metadata, + )?; + return Ok(Error::ElectionProviderMultiPhase(variant_error)); + } + if pallet_name == "Staking" { + let variant_error = staking::Error::decode_with_metadata( + cursor, 288u32, metadata, + )?; + return Ok(Error::Staking(variant_error)); + } + if pallet_name == "Session" { + let variant_error = session::Error::decode_with_metadata( + cursor, 296u32, metadata, + )?; + return Ok(Error::Session(variant_error)); + } + if pallet_name == "Democracy" { + let variant_error = democracy::Error::decode_with_metadata( + cursor, 426u32, metadata, + )?; + return Ok(Error::Democracy(variant_error)); + } + if pallet_name == "Council" { + let variant_error = council::Error::decode_with_metadata( + cursor, 429u32, metadata, + )?; + return Ok(Error::Council(variant_error)); + } + if pallet_name == "Elections" { + let variant_error = elections::Error::decode_with_metadata( + cursor, 433u32, metadata, + )?; + return Ok(Error::Elections(variant_error)); + } + if pallet_name == "Grandpa" { + let variant_error = grandpa::Error::decode_with_metadata( + cursor, 437u32, metadata, + )?; + return Ok(Error::Grandpa(variant_error)); + } + if pallet_name == "Treasury" { + let variant_error = treasury::Error::decode_with_metadata( + cursor, 442u32, metadata, + )?; + return Ok(Error::Treasury(variant_error)); + } + if pallet_name == "Utility" { + let variant_error = utility::Error::decode_with_metadata( + cursor, 443u32, metadata, + )?; + return Ok(Error::Utility(variant_error)); + } + if pallet_name == "Multisig" { + let variant_error = multisig::Error::decode_with_metadata( + cursor, 447u32, metadata, + )?; + return Ok(Error::Multisig(variant_error)); + } + if pallet_name == "Scheduler" { + let variant_error = scheduler::Error::decode_with_metadata( + cursor, 452u32, metadata, + )?; + return Ok(Error::Scheduler(variant_error)); + } + if pallet_name == "Preimage" { + let variant_error = preimage::Error::decode_with_metadata( + cursor, 457u32, metadata, + )?; + return Ok(Error::Preimage(variant_error)); + } + if pallet_name == "Proxy" { + let variant_error = proxy::Error::decode_with_metadata( + cursor, 466u32, metadata, + )?; + return Ok(Error::Proxy(variant_error)); + } + if pallet_name == "Assets" { + let variant_error = assets::Error::decode_with_metadata( + cursor, 475u32, metadata, + )?; + return Ok(Error::Assets(variant_error)); + } + if pallet_name == "Sudo" { + let variant_error = sudo::Error::decode_with_metadata( + cursor, 476u32, metadata, + )?; + return Ok(Error::Sudo(variant_error)); + } + if pallet_name == "ImOnline" { + let variant_error = im_online::Error::decode_with_metadata( + cursor, 484u32, metadata, + )?; + return Ok(Error::ImOnline(variant_error)); + } + if pallet_name == "Bounties" { + let variant_error = bounties::Error::decode_with_metadata( + cursor, 490u32, metadata, + )?; + return Ok(Error::Bounties(variant_error)); + } + if pallet_name == "ChildBounties" { + let variant_error = + child_bounties::Error::decode_with_metadata( + cursor, 493u32, metadata, + )?; + return Ok(Error::ChildBounties(variant_error)); + } + if pallet_name == "BagsList" { + let variant_error = bags_list::Error::decode_with_metadata( + cursor, 497u32, metadata, + )?; + return Ok(Error::BagsList(variant_error)); + } + if pallet_name == "NominationPools" { + let variant_error = + nomination_pools::Error::decode_with_metadata( + cursor, 514u32, metadata, + )?; + return Ok(Error::NominationPools(variant_error)); + } + if pallet_name == "HasherBn254" { + let variant_error = hasher_bn254::Error::decode_with_metadata( + cursor, 516u32, metadata, + )?; + return Ok(Error::HasherBn254(variant_error)); + } + if pallet_name == "AssetRegistry" { + let variant_error = + asset_registry::Error::decode_with_metadata( + cursor, 519u32, metadata, + )?; + return Ok(Error::AssetRegistry(variant_error)); + } + if pallet_name == "Currencies" { + let variant_error = currencies::Error::decode_with_metadata( + cursor, 520u32, metadata, + )?; + return Ok(Error::Currencies(variant_error)); + } + if pallet_name == "Tokens" { + let variant_error = tokens::Error::decode_with_metadata( + cursor, 528u32, metadata, + )?; + return Ok(Error::Tokens(variant_error)); + } + if pallet_name == "TokenWrapper" { + let variant_error = token_wrapper::Error::decode_with_metadata( + cursor, 529u32, metadata, + )?; + return Ok(Error::TokenWrapper(variant_error)); + } + if pallet_name == "TokenWrapperHandler" { + let variant_error = + token_wrapper_handler::Error::decode_with_metadata( + cursor, 530u32, metadata, + )?; + return Ok(Error::TokenWrapperHandler(variant_error)); + } + if pallet_name == "MixerVerifierBn254" { + let variant_error = + mixer_verifier_bn254::Error::decode_with_metadata( + cursor, 531u32, metadata, + )?; + return Ok(Error::MixerVerifierBn254(variant_error)); + } + if pallet_name == "VAnchorVerifier" { + let variant_error = + v_anchor_verifier::Error::decode_with_metadata( + cursor, 532u32, metadata, + )?; + return Ok(Error::VAnchorVerifier(variant_error)); + } + if pallet_name == "MerkleTreeBn254" { + let variant_error = + merkle_tree_bn254::Error::decode_with_metadata( + cursor, 537u32, metadata, + )?; + return Ok(Error::MerkleTreeBn254(variant_error)); + } + if pallet_name == "LinkableTreeBn254" { + let variant_error = + linkable_tree_bn254::Error::decode_with_metadata( + cursor, 541u32, metadata, + )?; + return Ok(Error::LinkableTreeBn254(variant_error)); + } + if pallet_name == "MixerBn254" { + let variant_error = mixer_bn254::Error::decode_with_metadata( + cursor, 544u32, metadata, + )?; + return Ok(Error::MixerBn254(variant_error)); + } + if pallet_name == "VAnchorBn254" { + let variant_error = + v_anchor_bn254::Error::decode_with_metadata( + cursor, 546u32, metadata, + )?; + return Ok(Error::VAnchorBn254(variant_error)); + } + if pallet_name == "VAnchorHandlerBn254" { + let variant_error = + v_anchor_handler_bn254::Error::decode_with_metadata( + cursor, 547u32, metadata, + )?; + return Ok(Error::VAnchorHandlerBn254(variant_error)); + } + if pallet_name == "SignatureBridge" { + let variant_error = + signature_bridge::Error::decode_with_metadata( + cursor, 548u32, metadata, + )?; + return Ok(Error::SignatureBridge(variant_error)); + } + if pallet_name == "RelayerRegistry" { + let variant_error = + relayer_registry::Error::decode_with_metadata( + cursor, 551u32, metadata, + )?; + return Ok(Error::RelayerRegistry(variant_error)); + } + if pallet_name == "KeyStorage" { + let variant_error = key_storage::Error::decode_with_metadata( + cursor, 555u32, metadata, + )?; + return Ok(Error::KeyStorage(variant_error)); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Error enum", + pallet_name + )) + .into()) + } + } + 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; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Remark { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetHeapPages { - pub pages: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetCode { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetCodeWithoutChecks { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetStorage { - pub items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillStorage { - pub keys: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillPrefix { - pub prefix: ::std::vec::Vec<::core::primitive::u8>, - pub subkeys: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemarkWithEvent { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - pub fn remark( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "remark", - Remark { remark }, - [ - 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, - 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, - 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, - 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, - 181u8, 129u8, 160u8, - ], - ) - } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub fn set_heap_pages( - &self, - pages: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_heap_pages", - SetHeapPages { pages }, - [ - 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, - 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, - 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, - 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, - 86u8, 87u8, - ], - ) - } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - pub fn set_code( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_code", - SetCode { code }, - [ - 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, - 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, - 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, - 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, - 14u8, 40u8, - ], - ) - } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - pub fn set_code_without_checks( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_code_without_checks", - SetCodeWithoutChecks { code }, - [ - 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, - 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, - 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, - 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, - 99u8, 216u8, - ], - ) - } - #[doc = "Set some items of storage."] - pub fn set_storage( - &self, - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_storage", - SetStorage { items }, - [ - 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, - 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, - 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, - 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, - 191u8, 22u8, 116u8, - ], - ) - } - #[doc = "Kill some items from storage."] - pub fn kill_storage( - &self, - keys: ::std::vec::Vec< - ::std::vec::Vec<::core::primitive::u8>, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "kill_storage", - KillStorage { keys }, - [ - 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, - 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, - 70u8, 19u8, 108u8, 209u8, 41u8, 228u8, 67u8, 130u8, - 230u8, 160u8, 207u8, 11u8, 180u8, 139u8, 242u8, - 41u8, 15u8, - ], - ) - } - #[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: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "kill_prefix", - KillPrefix { prefix, subkeys }, - [ - 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, - 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, - 115u8, 187u8, 218u8, 129u8, 34u8, 80u8, 4u8, 173u8, - 120u8, 92u8, 35u8, 237u8, 112u8, 201u8, 207u8, - 200u8, 48u8, - ], - ) - } - #[doc = "Make some on-chain remark and emit event."] - pub fn remark_with_event( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "remark_with_event", - RemarkWithEvent { remark }, - [ - 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, - 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, - 158u8, 14u8, 213u8, 56u8, 225u8, 136u8, 88u8, 26u8, - 114u8, 178u8, 43u8, 176u8, 43u8, 240u8, 84u8, - 116u8, 46u8, - ], - ) - } - } + use ::subxt::ext::codec::Encode; + pub struct RuntimeApi; + impl RuntimeApi {} + } + pub struct ConstantsApi; + impl ConstantsApi { + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi } - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An extrinsic completed successfully."] - pub struct ExtrinsicSuccess { - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicSuccess { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicSuccess"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An extrinsic failed."] - pub struct ExtrinsicFailed { - pub dispatch_error: runtime_types::sp_runtime::DispatchError, - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicFailed { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "`:code` was updated."] - pub struct CodeUpdated; - impl ::subxt::events::StaticEvent for CodeUpdated { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "CodeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new account was created."] - pub struct NewAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for NewAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "NewAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was reaped."] - pub struct KilledAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for KilledAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "KilledAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "On on-chain remark happened."] - pub struct Remarked { - pub sender: ::subxt::utils::AccountId32, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Remarked { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "Remarked"; - } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { + timestamp::constants::ConstantsApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The full account information for a particular account ID."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) - } - #[doc = " The full account information for a particular account ID."] pub fn account_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Account", - Vec::new(), - [ - 176u8, 187u8, 21u8, 220u8, 159u8, 204u8, 127u8, - 14u8, 21u8, 69u8, 77u8, 114u8, 230u8, 141u8, 107u8, - 79u8, 23u8, 16u8, 174u8, 243u8, 252u8, 42u8, 65u8, - 120u8, 229u8, 38u8, 210u8, 255u8, 22u8, 40u8, - 109u8, 223u8, - ], - ) - } - #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ExtrinsicCount", - vec![], - [ - 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, - 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, - 249u8, 8u8, 225u8, 28u8, 232u8, 4u8, 136u8, 41u8, - 151u8, 82u8, 189u8, 149u8, 49u8, 166u8, 139u8, 9u8, - 163u8, 231u8, - ], - ) - } - #[doc = " The current weight for the block."] pub fn block_weight (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: sp_weights :: weight_v2 :: Weight > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "BlockWeight", - vec![], - [ - 120u8, 67u8, 71u8, 163u8, 36u8, 202u8, 52u8, 106u8, - 143u8, 155u8, 144u8, 87u8, 142u8, 241u8, 232u8, - 183u8, 56u8, 235u8, 27u8, 237u8, 20u8, 202u8, 33u8, - 85u8, 189u8, 0u8, 28u8, 52u8, 198u8, 40u8, 219u8, - 54u8, - ], - ) - } - #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "AllExtrinsicsLen", - vec![], - [ - 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, - 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, - 32u8, 117u8, 96u8, 149u8, 53u8, 145u8, 219u8, 64u8, - 234u8, 18u8, 217u8, 200u8, 203u8, 141u8, 145u8, - 28u8, 134u8, 60u8, - ], - ) - } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [208u8 , 90u8 , 9u8 , 85u8 , 0u8 , 40u8 , 80u8 , 160u8 , 135u8 , 204u8 , 83u8 , 145u8 , 18u8 , 16u8 , 7u8 , 118u8 , 213u8 , 100u8 , 26u8 , 239u8 , 198u8 , 149u8 , 188u8 , 207u8 , 66u8 , 28u8 , 157u8 , 229u8 , 187u8 , 143u8 , 223u8 , 138u8 ,]) - } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "BlockHash", - Vec::new(), - [ - 208u8, 90u8, 9u8, 85u8, 0u8, 40u8, 80u8, 160u8, - 135u8, 204u8, 83u8, 145u8, 18u8, 16u8, 7u8, 118u8, - 213u8, 100u8, 26u8, 239u8, 198u8, 149u8, 188u8, - 207u8, 66u8, 28u8, 157u8, 229u8, 187u8, 143u8, - 223u8, 138u8, - ], - ) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ExtrinsicData", - Vec::new(), - [ - 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, - 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, - 31u8, 229u8, 168u8, 125u8, 98u8, 23u8, 241u8, 59u8, - 49u8, 86u8, 126u8, 9u8, 114u8, 163u8, 160u8, 62u8, - 50u8, 67u8, - ], - ) - } - #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Number", - vec![], - [ - 9u8, 143u8, 246u8, 146u8, 99u8, 116u8, 84u8, 22u8, - 199u8, 223u8, 48u8, 145u8, 245u8, 95u8, 225u8, - 149u8, 107u8, 46u8, 237u8, 158u8, 12u8, 135u8, - 104u8, 253u8, 72u8, 139u8, 178u8, 15u8, 25u8, 78u8, - 5u8, 207u8, - ], - ) - } - #[doc = " Hash of the previous block."] pub fn parent_hash (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ParentHash", - vec![], - [ - 232u8, 206u8, 177u8, 119u8, 38u8, 57u8, 233u8, - 50u8, 225u8, 49u8, 169u8, 176u8, 210u8, 51u8, - 231u8, 176u8, 234u8, 186u8, 188u8, 112u8, 15u8, - 152u8, 195u8, 232u8, 201u8, 97u8, 208u8, 249u8, - 9u8, 163u8, 69u8, 36u8, - ], - ) - } - #[doc = " Digest of the current block, also part of the block header."] pub fn digest (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_runtime :: generic :: digest :: Digest > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Digest", - vec![], - [ - 83u8, 141u8, 200u8, 132u8, 182u8, 55u8, 197u8, - 122u8, 13u8, 159u8, 31u8, 42u8, 60u8, 191u8, 89u8, - 221u8, 242u8, 47u8, 199u8, 213u8, 48u8, 216u8, - 131u8, 168u8, 245u8, 82u8, 56u8, 190u8, 62u8, 69u8, - 96u8, 37u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: webb_standalone_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Events", - vec![], - [ - 244u8, 79u8, 231u8, 71u8, 196u8, 5u8, 210u8, 76u8, - 218u8, 0u8, 255u8, 211u8, 238u8, 91u8, 64u8, 61u8, - 56u8, 163u8, 242u8, 224u8, 189u8, 233u8, 146u8, - 213u8, 24u8, 20u8, 68u8, 187u8, 244u8, 80u8, 180u8, - 216u8, - ], - ) - } - #[doc = " The number of events in the `Events` list."] pub fn event_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "EventCount", - vec![], - [ - 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, - 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, - 227u8, 9u8, 249u8, 25u8, 202u8, 185u8, 161u8, - 144u8, 167u8, 104u8, 127u8, 187u8, 38u8, 18u8, - 52u8, 61u8, 66u8, 112u8, - ], - ) - } - #[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 `(T::BlockNumber, 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 :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u64 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [53u8 , 63u8 , 144u8 , 127u8 , 156u8 , 40u8 , 137u8 , 72u8 , 156u8 , 219u8 , 147u8 , 209u8 , 38u8 , 22u8 , 8u8 , 70u8 , 128u8 , 101u8 , 202u8 , 79u8 , 235u8 , 239u8 , 54u8 , 249u8 , 185u8 , 219u8 , 167u8 , 38u8 , 249u8 , 130u8 , 134u8 , 179u8 ,]) - } - #[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 `(T::BlockNumber, 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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u64 , :: core :: primitive :: u32 ,) > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "EventTopics", - Vec::new(), - [ - 53u8, 63u8, 144u8, 127u8, 156u8, 40u8, 137u8, 72u8, - 156u8, 219u8, 147u8, 209u8, 38u8, 22u8, 8u8, 70u8, - 128u8, 101u8, 202u8, 79u8, 235u8, 239u8, 54u8, - 249u8, 185u8, 219u8, 167u8, 38u8, 249u8, 130u8, - 134u8, 179u8, - ], - ) - } - #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: LastRuntimeUpgradeInfo > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "LastRuntimeUpgrade", - vec![], - [ - 52u8, 37u8, 117u8, 111u8, 57u8, 130u8, 196u8, 14u8, - 99u8, 77u8, 91u8, 126u8, 178u8, 249u8, 78u8, 34u8, - 9u8, 194u8, 92u8, 105u8, 113u8, 81u8, 185u8, 127u8, - 245u8, 184u8, 60u8, 29u8, 234u8, 182u8, 96u8, - 196u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "UpgradedToU32RefCount", - vec![], - [ - 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, - 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, - 59u8, 222u8, 141u8, 32u8, 107u8, 3u8, 114u8, 83u8, - 250u8, 180u8, 233u8, 152u8, 54u8, 187u8, 99u8, - 131u8, 204u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "UpgradedToTripleRefCount", - vec![], - [ - 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, - 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, - 18u8, 51u8, 105u8, 14u8, 230u8, 103u8, 155u8, - 246u8, 99u8, 53u8, 207u8, 225u8, 128u8, 186u8, - 76u8, 40u8, 185u8, - ], - ) - } - #[doc = " The execution phase of the block."] pub fn execution_phase (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: Phase > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ExecutionPhase", - vec![], - [ - 230u8, 183u8, 221u8, 135u8, 226u8, 223u8, 55u8, - 104u8, 138u8, 224u8, 103u8, 156u8, 222u8, 99u8, - 203u8, 199u8, 164u8, 168u8, 193u8, 133u8, 201u8, - 155u8, 63u8, 95u8, 17u8, 206u8, 165u8, 123u8, - 161u8, 33u8, 172u8, 93u8, - ], - ) - } - } + pub fn babe(&self) -> babe::constants::ConstantsApi { + babe::constants::ConstantsApi } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockWeights, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "BlockWeights", - [ - 118u8, 253u8, 239u8, 217u8, 145u8, 115u8, 85u8, - 86u8, 172u8, 248u8, 139u8, 32u8, 158u8, 126u8, - 172u8, 188u8, 197u8, 105u8, 145u8, 235u8, 171u8, - 50u8, 31u8, 225u8, 167u8, 187u8, 241u8, 87u8, 6u8, - 17u8, 234u8, 185u8, - ], - ) - } - #[doc = " The maximum length of a block (in bytes)."] - pub fn block_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockLength, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "BlockLength", - [ - 116u8, 184u8, 225u8, 228u8, 207u8, 203u8, 4u8, - 220u8, 234u8, 198u8, 150u8, 108u8, 205u8, 87u8, - 194u8, 131u8, 229u8, 51u8, 140u8, 4u8, 47u8, 12u8, - 200u8, 144u8, 153u8, 62u8, 51u8, 39u8, 138u8, - 205u8, 203u8, 236u8, - ], - ) - } - #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] - pub fn block_hash_count( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "BlockHashCount", - [ - 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 weight of runtime database operations the runtime can invoke."] - pub fn db_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::RuntimeDbWeight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "DbWeight", - [ - 124u8, 162u8, 190u8, 149u8, 49u8, 177u8, 162u8, - 231u8, 62u8, 167u8, 199u8, 181u8, 43u8, 232u8, - 185u8, 116u8, 195u8, 51u8, 233u8, 223u8, 20u8, - 129u8, 246u8, 13u8, 65u8, 180u8, 64u8, 9u8, 157u8, - 59u8, 245u8, 118u8, - ], - ) - } - #[doc = " Get the chain's current version."] - pub fn version( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_version::RuntimeVersion, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "Version", - [ - 93u8, 98u8, 57u8, 243u8, 229u8, 8u8, 234u8, 231u8, - 72u8, 230u8, 139u8, 47u8, 63u8, 181u8, 17u8, 2u8, - 220u8, 231u8, 104u8, 237u8, 185u8, 143u8, 165u8, - 253u8, 188u8, 76u8, 147u8, 12u8, 170u8, 26u8, 74u8, - 200u8, - ], - ) - } - #[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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 fn authorship(&self) -> authorship::constants::ConstantsApi { + authorship::constants::ConstantsApi } - } - pub mod randomness_collective_flip { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] - #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] - #[doc = " the oldest hash."] pub fn random_material (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "RandomnessCollectiveFlip", - "RandomMaterial", - vec![], - [ - 152u8, 126u8, 73u8, 88u8, 54u8, 147u8, 6u8, 19u8, - 214u8, 40u8, 159u8, 30u8, 236u8, 61u8, 240u8, 65u8, - 178u8, 94u8, 146u8, 152u8, 135u8, 252u8, 160u8, - 86u8, 123u8, 114u8, 251u8, 140u8, 98u8, 143u8, - 217u8, 242u8, - ], - ) - } - } + pub fn indices(&self) -> indices::constants::ConstantsApi { + indices::constants::ConstantsApi } - } - pub mod timestamp { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Set { - #[codec(compact)] - pub now: ::core::primitive::u64, - } - 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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[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)`."] - #[doc = "# "] - pub fn set( - &self, - now: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Timestamp", - "set", - Set { now }, - [ - 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, - 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, - 33u8, 187u8, 17u8, 166u8, 88u8, 127u8, 214u8, - 182u8, 51u8, 168u8, 88u8, 43u8, 101u8, 185u8, 8u8, - 1u8, 28u8, - ], - ) - } - } + pub fn balances(&self) -> balances::constants::ConstantsApi { + balances::constants::ConstantsApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current time for the current block."] pub fn now (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Timestamp", - "Now", - vec![], - [ - 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, - 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, - 39u8, 123u8, 106u8, 134u8, 202u8, 185u8, 83u8, - 85u8, 60u8, 41u8, 120u8, 96u8, 210u8, 34u8, 2u8, - 250u8, - ], - ) - } - #[doc = " Did the timestamp get updated in this block?"] pub fn did_update (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Timestamp", - "DidUpdate", - vec![], - [ - 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, - 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, - 16u8, 6u8, 39u8, 158u8, 167u8, 85u8, 27u8, 47u8, - 122u8, 73u8, 127u8, 26u8, 35u8, 168u8, 72u8, 204u8, - ], - ) - } - } + pub fn transaction_payment( + &self, + ) -> transaction_payment::constants::ConstantsApi { + transaction_payment::constants::ConstantsApi } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] - #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] - #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] - #[doc = " double this period on default settings."] - pub fn minimum_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::constants::ConstantsApi { + election_provider_multi_phase::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } + pub fn democracy(&self) -> democracy::constants::ConstantsApi { + democracy::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { + elections::constants::ConstantsApi + } + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { + grandpa::constants::ConstantsApi + } + pub fn treasury(&self) -> treasury::constants::ConstantsApi { + treasury::constants::ConstantsApi + } + pub fn utility(&self) -> utility::constants::ConstantsApi { + utility::constants::ConstantsApi + } + pub fn multisig(&self) -> multisig::constants::ConstantsApi { + multisig::constants::ConstantsApi + } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { + scheduler::constants::ConstantsApi + } + pub fn proxy(&self) -> proxy::constants::ConstantsApi { + proxy::constants::ConstantsApi + } + pub fn assets(&self) -> assets::constants::ConstantsApi { + assets::constants::ConstantsApi + } + pub fn im_online(&self) -> im_online::constants::ConstantsApi { + im_online::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 bags_list(&self) -> bags_list::constants::ConstantsApi { + bags_list::constants::ConstantsApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn asset_registry( + &self, + ) -> asset_registry::constants::ConstantsApi { + asset_registry::constants::ConstantsApi + } + pub fn currencies(&self) -> currencies::constants::ConstantsApi { + currencies::constants::ConstantsApi + } + pub fn tokens(&self) -> tokens::constants::ConstantsApi { + tokens::constants::ConstantsApi + } + pub fn token_wrapper(&self) -> token_wrapper::constants::ConstantsApi { + token_wrapper::constants::ConstantsApi + } + pub fn linkable_tree_bn254( + &self, + ) -> linkable_tree_bn254::constants::ConstantsApi { + linkable_tree_bn254::constants::ConstantsApi + } + pub fn mixer_bn254(&self) -> mixer_bn254::constants::ConstantsApi { + mixer_bn254::constants::ConstantsApi + } + pub fn v_anchor_bn254( + &self, + ) -> v_anchor_bn254::constants::ConstantsApi { + v_anchor_bn254::constants::ConstantsApi + } + pub fn signature_bridge( + &self, + ) -> signature_bridge::constants::ConstantsApi { + signature_bridge::constants::ConstantsApi + } + pub fn relayer_registry( + &self, + ) -> relayer_registry::constants::ConstantsApi { + relayer_registry::constants::ConstantsApi } } - pub mod babe { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PlanConfigChange { pub config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } - 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 : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Babe", - "report_equivocation", - ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 197u8, 69u8, 250u8, 137u8, 133u8, 235u8, 135u8, - 236u8, 50u8, 219u8, 142u8, 88u8, 122u8, 80u8, - 210u8, 52u8, 99u8, 118u8, 68u8, 177u8, 160u8, - 118u8, 208u8, 34u8, 128u8, 133u8, 135u8, 75u8, - 146u8, 212u8, 125u8, 97u8, - ], - ) - } - #[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 : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Babe", - "report_equivocation_unsigned", - ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 163u8, 128u8, 193u8, 185u8, 172u8, 43u8, 25u8, - 115u8, 211u8, 32u8, 4u8, 235u8, 28u8, 138u8, 48u8, - 111u8, 92u8, 30u8, 104u8, 29u8, 19u8, 163u8, 144u8, - 175u8, 243u8, 122u8, 217u8, 118u8, 101u8, 0u8, - 68u8, 147u8, - ], - ) - } - #[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 : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Babe", - "plan_config_change", - PlanConfigChange { config }, - [ - 229u8, 157u8, 41u8, 58u8, 56u8, 4u8, 52u8, 107u8, - 104u8, 20u8, 42u8, 110u8, 1u8, 17u8, 45u8, 196u8, - 30u8, 135u8, 63u8, 46u8, 40u8, 137u8, 209u8, 37u8, - 24u8, 108u8, 251u8, 189u8, 77u8, 208u8, 74u8, 32u8, - ], - ) - } - } + pub struct StorageApi; + impl StorageApi { + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current epoch index."] pub fn epoch_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "EpochIndex", - vec![], - [ - 51u8, 27u8, 91u8, 156u8, 118u8, 99u8, 46u8, 219u8, - 190u8, 147u8, 205u8, 23u8, 106u8, 169u8, 121u8, - 218u8, 208u8, 235u8, 135u8, 127u8, 243u8, 41u8, - 55u8, 243u8, 235u8, 122u8, 57u8, 86u8, 37u8, 90u8, - 208u8, 71u8, - ], - ) - } - #[doc = " Current epoch authorities."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "Authorities", - vec![], - [ - 61u8, 8u8, 133u8, 111u8, 169u8, 120u8, 0u8, 213u8, - 31u8, 159u8, 204u8, 212u8, 18u8, 205u8, 93u8, 84u8, - 140u8, 108u8, 136u8, 209u8, 234u8, 107u8, 145u8, - 9u8, 204u8, 224u8, 105u8, 9u8, 238u8, 241u8, 65u8, - 30u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_slots :: Slot > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "GenesisSlot", - vec![], - [ - 234u8, 127u8, 243u8, 100u8, 124u8, 160u8, 66u8, - 248u8, 48u8, 218u8, 61u8, 52u8, 54u8, 142u8, 158u8, - 77u8, 32u8, 63u8, 156u8, 39u8, 94u8, 255u8, 192u8, - 238u8, 170u8, 118u8, 58u8, 42u8, 199u8, 61u8, - 199u8, 77u8, - ], - ) - } - #[doc = " Current slot number."] pub fn current_slot (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_slots :: Slot > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "CurrentSlot", - vec![], - [ - 139u8, 237u8, 185u8, 137u8, 251u8, 179u8, 69u8, - 167u8, 133u8, 168u8, 204u8, 64u8, 178u8, 123u8, - 92u8, 250u8, 119u8, 190u8, 208u8, 178u8, 208u8, - 176u8, 124u8, 187u8, 74u8, 165u8, 33u8, 78u8, - 161u8, 206u8, 8u8, 108u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < [:: core :: primitive :: u8 ; 32usize] > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "Randomness", - vec![], - [ - 191u8, 197u8, 25u8, 164u8, 104u8, 248u8, 247u8, - 193u8, 244u8, 60u8, 181u8, 195u8, 248u8, 90u8, - 41u8, 199u8, 82u8, 123u8, 72u8, 126u8, 18u8, 17u8, - 128u8, 215u8, 34u8, 251u8, 227u8, 70u8, 166u8, - 10u8, 104u8, 140u8, - ], - ) - } - #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "PendingEpochConfigChange", - vec![], - [ - 4u8, 201u8, 0u8, 204u8, 47u8, 246u8, 4u8, 185u8, - 163u8, 242u8, 242u8, 152u8, 29u8, 222u8, 71u8, - 127u8, 49u8, 203u8, 206u8, 180u8, 244u8, 50u8, - 80u8, 49u8, 199u8, 97u8, 3u8, 170u8, 156u8, 139u8, - 106u8, 113u8, - ], - ) - } - #[doc = " Next epoch randomness."] pub fn next_randomness (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < [:: core :: primitive :: u8 ; 32usize] > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "NextRandomness", - vec![], - [ - 185u8, 98u8, 45u8, 109u8, 253u8, 38u8, 238u8, - 221u8, 240u8, 29u8, 38u8, 107u8, 118u8, 117u8, - 131u8, 115u8, 21u8, 255u8, 203u8, 81u8, 243u8, - 251u8, 91u8, 60u8, 163u8, 202u8, 125u8, 193u8, - 173u8, 234u8, 166u8, 92u8, - ], - ) - } - #[doc = " Next epoch authorities."] pub fn next_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "NextAuthorities", - vec![], - [ - 201u8, 193u8, 164u8, 18u8, 155u8, 253u8, 124u8, - 163u8, 143u8, 73u8, 212u8, 20u8, 241u8, 108u8, - 110u8, 5u8, 171u8, 66u8, 224u8, 208u8, 10u8, 65u8, - 148u8, 164u8, 1u8, 12u8, 216u8, 83u8, 20u8, 226u8, - 254u8, 183u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "SegmentIndex", - vec![], - [ - 128u8, 45u8, 87u8, 58u8, 174u8, 152u8, 241u8, - 156u8, 56u8, 192u8, 19u8, 45u8, 75u8, 160u8, 35u8, - 253u8, 145u8, 11u8, 178u8, 81u8, 114u8, 117u8, - 112u8, 107u8, 163u8, 208u8, 240u8, 151u8, 102u8, - 176u8, 246u8, 5u8, - ], - ) - } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < [:: core :: primitive :: u8 ; 32usize] > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Babe" , "UnderConstruction" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [180u8 , 4u8 , 149u8 , 245u8 , 231u8 , 92u8 , 99u8 , 170u8 , 254u8 , 172u8 , 182u8 , 3u8 , 152u8 , 156u8 , 132u8 , 196u8 , 140u8 , 97u8 , 7u8 , 84u8 , 220u8 , 89u8 , 195u8 , 177u8 , 235u8 , 51u8 , 98u8 , 144u8 , 73u8 , 238u8 , 59u8 , 164u8 ,]) - } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < [:: core :: primitive :: u8 ; 32usize] > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "UnderConstruction", - Vec::new(), - [ - 180u8, 4u8, 149u8, 245u8, 231u8, 92u8, 99u8, 170u8, - 254u8, 172u8, 182u8, 3u8, 152u8, 156u8, 132u8, - 196u8, 140u8, 97u8, 7u8, 84u8, 220u8, 89u8, 195u8, - 177u8, 235u8, 51u8, 98u8, 144u8, 73u8, 238u8, 59u8, - 164u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: option :: Option < runtime_types :: sp_consensus_babe :: digests :: PreDigest > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "Initialized", - vec![], - [ - 142u8, 101u8, 250u8, 113u8, 93u8, 201u8, 157u8, - 18u8, 166u8, 153u8, 59u8, 197u8, 107u8, 247u8, - 124u8, 110u8, 202u8, 67u8, 62u8, 57u8, 186u8, - 134u8, 49u8, 182u8, 149u8, 44u8, 255u8, 85u8, 87u8, - 177u8, 149u8, 121u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "AuthorVrfRandomness", - vec![], - [ - 66u8, 235u8, 74u8, 252u8, 222u8, 135u8, 19u8, 28u8, - 74u8, 191u8, 170u8, 197u8, 207u8, 127u8, 77u8, - 121u8, 138u8, 138u8, 110u8, 187u8, 34u8, 14u8, - 230u8, 43u8, 241u8, 241u8, 63u8, 163u8, 53u8, - 179u8, 250u8, 247u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , :: core :: primitive :: u64 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "EpochStart", - vec![], - [ - 108u8, 16u8, 132u8, 125u8, 122u8, 198u8, 22u8, - 251u8, 231u8, 157u8, 74u8, 188u8, 193u8, 42u8, - 78u8, 83u8, 108u8, 207u8, 49u8, 166u8, 105u8, - 143u8, 25u8, 87u8, 145u8, 240u8, 229u8, 211u8, - 90u8, 43u8, 22u8, 197u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "Lateness", - vec![], - [ - 8u8, 9u8, 112u8, 117u8, 174u8, 35u8, 125u8, 86u8, - 41u8, 12u8, 7u8, 240u8, 27u8, 162u8, 6u8, 167u8, - 143u8, 69u8, 140u8, 109u8, 99u8, 209u8, 105u8, - 65u8, 240u8, 79u8, 76u8, 4u8, 3u8, 55u8, 157u8, - 40u8, - ], - ) - } - #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] - #[doc = " genesis."] pub fn epoch_config (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_babe :: BabeEpochConfiguration > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "EpochConfig", - vec![], - [ - 41u8, 118u8, 141u8, 244u8, 72u8, 17u8, 125u8, - 203u8, 43u8, 153u8, 203u8, 119u8, 117u8, 223u8, - 123u8, 133u8, 73u8, 235u8, 130u8, 21u8, 160u8, - 167u8, 16u8, 173u8, 177u8, 35u8, 117u8, 97u8, - 149u8, 49u8, 220u8, 24u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_babe :: BabeEpochConfiguration > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Babe", - "NextEpochConfig", - vec![], - [ - 111u8, 182u8, 144u8, 180u8, 92u8, 146u8, 102u8, - 249u8, 196u8, 229u8, 226u8, 30u8, 25u8, 198u8, - 133u8, 9u8, 136u8, 95u8, 11u8, 151u8, 139u8, 156u8, - 105u8, 228u8, 181u8, 12u8, 175u8, 148u8, 174u8, - 33u8, 233u8, 228u8, - ], - ) - } - } + pub fn randomness_collective_flip( + &self, + ) -> randomness_collective_flip::storage::StorageApi { + randomness_collective_flip::storage::StorageApi } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi } - } - pub mod authorship { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetUncles { - pub new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Provide a set of uncles."] - pub fn set_uncles( - &self, - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Authorship", - "set_uncles", - SetUncles { new_uncles }, - [ - 145u8, 151u8, 19u8, 25u8, 215u8, 52u8, 2u8, 133u8, - 36u8, 96u8, 254u8, 251u8, 120u8, 238u8, 183u8, - 33u8, 150u8, 5u8, 102u8, 122u8, 28u8, 51u8, 248u8, - 21u8, 160u8, 196u8, 111u8, 159u8, 145u8, 71u8, - 144u8, 126u8, - ], - ) - } - } + pub fn babe(&self) -> babe::storage::StorageApi { + babe::storage::StorageApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Uncles"] pub fn uncles (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_authorship :: UncleEntryItem < :: core :: primitive :: u64 , :: subxt :: utils :: H256 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Authorship", - "Uncles", - vec![], - [ - 111u8, 12u8, 34u8, 219u8, 27u8, 243u8, 210u8, 10u8, - 36u8, 166u8, 107u8, 2u8, 103u8, 149u8, 185u8, 83u8, - 221u8, 138u8, 173u8, 172u8, 176u8, 136u8, 106u8, - 169u8, 49u8, 254u8, 21u8, 45u8, 70u8, 228u8, 127u8, - 30u8, - ], - ) - } - #[doc = " Author of current block."] pub fn author (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Authorship", - "Author", - vec![], - [ - 149u8, 42u8, 33u8, 147u8, 190u8, 207u8, 174u8, - 227u8, 190u8, 110u8, 25u8, 131u8, 5u8, 167u8, - 237u8, 188u8, 188u8, 33u8, 177u8, 126u8, 181u8, - 49u8, 126u8, 118u8, 46u8, 128u8, 154u8, 95u8, 15u8, - 91u8, 103u8, 113u8, - ], - ) - } - #[doc = " Whether uncles were already set in this block."] pub fn did_set_uncles (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Authorship", - "DidSetUncles", - vec![], - [ - 64u8, 3u8, 208u8, 187u8, 50u8, 45u8, 37u8, 88u8, - 163u8, 226u8, 37u8, 126u8, 232u8, 107u8, 156u8, - 187u8, 29u8, 15u8, 53u8, 46u8, 28u8, 73u8, 83u8, - 123u8, 14u8, 244u8, 243u8, 43u8, 245u8, 143u8, - 15u8, 115u8, - ], - ) - } - } + pub fn authorship(&self) -> authorship::storage::StorageApi { + authorship::storage::StorageApi } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The number of blocks back we should accept uncles."] - #[doc = " This means that we will deal with uncle-parents that are"] - #[doc = " `UncleGenerations + 1` before `now`."] - pub fn uncle_generations( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Authorship", - "UncleGenerations", - [ - 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 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 asset_tx_payment( + &self, + ) -> asset_tx_payment::storage::StorageApi { + asset_tx_payment::storage::StorageApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::storage::StorageApi { + election_provider_multi_phase::storage::StorageApi + } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } + pub fn proxy(&self) -> proxy::storage::StorageApi { + proxy::storage::StorageApi + } + pub fn assets(&self) -> assets::storage::StorageApi { + assets::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } + pub fn offences(&self) -> offences::storage::StorageApi { + offences::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 bags_list(&self) -> bags_list::storage::StorageApi { + bags_list::storage::StorageApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn hasher_bn254(&self) -> hasher_bn254::storage::StorageApi { + hasher_bn254::storage::StorageApi + } + pub fn asset_registry(&self) -> asset_registry::storage::StorageApi { + asset_registry::storage::StorageApi + } + pub fn tokens(&self) -> tokens::storage::StorageApi { + tokens::storage::StorageApi + } + pub fn token_wrapper(&self) -> token_wrapper::storage::StorageApi { + token_wrapper::storage::StorageApi + } + pub fn token_wrapper_handler( + &self, + ) -> token_wrapper_handler::storage::StorageApi { + token_wrapper_handler::storage::StorageApi + } + pub fn mixer_verifier_bn254( + &self, + ) -> mixer_verifier_bn254::storage::StorageApi { + mixer_verifier_bn254::storage::StorageApi + } + pub fn v_anchor_verifier( + &self, + ) -> v_anchor_verifier::storage::StorageApi { + v_anchor_verifier::storage::StorageApi + } + pub fn merkle_tree_bn254( + &self, + ) -> merkle_tree_bn254::storage::StorageApi { + merkle_tree_bn254::storage::StorageApi + } + pub fn linkable_tree_bn254( + &self, + ) -> linkable_tree_bn254::storage::StorageApi { + linkable_tree_bn254::storage::StorageApi + } + pub fn mixer_bn254(&self) -> mixer_bn254::storage::StorageApi { + mixer_bn254::storage::StorageApi + } + pub fn v_anchor_bn254(&self) -> v_anchor_bn254::storage::StorageApi { + v_anchor_bn254::storage::StorageApi + } + pub fn v_anchor_handler_bn254( + &self, + ) -> v_anchor_handler_bn254::storage::StorageApi { + v_anchor_handler_bn254::storage::StorageApi + } + pub fn signature_bridge( + &self, + ) -> signature_bridge::storage::StorageApi { + signature_bridge::storage::StorageApi + } + pub fn relayer_registry( + &self, + ) -> relayer_registry::storage::StorageApi { + relayer_registry::storage::StorageApi + } + pub fn key_storage(&self) -> key_storage::storage::StorageApi { + key_storage::storage::StorageApi } } - pub mod indices { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Claim { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Free { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Freeze { - pub index: ::core::primitive::u32, - } - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn claim( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "claim", - Claim { index }, - [ - 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, - 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, - 88u8, 196u8, 189u8, 244u8, 18u8, 233u8, 37u8, - 228u8, 248u8, 76u8, 175u8, 212u8, 233u8, 238u8, - 203u8, 162u8, 68u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] - pub fn transfer( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "transfer", - Transfer { new, index }, - [ - 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, - 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, - 154u8, 27u8, 34u8, 205u8, 188u8, 10u8, 169u8, - 203u8, 39u8, 2u8, 236u8, 181u8, 162u8, 115u8, - 254u8, 42u8, 28u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn free( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "free", - Free { index }, - [ - 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, - 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, - 74u8, 203u8, 235u8, 138u8, 255u8, 27u8, 163u8, - 71u8, 254u8, 217u8, 6u8, 208u8, 202u8, 204u8, - 238u8, 70u8, 126u8, 252u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] - pub fn force_transfer( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "force_transfer", - ForceTransfer { new, index, freeze }, - [ - 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, - 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, - 181u8, 172u8, 64u8, 37u8, 165u8, 121u8, 111u8, - 173u8, 224u8, 181u8, 79u8, 76u8, 134u8, 93u8, - 169u8, 65u8, 131u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn freeze( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "freeze", - Freeze { index }, - [ - 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, - 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, - 246u8, 149u8, 31u8, 168u8, 186u8, 208u8, 90u8, - 40u8, 47u8, 100u8, 228u8, 188u8, 33u8, 79u8, 220u8, - 105u8, 209u8, - ], - ) - } - } + pub struct TransactionApi; + impl TransactionApi { + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_indices::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A account index was assigned."] - pub struct IndexAssigned { - pub who: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexAssigned { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A account index has been freed up (unassigned)."] - pub struct IndexFreed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexFreed { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFreed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A account index has been frozen to its current account ID."] - pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IndexFrozen { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFrozen"; - } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { + timestamp::calls::TransactionApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The lookup from index to account."] pub fn accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) - } - #[doc = " The lookup from index to account."] pub fn accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Indices", - "Accounts", - Vec::new(), - [ - 211u8, 169u8, 54u8, 254u8, 88u8, 57u8, 22u8, 223u8, - 108u8, 27u8, 38u8, 9u8, 202u8, 209u8, 111u8, 209u8, - 144u8, 13u8, 211u8, 114u8, 239u8, 127u8, 75u8, - 166u8, 234u8, 222u8, 225u8, 35u8, 160u8, 163u8, - 112u8, 242u8, - ], - ) - } - } + pub fn babe(&self) -> babe::calls::TransactionApi { + babe::calls::TransactionApi } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 fn authorship(&self) -> authorship::calls::TransactionApi { + authorship::calls::TransactionApi } - } - pub mod balances { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub keep_alive: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub amount: ::core::primitive::u128, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "transfer", - Transfer { dest, value }, - [ - 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, - 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, - 66u8, 184u8, 27u8, 94u8, 176u8, 60u8, 233u8, 236u8, - 145u8, 218u8, 44u8, 138u8, 240u8, 224u8, 16u8, - 193u8, 220u8, 95u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "set_balance", - SetBalance { - who, - new_free, - new_reserved, - }, - [ - 174u8, 34u8, 80u8, 252u8, 193u8, 51u8, 228u8, - 236u8, 234u8, 16u8, 173u8, 214u8, 122u8, 21u8, - 254u8, 7u8, 49u8, 176u8, 18u8, 128u8, 122u8, 68u8, - 72u8, 181u8, 119u8, 90u8, 167u8, 46u8, 203u8, - 220u8, 109u8, 110u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "force_transfer", - ForceTransfer { - source, - dest, - value, - }, - [ - 56u8, 80u8, 186u8, 45u8, 134u8, 147u8, 200u8, 19u8, - 53u8, 221u8, 213u8, 32u8, 13u8, 51u8, 130u8, 42u8, - 244u8, 85u8, 50u8, 246u8, 189u8, 51u8, 93u8, 1u8, - 108u8, 142u8, 112u8, 245u8, 104u8, 255u8, 15u8, - 62u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "transfer_keep_alive", - TransferKeepAlive { dest, value }, - [ - 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, - 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, - 56u8, 217u8, 250u8, 21u8, 44u8, 239u8, 66u8, 79u8, - 99u8, 25u8, 106u8, 70u8, 226u8, 50u8, 255u8, 176u8, - 71u8, - ], - ) - } - #[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). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "transfer_all", - TransferAll { dest, keep_alive }, - [ - 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, - 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, - 53u8, 205u8, 112u8, 147u8, 88u8, 167u8, 197u8, - 32u8, 104u8, 117u8, 201u8, 168u8, 144u8, 230u8, - 120u8, 29u8, 122u8, 159u8, - ], - ) - } - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] - pub fn force_unreserve( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "force_unreserve", - ForceUnreserve { who, amount }, - [ - 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, - 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, - 46u8, 108u8, 136u8, 167u8, 145u8, 103u8, 65u8, - 33u8, 168u8, 36u8, 214u8, 126u8, 237u8, 180u8, - 61u8, 108u8, 110u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_balances::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - pub struct Deposit { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Withdraw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Slashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total units issued in the system."] pub fn total_issuance (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "TotalIssuance", - vec![], - [ - 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, - 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, - 187u8, 44u8, 84u8, 25u8, 164u8, 235u8, 20u8, 86u8, - 242u8, 124u8, 23u8, 28u8, 140u8, 26u8, 73u8, 231u8, - 51u8, - ], - ) - } - #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "InactiveIssuance", - vec![], - [ - 74u8, 203u8, 111u8, 142u8, 225u8, 104u8, 173u8, - 51u8, 226u8, 12u8, 85u8, 135u8, 41u8, 206u8, 177u8, - 238u8, 94u8, 246u8, 184u8, 250u8, 140u8, 213u8, - 91u8, 118u8, 163u8, 111u8, 211u8, 46u8, 204u8, - 160u8, 154u8, 21u8, - ], - ) - } - #[doc = " The Balances pallet example of storing the balance of an account."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " You can also store the balance of an account in the `System` pallet."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = System"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] - #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] - #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "Account", - Vec::new(), - [ - 246u8, 154u8, 253u8, 71u8, 192u8, 192u8, 192u8, - 236u8, 128u8, 80u8, 40u8, 252u8, 201u8, 43u8, 3u8, - 131u8, 19u8, 49u8, 141u8, 240u8, 172u8, 217u8, - 215u8, 109u8, 87u8, 135u8, 248u8, 57u8, 98u8, - 185u8, 22u8, 4u8, - ], - ) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "Locks", - Vec::new(), - [ - 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, - 244u8, 134u8, 195u8, 58u8, 255u8, 64u8, 153u8, - 212u8, 210u8, 232u8, 4u8, 122u8, 90u8, 212u8, - 136u8, 14u8, 127u8, 232u8, 8u8, 192u8, 40u8, 233u8, - 18u8, 250u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] pub fn reserves (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) - } - #[doc = " Named reserves on some account balances."] pub fn reserves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "Reserves", - Vec::new(), - [ - 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, - 42u8, 250u8, 128u8, 167u8, 117u8, 44u8, 85u8, 96u8, - 105u8, 216u8, 16u8, 147u8, 74u8, 55u8, 183u8, 94u8, - 160u8, 177u8, 26u8, 187u8, 71u8, 197u8, 187u8, - 163u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount required to keep an account open."] - pub fn existential_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod transaction_payment { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_transaction_payment::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TransactionFeePaid { - const PALLET: &'static str = "TransactionPayment"; - const EVENT: &'static str = "TransactionFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn next_fee_multiplier (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TransactionPayment", - "NextFeeMultiplier", - vec![], - [ - 210u8, 0u8, 206u8, 165u8, 183u8, 10u8, 206u8, 52u8, - 14u8, 90u8, 218u8, 197u8, 189u8, 125u8, 113u8, - 216u8, 52u8, 161u8, 45u8, 24u8, 245u8, 237u8, - 121u8, 41u8, 106u8, 29u8, 45u8, 129u8, 250u8, - 203u8, 206u8, 180u8, - ], - ) - } pub fn storage_version (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_transaction_payment :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TransactionPayment", - "StorageVersion", - vec![], - [ - 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, - 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, - 166u8, 11u8, 34u8, 12u8, 12u8, 198u8, 58u8, 191u8, - 186u8, 221u8, 221u8, 119u8, 181u8, 253u8, 154u8, - 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] - #[doc = " `priority`"] - #[doc = ""] - #[doc = " This value is multipled 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 asset_tx_payment { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_asset_tx_payment::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] - #[doc = "has been paid by `who` in an asset `asset_id`."] - pub struct AssetTxFeePaid { - pub who: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, - pub asset_id: ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::events::StaticEvent for AssetTxFeePaid { - const PALLET: &'static str = "AssetTxPayment"; - const EVENT: &'static str = "AssetTxFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi {} - } - } - pub mod election_provider_multi_phase { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct GovernanceFallback { - pub maybe_max_voters: - ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: - ::core::option::Option<::core::primitive::u32>, - } - 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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "submit_unsigned", - SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, - }, - [ - 100u8, 240u8, 31u8, 34u8, 93u8, 98u8, 93u8, 57u8, - 41u8, 197u8, 97u8, 58u8, 242u8, 10u8, 69u8, 250u8, - 185u8, 169u8, 21u8, 8u8, 202u8, 61u8, 36u8, 25u8, - 4u8, 148u8, 82u8, 56u8, 242u8, 18u8, 27u8, 219u8, - ], - ) - } - #[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: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "set_minimum_untrusted_score", - SetMinimumUntrustedScore { maybe_next_score }, - [ - 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, - 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, - 144u8, 74u8, 106u8, 15u8, 62u8, 196u8, 247u8, 49u8, - 20u8, 48u8, 3u8, 105u8, 85u8, 46u8, 76u8, 4u8, - 67u8, 81u8, - ], - ) - } - #[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: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "set_emergency_election_result", - SetEmergencyElectionResult { supports }, - [ - 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, - 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, - 54u8, 63u8, 251u8, 51u8, 214u8, 204u8, 55u8, 112u8, - 46u8, 228u8, 255u8, 250u8, 151u8, 5u8, 44u8, 133u8, - ], - ) - } - #[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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "submit", - Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - }, - [ - 220u8, 167u8, 40u8, 47u8, 253u8, 244u8, 72u8, - 124u8, 30u8, 123u8, 127u8, 227u8, 2u8, 66u8, 119u8, - 64u8, 211u8, 200u8, 210u8, 98u8, 248u8, 132u8, - 68u8, 25u8, 34u8, 182u8, 230u8, 225u8, 241u8, 58u8, - 193u8, 134u8, - ], - ) - } - #[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: ::core::option::Option< - ::core::primitive::u32, - >, - maybe_max_targets: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "governance_fallback", - GovernanceFallback { - maybe_max_voters, - maybe_max_targets, - }, - [ - 206u8, 247u8, 76u8, 85u8, 7u8, 24u8, 231u8, 226u8, - 192u8, 143u8, 43u8, 67u8, 91u8, 202u8, 88u8, 176u8, - 130u8, 1u8, 83u8, 229u8, 227u8, 200u8, 179u8, 4u8, - 113u8, 60u8, 99u8, 190u8, 53u8, 226u8, 142u8, - 182u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A solution was stored with the given compute."] - #[doc = ""] - #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] - #[doc = "solution is unsigned, this means that it has also been processed."] - #[doc = ""] - #[doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] - pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub prev_ejected : :: core :: primitive :: bool , } - impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The election has been finalized, with the given computation and score."] - pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } - impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An election failed."] - #[doc = ""] - #[doc = "Not much can be said about which computes failed in the process."] - pub struct ElectionFailed; - impl ::subxt::events::StaticEvent for ElectionFailed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has been rewarded for their signed submission being finalized."] - pub struct Rewarded { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has been slashed for submitting an invalid signed submission."] - pub struct Slashed { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The signed phase of the given round has started."] - pub struct SignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The unsigned phase of the given round has started."] - pub struct UnsignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for UnsignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; - } - } - pub mod storage { - use super::runtime_types; - 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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "Round", - vec![], - [ - 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, - 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, - 34u8, 44u8, 166u8, 188u8, 199u8, 210u8, 21u8, 19u8, - 70u8, 96u8, 139u8, 8u8, 53u8, 82u8, 165u8, 239u8, - ], - ) - } - #[doc = " Current phase."] pub fn current_phase (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "CurrentPhase", - vec![], - [ - 144u8, 190u8, 94u8, 47u8, 205u8, 116u8, 228u8, - 239u8, 155u8, 128u8, 246u8, 168u8, 192u8, 10u8, - 102u8, 179u8, 53u8, 210u8, 181u8, 63u8, 209u8, - 231u8, 100u8, 103u8, 249u8, 197u8, 171u8, 43u8, - 12u8, 42u8, 177u8, 234u8, - ], - ) - } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "QueuedSolution", - vec![], - [ - 11u8, 152u8, 13u8, 167u8, 204u8, 209u8, 171u8, - 249u8, 59u8, 250u8, 58u8, 152u8, 164u8, 121u8, - 146u8, 112u8, 241u8, 16u8, 159u8, 251u8, 209u8, - 251u8, 114u8, 29u8, 188u8, 30u8, 84u8, 71u8, 136u8, - 173u8, 145u8, 236u8, - ], - ) - } - #[doc = " Snapshot data of the round."] - #[doc = ""] - #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "Snapshot", - vec![], - [ - 239u8, 56u8, 191u8, 77u8, 150u8, 224u8, 248u8, - 88u8, 132u8, 224u8, 164u8, 83u8, 253u8, 36u8, 46u8, - 156u8, 72u8, 152u8, 36u8, 206u8, 72u8, 27u8, 226u8, - 87u8, 146u8, 220u8, 93u8, 178u8, 26u8, 115u8, - 232u8, 71u8, - ], - ) - } - #[doc = " Desired number of targets to elect for this round."] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn desired_targets (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "DesiredTargets", - vec![], - [ - 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, - 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, - 90u8, 140u8, 31u8, 210u8, 2u8, 116u8, 220u8, 231u8, - 115u8, 112u8, 118u8, 118u8, 68u8, 34u8, 151u8, - 165u8, - ], - ) - } - #[doc = " The metadata of the [`RoundSnapshot`]"] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SnapshotMetadata", - vec![], - [ - 135u8, 122u8, 60u8, 75u8, 194u8, 240u8, 187u8, - 96u8, 240u8, 203u8, 192u8, 22u8, 117u8, 148u8, - 118u8, 24u8, 240u8, 213u8, 94u8, 22u8, 194u8, 47u8, - 181u8, 245u8, 77u8, 149u8, 11u8, 251u8, 117u8, - 220u8, 205u8, 78u8, - ], - ) - } - #[doc = " The next index to be assigned to an incoming signed submission."] - #[doc = ""] - #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] - #[doc = " submission for the duration of the election. On election finalization, the next index is"] - #[doc = " reset to 0."] - #[doc = ""] - #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] - #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] - #[doc = " because iteration is slow. Instead, we store the value here."] pub fn signed_submission_next_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SignedSubmissionNextIndex", - vec![], - [ - 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, - 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, - 59u8, 42u8, 238u8, 115u8, 8u8, 6u8, 137u8, 45u8, - 2u8, 123u8, 187u8, 53u8, 215u8, 19u8, 129u8, 54u8, - 22u8, - ], - ) - } - #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] - #[doc = " value in `SignedSubmissions`."] - #[doc = ""] - #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] - #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] - #[doc = " them one at a time instead of reading and decoding all of them at once."] pub fn signed_submission_indices (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u64 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SignedSubmissionIndices", - vec![], - [ - 254u8, 6u8, 108u8, 182u8, 202u8, 49u8, 246u8, 66u8, - 54u8, 247u8, 159u8, 226u8, 113u8, 197u8, 237u8, - 229u8, 43u8, 237u8, 215u8, 69u8, 213u8, 50u8, 64u8, - 106u8, 61u8, 142u8, 113u8, 29u8, 209u8, 175u8, - 83u8, 214u8, - ], - ) - } - #[doc = " Unchecked, signed solutions."] - #[doc = ""] - #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] - #[doc = " allowing us to keep only a single one in memory at a time."] - #[doc = ""] - #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: webb_standalone_runtime :: NposSolution16 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: webb_standalone_runtime :: NposSolution16 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SignedSubmissionsMap", - Vec::new(), - [ - 84u8, 65u8, 205u8, 191u8, 143u8, 246u8, 239u8, - 27u8, 243u8, 54u8, 250u8, 8u8, 125u8, 32u8, 241u8, - 141u8, 210u8, 225u8, 56u8, 101u8, 241u8, 52u8, - 157u8, 29u8, 13u8, 155u8, 73u8, 132u8, 118u8, 53u8, - 2u8, 135u8, - ], - ) - } - #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] - #[doc = " feasible."] - #[doc = ""] - #[doc = " Can be set via `set_minimum_untrusted_score`."] pub fn minimum_untrusted_score (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_npos_elections :: ElectionScore > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "MinimumUntrustedScore", - vec![], - [ - 77u8, 235u8, 181u8, 45u8, 230u8, 12u8, 0u8, 179u8, - 152u8, 38u8, 74u8, 199u8, 47u8, 84u8, 85u8, 55u8, - 171u8, 226u8, 217u8, 125u8, 17u8, 194u8, 95u8, - 157u8, 73u8, 245u8, 75u8, 130u8, 248u8, 7u8, 53u8, - 226u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "UnsignedPhase", - [ - 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 = " Duration of the signed phase."] - pub fn signed_phase( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedPhase", - [ - 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 minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Signed phase."] - pub fn better_signed_threshold( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "BetterSignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Unsigned phase."] - pub fn better_unsigned_threshold( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "BetterUnsignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The repeat threshold of the offchain worker."] - #[doc = ""] - #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] - #[doc = " to submit the worker's solution."] - pub fn offchain_repeat( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "OffchainRepeat", - [ - 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 priority of the unsigned transaction submitted in the unsigned-phase"] - pub fn miner_tx_priority( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MinerTxPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - #[doc = " Maximum number of signed submissions that can be queued."] - #[doc = ""] - #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] - #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] - #[doc = " update this value during an election, you _must_ ensure that"] - #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] - #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub fn signed_max_submissions( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedMaxSubmissions", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum weight of a signed solution."] - #[doc = ""] - #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] - #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] - #[doc = " this value."] - pub fn signed_max_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] - pub fn signed_max_refunds( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedMaxRefunds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Base reward for a signed solution"] - pub fn signed_reward_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 = " Base deposit for a signed solution."] - pub fn signed_deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedDepositByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 electing voters to put in the snapshot. At the moment, snapshots"] - #[doc = " are only over a single block, but once multi-block elections are introduced they will"] - #[doc = " take place over multiple blocks."] - pub fn max_electing_voters( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MaxElectingVoters", - [ - 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 electable targets to put in the snapshot."] - pub fn max_electable_targets( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MaxElectableTargets", - [ - 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, - ], - ) - } - #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] - #[doc = " implementation."] - #[doc = ""] - #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MaxWinners", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MinerMaxLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MinerMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - pub fn miner_max_votes_per_voter( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 mod staking { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bond { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Chill; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNoEras; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNewEra; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNewEraAlways; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetStakingConfigs { - pub min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, - } - 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 = "# "] - #[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_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] - pub fn bond( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "bond", - Bond { - controller, - value, - payee, - }, - [ - 140u8, 13u8, 108u8, 181u8, 212u8, 177u8, 190u8, - 212u8, 163u8, 40u8, 120u8, 232u8, 126u8, 213u8, - 6u8, 181u8, 99u8, 252u8, 58u8, 54u8, 139u8, 64u8, - 67u8, 76u8, 53u8, 226u8, 11u8, 133u8, 235u8, 159u8, - 103u8, 210u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn bond_extra( - &self, - max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "bond_extra", - BondExtra { max_additional }, - [ - 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, - 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, - 252u8, 15u8, 19u8, 128u8, 11u8, 187u8, 4u8, 151u8, - 103u8, 143u8, 24u8, 33u8, 149u8, 82u8, 35u8, 192u8, - ], - ) - } - #[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: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "unbond", - Unbond { value }, - [ - 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, - 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, - 114u8, 230u8, 240u8, 146u8, 14u8, 109u8, 185u8, - 151u8, 148u8, 44u8, 147u8, 182u8, 192u8, 253u8, - 51u8, 87u8, - ], - ) - } - #[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"] - #[doc = "whatever 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 = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] - #[doc = "# "] - pub fn withdraw_unbonded( - &self, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "withdraw_unbonded", - WithdrawUnbonded { num_slashing_spans }, - [ - 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, - 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, - 165u8, 192u8, 149u8, 249u8, 158u8, 159u8, 194u8, - 224u8, 118u8, 134u8, 204u8, 157u8, 72u8, 136u8, - 19u8, 193u8, 183u8, 84u8, - ], - ) - } - #[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: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "validate", - Validate { prefs }, - [ - 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, - 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, - 106u8, 200u8, 172u8, 108u8, 145u8, 194u8, 146u8, - 61u8, 145u8, 233u8, 168u8, 2u8, 26u8, 145u8, 101u8, - 114u8, 157u8, - ], - ) - } - #[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 = "# "] - #[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."] - #[doc = "# "] - pub fn nominate( - &self, - targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "nominate", - Nominate { targets }, - [ - 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, - 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, - 129u8, 156u8, 190u8, 83u8, 178u8, 170u8, 116u8, - 27u8, 8u8, 244u8, 56u8, 73u8, 164u8, 223u8, 199u8, - 115u8, 168u8, 83u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] - pub fn chill(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "chill", - Chill {}, - [ - 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, - 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, - 166u8, 230u8, 56u8, 16u8, 222u8, 31u8, 153u8, - 120u8, 62u8, 153u8, 67u8, 220u8, 239u8, 11u8, - 234u8, 127u8, 122u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] - pub fn set_payee( - &self, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_payee", - SetPayee { payee }, - [ - 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, - 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, - 245u8, 14u8, 171u8, 108u8, 195u8, 250u8, 133u8, - 0u8, 75u8, 192u8, 159u8, 84u8, 220u8, 242u8, 133u8, - 60u8, 62u8, - ], - ) - } - #[doc = "(Re-)set the controller of a stash."] - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] - pub fn set_controller( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_controller", - SetController { controller }, - [ - 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, - 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, - 117u8, 192u8, 143u8, 166u8, 38u8, 235u8, 75u8, - 161u8, 177u8, 229u8, 229u8, 82u8, 95u8, 39u8, 40u8, - 116u8, 9u8, 204u8, - ], - ) - } - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] - pub fn set_validator_count( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_validator_count", - SetValidatorCount { new }, - [ - 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, - 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, - 187u8, 194u8, 91u8, 15u8, 36u8, 215u8, 36u8, 160u8, - 108u8, 251u8, 60u8, 240u8, 202u8, 249u8, 235u8, - 28u8, 94u8, - ], - ) - } - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] - pub fn increase_validator_count( - &self, - additional: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "increase_validator_count", - IncreaseValidatorCount { additional }, - [ - 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, - 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, - 60u8, 158u8, 8u8, 78u8, 175u8, 219u8, 46u8, 51u8, - 222u8, 193u8, 193u8, 201u8, 78u8, 90u8, 58u8, 86u8, - 196u8, 17u8, - ], - ) - } - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] - pub fn scale_validator_count( - &self, - factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "scale_validator_count", - ScaleValidatorCount { factor }, - [ - 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, - 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, - 219u8, 167u8, 149u8, 112u8, 49u8, 139u8, 74u8, - 81u8, 172u8, 72u8, 253u8, 224u8, 56u8, 194u8, - 185u8, 90u8, 87u8, 125u8, - ], - ) - } - #[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 = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] - pub fn force_no_eras( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_no_eras", - ForceNoEras {}, - [ - 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, - 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, - 91u8, 120u8, 75u8, 24u8, 125u8, 53u8, 9u8, 28u8, - 242u8, 87u8, 245u8, 55u8, 40u8, 103u8, 151u8, - 178u8, - ], - ) - } - #[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 = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] - pub fn force_new_era( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_new_era", - ForceNewEra {}, - [ - 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, - 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, - 126u8, 73u8, 136u8, 162u8, 158u8, 174u8, 201u8, - 213u8, 230u8, 215u8, 44u8, 200u8, 32u8, 75u8, 27u8, - 23u8, 254u8, - ], - ) - } - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn set_invulnerables( - &self, - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_invulnerables", - SetInvulnerables { invulnerables }, - [ - 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, - 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, - 27u8, 76u8, 18u8, 203u8, 206u8, 9u8, 8u8, 81u8, - 35u8, 224u8, 22u8, 133u8, 58u8, 99u8, 103u8, 39u8, - ], - ) - } - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn force_unstake( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_unstake", - ForceUnstake { - stash, - num_slashing_spans, - }, - [ - 94u8, 247u8, 238u8, 47u8, 250u8, 6u8, 96u8, 175u8, - 173u8, 123u8, 161u8, 187u8, 162u8, 214u8, 176u8, - 233u8, 33u8, 33u8, 167u8, 239u8, 40u8, 223u8, 19u8, - 131u8, 230u8, 39u8, 175u8, 200u8, 36u8, 182u8, - 76u8, 207u8, - ], - ) - } - #[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::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_new_era_always", - ForceNewEraAlways {}, - [ - 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, - 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, - 117u8, 147u8, 225u8, 118u8, 34u8, 177u8, 197u8, - 158u8, 8u8, 82u8, 202u8, 108u8, 208u8, 26u8, 64u8, - 33u8, 74u8, 43u8, - ], - ) - } - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::SlashCancelOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] - pub fn cancel_deferred_slash( - &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "cancel_deferred_slash", - CancelDeferredSlash { era, slash_indices }, - [ - 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, - 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, - 106u8, 101u8, 19u8, 88u8, 146u8, 210u8, 171u8, - 44u8, 37u8, 50u8, 65u8, 178u8, 37u8, 223u8, 239u8, - 197u8, 116u8, 168u8, - ], - ) - } - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[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 = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] - pub fn payout_stakers( - &self, - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "payout_stakers", - PayoutStakers { - validator_stash, - era, - }, - [ - 184u8, 194u8, 33u8, 118u8, 7u8, 203u8, 89u8, 119u8, - 214u8, 76u8, 178u8, 20u8, 82u8, 111u8, 57u8, 132u8, - 212u8, 43u8, 232u8, 91u8, 252u8, 49u8, 42u8, 115u8, - 1u8, 181u8, 154u8, 207u8, 144u8, 206u8, 205u8, - 33u8, - ], - ) - } - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] - pub fn rebond( - &self, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "rebond", - Rebond { value }, - [ - 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, - 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, - 253u8, 196u8, 30u8, 234u8, 49u8, 102u8, 68u8, - 145u8, 96u8, 148u8, 219u8, 162u8, 17u8, 177u8, - 184u8, 34u8, 113u8, - ], - ) - } - #[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 = ""] - #[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."] - pub fn reap_stash( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "reap_stash", - ReapStash { - stash, - num_slashing_spans, - }, - [ - 34u8, 168u8, 120u8, 161u8, 95u8, 199u8, 106u8, - 233u8, 61u8, 240u8, 166u8, 31u8, 183u8, 165u8, - 158u8, 179u8, 32u8, 130u8, 27u8, 164u8, 112u8, - 44u8, 14u8, 125u8, 227u8, 87u8, 70u8, 203u8, 194u8, - 24u8, 212u8, 177u8, - ], - ) - } - #[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: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "kick", - Kick { who }, - [ - 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, - 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, - 115u8, 243u8, 166u8, 120u8, 121u8, 70u8, 227u8, - 240u8, 205u8, 240u8, 211u8, 202u8, 251u8, 232u8, - 209u8, 12u8, - ], - ) - } - #[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 : 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 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_staking_configs", - SetStakingConfigs { - min_nominator_bond, - min_validator_bond, - max_nominator_count, - max_validator_count, - chill_threshold, - min_commission, - }, - [ - 176u8, 168u8, 155u8, 176u8, 27u8, 79u8, 223u8, - 92u8, 88u8, 93u8, 223u8, 69u8, 179u8, 250u8, 138u8, - 138u8, 87u8, 220u8, 36u8, 3u8, 126u8, 213u8, 16u8, - 68u8, 3u8, 16u8, 218u8, 151u8, 98u8, 169u8, 217u8, - 75u8, - ], - ) - } - #[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, - controller: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "chill_other", - ChillOther { controller }, - [ - 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, - 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, - 220u8, 166u8, 170u8, 135u8, 176u8, 68u8, 228u8, - 14u8, 67u8, 42u8, 52u8, 140u8, 231u8, 62u8, 167u8, - 80u8, 173u8, - ], - ) - } - #[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: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_apply_min_commission", - ForceApplyMinCommission { validator_stash }, - [ - 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, - 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, - 78u8, 123u8, 229u8, 135u8, 129u8, 241u8, 119u8, - 106u8, 41u8, 182u8, 121u8, 181u8, 242u8, 175u8, - 74u8, 207u8, 64u8, 106u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - pub validator_payout: ::core::primitive::u128, - pub remainder: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for EraPaid { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "EraPaid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The nominator has been rewarded by this amount."] - pub struct Rewarded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A staker (validator or nominator) has been slashed by the given amount."] - pub struct Slashed { - pub staker: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, - pub slash_era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "SlashReported"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An old slashing report from a prior era was discarded because it could"] - #[doc = "not be processed."] - pub struct OldSlashingReportDiscarded { - pub session_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "OldSlashingReportDiscarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new set of stakers was elected."] - pub struct StakersElected; - impl ::subxt::events::StaticEvent for StakersElected { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakersElected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has unbonded this amount."] - pub struct Unbonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] - #[doc = "from the unlocking queue."] - pub struct Withdrawn { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A nominator has been kicked from a validator."] - pub struct Kicked { - pub nominator: ::subxt::utils::AccountId32, - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Kicked { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Kicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The election failed. No new era is planned."] - pub struct StakingElectionFailed; - impl ::subxt::events::StaticEvent for StakingElectionFailed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakingElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has stopped participating as either a validator or nominator."] - pub struct Chilled { - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Chilled { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Chilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The stakers' rewards are getting paid."] - pub struct PayoutStarted { - pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for PayoutStarted { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "PayoutStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A validator has set their preferences."] - pub struct ValidatorPrefsSet { - pub stash: ::subxt::utils::AccountId32, - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ValidatorPrefsSet"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The ideal number of active validators."] pub fn validator_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ValidatorCount", - vec![], - [ - 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, - 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, - 184u8, 207u8, 6u8, 0u8, 126u8, 221u8, 67u8, 125u8, - 218u8, 188u8, 245u8, 156u8, 188u8, 34u8, 85u8, - 208u8, 197u8, - ], - ) - } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinimumValidatorCount", - vec![], - [ - 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, - 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, - 175u8, 1u8, 234u8, 162u8, 91u8, 252u8, 127u8, 68u8, - 243u8, 241u8, 13u8, 107u8, 214u8, 70u8, 87u8, - 249u8, - ], - ) - } - #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] - #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] - #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Invulnerables", - vec![], - [ - 77u8, 78u8, 63u8, 199u8, 150u8, 167u8, 135u8, - 130u8, 192u8, 51u8, 202u8, 119u8, 68u8, 49u8, - 241u8, 68u8, 82u8, 90u8, 226u8, 201u8, 96u8, 170u8, - 21u8, 173u8, 236u8, 116u8, 148u8, 8u8, 174u8, 92u8, - 7u8, 11u8, - ], - ) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] pub fn bonded (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] pub fn bonded_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Bonded", - Vec::new(), - [ - 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, - 77u8, 15u8, 118u8, 193u8, 155u8, 97u8, 229u8, 36u8, - 119u8, 128u8, 224u8, 162u8, 21u8, 46u8, 199u8, - 221u8, 15u8, 74u8, 59u8, 70u8, 77u8, 218u8, 73u8, - 165u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinNominatorBond", - vec![], - [ - 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, - 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, - 127u8, 223u8, 58u8, 134u8, 81u8, 165u8, 200u8, - 142u8, 196u8, 158u8, 26u8, 38u8, 165u8, 19u8, 91u8, - 251u8, 119u8, 84u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinValidatorBond", - vec![], - [ - 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, - 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, - 66u8, 182u8, 92u8, 20u8, 22u8, 109u8, 155u8, 174u8, - 87u8, 118u8, 242u8, 216u8, 193u8, 154u8, 4u8, 5u8, - 66u8, 56u8, - ], - ) - } - #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinimumActiveStake", - vec![], - [ - 172u8, 190u8, 228u8, 47u8, 47u8, 192u8, 182u8, - 59u8, 9u8, 18u8, 103u8, 46u8, 175u8, 54u8, 17u8, - 79u8, 89u8, 107u8, 255u8, 200u8, 182u8, 107u8, - 89u8, 157u8, 55u8, 16u8, 77u8, 46u8, 154u8, 169u8, - 103u8, 151u8, - ], - ) - } - #[doc = " The minimum amount of commission that validators can set."] - #[doc = ""] - #[doc = " If set to `0`, no limit exists."] pub fn min_commission (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Perbill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinCommission", - vec![], - [ - 61u8, 101u8, 69u8, 27u8, 220u8, 179u8, 5u8, 71u8, - 66u8, 227u8, 84u8, 98u8, 18u8, 141u8, 183u8, 49u8, - 98u8, 46u8, 123u8, 114u8, 198u8, 85u8, 15u8, 175u8, - 243u8, 239u8, 133u8, 129u8, 146u8, 174u8, 254u8, - 158u8, - ], - ) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: StakingLedger > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: StakingLedger > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Ledger", - Vec::new(), - [ - 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, - 33u8, 189u8, 124u8, 120u8, 177u8, 70u8, 27u8, - 242u8, 188u8, 184u8, 204u8, 188u8, 242u8, 140u8, - 128u8, 230u8, 85u8, 99u8, 181u8, 173u8, 67u8, - 252u8, 37u8, 236u8, - ], - ) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] pub fn payee (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] pub fn payee_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Payee", - Vec::new(), - [ - 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, - 187u8, 163u8, 20u8, 230u8, 153u8, 13u8, 189u8, - 232u8, 119u8, 118u8, 107u8, 17u8, 102u8, 245u8, - 36u8, 42u8, 232u8, 137u8, 177u8, 165u8, 169u8, - 246u8, 199u8, 57u8, - ], - ) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] pub fn validators (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] pub fn validators_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Validators", - Vec::new(), - [ - 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, - 43u8, 24u8, 149u8, 164u8, 208u8, 60u8, 144u8, 29u8, - 251u8, 195u8, 236u8, 196u8, 108u8, 58u8, 80u8, - 115u8, 246u8, 66u8, 226u8, 241u8, 201u8, 172u8, - 229u8, 152u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CounterForValidators", - vec![], - [ - 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, - 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, - 112u8, 85u8, 49u8, 78u8, 88u8, 11u8, 8u8, 48u8, - 118u8, 34u8, 62u8, 159u8, 239u8, 122u8, 90u8, 45u8, - ], - ) - } - #[doc = " The maximum validator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MaxValidatorsCount", - vec![], - [ - 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, - 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, - 62u8, 131u8, 112u8, 64u8, 26u8, 133u8, 7u8, 130u8, - 1u8, 71u8, 158u8, 14u8, 55u8, 169u8, 239u8, 223u8, - 245u8, - ], - ) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] pub fn nominators (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Nominations > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] pub fn nominators_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Nominations > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Nominators", - Vec::new(), - [ - 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, - 254u8, 19u8, 152u8, 85u8, 164u8, 171u8, 206u8, - 129u8, 184u8, 45u8, 221u8, 181u8, 229u8, 133u8, - 200u8, 231u8, 16u8, 146u8, 247u8, 21u8, 77u8, - 122u8, 165u8, 134u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CounterForNominators", - vec![], - [ - 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, - 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, - 40u8, 117u8, 215u8, 46u8, 82u8, 117u8, 225u8, 1u8, - 9u8, 208u8, 83u8, 63u8, 39u8, 187u8, 207u8, 191u8, - ], - ) - } - #[doc = " The maximum nominator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MaxNominatorsCount", - vec![], - [ - 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, - 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, - 32u8, 119u8, 3u8, 73u8, 86u8, 49u8, 104u8, 17u8, - 186u8, 98u8, 221u8, 175u8, 109u8, 254u8, 207u8, - 245u8, 125u8, 179u8, - ], - ) - } - #[doc = " The current era index."] - #[doc = ""] - #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] - #[doc = " set, it might be active or not."] pub fn current_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CurrentEra", - vec![], - [ - 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, - 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, - 7u8, 10u8, 117u8, 71u8, 240u8, 74u8, 86u8, 36u8, - 198u8, 37u8, 153u8, 93u8, 196u8, 22u8, 192u8, - 243u8, - ], - ) - } - #[doc = " The active era information, it holds index and start."] - #[doc = ""] - #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] - #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ActiveEraInfo > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ActiveEra", - vec![], - [ - 15u8, 112u8, 251u8, 183u8, 108u8, 61u8, 28u8, 71u8, - 44u8, 150u8, 162u8, 4u8, 143u8, 121u8, 11u8, 37u8, - 83u8, 29u8, 193u8, 21u8, 210u8, 116u8, 190u8, - 236u8, 213u8, 235u8, 49u8, 97u8, 189u8, 142u8, - 251u8, 124u8, - ], - ) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasStartSessionIndex", - Vec::new(), - [ - 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, - 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, - 100u8, 163u8, 91u8, 32u8, 246u8, 122u8, 78u8, - 149u8, 214u8, 103u8, 249u8, 119u8, 20u8, 101u8, - 116u8, 110u8, 185u8, - ], - ) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasStakers", - Vec::new(), - [ - 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, - 15u8, 139u8, 210u8, 128u8, 65u8, 92u8, 253u8, 43u8, - 35u8, 139u8, 171u8, 73u8, 185u8, 32u8, 78u8, 20u8, - 197u8, 154u8, 90u8, 233u8, 231u8, 23u8, 22u8, - 187u8, 156u8, - ], - ) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasStakersClipped", - Vec::new(), - [ - 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, - 153u8, 26u8, 55u8, 71u8, 119u8, 174u8, 48u8, 158u8, - 45u8, 214u8, 26u8, 136u8, 215u8, 46u8, 161u8, - 185u8, 17u8, 174u8, 204u8, 206u8, 246u8, 49u8, - 87u8, 134u8, 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 `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasValidatorPrefs", - Vec::new(), - [ - 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, - 129u8, 62u8, 4u8, 56u8, 234u8, 114u8, 141u8, 136u8, - 127u8, 224u8, 142u8, 89u8, 150u8, 33u8, 31u8, 50u8, - 140u8, 108u8, 124u8, 77u8, 188u8, 102u8, 230u8, - 174u8, - ], - ) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasValidatorReward", - Vec::new(), - [ - 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, - 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, - 179u8, 84u8, 161u8, 223u8, 255u8, 254u8, 107u8, - 52u8, 89u8, 98u8, 169u8, 136u8, 241u8, 104u8, 3u8, - 244u8, 161u8, - ], - ) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: EraRewardPoints < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: EraRewardPoints < :: subxt :: utils :: AccountId32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasRewardPoints", - Vec::new(), - [ - 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, - 88u8, 65u8, 24u8, 255u8, 120u8, 178u8, 23u8, 232u8, - 15u8, 64u8, 206u8, 0u8, 170u8, 40u8, 18u8, 149u8, - 45u8, 90u8, 179u8, 127u8, 52u8, 59u8, 37u8, 192u8, - ], - ) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasTotalStake", - Vec::new(), - [ - 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, - 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, - 239u8, 1u8, 110u8, 53u8, 11u8, 247u8, 235u8, 142u8, - 234u8, 22u8, 43u8, 24u8, 36u8, 37u8, 43u8, 170u8, - 40u8, - ], - ) - } - #[doc = " Mode of era forcing."] pub fn force_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Forcing > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ForceEra", - vec![], - [ - 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, - 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, - 131u8, 214u8, 136u8, 68u8, 156u8, 140u8, 194u8, - 69u8, 151u8, 115u8, 177u8, 92u8, 147u8, 29u8, 40u8, - 41u8, 31u8, - ], - ) - } - #[doc = " The percentage of the slash that is distributed to reporters."] - #[doc = ""] - #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Perbill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "SlashRewardFraction", - vec![], - [ - 167u8, 79u8, 143u8, 202u8, 199u8, 100u8, 129u8, - 162u8, 23u8, 165u8, 106u8, 170u8, 244u8, 86u8, - 144u8, 242u8, 65u8, 207u8, 115u8, 224u8, 231u8, - 155u8, 55u8, 139u8, 101u8, 129u8, 242u8, 196u8, - 130u8, 50u8, 3u8, 117u8, - ], - ) - } - #[doc = " The amount of currency given to reporters of a slash event which was"] - #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CanceledSlashPayout", - vec![], - [ - 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, - 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, - 156u8, 83u8, 14u8, 91u8, 15u8, 200u8, 170u8, 3u8, - 127u8, 141u8, 139u8, 151u8, 98u8, 74u8, 96u8, - 238u8, 29u8, - ], - ) - } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) - } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "UnappliedSlashes", - Vec::new(), - [ - 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, - 47u8, 125u8, 57u8, 0u8, 133u8, 176u8, 130u8, 2u8, - 175u8, 180u8, 167u8, 203u8, 230u8, 82u8, 198u8, - 183u8, 55u8, 82u8, 221u8, 248u8, 100u8, 173u8, - 206u8, 151u8, - ], - ) - } - #[doc = " A mapping from still-bonded eras to the first session index of that era."] - #[doc = ""] - #[doc = " Must contains information for eras for the range:"] - #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "BondedEras", - vec![], - [ - 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, - 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, - 89u8, 206u8, 2u8, 155u8, 222u8, 154u8, 116u8, - 124u8, 4u8, 119u8, 155u8, 94u8, 248u8, 30u8, 171u8, - 51u8, 78u8, 106u8, - ], - ) - } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] pub fn validator_slash_in_era (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: core :: primitive :: u128 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ValidatorSlashInEra", - Vec::new(), - [ - 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, - 251u8, 196u8, 85u8, 29u8, 27u8, 151u8, 98u8, 122u8, - 189u8, 147u8, 205u8, 40u8, 202u8, 194u8, 158u8, - 96u8, 138u8, 16u8, 116u8, 71u8, 140u8, 163u8, - 121u8, 197u8, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "NominatorSlashInEra", - Vec::new(), - [ - 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, - 12u8, 53u8, 101u8, 80u8, 96u8, 166u8, 71u8, 239u8, - 23u8, 153u8, 19u8, 152u8, 38u8, 138u8, 136u8, - 221u8, 200u8, 18u8, 165u8, 26u8, 228u8, 195u8, - 199u8, 62u8, 4u8, - ], - ) - } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SlashingSpans > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) - } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SlashingSpans > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "SlashingSpans", - Vec::new(), - [ - 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, - 255u8, 204u8, 44u8, 5u8, 66u8, 36u8, 227u8, 252u8, - 86u8, 159u8, 186u8, 152u8, 196u8, 21u8, 74u8, - 201u8, 133u8, 93u8, 142u8, 191u8, 20u8, 27u8, - 218u8, 157u8, - ], - ) - } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] pub fn span_slash (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SpanRecord < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SpanRecord < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "SpanSlash", - Vec::new(), - [ - 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, - 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, - 116u8, 210u8, 225u8, 230u8, 224u8, 163u8, 103u8, - 157u8, 100u8, 29u8, 86u8, 167u8, 84u8, 217u8, - 109u8, 200u8, - ], - ) - } - #[doc = " The last planned session scheduled by the session pallet."] - #[doc = ""] - #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CurrentPlannedSession", - vec![], - [ - 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, - 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, - 190u8, 53u8, 241u8, 11u8, 185u8, 163u8, 227u8, - 10u8, 77u8, 210u8, 64u8, 156u8, 218u8, 105u8, 16u8, - 1u8, 57u8, - ], - ) - } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] - #[doc = " disabled."] - #[doc = ""] - #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] - #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] - #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] - #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] - #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] pub fn offending_validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: bool ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "OffendingValidators", - vec![], - [ - 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, - 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, - 82u8, 182u8, 104u8, 167u8, 103u8, 187u8, 168u8, - 86u8, 16u8, 51u8, 235u8, 51u8, 119u8, 38u8, 154u8, - 42u8, 113u8, - ], - ) - } - #[doc = " True if network has been upgraded to this version."] - #[doc = " Storage version of the pallet."] - #[doc = ""] - #[doc = " This is set to v7.0.0 for new networks."] pub fn storage_version (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "StorageVersion", - vec![], - [ - 70u8, 24u8, 179u8, 189u8, 168u8, 164u8, 175u8, - 150u8, 215u8, 43u8, 18u8, 110u8, 180u8, 137u8, - 237u8, 187u8, 185u8, 50u8, 31u8, 57u8, 16u8, 110u8, - 6u8, 170u8, 19u8, 7u8, 160u8, 134u8, 232u8, 227u8, - 151u8, 116u8, - ], - ) - } - #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] - #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] - #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Percent > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ChillThreshold", - vec![], - [ - 174u8, 165u8, 249u8, 105u8, 24u8, 151u8, 115u8, - 166u8, 199u8, 251u8, 28u8, 5u8, 50u8, 95u8, 144u8, - 110u8, 220u8, 76u8, 14u8, 23u8, 179u8, 41u8, 11u8, - 248u8, 28u8, 154u8, 159u8, 255u8, 156u8, 109u8, - 98u8, 92u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "MaxNominations", - [ - 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 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`,"] - #[doc = " `StakingLedger.claimed_rewards`."] - #[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.claimed_rewards`. Setting this value lower than"] - #[doc = " the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a migration."] - #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "HistoryDepth", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of sessions per era."] - pub fn sessions_per_era( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "SessionsPerEra", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "BondingDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that slashes are deferred by, after computation."] - #[doc = ""] - #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] - #[doc = " should be applied immediately, without opportunity for intervention."] - pub fn slash_defer_duration( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 number of nominators rewarded for each validator."] - #[doc = ""] - #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] - #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub fn max_nominator_rewarded_per_validator( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "MaxNominatorRewardedPerValidator", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] - #[doc = " have. Effectively determines how many unique eras a staker may be"] - #[doc = " unbonding in."] - #[doc = ""] - #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] - #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] - #[doc = " lower than the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] - #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] - #[doc = " this effect."] - pub fn max_unlocking_chunks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 session { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKeys { - pub keys: runtime_types::webb_standalone_runtime::SessionKeys, - pub proof: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PurgeKeys; - 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 = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - pub fn set_keys( - &self, - keys: runtime_types::webb_standalone_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Session", - "set_keys", - SetKeys { keys, proof }, - [ - 19u8, 210u8, 111u8, 216u8, 235u8, 1u8, 119u8, - 211u8, 79u8, 9u8, 91u8, 245u8, 109u8, 116u8, 95u8, - 223u8, 233u8, 189u8, 185u8, 243u8, 46u8, 178u8, - 10u8, 4u8, 231u8, 159u8, 217u8, 59u8, 45u8, 167u8, - 207u8, 137u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - pub fn purge_keys( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Session", - "purge_keys", - PurgeKeys {}, - [ - 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, - 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, - 44u8, 91u8, 31u8, 145u8, 23u8, 213u8, 64u8, 71u8, - 242u8, 207u8, 239u8, 231u8, 37u8, 61u8, 63u8, - 190u8, 35u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_session::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NewSession { - const PALLET: &'static str = "Session"; - const EVENT: &'static str = "NewSession"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current set of validators."] pub fn validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "Validators", - vec![], - [ - 144u8, 235u8, 200u8, 43u8, 151u8, 57u8, 147u8, - 172u8, 201u8, 202u8, 242u8, 96u8, 57u8, 76u8, - 124u8, 77u8, 42u8, 113u8, 218u8, 220u8, 230u8, - 32u8, 151u8, 152u8, 172u8, 106u8, 60u8, 227u8, - 122u8, 118u8, 137u8, 68u8, - ], - ) - } - #[doc = " Current index of the session."] pub fn current_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "CurrentIndex", - vec![], - [ - 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, - 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, - 181u8, 191u8, 143u8, 252u8, 227u8, 80u8, 159u8, - 66u8, 194u8, 67u8, 113u8, 74u8, 111u8, 91u8, 218u8, - 187u8, 130u8, 40u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "QueuedChanged", - vec![], - [ - 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, - 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, - 202u8, 152u8, 42u8, 50u8, 113u8, 200u8, 247u8, - 59u8, 213u8, 77u8, 195u8, 1u8, 150u8, 220u8, 18u8, - 245u8, 46u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: SessionKeys ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "QueuedKeys", - vec![], - [ - 57u8, 139u8, 66u8, 116u8, 133u8, 98u8, 66u8, 181u8, - 96u8, 190u8, 69u8, 124u8, 158u8, 124u8, 187u8, - 164u8, 223u8, 89u8, 209u8, 84u8, 106u8, 127u8, - 85u8, 202u8, 130u8, 7u8, 250u8, 163u8, 99u8, 209u8, - 225u8, 25u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "DisabledValidators", - vec![], - [ - 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, - 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, - 31u8, 20u8, 242u8, 73u8, 104u8, 11u8, 110u8, 214u8, - 34u8, 52u8, 217u8, 106u8, 33u8, 174u8, 174u8, - 198u8, 84u8, - ], - ) - } - #[doc = " The next session keys for a validator."] pub fn next_keys (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_standalone_runtime :: SessionKeys > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [246u8 , 66u8 , 207u8 , 19u8 , 247u8 , 26u8 , 110u8 , 116u8 , 209u8 , 77u8 , 141u8 , 64u8 , 128u8 , 214u8 , 71u8 , 104u8 , 56u8 , 117u8 , 10u8 , 162u8 , 166u8 , 137u8 , 33u8 , 98u8 , 110u8 , 31u8 , 161u8 , 116u8 , 207u8 , 46u8 , 82u8 , 64u8 ,]) - } - #[doc = " The next session keys for a validator."] pub fn next_keys_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_standalone_runtime :: SessionKeys > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "NextKeys", - Vec::new(), - [ - 246u8, 66u8, 207u8, 19u8, 247u8, 26u8, 110u8, - 116u8, 209u8, 77u8, 141u8, 64u8, 128u8, 214u8, - 71u8, 104u8, 56u8, 117u8, 10u8, 162u8, 166u8, - 137u8, 33u8, 98u8, 110u8, 31u8, 161u8, 116u8, - 207u8, 46u8, 82u8, 64u8, - ], - ) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: crypto :: KeyTypeId > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "KeyOwner", - Vec::new(), - [ - 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, - 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, - 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, 0u8, - 148u8, 203u8, 144u8, 149u8, 64u8, 135u8, 254u8, - 242u8, 215u8, - ], - ) - } - } - } - } - pub mod democracy { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Propose { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Second { - #[codec(compact)] - pub proposal: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EmergencyCancel { - pub ref_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExternalPropose { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExternalProposeMajority { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExternalProposeDefault { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FastTrack { - pub proposal_hash: ::subxt::utils::H256, - pub voting_period: ::core::primitive::u64, - pub delay: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VetoExternal { - pub proposal_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Delegate { - pub to: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub conviction: - runtime_types::pallet_democracy::conviction::Conviction, - pub balance: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Undelegate; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClearPublicProposals; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unlock { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveVote { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Blacklist { - pub proposal_hash: ::subxt::utils::H256, - pub maybe_ref_index: - ::core::option::Option<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] - pub fn propose( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "propose", - Propose { proposal, value }, - [ - 123u8, 3u8, 204u8, 140u8, 194u8, 195u8, 214u8, - 39u8, 167u8, 126u8, 45u8, 4u8, 219u8, 17u8, 143u8, - 185u8, 29u8, 224u8, 230u8, 68u8, 253u8, 15u8, - 170u8, 90u8, 232u8, 123u8, 46u8, 255u8, 168u8, - 39u8, 204u8, 63u8, - ], - ) - } - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] - pub fn second( - &self, - proposal: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "second", - Second { proposal }, - [ - 59u8, 240u8, 183u8, 218u8, 61u8, 93u8, 184u8, 67u8, - 10u8, 4u8, 138u8, 196u8, 168u8, 49u8, 42u8, 69u8, - 154u8, 42u8, 90u8, 112u8, 179u8, 69u8, 51u8, 148u8, - 159u8, 212u8, 221u8, 226u8, 132u8, 228u8, 51u8, - 83u8, - ], - ) - } - #[doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] - pub fn vote( - &self, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "vote", - Vote { ref_index, vote }, - [ - 138u8, 213u8, 229u8, 111u8, 1u8, 191u8, 73u8, 3u8, - 145u8, 28u8, 44u8, 88u8, 163u8, 188u8, 129u8, - 188u8, 64u8, 15u8, 64u8, 103u8, 250u8, 97u8, 234u8, - 188u8, 29u8, 205u8, 51u8, 6u8, 116u8, 58u8, 156u8, - 201u8, - ], - ) - } - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] - pub fn emergency_cancel( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "emergency_cancel", - EmergencyCancel { ref_index }, - [ - 139u8, 213u8, 133u8, 75u8, 34u8, 206u8, 124u8, - 245u8, 35u8, 237u8, 132u8, 92u8, 49u8, 167u8, - 117u8, 80u8, 188u8, 93u8, 198u8, 237u8, 132u8, - 77u8, 195u8, 65u8, 29u8, 37u8, 86u8, 74u8, 214u8, - 119u8, 71u8, 204u8, - ], - ) - } - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - pub fn external_propose( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "external_propose", - ExternalPropose { proposal }, - [ - 164u8, 193u8, 14u8, 122u8, 105u8, 232u8, 20u8, - 194u8, 99u8, 227u8, 36u8, 105u8, 218u8, 146u8, - 16u8, 208u8, 56u8, 62u8, 100u8, 65u8, 35u8, 33u8, - 51u8, 208u8, 17u8, 43u8, 223u8, 198u8, 202u8, 16u8, - 56u8, 75u8, - ], - ) - } - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn external_propose_majority( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "external_propose_majority", - ExternalProposeMajority { proposal }, - [ - 129u8, 124u8, 147u8, 253u8, 69u8, 115u8, 230u8, - 186u8, 155u8, 4u8, 220u8, 103u8, 28u8, 132u8, - 115u8, 153u8, 196u8, 88u8, 9u8, 130u8, 129u8, - 234u8, 75u8, 96u8, 202u8, 216u8, 145u8, 189u8, - 231u8, 101u8, 127u8, 11u8, - ], - ) - } - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn external_propose_default( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "external_propose_default", - ExternalProposeDefault { proposal }, - [ - 96u8, 15u8, 108u8, 208u8, 141u8, 247u8, 4u8, 73u8, - 2u8, 30u8, 231u8, 40u8, 184u8, 250u8, 42u8, 161u8, - 248u8, 45u8, 217u8, 50u8, 53u8, 13u8, 181u8, 214u8, - 136u8, 51u8, 93u8, 95u8, 165u8, 3u8, 83u8, 190u8, - ], - ) - } - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn fast_track( - &self, - proposal_hash: ::subxt::utils::H256, - voting_period: ::core::primitive::u64, - delay: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "fast_track", - FastTrack { - proposal_hash, - voting_period, - delay, - }, - [ - 218u8, 196u8, 235u8, 104u8, 184u8, 235u8, 225u8, - 24u8, 15u8, 222u8, 181u8, 159u8, 234u8, 250u8, - 94u8, 9u8, 246u8, 66u8, 121u8, 28u8, 105u8, 185u8, - 225u8, 238u8, 17u8, 187u8, 187u8, 218u8, 193u8, - 188u8, 199u8, 134u8, - ], - ) - } - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] - pub fn veto_external( - &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "veto_external", - VetoExternal { proposal_hash }, - [ - 209u8, 18u8, 18u8, 103u8, 186u8, 160u8, 214u8, - 124u8, 150u8, 207u8, 112u8, 90u8, 84u8, 197u8, - 95u8, 157u8, 165u8, 65u8, 109u8, 101u8, 75u8, - 201u8, 41u8, 149u8, 75u8, 154u8, 37u8, 178u8, - 239u8, 121u8, 124u8, 23u8, - ], - ) - } - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] - pub fn cancel_referendum( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "cancel_referendum", - CancelReferendum { ref_index }, - [ - 51u8, 25u8, 25u8, 251u8, 236u8, 115u8, 130u8, - 230u8, 72u8, 186u8, 119u8, 71u8, 165u8, 137u8, - 55u8, 167u8, 187u8, 128u8, 55u8, 8u8, 212u8, 139u8, - 245u8, 232u8, 103u8, 136u8, 229u8, 113u8, 125u8, - 36u8, 1u8, 149u8, - ], - ) - } - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[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/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[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 referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn delegate( - &self, - to: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - conviction : runtime_types :: pallet_democracy :: conviction :: Conviction, - balance: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "delegate", - Delegate { - to, - conviction, - balance, - }, - [ - 247u8, 226u8, 242u8, 221u8, 47u8, 161u8, 91u8, - 223u8, 6u8, 79u8, 238u8, 205u8, 41u8, 188u8, 140u8, - 56u8, 181u8, 248u8, 102u8, 10u8, 127u8, 166u8, - 90u8, 187u8, 13u8, 124u8, 209u8, 117u8, 16u8, - 209u8, 74u8, 29u8, - ], - ) - } - #[doc = "Undelegate the voting power of the sending account."] - #[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."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn undelegate( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "undelegate", - Undelegate {}, - [ - 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, - 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, - 155u8, 44u8, 245u8, 28u8, 220u8, 56u8, 134u8, 43u8, - 122u8, 248u8, 156u8, 191u8, 154u8, 4u8, 121u8, - 152u8, 153u8, - ], - ) - } - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] - pub fn clear_public_proposals( - &self, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "clear_public_proposals", - ClearPublicProposals {}, - [ - 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, - 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, - 12u8, 141u8, 243u8, 197u8, 46u8, 130u8, 215u8, - 196u8, 225u8, 88u8, 48u8, 199u8, 231u8, 249u8, - 195u8, 53u8, 184u8, 204u8, - ], - ) - } - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[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, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "unlock", - Unlock { target }, - [ - 227u8, 6u8, 154u8, 150u8, 253u8, 167u8, 142u8, 6u8, - 147u8, 24u8, 124u8, 51u8, 101u8, 185u8, 184u8, - 170u8, 6u8, 223u8, 29u8, 167u8, 73u8, 31u8, 179u8, - 60u8, 156u8, 244u8, 192u8, 233u8, 79u8, 99u8, - 248u8, 126u8, - ], - ) - } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum 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 referendum 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 referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_vote( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "remove_vote", - RemoveVote { index }, - [ - 148u8, 120u8, 14u8, 172u8, 81u8, 152u8, 159u8, - 178u8, 106u8, 244u8, 36u8, 98u8, 120u8, 189u8, - 213u8, 93u8, 119u8, 156u8, 112u8, 34u8, 241u8, - 72u8, 206u8, 113u8, 212u8, 161u8, 164u8, 126u8, - 122u8, 82u8, 160u8, 74u8, - ], - ) - } - #[doc = "Remove a vote for a referendum."] - #[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 referendum was cancelled, because the voter lost the referendum 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"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_other_vote( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "remove_other_vote", - RemoveOtherVote { target, index }, - [ - 251u8, 245u8, 79u8, 229u8, 3u8, 107u8, 66u8, 202u8, - 148u8, 31u8, 6u8, 236u8, 156u8, 202u8, 197u8, - 107u8, 100u8, 60u8, 255u8, 213u8, 222u8, 209u8, - 249u8, 61u8, 209u8, 215u8, 82u8, 73u8, 25u8, 73u8, - 161u8, 24u8, - ], - ) - } - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] - pub fn blacklist( - &self, - proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "blacklist", - Blacklist { - proposal_hash, - maybe_ref_index, - }, - [ - 48u8, 144u8, 81u8, 164u8, 54u8, 111u8, 197u8, - 134u8, 6u8, 98u8, 121u8, 179u8, 254u8, 191u8, - 204u8, 212u8, 84u8, 255u8, 86u8, 110u8, 225u8, - 130u8, 26u8, 65u8, 133u8, 56u8, 231u8, 15u8, 245u8, - 137u8, 146u8, 242u8, - ], - ) - } - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] - pub fn cancel_proposal( - &self, - prop_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "cancel_proposal", - CancelProposal { prop_index }, - [ - 179u8, 3u8, 198u8, 244u8, 241u8, 124u8, 205u8, - 58u8, 100u8, 80u8, 177u8, 254u8, 98u8, 220u8, - 189u8, 63u8, 229u8, 60u8, 157u8, 83u8, 142u8, 6u8, - 236u8, 183u8, 193u8, 235u8, 253u8, 126u8, 153u8, - 185u8, 74u8, 117u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_democracy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion has been proposed by a public account."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A public proposal has been tabled for referendum vote."] - pub struct Tabled { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Tabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Tabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An external proposal has been tabled."] - pub struct ExternalTabled; - impl ::subxt::events::StaticEvent for ExternalTabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ExternalTabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A referendum has begun."] - pub struct Started { pub ref_index : :: core :: primitive :: u32 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } - impl ::subxt::events::StaticEvent for Started { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Started"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal has been approved by referendum."] - pub struct Passed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Passed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Passed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal has been rejected by referendum."] - pub struct NotPassed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NotPassed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "NotPassed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Cancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has delegated their vote to another account."] - pub struct Delegated { - pub who: ::subxt::utils::AccountId32, - pub target: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Delegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has cancelled a previous delegation operation."] - pub struct Undelegated { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Undelegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An external proposal has been vetoed."] - pub struct Vetoed { - pub who: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub until: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Vetoed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Vetoed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal_hash has been blacklisted permanently."] - pub struct Blacklisted { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Blacklisted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Blacklisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has voted in a referendum"] - pub struct Voted { - pub voter: ::subxt::utils::AccountId32, - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has secconded a proposal"] - pub struct Seconded { - pub seconder: ::subxt::utils::AccountId32, - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Seconded { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Seconded"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal got canceled."] - pub struct ProposalCanceled { - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalCanceled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ProposalCanceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The number of (public) proposals that have been made so far."] pub fn public_prop_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "PublicPropCount", - vec![], - [ - 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, - 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, - 159u8, 9u8, 174u8, 74u8, 174u8, 218u8, 197u8, 23u8, - 235u8, 152u8, 226u8, 216u8, 4u8, 120u8, 121u8, - 27u8, 138u8, - ], - ) - } - #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: subxt :: utils :: AccountId32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "PublicProps", - vec![], - [ - 63u8, 172u8, 211u8, 85u8, 27u8, 14u8, 86u8, 49u8, - 133u8, 5u8, 132u8, 189u8, 138u8, 137u8, 219u8, - 37u8, 209u8, 49u8, 172u8, 86u8, 240u8, 235u8, 42u8, - 201u8, 203u8, 12u8, 122u8, 225u8, 0u8, 109u8, - 205u8, 103u8, - ], - ) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Democracy" , "DepositOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [9u8 , 219u8 , 11u8 , 58u8 , 17u8 , 194u8 , 248u8 , 154u8 , 135u8 , 119u8 , 123u8 , 235u8 , 252u8 , 176u8 , 190u8 , 162u8 , 236u8 , 45u8 , 237u8 , 125u8 , 98u8 , 176u8 , 184u8 , 160u8 , 8u8 , 181u8 , 213u8 , 65u8 , 14u8 , 84u8 , 200u8 , 64u8 ,]) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "DepositOf", - Vec::new(), - [ - 9u8, 219u8, 11u8, 58u8, 17u8, 194u8, 248u8, 154u8, - 135u8, 119u8, 123u8, 235u8, 252u8, 176u8, 190u8, - 162u8, 236u8, 45u8, 237u8, 125u8, 98u8, 176u8, - 184u8, 160u8, 8u8, 181u8, 213u8, 65u8, 14u8, 84u8, - 200u8, 64u8, - ], - ) - } - #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "ReferendumCount", - vec![], - [ - 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, - 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, - 119u8, 137u8, 11u8, 240u8, 160u8, 151u8, 248u8, - 229u8, 231u8, 89u8, 222u8, 18u8, 237u8, 144u8, - 78u8, 99u8, 58u8, - ], - ) - } - #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] - #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "LowestUnbaked", - vec![], - [ - 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, - 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, - 128u8, 27u8, 165u8, 164u8, 111u8, 22u8, 209u8, - 190u8, 103u8, 7u8, 116u8, 16u8, 160u8, 144u8, - 123u8, 64u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u64 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Democracy" , "ReferendumInfoOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [94u8 , 203u8 , 193u8 , 49u8 , 4u8 , 227u8 , 47u8 , 82u8 , 168u8 , 56u8 , 163u8 , 93u8 , 81u8 , 20u8 , 166u8 , 135u8 , 170u8 , 24u8 , 12u8 , 249u8 , 92u8 , 250u8 , 116u8 , 78u8 , 23u8 , 124u8 , 195u8 , 98u8 , 211u8 , 246u8 , 53u8 , 40u8 ,]) - } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u64 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "ReferendumInfoOf", - Vec::new(), - [ - 94u8, 203u8, 193u8, 49u8, 4u8, 227u8, 47u8, 82u8, - 168u8, 56u8, 163u8, 93u8, 81u8, 20u8, 166u8, 135u8, - 170u8, 24u8, 12u8, 249u8, 92u8, 250u8, 116u8, 78u8, - 23u8, 124u8, 195u8, 98u8, 211u8, 246u8, 53u8, 40u8, - ], - ) - } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: vote :: Voting < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 , :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Democracy" , "VotingOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [118u8 , 188u8 , 170u8 , 219u8 , 109u8 , 160u8 , 36u8 , 230u8 , 218u8 , 155u8 , 18u8 , 14u8 , 48u8 , 186u8 , 156u8 , 67u8 , 109u8 , 252u8 , 136u8 , 183u8 , 251u8 , 230u8 , 12u8 , 178u8 , 117u8 , 187u8 , 68u8 , 28u8 , 103u8 , 242u8 , 39u8 , 32u8 ,]) - } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: vote :: Voting < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 , :: core :: primitive :: u64 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "VotingOf", - Vec::new(), - [ - 118u8, 188u8, 170u8, 219u8, 109u8, 160u8, 36u8, - 230u8, 218u8, 155u8, 18u8, 14u8, 48u8, 186u8, - 156u8, 67u8, 109u8, 252u8, 136u8, 183u8, 251u8, - 230u8, 12u8, 178u8, 117u8, 187u8, 68u8, 28u8, - 103u8, 242u8, 39u8, 32u8, - ], - ) - } - #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] - #[doc = " proposal."] pub fn last_tabled_was_external (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "LastTabledWasExternal", - vec![], - [ - 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, - 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, - 222u8, 82u8, 31u8, 223u8, 144u8, 169u8, 17u8, 6u8, - 138u8, 36u8, 113u8, 155u8, 241u8, 106u8, 189u8, - 218u8, - ], - ) - } - #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] - #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] - #[doc = " - `LastTabledWasExternal` is `false`; or"] - #[doc = " - `PublicProps` is empty."] pub fn next_external (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "NextExternal", - vec![], - [ - 213u8, 36u8, 235u8, 75u8, 153u8, 33u8, 140u8, - 121u8, 191u8, 197u8, 17u8, 57u8, 234u8, 67u8, 81u8, - 55u8, 123u8, 179u8, 207u8, 124u8, 238u8, 147u8, - 243u8, 126u8, 200u8, 2u8, 16u8, 143u8, 165u8, - 143u8, 159u8, 93u8, - ], - ) - } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Blacklist", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 192u8, 184u8, 27u8, 16u8, 2u8, 4u8, 108u8, 221u8, - 26u8, 111u8, 9u8, 54u8, 154u8, 26u8, 229u8, 103u8, - 214u8, 118u8, 52u8, 62u8, 200u8, 80u8, 16u8, 83u8, - 168u8, 110u8, 85u8, 46u8, 94u8, 40u8, 209u8, 21u8, - ], - ) - } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Blacklist", - Vec::new(), - [ - 192u8, 184u8, 27u8, 16u8, 2u8, 4u8, 108u8, 221u8, - 26u8, 111u8, 9u8, 54u8, 154u8, 26u8, 229u8, 103u8, - 214u8, 118u8, 52u8, 62u8, 200u8, 80u8, 16u8, 83u8, - 168u8, 110u8, 85u8, 46u8, 94u8, 40u8, 209u8, 21u8, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Cancellations", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, - 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, - 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, - 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, - 177u8, 135u8, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Cancellations", - Vec::new(), - [ - 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, - 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, - 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, - 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, - 177u8, 135u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The period between a proposal being approved and enacted."] - #[doc = ""] - #[doc = " It should generally be a little more than the unstake period to ensure that"] - #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] - #[doc = " where they are on the losing side of a vote."] - pub fn enactment_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "EnactmentPeriod", - [ - 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 = " How often (in blocks) new public referenda are launched."] - pub fn launch_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "LaunchPeriod", - [ - 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 = " How often (in blocks) to check for new votes."] - pub fn voting_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "VotingPeriod", - [ - 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 minimum period of vote locking."] - #[doc = ""] - #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] - #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "VoteLockingPeriod", - [ - 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 minimum amount to be used as a deposit for a public referendum proposal."] - pub fn minimum_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MinimumDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] - #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] - #[doc = " as an upgrade having happened recently."] - pub fn instant_allowed( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::bool, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "InstantAllowed", - [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, - 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, - 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, - 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, - 115u8, 102u8, 131u8, - ], - ) - } - #[doc = " Minimum voting period allowed for a fast-track referendum."] - pub fn fast_track_voting_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "FastTrackVotingPeriod", - [ - 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 = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] - pub fn cooloff_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "CooloffPeriod", - [ - 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 maximum number of votes for an account."] - #[doc = ""] - #[doc = " Also used to compute weight, an overly big value can"] - #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] - pub fn max_votes( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxVotes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of public proposals that can exist at any time."] - pub fn max_proposals( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxProposals", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of deposits a public proposal may have at any time."] - pub fn max_deposits( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxDeposits", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of items which can be blacklisted."] - pub fn max_blacklisted( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxBlacklisted", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod council { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub prime: ::core::option::Option<::subxt::utils::AccountId32>, - pub old_count: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Execute { - pub proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote { - pub proposal: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CloseOldWeight { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Close { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub proposal_weight_bound: - runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "set_members", - SetMembers { - new_members, - prime, - old_count, - }, - [ - 196u8, 103u8, 123u8, 125u8, 226u8, 177u8, 126u8, - 37u8, 160u8, 114u8, 34u8, 136u8, 219u8, 84u8, - 199u8, 94u8, 242u8, 20u8, 126u8, 126u8, 166u8, - 190u8, 198u8, 33u8, 162u8, 113u8, 237u8, 222u8, - 90u8, 1u8, 2u8, 234u8, - ], - ) - } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn execute( - &self, - proposal : runtime_types :: webb_standalone_runtime :: RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "execute", - Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 135u8, 21u8, 244u8, 77u8, 180u8, 129u8, 207u8, - 136u8, 166u8, 143u8, 162u8, 157u8, 57u8, 145u8, - 0u8, 145u8, 122u8, 19u8, 28u8, 114u8, 47u8, 175u8, - 174u8, 110u8, 206u8, 131u8, 125u8, 178u8, 197u8, - 43u8, 229u8, 130u8, - ], - ) - } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] - pub fn propose( - &self, - threshold: ::core::primitive::u32, - proposal : runtime_types :: webb_standalone_runtime :: RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "propose", - Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 86u8, 219u8, 60u8, 141u8, 103u8, 84u8, 223u8, 12u8, - 73u8, 246u8, 226u8, 127u8, 110u8, 177u8, 193u8, - 22u8, 111u8, 72u8, 190u8, 47u8, 205u8, 102u8, - 103u8, 39u8, 175u8, 145u8, 170u8, 132u8, 43u8, - 137u8, 139u8, 110u8, - ], - ) - } - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn vote( - &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "vote", - Vote { - proposal, - index, - approve, - }, - [ - 108u8, 46u8, 180u8, 148u8, 145u8, 24u8, 173u8, - 56u8, 36u8, 100u8, 216u8, 43u8, 178u8, 202u8, 26u8, - 136u8, 93u8, 84u8, 80u8, 134u8, 14u8, 42u8, 248u8, - 205u8, 68u8, 92u8, 79u8, 11u8, 113u8, 115u8, 157u8, - 100u8, - ], - ) - } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close_old_weight( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Council", - "close_old_weight", - CloseOldWeight { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 133u8, 219u8, 90u8, 40u8, 102u8, 95u8, 4u8, 199u8, - 45u8, 234u8, 109u8, 17u8, 162u8, 63u8, 102u8, - 186u8, 95u8, 182u8, 13u8, 123u8, 227u8, 20u8, - 186u8, 207u8, 12u8, 47u8, 87u8, 252u8, 244u8, - 172u8, 60u8, 206u8, - ], - ) - } - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] - pub fn disapprove_proposal( - &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Council", - "disapprove_proposal", - DisapproveProposal { proposal_hash }, - [ - 25u8, 123u8, 1u8, 8u8, 74u8, 37u8, 3u8, 40u8, 97u8, - 37u8, 175u8, 224u8, 72u8, 155u8, 123u8, 109u8, - 104u8, 43u8, 91u8, 125u8, 199u8, 51u8, 17u8, 225u8, - 133u8, 38u8, 120u8, 76u8, 164u8, 5u8, 194u8, 201u8, - ], - ) - } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "close", - Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 191u8, 138u8, 89u8, 247u8, 97u8, 51u8, 45u8, 193u8, - 76u8, 16u8, 80u8, 225u8, 197u8, 83u8, 204u8, 133u8, - 169u8, 16u8, 86u8, 32u8, 125u8, 16u8, 116u8, 185u8, - 45u8, 20u8, 76u8, 148u8, 206u8, 163u8, 154u8, 30u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_collective::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - pub struct Proposed { - pub account: ::subxt::utils::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::utils::H256, - pub threshold: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - pub struct Voted { - pub account: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion was approved by the required threshold."] - pub struct Approved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion was not approved by the required threshold."] - pub struct Disapproved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Disapproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Executed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "MemberExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - pub struct Closed { - pub proposal_hash: ::subxt::utils::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Closed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The hashes of the active proposals."] pub fn proposals (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Proposals", - vec![], - [ - 10u8, 133u8, 82u8, 54u8, 193u8, 41u8, 253u8, 159u8, - 56u8, 96u8, 249u8, 148u8, 43u8, 57u8, 116u8, 43u8, - 222u8, 243u8, 237u8, 231u8, 238u8, 60u8, 26u8, - 225u8, 19u8, 203u8, 213u8, 220u8, 114u8, 217u8, - 100u8, 27u8, - ], - ) - } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "ProposalOf", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 198u8, 221u8, 114u8, 185u8, 204u8, 98u8, 201u8, - 99u8, 182u8, 174u8, 168u8, 91u8, 132u8, 181u8, - 202u8, 126u8, 217u8, 150u8, 60u8, 14u8, 77u8, 34u8, - 145u8, 182u8, 46u8, 135u8, 116u8, 143u8, 158u8, - 175u8, 157u8, 105u8, - ], - ) - } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_standalone_runtime :: RuntimeCall > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "ProposalOf", - Vec::new(), - [ - 198u8, 221u8, 114u8, 185u8, 204u8, 98u8, 201u8, - 99u8, 182u8, 174u8, 168u8, 91u8, 132u8, 181u8, - 202u8, 126u8, 217u8, 150u8, 60u8, 14u8, 77u8, 34u8, - 145u8, 182u8, 46u8, 135u8, 116u8, 143u8, 158u8, - 175u8, 157u8, 105u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_collective :: Votes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Voting", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 196u8, 125u8, 235u8, 241u8, 133u8, 204u8, 38u8, - 98u8, 47u8, 247u8, 147u8, 35u8, 182u8, 90u8, 54u8, - 9u8, 221u8, 16u8, 75u8, 55u8, 249u8, 186u8, 3u8, - 160u8, 54u8, 217u8, 3u8, 59u8, 216u8, 249u8, 254u8, - 86u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_collective :: Votes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u64 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Voting", - Vec::new(), - [ - 196u8, 125u8, 235u8, 241u8, 133u8, 204u8, 38u8, - 98u8, 47u8, 247u8, 147u8, 35u8, 182u8, 90u8, 54u8, - 9u8, 221u8, 16u8, 75u8, 55u8, 249u8, 186u8, 3u8, - 160u8, 54u8, 217u8, 3u8, 59u8, 216u8, 249u8, 254u8, - 86u8, - ], - ) - } - #[doc = " Proposals so far."] pub fn proposal_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "ProposalCount", - vec![], - [ - 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, - 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, - 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, - 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, - 127u8, 160u8, 34u8, 70u8, - ], - ) - } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Members", - vec![], - [ - 162u8, 72u8, 174u8, 204u8, 140u8, 105u8, 205u8, - 176u8, 197u8, 117u8, 206u8, 134u8, 157u8, 110u8, - 139u8, 54u8, 43u8, 233u8, 25u8, 51u8, 36u8, 238u8, - 94u8, 124u8, 221u8, 52u8, 237u8, 71u8, 125u8, 56u8, - 129u8, 222u8, - ], - ) - } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Prime", - vec![], - [ - 108u8, 118u8, 54u8, 193u8, 207u8, 227u8, 119u8, - 97u8, 23u8, 239u8, 157u8, 69u8, 56u8, 142u8, 106u8, - 17u8, 215u8, 159u8, 48u8, 42u8, 185u8, 209u8, 49u8, - 159u8, 32u8, 168u8, 111u8, 158u8, 159u8, 217u8, - 244u8, 158u8, - ], - ) - } - } - } - } - pub mod elections { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveVoter; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitCandidacy { - #[codec(compact)] - pub candidate_count: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RenounceCandidacy { - pub renouncing: - runtime_types::pallet_elections_phragmen::Renouncing, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub slash_bond: ::core::primitive::bool, - pub rerun_election: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CleanDefunctVoters { - pub num_voters: ::core::primitive::u32, - pub num_defunct: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] - #[doc = ""] - #[doc = "# "] - #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] - #[doc = "# "] - pub fn vote( - &self, - votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "vote", - Vote { votes, value }, - [ - 71u8, 90u8, 175u8, 225u8, 51u8, 202u8, 197u8, - 252u8, 183u8, 92u8, 239u8, 83u8, 112u8, 144u8, - 128u8, 211u8, 109u8, 33u8, 252u8, 6u8, 156u8, 15u8, - 91u8, 88u8, 70u8, 19u8, 32u8, 29u8, 224u8, 255u8, - 26u8, 145u8, - ], - ) - } - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] - pub fn remove_voter( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "remove_voter", - RemoveVoter {}, - [ - 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, - 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, - 161u8, 53u8, 155u8, 130u8, 50u8, 88u8, 149u8, - 255u8, 12u8, 17u8, 85u8, 95u8, 69u8, 153u8, 130u8, - 221u8, 1u8, - ], - ) - } - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "# "] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "# "] - pub fn submit_candidacy( - &self, - candidate_count: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "submit_candidacy", - SubmitCandidacy { candidate_count }, - [ - 228u8, 63u8, 217u8, 99u8, 128u8, 104u8, 175u8, - 10u8, 30u8, 35u8, 47u8, 14u8, 254u8, 122u8, 146u8, - 239u8, 61u8, 145u8, 82u8, 7u8, 181u8, 98u8, 238u8, - 208u8, 23u8, 84u8, 48u8, 255u8, 177u8, 255u8, 84u8, - 83u8, - ], - ) - } - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = ""] - #[doc = "# "] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = "# "] - pub fn renounce_candidacy( - &self, - renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "renounce_candidacy", - RenounceCandidacy { renouncing }, - [ - 70u8, 72u8, 208u8, 36u8, 80u8, 245u8, 224u8, 75u8, - 60u8, 142u8, 19u8, 49u8, 142u8, 90u8, 14u8, 69u8, - 15u8, 61u8, 170u8, 235u8, 16u8, 252u8, 86u8, 200u8, - 120u8, 127u8, 36u8, 42u8, 143u8, 130u8, 217u8, - 128u8, - ], - ) - } - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "# "] - #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] - #[doc = "will go into phragmen, we assume full block for now."] - #[doc = "# "] - pub fn remove_member( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - slash_bond: ::core::primitive::bool, - rerun_election: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "remove_member", - RemoveMember { - who, - slash_bond, - rerun_election, - }, - [ - 178u8, 90u8, 236u8, 184u8, 2u8, 67u8, 51u8, 162u8, - 83u8, 131u8, 242u8, 137u8, 17u8, 243u8, 209u8, - 110u8, 26u8, 238u8, 178u8, 136u8, 84u8, 74u8, - 216u8, 173u8, 221u8, 82u8, 179u8, 218u8, 162u8, - 159u8, 185u8, 59u8, - ], - ) - } - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "# "] - #[doc = "The total number of voters and those that are defunct must be provided as witness data."] - #[doc = "# "] - pub fn clean_defunct_voters( - &self, - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "clean_defunct_voters", - CleanDefunctVoters { - num_voters, - num_defunct, - }, - [ - 198u8, 162u8, 30u8, 249u8, 191u8, 38u8, 141u8, - 123u8, 230u8, 90u8, 213u8, 103u8, 168u8, 28u8, 5u8, - 215u8, 213u8, 152u8, 46u8, 189u8, 238u8, 209u8, - 209u8, 142u8, 159u8, 222u8, 161u8, 26u8, 161u8, - 250u8, 9u8, 100u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_elections_phragmen::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - pub struct NewTerm { - pub new_members: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - } - impl ::subxt::events::StaticEvent for NewTerm { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "NewTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - pub struct EmptyTerm; - impl ::subxt::events::StaticEvent for EmptyTerm { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "EmptyTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Internal error happened while trying to perform election."] - pub struct ElectionError; - impl ::subxt::events::StaticEvent for ElectionError { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "ElectionError"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - pub struct MemberKicked { - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberKicked { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "MemberKicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Someone has renounced their candidacy."] - pub struct Renounced { - pub candidate: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Renounced { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "Renounced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - pub struct CandidateSlashed { - pub candidate: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for CandidateSlashed { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "CandidateSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - pub struct SeatHolderSlashed { - pub seat_holder: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "SeatHolderSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current elected members."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] pub fn members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_elections_phragmen :: SeatHolder < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "Members", - vec![], - [ - 2u8, 182u8, 43u8, 180u8, 87u8, 185u8, 26u8, 79u8, - 196u8, 55u8, 28u8, 26u8, 174u8, 133u8, 158u8, - 221u8, 101u8, 161u8, 83u8, 9u8, 221u8, 175u8, - 221u8, 220u8, 81u8, 80u8, 1u8, 236u8, 74u8, 121u8, - 10u8, 82u8, - ], - ) - } - #[doc = " The current reserved runners-up."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] - #[doc = " last (i.e. _best_) runner-up will be replaced."] pub fn runners_up (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_elections_phragmen :: SeatHolder < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "RunnersUp", - vec![], - [ - 248u8, 81u8, 190u8, 53u8, 121u8, 49u8, 55u8, 69u8, - 116u8, 177u8, 46u8, 30u8, 131u8, 14u8, 32u8, 198u8, - 10u8, 132u8, 73u8, 117u8, 2u8, 146u8, 188u8, 146u8, - 214u8, 227u8, 97u8, 77u8, 7u8, 131u8, 208u8, 209u8, - ], - ) - } - #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] - #[doc = " and is always implicitly assumed to be a candidate."] - #[doc = ""] - #[doc = " Second element is the deposit."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] pub fn candidates (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "Candidates", - vec![], - [ - 224u8, 107u8, 141u8, 11u8, 54u8, 86u8, 117u8, 45u8, - 195u8, 252u8, 152u8, 21u8, 165u8, 23u8, 198u8, - 117u8, 5u8, 216u8, 183u8, 163u8, 243u8, 56u8, 11u8, - 102u8, 85u8, 107u8, 219u8, 250u8, 45u8, 80u8, - 108u8, 127u8, - ], - ) - } - #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "ElectionRounds", - vec![], - [ - 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, - 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, - 143u8, 104u8, 253u8, 86u8, 228u8, 68u8, 19u8, - 184u8, 166u8, 214u8, 58u8, 103u8, 176u8, 160u8, - 240u8, 249u8, 117u8, 115u8, - ], - ) - } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_elections_phragmen :: Voter < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Elections" , "Voting" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [9u8 , 135u8 , 76u8 , 194u8 , 240u8 , 182u8 , 111u8 , 207u8 , 102u8 , 37u8 , 126u8 , 36u8 , 84u8 , 112u8 , 26u8 , 216u8 , 175u8 , 5u8 , 14u8 , 189u8 , 83u8 , 185u8 , 136u8 , 39u8 , 171u8 , 221u8 , 147u8 , 20u8 , 168u8 , 126u8 , 111u8 , 137u8 ,]) - } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_elections_phragmen :: Voter < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "Voting", - Vec::new(), - [ - 9u8, 135u8, 76u8, 194u8, 240u8, 182u8, 111u8, - 207u8, 102u8, 37u8, 126u8, 36u8, 84u8, 112u8, 26u8, - 216u8, 175u8, 5u8, 14u8, 189u8, 83u8, 185u8, 136u8, - 39u8, 171u8, 221u8, 147u8, 20u8, 168u8, 126u8, - 111u8, 137u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Identifier for the elections-phragmen pallet's lock"] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - [::core::primitive::u8; 8usize], - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "PalletId", - [ - 224u8, 197u8, 247u8, 125u8, 62u8, 180u8, 69u8, - 91u8, 226u8, 36u8, 82u8, 148u8, 70u8, 147u8, 209u8, - 40u8, 210u8, 229u8, 181u8, 191u8, 170u8, 205u8, - 138u8, 97u8, 127u8, 59u8, 124u8, 244u8, 252u8, - 30u8, 213u8, 179u8, - ], - ) - } - #[doc = " How much should be locked up in order to submit one's candidacy."] - pub fn candidacy_bond( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "CandidacyBond", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Base deposit associated with voting."] - #[doc = ""] - #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] - #[doc = " creating a gigantic number of votes."] - pub fn voting_bond_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "VotingBondBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] - pub fn voting_bond_factor( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "VotingBondFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Number of members to elect."] - pub fn desired_members( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "DesiredMembers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of runners_up to keep."] - pub fn desired_runners_up( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "DesiredRunnersUp", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How long each seat is kept. This defines the next block number at which an election"] - #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] - #[doc = " be in passive mode."] - pub fn term_duration( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "TermDuration", - [ - 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 maximum number of candidates in a phragmen election."] - #[doc = ""] - #[doc = " Warning: The election happens onchain, and this value will determine"] - #[doc = " the size of the election. When this limit is reached no more"] - #[doc = " candidates are accepted in the election."] - pub fn max_candidates( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "MaxCandidates", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of voters to allow in a phragmen election."] - #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain."] - #[doc = " When the limit is reached the new voters are ignored."] - pub fn max_voters( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "MaxVoters", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod grandpa { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u64, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u64, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NoteStalled { - pub delay: ::core::primitive::u64, - pub best_finalized_block_number: ::core::primitive::u64, - } - 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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Grandpa", - "report_equivocation", - ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 99u8, 148u8, 112u8, 118u8, 17u8, 142u8, 167u8, - 162u8, 101u8, 236u8, 46u8, 164u8, 81u8, 182u8, - 18u8, 159u8, 141u8, 43u8, 173u8, 120u8, 28u8, - 168u8, 90u8, 243u8, 108u8, 108u8, 207u8, 156u8, - 162u8, 101u8, 205u8, 181u8, - ], - ) - } - #[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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Grandpa", - "report_equivocation_unsigned", - ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 205u8, 218u8, 179u8, 128u8, 57u8, 43u8, 124u8, - 211u8, 44u8, 244u8, 200u8, 204u8, 188u8, 106u8, - 114u8, 147u8, 37u8, 240u8, 75u8, 172u8, 175u8, - 94u8, 197u8, 114u8, 53u8, 192u8, 157u8, 87u8, - 108u8, 60u8, 81u8, 198u8, - ], - ) - } - #[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: ::core::primitive::u64, - best_finalized_block_number: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Grandpa", - "note_stalled", - NoteStalled { - delay, - best_finalized_block_number, - }, - [ - 97u8, 60u8, 121u8, 239u8, 221u8, 126u8, 45u8, - 211u8, 169u8, 129u8, 54u8, 35u8, 65u8, 117u8, - 224u8, 174u8, 189u8, 55u8, 189u8, 91u8, 217u8, - 66u8, 39u8, 52u8, 24u8, 247u8, 108u8, 169u8, 128u8, - 85u8, 43u8, 24u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_grandpa::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New authority set has been applied."] - pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, - ::core::primitive::u64, - )>, - } - impl ::subxt::events::StaticEvent for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current authority set has been paused."] - pub struct Paused; - impl ::subxt::events::StaticEvent for Paused { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Paused"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current authority set has been resumed."] - pub struct Resumed; - impl ::subxt::events::StaticEvent for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " State of the current authority set."] pub fn state (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_grandpa :: StoredState < :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "State", - vec![], - [ - 254u8, 245u8, 141u8, 149u8, 219u8, 90u8, 110u8, - 106u8, 87u8, 147u8, 144u8, 230u8, 186u8, 178u8, - 183u8, 85u8, 226u8, 100u8, 127u8, 253u8, 71u8, - 245u8, 52u8, 200u8, 13u8, 242u8, 62u8, 222u8, 72u8, - 117u8, 253u8, 231u8, - ], - ) - } - #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_grandpa :: StoredPendingChange < :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "PendingChange", - vec![], - [ - 145u8, 1u8, 218u8, 98u8, 162u8, 146u8, 154u8, - 117u8, 212u8, 77u8, 20u8, 60u8, 99u8, 165u8, 118u8, - 179u8, 100u8, 222u8, 218u8, 106u8, 200u8, 139u8, - 247u8, 19u8, 215u8, 227u8, 1u8, 190u8, 45u8, 240u8, - 115u8, 44u8, - ], - ) - } - #[doc = " next block number where we can force a change."] pub fn next_forced (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "NextForced", - vec![], - [ - 129u8, 1u8, 76u8, 115u8, 147u8, 51u8, 231u8, 215u8, - 202u8, 18u8, 5u8, 115u8, 105u8, 172u8, 124u8, 44u8, - 57u8, 152u8, 78u8, 72u8, 125u8, 108u8, 52u8, 83u8, - 37u8, 100u8, 112u8, 115u8, 10u8, 153u8, 83u8, - 251u8, - ], - ) - } - #[doc = " `true` if we are currently stalled."] pub fn stalled (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , :: core :: primitive :: u64 ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "Stalled", - vec![], - [ - 250u8, 88u8, 175u8, 251u8, 162u8, 216u8, 94u8, - 93u8, 238u8, 2u8, 26u8, 67u8, 158u8, 242u8, 168u8, - 120u8, 112u8, 217u8, 191u8, 189u8, 70u8, 158u8, - 122u8, 130u8, 28u8, 205u8, 34u8, 245u8, 45u8, - 178u8, 85u8, 120u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "CurrentSetId", - vec![], - [ - 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, - 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, - 197u8, 157u8, 163u8, 116u8, 36u8, 105u8, 52u8, - 149u8, 244u8, 108u8, 94u8, 109u8, 111u8, 244u8, - 137u8, 7u8, 108u8, - ], - ) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "SetIdSession", - Vec::new(), - [ - 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, - 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, - 123u8, 133u8, 157u8, 15u8, 33u8, 234u8, 108u8, - 13u8, 88u8, 115u8, 254u8, 9u8, 145u8, 199u8, 102u8, - 47u8, 53u8, 134u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max Authorities in use"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod treasury { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeSpend { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Spend { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveApproval { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] - pub fn propose_spend( - &self, - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "propose_spend", - ProposeSpend { value, beneficiary }, - [ - 124u8, 32u8, 83u8, 127u8, 240u8, 169u8, 3u8, 190u8, - 235u8, 163u8, 23u8, 29u8, 88u8, 242u8, 238u8, - 187u8, 136u8, 75u8, 193u8, 192u8, 239u8, 2u8, 54u8, - 238u8, 147u8, 42u8, 91u8, 14u8, 244u8, 175u8, 41u8, - 14u8, - ], - ) - } - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] - pub fn reject_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "reject_proposal", - RejectProposal { proposal_id }, - [ - 106u8, 223u8, 97u8, 22u8, 111u8, 208u8, 128u8, - 26u8, 198u8, 140u8, 118u8, 126u8, 187u8, 51u8, - 193u8, 50u8, 193u8, 68u8, 143u8, 144u8, 34u8, - 132u8, 44u8, 244u8, 105u8, 186u8, 223u8, 234u8, - 17u8, 145u8, 209u8, 145u8, - ], - ) - } - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] - pub fn approve_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "approve_proposal", - ApproveProposal { proposal_id }, - [ - 164u8, 229u8, 172u8, 98u8, 129u8, 62u8, 84u8, - 128u8, 47u8, 108u8, 33u8, 120u8, 89u8, 79u8, 57u8, - 121u8, 4u8, 197u8, 170u8, 153u8, 156u8, 17u8, 59u8, - 164u8, 123u8, 227u8, 175u8, 195u8, 220u8, 160u8, - 60u8, 186u8, - ], - ) - } - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] - pub fn spend( - &self, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "spend", - Spend { - amount, - beneficiary, - }, - [ - 208u8, 79u8, 96u8, 218u8, 205u8, 209u8, 165u8, - 119u8, 92u8, 208u8, 54u8, 168u8, 83u8, 190u8, 98u8, - 97u8, 6u8, 2u8, 35u8, 249u8, 18u8, 88u8, 193u8, - 51u8, 130u8, 33u8, 28u8, 99u8, 49u8, 194u8, 34u8, - 77u8, - ], - ) - } - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] - pub fn remove_approval( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "remove_approval", - RemoveApproval { proposal_id }, - [ - 133u8, 126u8, 181u8, 47u8, 196u8, 243u8, 7u8, 46u8, - 25u8, 251u8, 154u8, 125u8, 217u8, 77u8, 54u8, - 245u8, 240u8, 180u8, 97u8, 34u8, 186u8, 53u8, - 225u8, 144u8, 155u8, 107u8, 172u8, 54u8, 250u8, - 184u8, 178u8, 86u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_treasury::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New proposal."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "We have ended a spend period and will now allocate funds."] - pub struct Spending { - pub budget_remaining: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Spending { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Spending"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some funds have been allocated."] - pub struct Awarded { - pub proposal_index: ::core::primitive::u32, - pub award: ::core::primitive::u128, - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Awarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal was rejected; funds were slashed."] - pub struct Rejected { - pub proposal_index: ::core::primitive::u32, - pub slashed: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some of our funds have been burnt."] - pub struct Burnt { - pub burnt_funds: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Burnt { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Burnt"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - pub struct Rollover { - pub rollover_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rollover { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rollover"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some funds have been deposited."] - pub struct Deposit { - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new spend proposal has been approved."] - pub struct SpendApproved { - pub proposal_index: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for SpendApproved { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "SpendApproved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of proposals that have been made."] pub fn proposal_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "ProposalCount", - vec![], - [ - 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, - 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, - 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, - 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, - 127u8, 160u8, 34u8, 70u8, - ], - ) - } - #[doc = " Proposals that have been made."] pub fn proposals (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_treasury :: Proposal < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Treasury" , "Proposals" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [62u8 , 223u8 , 55u8 , 209u8 , 151u8 , 134u8 , 122u8 , 65u8 , 207u8 , 38u8 , 113u8 , 213u8 , 237u8 , 48u8 , 129u8 , 32u8 , 91u8 , 228u8 , 108u8 , 91u8 , 37u8 , 49u8 , 94u8 , 4u8 , 75u8 , 122u8 , 25u8 , 34u8 , 198u8 , 224u8 , 246u8 , 160u8 ,]) - } - #[doc = " Proposals that have been made."] pub fn proposals_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_treasury :: Proposal < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "Proposals", - Vec::new(), - [ - 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, - 65u8, 207u8, 38u8, 113u8, 213u8, 237u8, 48u8, - 129u8, 32u8, 91u8, 228u8, 108u8, 91u8, 37u8, 49u8, - 94u8, 4u8, 75u8, 122u8, 25u8, 34u8, 198u8, 224u8, - 246u8, 160u8, - ], - ) - } - #[doc = " The amount which has been reported as inactive to Currency."] pub fn inactive (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "Inactive", - vec![], - [ - 240u8, 100u8, 242u8, 40u8, 169u8, 252u8, 255u8, - 248u8, 66u8, 157u8, 165u8, 206u8, 229u8, 145u8, - 80u8, 73u8, 237u8, 44u8, 72u8, 76u8, 101u8, 215u8, - 87u8, 33u8, 252u8, 224u8, 54u8, 138u8, 79u8, 99u8, - 225u8, 34u8, - ], - ) - } - #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "Approvals", - vec![], - [ - 202u8, 106u8, 189u8, 40u8, 127u8, 172u8, 108u8, - 50u8, 193u8, 4u8, 248u8, 226u8, 176u8, 101u8, - 212u8, 222u8, 64u8, 206u8, 244u8, 175u8, 111u8, - 106u8, 86u8, 96u8, 19u8, 109u8, 218u8, 152u8, 30u8, - 59u8, 96u8, 1u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] - #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub fn proposal_bond( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "ProposalBond", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_minimum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "ProposalBondMinimum", - [ - 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 amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "ProposalBondMaximum", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Period between successive spends."] - pub fn spend_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "SpendPeriod", - [ - 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 = " Percentage of spare funds (if any) that are burnt per spend period."] - pub fn burn( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "Burn", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod utility { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Batch { - pub calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AsDerivative { - pub index: ::core::primitive::u16, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BatchAll { - pub calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DispatchAs { - pub as_origin: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::OriginCaller, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceBatch { - pub calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithWeight { - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - #[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: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "batch", - Batch { calls }, - [ - 215u8, 150u8, 64u8, 23u8, 122u8, 70u8, 186u8, - 155u8, 163u8, 17u8, 217u8, 118u8, 138u8, 30u8, - 131u8, 111u8, 77u8, 96u8, 218u8, 192u8, 177u8, - 91u8, 202u8, 133u8, 64u8, 131u8, 16u8, 167u8, - 112u8, 119u8, 44u8, 255u8, - ], - ) - } - #[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: ::core::primitive::u16, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "as_derivative", - AsDerivative { - index, - call: ::std::boxed::Box::new(call), - }, - [ - 75u8, 241u8, 19u8, 140u8, 143u8, 49u8, 63u8, 45u8, - 19u8, 187u8, 227u8, 244u8, 174u8, 20u8, 253u8, - 141u8, 244u8, 110u8, 157u8, 254u8, 184u8, 37u8, - 20u8, 230u8, 215u8, 137u8, 43u8, 182u8, 172u8, - 202u8, 137u8, 66u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - pub fn batch_all( - &self, - calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "batch_all", - BatchAll { calls }, - [ - 248u8, 176u8, 108u8, 110u8, 211u8, 188u8, 52u8, - 248u8, 254u8, 134u8, 160u8, 63u8, 180u8, 119u8, - 68u8, 154u8, 243u8, 219u8, 178u8, 51u8, 205u8, - 242u8, 248u8, 132u8, 245u8, 9u8, 83u8, 190u8, 66u8, - 125u8, 82u8, 39u8, - ], - ) - } - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] - #[doc = "# "] - pub fn dispatch_as( - &self, - as_origin : runtime_types :: webb_standalone_runtime :: OriginCaller, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "dispatch_as", - DispatchAs { - as_origin: ::std::boxed::Box::new(as_origin), - call: ::std::boxed::Box::new(call), - }, - [ - 199u8, 23u8, 79u8, 111u8, 23u8, 245u8, 43u8, 244u8, - 198u8, 33u8, 217u8, 114u8, 135u8, 198u8, 37u8, - 71u8, 201u8, 142u8, 27u8, 192u8, 28u8, 249u8, 95u8, - 18u8, 41u8, 47u8, 200u8, 34u8, 221u8, 118u8, 30u8, - 121u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - pub fn force_batch( - &self, - calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "force_batch", - ForceBatch { calls }, - [ - 88u8, 195u8, 172u8, 234u8, 217u8, 52u8, 90u8, 2u8, - 124u8, 107u8, 195u8, 64u8, 192u8, 20u8, 149u8, - 166u8, 237u8, 124u8, 201u8, 21u8, 86u8, 220u8, - 239u8, 137u8, 17u8, 139u8, 82u8, 161u8, 147u8, - 243u8, 100u8, 252u8, - ], - ) - } - #[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: runtime_types::webb_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "with_weight", - WithWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 94u8, 33u8, 186u8, 164u8, 178u8, 64u8, 14u8, 41u8, - 71u8, 7u8, 120u8, 234u8, 136u8, 82u8, 78u8, 6u8, - 207u8, 112u8, 250u8, 47u8, 95u8, 185u8, 116u8, - 241u8, 207u8, 241u8, 101u8, 109u8, 111u8, 29u8, - 113u8, 181u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_utility::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::events::StaticEvent for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Batch of dispatches completed fully with no error."] - pub struct BatchCompleted; - impl ::subxt::events::StaticEvent for BatchCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Batch of dispatches completed but has errors."] - pub struct BatchCompletedWithErrors; - impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompletedWithErrors"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A single item within a Batch of dispatches has completed with no error."] - pub struct ItemCompleted; - impl ::subxt::events::StaticEvent for ItemCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A single item within a Batch of dispatches has completed with error."] - pub struct ItemFailed { - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::events::StaticEvent for ItemFailed { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A call was dispatched."] - pub struct DispatchedAs { - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for DispatchedAs { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "DispatchedAs"; - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The limit on the number of batched calls."] - pub fn batched_calls_limit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 multisig { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AsMultiThreshold1 { - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ApproveAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - pub call_hash: [::core::primitive::u8; 32usize], - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub call_hash: [::core::primitive::u8; 32usize], - } - 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 = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - pub fn as_multi_threshold_1( - &self, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Multisig", - "as_multi_threshold_1", - AsMultiThreshold1 { - other_signatories, - call: ::std::boxed::Box::new(call), - }, - [ - 120u8, 173u8, 237u8, 218u8, 116u8, 207u8, 139u8, - 42u8, 184u8, 182u8, 93u8, 79u8, 83u8, 167u8, 24u8, - 200u8, 21u8, 162u8, 117u8, 159u8, 37u8, 236u8, - 86u8, 118u8, 237u8, 77u8, 184u8, 21u8, 154u8, 15u8, - 243u8, 99u8, - ], - ) - } - #[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 = "# "] - #[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`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - pub fn as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Multisig", - "as_multi", - AsMulti { - threshold, - other_signatories, - maybe_timepoint, - call: ::std::boxed::Box::new(call), - max_weight, - }, - [ - 247u8, 128u8, 12u8, 76u8, 66u8, 160u8, 42u8, 98u8, - 11u8, 204u8, 70u8, 241u8, 11u8, 199u8, 90u8, 49u8, - 131u8, 22u8, 181u8, 228u8, 117u8, 193u8, 101u8, - 224u8, 88u8, 202u8, 135u8, 3u8, 133u8, 45u8, 78u8, - 223u8, - ], - ) - } - #[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 = "# "] - #[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`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] - pub fn approve_as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - call_hash: [::core::primitive::u8; 32usize], - max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Multisig", - "approve_as_multi", - ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, - }, - [ - 178u8, 235u8, 0u8, 98u8, 97u8, 54u8, 60u8, 84u8, - 131u8, 14u8, 143u8, 227u8, 130u8, 93u8, 24u8, 0u8, - 0u8, 73u8, 213u8, 232u8, 66u8, 118u8, 210u8, 110u8, - 82u8, 22u8, 168u8, 39u8, 26u8, 147u8, 126u8, 105u8, - ], - ) - } - #[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 = "# "] - #[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."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] - pub fn cancel_as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - call_hash: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Multisig", - "cancel_as_multi", - CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, - }, - [ - 47u8, 30u8, 118u8, 58u8, 83u8, 19u8, 197u8, 197u8, - 114u8, 180u8, 211u8, 205u8, 116u8, 85u8, 51u8, - 164u8, 105u8, 250u8, 205u8, 194u8, 97u8, 184u8, - 224u8, 68u8, 23u8, 239u8, 183u8, 200u8, 226u8, - 146u8, 75u8, 189u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_multisig::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new multisig operation has begun."] - pub struct NewMultisig { - pub approving: ::subxt::utils::AccountId32, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::events::StaticEvent for NewMultisig { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "NewMultisig"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A multisig operation has been approved by someone."] - pub struct MultisigApproval { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::events::StaticEvent for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A multisig operation has been executed."] - pub struct MultisigExecuted { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A multisig operation has been cancelled."] - pub struct MultisigCancelled { - pub cancelling: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::events::StaticEvent for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The set of open multisig operations."] pub fn multisigs (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 32usize] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_multisig :: Multisig < :: core :: primitive :: u64 , :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Multisig" , "Multisigs" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [219u8 , 52u8 , 88u8 , 89u8 , 218u8 , 194u8 , 244u8 , 163u8 , 30u8 , 249u8 , 254u8 , 116u8 , 115u8 , 158u8 , 38u8 , 8u8 , 43u8 , 185u8 , 62u8 , 238u8 , 82u8 , 180u8 , 248u8 , 247u8 , 29u8 , 238u8 , 97u8 , 136u8 , 143u8 , 117u8 , 164u8 , 68u8 ,]) - } - #[doc = " The set of open multisig operations."] pub fn multisigs_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_multisig :: Multisig < :: core :: primitive :: u64 , :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Multisig", - "Multisigs", - Vec::new(), - [ - 219u8, 52u8, 88u8, 89u8, 218u8, 194u8, 244u8, - 163u8, 30u8, 249u8, 254u8, 116u8, 115u8, 158u8, - 38u8, 8u8, 43u8, 185u8, 62u8, 238u8, 82u8, 180u8, - 248u8, 247u8, 29u8, 238u8, 97u8, 136u8, 143u8, - 117u8, 164u8, 68u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] - #[doc = " store a dispatch call for later."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] - #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Multisig", - "DepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] - pub fn deposit_factor( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Multisig", - "DepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of signatories allowed in the multisig."] - pub fn max_signatories( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 scheduler { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Schedule { - pub when: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Cancel { - pub when: ::core::primitive::u64, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScheduleNamed { - pub id: [::core::primitive::u8; 32usize], - pub when: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelNamed { - pub id: [::core::primitive::u8; 32usize], - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScheduleAfter { - pub after: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScheduleNamedAfter { - pub id: [::core::primitive::u8; 32usize], - pub after: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Anonymously schedule a task."] - pub fn schedule( - &self, - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule", - Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 144u8, 27u8, 238u8, 77u8, 221u8, 116u8, 56u8, - 135u8, 161u8, 194u8, 38u8, 196u8, 182u8, 219u8, - 120u8, 40u8, 61u8, 32u8, 13u8, 10u8, 120u8, 237u8, - 64u8, 171u8, 138u8, 166u8, 194u8, 68u8, 61u8, - 238u8, 53u8, 1u8, - ], - ) - } - #[doc = "Cancel an anonymously scheduled task."] - pub fn cancel( - &self, - when: ::core::primitive::u64, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "cancel", - Cancel { when, index }, - [ - 218u8, 92u8, 28u8, 181u8, 164u8, 107u8, 168u8, - 165u8, 120u8, 66u8, 113u8, 244u8, 0u8, 127u8, 25u8, - 207u8, 116u8, 223u8, 187u8, 162u8, 80u8, 234u8, - 50u8, 254u8, 124u8, 103u8, 34u8, 90u8, 65u8, 19u8, - 218u8, 173u8, - ], - ) - } - #[doc = "Schedule a named task."] - pub fn schedule_named( - &self, - id: [::core::primitive::u8; 32usize], - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule_named", - ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 198u8, 15u8, 204u8, 245u8, 236u8, 203u8, 44u8, - 129u8, 234u8, 24u8, 121u8, 4u8, 204u8, 58u8, 141u8, - 149u8, 193u8, 182u8, 99u8, 216u8, 159u8, 173u8, - 103u8, 91u8, 78u8, 52u8, 40u8, 223u8, 222u8, 247u8, - 177u8, 169u8, - ], - ) - } - #[doc = "Cancel a named scheduled task."] - pub fn cancel_named( - &self, - id: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "cancel_named", - CancelNamed { id }, - [ - 51u8, 3u8, 140u8, 50u8, 214u8, 211u8, 50u8, 4u8, - 19u8, 43u8, 230u8, 114u8, 18u8, 108u8, 138u8, 67u8, - 99u8, 24u8, 255u8, 11u8, 246u8, 37u8, 192u8, 207u8, - 90u8, 157u8, 171u8, 93u8, 233u8, 189u8, 64u8, - 180u8, - ], - ) - } - #[doc = "Anonymously schedule a task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] - pub fn schedule_after( - &self, - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule_after", - ScheduleAfter { - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 169u8, 200u8, 158u8, 109u8, 115u8, 109u8, 93u8, - 242u8, 49u8, 56u8, 113u8, 207u8, 23u8, 196u8, 92u8, - 91u8, 254u8, 196u8, 199u8, 214u8, 236u8, 155u8, - 185u8, 63u8, 36u8, 154u8, 115u8, 185u8, 144u8, - 56u8, 158u8, 82u8, - ], - ) - } - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] - pub fn schedule_named_after( - &self, - id: [::core::primitive::u8; 32usize], - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule_named_after", - ScheduleNamedAfter { - id, - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 240u8, 34u8, 209u8, 204u8, 29u8, 153u8, 93u8, - 151u8, 222u8, 179u8, 32u8, 173u8, 208u8, 109u8, - 245u8, 17u8, 73u8, 210u8, 205u8, 176u8, 206u8, - 22u8, 30u8, 58u8, 127u8, 247u8, 29u8, 42u8, 212u8, - 118u8, 124u8, 115u8, - ], - ) - } - } - } - #[doc = "Events type."] - pub type Event = runtime_types::pallet_scheduler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Scheduled some task."] - pub struct Scheduled { - pub when: ::core::primitive::u64, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Canceled some task."] - pub struct Canceled { - pub when: ::core::primitive::u64, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Dispatched some task."] - pub struct Dispatched { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - pub struct CallUnavailable { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for CallUnavailable { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "CallUnavailable"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - pub struct PeriodicFailed { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PeriodicFailed { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PeriodicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The given task can never be executed since it is overweight."] - pub struct PermanentlyOverweight { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PermanentlyOverweight"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn incomplete_since (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Scheduler", - "IncompleteSince", - vec![], - [ - 119u8, 104u8, 86u8, 249u8, 68u8, 225u8, 248u8, 2u8, - 231u8, 55u8, 186u8, 227u8, 85u8, 244u8, 178u8, - 86u8, 213u8, 208u8, 233u8, 228u8, 50u8, 43u8, - 178u8, 210u8, 38u8, 140u8, 74u8, 57u8, 173u8, 35u8, - 194u8, 132u8, - ], - ) - } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u64 , runtime_types :: webb_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Scheduler" , "Agenda" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [17u8 , 83u8 , 156u8 , 49u8 , 91u8 , 164u8 , 123u8 , 102u8 , 219u8 , 137u8 , 183u8 , 35u8 , 96u8 , 208u8 , 108u8 , 36u8 , 114u8 , 172u8 , 143u8 , 29u8 , 3u8 , 216u8 , 225u8 , 20u8 , 2u8 , 73u8 , 46u8 , 92u8 , 27u8 , 217u8 , 10u8 , 235u8 ,]) - } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u64 , runtime_types :: webb_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Scheduler", - "Agenda", - Vec::new(), - [ - 17u8, 83u8, 156u8, 49u8, 91u8, 164u8, 123u8, 102u8, - 219u8, 137u8, 183u8, 35u8, 96u8, 208u8, 108u8, - 36u8, 114u8, 172u8, 143u8, 29u8, 3u8, 216u8, 225u8, - 20u8, 2u8, 73u8, 46u8, 92u8, 27u8, 217u8, 10u8, - 235u8, - ], - ) - } - #[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 :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 32usize] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Scheduler" , "Lookup" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [170u8 , 113u8 , 172u8 , 164u8 , 64u8 , 203u8 , 144u8 , 121u8 , 238u8 , 117u8 , 29u8 , 85u8 , 53u8 , 128u8 , 6u8 , 180u8 , 59u8 , 56u8 , 185u8 , 57u8 , 92u8 , 249u8 , 153u8 , 8u8 , 4u8 , 220u8 , 250u8 , 69u8 , 143u8 , 42u8 , 62u8 , 102u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , :: core :: primitive :: u32 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Scheduler", - "Lookup", - Vec::new(), - [ - 170u8, 113u8, 172u8, 164u8, 64u8, 203u8, 144u8, - 121u8, 238u8, 117u8, 29u8, 85u8, 53u8, 128u8, 6u8, - 180u8, 59u8, 56u8, 185u8, 57u8, 92u8, 249u8, 153u8, - 8u8, 4u8, 220u8, 250u8, 69u8, 143u8, 42u8, 62u8, - 102u8, - ], - ) - } - } - } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Scheduler", - "MaximumWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum number of scheduled calls in the queue for a single block."] - pub fn max_scheduled_per_block( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NotePreimage { - pub bytes: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnnotePreimage { - pub hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RequestPreimage { - pub hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnrequestPreimage { - pub hash: ::subxt::utils::H256, - } - 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: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "note_preimage", - NotePreimage { bytes }, - [ - 77u8, 48u8, 104u8, 3u8, 254u8, 65u8, 106u8, 95u8, - 204u8, 89u8, 149u8, 29u8, 144u8, 188u8, 99u8, 23u8, - 146u8, 142u8, 35u8, 17u8, 125u8, 130u8, 31u8, - 206u8, 106u8, 83u8, 163u8, 192u8, 81u8, 23u8, - 232u8, 230u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "unnote_preimage", - UnnotePreimage { hash }, - [ - 211u8, 204u8, 205u8, 58u8, 33u8, 179u8, 68u8, 74u8, - 149u8, 138u8, 213u8, 45u8, 140u8, 27u8, 106u8, - 81u8, 68u8, 212u8, 147u8, 116u8, 27u8, 130u8, 84u8, - 34u8, 231u8, 197u8, 135u8, 8u8, 19u8, 242u8, 207u8, - 17u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "request_preimage", - RequestPreimage { hash }, - [ - 195u8, 26u8, 146u8, 255u8, 79u8, 43u8, 73u8, 60u8, - 115u8, 78u8, 99u8, 197u8, 137u8, 95u8, 139u8, - 141u8, 79u8, 213u8, 170u8, 169u8, 127u8, 30u8, - 236u8, 65u8, 38u8, 16u8, 118u8, 228u8, 141u8, 83u8, - 162u8, 233u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "unrequest_preimage", - UnrequestPreimage { hash }, - [ - 143u8, 225u8, 239u8, 44u8, 237u8, 83u8, 18u8, - 105u8, 101u8, 68u8, 111u8, 116u8, 66u8, 212u8, - 63u8, 190u8, 38u8, 32u8, 105u8, 152u8, 69u8, 177u8, - 193u8, 15u8, 60u8, 26u8, 95u8, 130u8, 11u8, 113u8, - 187u8, 108u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_preimage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A preimage has been noted."] - pub struct Noted { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Noted { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Noted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A preimage has been requested."] - pub struct Requested { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Requested { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Requested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A preimage has ben cleared."] - pub struct Cleared { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Cleared { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Cleared"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The request status of a given hash."] pub fn status_for (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "StatusFor", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, - 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, - 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, - 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, - 56u8, - ], - ) - } - #[doc = " The request status of a given hash."] pub fn status_for_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "StatusFor", - Vec::new(), - [ - 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, - 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, - 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, - 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, - 56u8, - ], - ) - } pub fn preimage_for (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "PreimageFor", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, - 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, - 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, - 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, - 124u8, - ], - ) - } pub fn preimage_for_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "PreimageFor", - Vec::new(), - [ - 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, - 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, - 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, - 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, - 124u8, - ], - ) - } - } - } - } - pub mod proxy { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Proxy { - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddProxy { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveProxy { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveProxies; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CreatePure { - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - pub index: ::core::primitive::u16, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillPure { - pub spawner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub index: ::core::primitive::u16, - #[codec(compact)] - pub height: ::core::primitive::u64, - #[codec(compact)] - pub ext_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Announce { - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveAnnouncement { - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RejectAnnouncement { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProxyAnnounced { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - 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 = "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( - &self, - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "proxy", - Proxy { - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, - [ - 220u8, 143u8, 127u8, 187u8, 168u8, 118u8, 34u8, - 4u8, 216u8, 67u8, 141u8, 179u8, 89u8, 23u8, 131u8, - 24u8, 219u8, 104u8, 27u8, 113u8, 196u8, 75u8, - 117u8, 39u8, 237u8, 216u8, 217u8, 48u8, 65u8, 89u8, - 66u8, 1u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, - delay: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "add_proxy", - AddProxy { - delegate, - proxy_type, - delay, - }, - [ - 38u8, 26u8, 76u8, 131u8, 12u8, 56u8, 235u8, 201u8, - 191u8, 224u8, 33u8, 99u8, 145u8, 43u8, 239u8, - 205u8, 117u8, 217u8, 30u8, 187u8, 35u8, 28u8, - 221u8, 4u8, 140u8, 22u8, 221u8, 83u8, 56u8, 190u8, - 108u8, 19u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, - delay: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "remove_proxy", - RemoveProxy { - delegate, - proxy_type, - delay, - }, - [ - 227u8, 235u8, 120u8, 150u8, 221u8, 155u8, 132u8, - 125u8, 234u8, 133u8, 108u8, 137u8, 3u8, 14u8, - 143u8, 170u8, 35u8, 178u8, 127u8, 246u8, 119u8, - 21u8, 151u8, 89u8, 168u8, 18u8, 39u8, 229u8, 159u8, - 50u8, 141u8, 225u8, - ], - ) - } - #[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::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "remove_proxies", - RemoveProxies {}, - [ - 15u8, 237u8, 27u8, 166u8, 254u8, 218u8, 92u8, 5u8, - 213u8, 239u8, 99u8, 59u8, 1u8, 26u8, 73u8, 252u8, - 81u8, 94u8, 214u8, 227u8, 169u8, 58u8, 40u8, 253u8, - 187u8, 225u8, 192u8, 26u8, 19u8, 23u8, 121u8, - 129u8, - ], - ) - } - #[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 : runtime_types :: webb_standalone_runtime :: ProxyType, - delay: ::core::primitive::u64, - index: ::core::primitive::u16, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "create_pure", - CreatePure { - proxy_type, - delay, - index, - }, - [ - 114u8, 222u8, 117u8, 16u8, 245u8, 120u8, 138u8, - 169u8, 123u8, 168u8, 8u8, 26u8, 237u8, 32u8, 40u8, - 172u8, 244u8, 89u8, 68u8, 125u8, 214u8, 22u8, - 214u8, 49u8, 253u8, 81u8, 152u8, 34u8, 77u8, 183u8, - 38u8, 242u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, - index: ::core::primitive::u16, - height: ::core::primitive::u64, - ext_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "kill_pure", - KillPure { - spawner, - proxy_type, - index, - height, - ext_index, - }, - [ - 223u8, 158u8, 75u8, 227u8, 188u8, 238u8, 80u8, - 141u8, 71u8, 63u8, 213u8, 103u8, 235u8, 189u8, - 177u8, 237u8, 116u8, 5u8, 252u8, 225u8, 240u8, - 244u8, 205u8, 229u8, 130u8, 62u8, 129u8, 182u8, - 232u8, 218u8, 205u8, 173u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "announce", - Announce { real, call_hash }, - [ - 226u8, 252u8, 69u8, 50u8, 248u8, 212u8, 209u8, - 225u8, 201u8, 236u8, 51u8, 136u8, 56u8, 85u8, 36u8, - 130u8, 233u8, 84u8, 44u8, 192u8, 174u8, 119u8, - 245u8, 62u8, 150u8, 78u8, 217u8, 90u8, 167u8, - 154u8, 228u8, 141u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "remove_announcement", - RemoveAnnouncement { real, call_hash }, - [ - 251u8, 236u8, 113u8, 182u8, 125u8, 244u8, 31u8, - 144u8, 66u8, 28u8, 65u8, 97u8, 67u8, 94u8, 225u8, - 210u8, 46u8, 143u8, 242u8, 124u8, 120u8, 93u8, - 23u8, 165u8, 83u8, 177u8, 250u8, 171u8, 58u8, 66u8, - 70u8, 64u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "reject_announcement", - RejectAnnouncement { - delegate, - call_hash, - }, - [ - 122u8, 165u8, 114u8, 85u8, 209u8, 197u8, 11u8, - 96u8, 211u8, 93u8, 201u8, 42u8, 1u8, 131u8, 254u8, - 177u8, 191u8, 212u8, 229u8, 13u8, 28u8, 163u8, - 133u8, 200u8, 113u8, 28u8, 132u8, 45u8, 105u8, - 177u8, 82u8, 206u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Proxy", - "proxy_announced", - ProxyAnnounced { - delegate, - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, - [ - 49u8, 251u8, 228u8, 100u8, 122u8, 252u8, 145u8, - 101u8, 7u8, 57u8, 83u8, 125u8, 255u8, 113u8, 183u8, - 203u8, 234u8, 49u8, 221u8, 203u8, 248u8, 218u8, - 41u8, 205u8, 78u8, 130u8, 220u8, 254u8, 118u8, - 166u8, 157u8, 83u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_proxy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proxy was executed correctly, with the given."] - pub struct ProxyExecuted { - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for ProxyExecuted { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A pure account has been created by new proxy with given"] - #[doc = "disambiguation index and proxy type."] - pub struct PureCreated { - pub pure: ::subxt::utils::AccountId32, - pub who: ::subxt::utils::AccountId32, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub disambiguation_index: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for PureCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "PureCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An announcement was placed to make a call in the future."] - pub struct Announced { - pub real: ::subxt::utils::AccountId32, - pub proxy: ::subxt::utils::AccountId32, - pub call_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Announced { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "Announced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proxy was added."] - pub struct ProxyAdded { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proxy was removed."] - pub struct ProxyRemoved { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ProxyRemoved { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyRemoved"; - } - } - pub mod storage { - use super::runtime_types; - 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 (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: ProxyType , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Proxy" , "Proxies" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [29u8 , 196u8 , 62u8 , 237u8 , 202u8 , 233u8 , 119u8 , 198u8 , 157u8 , 71u8 , 212u8 , 171u8 , 83u8 , 157u8 , 157u8 , 69u8 , 181u8 , 0u8 , 136u8 , 157u8 , 166u8 , 119u8 , 27u8 , 157u8 , 208u8 , 194u8 , 151u8 , 3u8 , 58u8 , 48u8 , 184u8 , 39u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: ProxyType , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Proxy", - "Proxies", - Vec::new(), - [ - 29u8, 196u8, 62u8, 237u8, 202u8, 233u8, 119u8, - 198u8, 157u8, 71u8, 212u8, 171u8, 83u8, 157u8, - 157u8, 69u8, 181u8, 0u8, 136u8, 157u8, 166u8, - 119u8, 27u8, 157u8, 208u8, 194u8, 151u8, 3u8, 58u8, - 48u8, 184u8, 39u8, - ], - ) - } - #[doc = " The announcements made by the proxy (key)."] pub fn announcements (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: Announcement < :: subxt :: utils :: AccountId32 , :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Proxy" , "Announcements" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [171u8 , 196u8 , 179u8 , 148u8 , 64u8 , 151u8 , 66u8 , 184u8 , 102u8 , 220u8 , 132u8 , 79u8 , 92u8 , 119u8 , 217u8 , 116u8 , 229u8 , 208u8 , 241u8 , 36u8 , 51u8 , 101u8 , 170u8 , 110u8 , 15u8 , 48u8 , 3u8 , 123u8 , 94u8 , 45u8 , 49u8 , 120u8 ,]) - } - #[doc = " The announcements made by the proxy (key)."] pub fn announcements_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: Announcement < :: subxt :: utils :: AccountId32 , :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Proxy", - "Announcements", - Vec::new(), - [ - 171u8, 196u8, 179u8, 148u8, 64u8, 151u8, 66u8, - 184u8, 102u8, 220u8, 132u8, 79u8, 92u8, 119u8, - 217u8, 116u8, 229u8, 208u8, 241u8, 36u8, 51u8, - 101u8, 170u8, 110u8, 15u8, 48u8, 3u8, 123u8, 94u8, - 45u8, 49u8, 120u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a proxy."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] - pub fn proxy_deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Proxy", - "ProxyDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per proxy added."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] - #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] - #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] - pub fn proxy_deposit_factor( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Proxy", - "ProxyDepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of proxies allowed for a single account."] - pub fn max_proxies( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Proxy", - "MaxProxies", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] - pub fn max_pending( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Proxy", - "MaxPending", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The base amount of currency needed to reserve for creating an announcement."] - #[doc = ""] - #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] - #[doc = " bytes)."] - pub fn announcement_deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Proxy", - "AnnouncementDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per announcement made."] - #[doc = ""] - #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] - #[doc = " into a pre-existing storage value."] - pub fn announcement_deposit_factor( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 assets { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub min_balance: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceCreate { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub is_sufficient: ::core::primitive::bool, - #[codec(compact)] - pub min_balance: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct StartDestroy { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DestroyAccounts { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DestroyApprovals { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FinishDestroy { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Mint { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Burn { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferKeepAlive { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Freeze { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Thaw { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FreezeAsset { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ThawAsset { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferOwnership { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetTeam { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub symbol: ::std::vec::Vec<::core::primitive::u8>, - pub decimals: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClearMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub symbol: ::std::vec::Vec<::core::primitive::u8>, - pub decimals: ::core::primitive::u8, - pub is_frozen: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceClearMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceAssetStatus { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub min_balance: ::core::primitive::u128, - pub is_sufficient: ::core::primitive::bool, - pub is_frozen: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ApproveTransfer { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelApproval { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceCancelApproval { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferApproved { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub destination: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Touch { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Refund { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub allow_burn: ::core::primitive::bool, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Issue a new class of fungible assets from a public origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially and its owner is the origin."] - #[doc = ""] - #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] - #[doc = ""] - #[doc = "Funds of sender are reserved by `AssetDeposit`."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] - #[doc = "member of the asset class's admin team."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `Created` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn create( - &self, - id: ::core::primitive::u32, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - min_balance: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "create", - Create { - id, - admin, - min_balance, - }, - [ - 197u8, 86u8, 72u8, 4u8, 104u8, 55u8, 113u8, 73u8, - 86u8, 21u8, 128u8, 40u8, 25u8, 91u8, 18u8, 246u8, - 157u8, 168u8, 160u8, 65u8, 101u8, 193u8, 120u8, - 217u8, 245u8, 26u8, 194u8, 186u8, 126u8, 231u8, - 118u8, 176u8, - ], - ) - } - #[doc = "Issue a new class of fungible assets from a privileged origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin`."] - #[doc = ""] - #[doc = "Unlike `create`, no funds are reserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] - #[doc = "over this asset, but may later change and configure the permissions using"] - #[doc = "`transfer_ownership` and `set_team`."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `ForceCreated` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_create( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - is_sufficient: ::core::primitive::bool, - min_balance: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "force_create", - ForceCreate { - id, - owner, - is_sufficient, - min_balance, - }, - [ - 152u8, 24u8, 39u8, 126u8, 101u8, 61u8, 147u8, - 180u8, 121u8, 52u8, 45u8, 205u8, 87u8, 32u8, 87u8, - 7u8, 134u8, 168u8, 1u8, 159u8, 191u8, 246u8, 90u8, - 245u8, 80u8, 172u8, 185u8, 254u8, 59u8, 37u8, - 204u8, 162u8, - ], - ) - } - #[doc = "Start the process of destroying a fungible asset class."] - #[doc = ""] - #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] - #[doc = "destruction of an asset class."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "The asset class must be frozen before calling `start_destroy`."] - pub fn start_destroy( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "start_destroy", - StartDestroy { id }, - [ - 83u8, 116u8, 245u8, 108u8, 180u8, 253u8, 0u8, - 109u8, 9u8, 206u8, 70u8, 95u8, 36u8, 80u8, 86u8, - 186u8, 191u8, 161u8, 227u8, 156u8, 162u8, 102u8, - 82u8, 239u8, 124u8, 162u8, 128u8, 121u8, 183u8, - 120u8, 214u8, 136u8, - ], - ) - } - #[doc = "Destroy all accounts associated with a given asset."] - #[doc = ""] - #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedAccounts` event."] - pub fn destroy_accounts( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "destroy_accounts", - DestroyAccounts { id }, - [ - 35u8, 134u8, 147u8, 165u8, 201u8, 250u8, 221u8, - 158u8, 216u8, 147u8, 218u8, 79u8, 235u8, 188u8, - 10u8, 101u8, 22u8, 48u8, 1u8, 192u8, 176u8, 84u8, - 111u8, 244u8, 99u8, 92u8, 254u8, 49u8, 156u8, 24u8, - 209u8, 180u8, - ], - ) - } - #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] - #[doc = ""] - #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedApprovals` event."] - pub fn destroy_approvals( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "destroy_approvals", - DestroyApprovals { id }, - [ - 138u8, 31u8, 250u8, 93u8, 156u8, 239u8, 19u8, 43u8, - 244u8, 208u8, 159u8, 223u8, 143u8, 253u8, 235u8, - 130u8, 159u8, 117u8, 15u8, 79u8, 1u8, 205u8, 153u8, - 36u8, 38u8, 23u8, 38u8, 0u8, 193u8, 104u8, 140u8, - 225u8, - ], - ) - } - #[doc = "Complete destroying asset and unreserve currency."] - #[doc = ""] - #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] - #[doc = "hand."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each successful call emits the `Event::Destroyed` event."] - pub fn finish_destroy( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "finish_destroy", - FinishDestroy { id }, - [ - 215u8, 16u8, 107u8, 60u8, 181u8, 1u8, 238u8, 172u8, - 36u8, 54u8, 187u8, 26u8, 159u8, 224u8, 161u8, 8u8, - 115u8, 183u8, 132u8, 121u8, 42u8, 165u8, 7u8, - 193u8, 208u8, 124u8, 45u8, 158u8, 100u8, 57u8, - 117u8, 209u8, - ], - ) - } - #[doc = "Mint assets of a particular class."] - #[doc = ""] - #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount minted."] - #[doc = "- `beneficiary`: The account to be credited with the minted assets."] - #[doc = "- `amount`: The amount of the asset to be minted."] - #[doc = ""] - #[doc = "Emits `Issued` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] - pub fn mint( - &self, - id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "mint", - Mint { - id, - beneficiary, - amount, - }, - [ - 21u8, 30u8, 124u8, 32u8, 105u8, 231u8, 137u8, - 139u8, 28u8, 252u8, 232u8, 138u8, 197u8, 0u8, - 109u8, 156u8, 102u8, 83u8, 51u8, 128u8, 246u8, - 186u8, 249u8, 144u8, 133u8, 127u8, 241u8, 152u8, - 201u8, 50u8, 41u8, 105u8, - ], - ) - } - #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] - #[doc = ""] - #[doc = "Bails with `NoAccount` if the `who` is already dead."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount burned."] - #[doc = "- `who`: The account to be debited from."] - #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] - #[doc = ""] - #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] - #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] - pub fn burn( - &self, - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "burn", - Burn { id, who, amount }, - [ - 104u8, 94u8, 68u8, 117u8, 145u8, 209u8, 149u8, - 156u8, 131u8, 137u8, 137u8, 93u8, 114u8, 237u8, - 75u8, 56u8, 77u8, 65u8, 18u8, 71u8, 19u8, 187u8, - 76u8, 145u8, 24u8, 128u8, 62u8, 234u8, 200u8, - 247u8, 196u8, 45u8, - ], - ) - } - #[doc = "Move some assets from the sender account to another."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - pub fn transfer( - &self, - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "transfer", - Transfer { id, target, amount }, - [ - 132u8, 120u8, 134u8, 8u8, 238u8, 66u8, 45u8, 83u8, - 151u8, 8u8, 118u8, 62u8, 2u8, 163u8, 213u8, 255u8, - 42u8, 211u8, 125u8, 21u8, 150u8, 117u8, 177u8, - 21u8, 105u8, 61u8, 3u8, 2u8, 30u8, 70u8, 65u8, - 145u8, - ], - ) - } - #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - pub fn transfer_keep_alive( - &self, - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "transfer_keep_alive", - TransferKeepAlive { id, target, amount }, - [ - 9u8, 46u8, 251u8, 191u8, 91u8, 192u8, 119u8, 203u8, - 147u8, 84u8, 76u8, 27u8, 237u8, 174u8, 67u8, 249u8, - 185u8, 199u8, 240u8, 122u8, 160u8, 111u8, 245u8, - 247u8, 241u8, 197u8, 238u8, 253u8, 75u8, 216u8, - 41u8, 148u8, - ], - ) - } - #[doc = "Move some assets from one account to another."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `source`: The account to be debited."] - #[doc = "- `dest`: The account to be credited."] - #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] - #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] - #[doc = "below the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] - #[doc = "`dest`."] - pub fn force_transfer( - &self, - id: ::core::primitive::u32, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "force_transfer", - ForceTransfer { - id, - source, - dest, - amount, - }, - [ - 253u8, 100u8, 109u8, 66u8, 153u8, 140u8, 39u8, - 85u8, 19u8, 199u8, 68u8, 6u8, 124u8, 200u8, 250u8, - 142u8, 104u8, 55u8, 190u8, 25u8, 117u8, 180u8, - 201u8, 245u8, 153u8, 192u8, 240u8, 5u8, 176u8, - 142u8, 106u8, 92u8, - ], - ) - } - #[doc = "Disallow further unprivileged transfers from an account."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn freeze( - &self, - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "freeze", - Freeze { id, who }, - [ - 191u8, 155u8, 214u8, 95u8, 125u8, 58u8, 207u8, - 76u8, 99u8, 15u8, 102u8, 189u8, 26u8, 232u8, 9u8, - 73u8, 231u8, 114u8, 199u8, 129u8, 110u8, 84u8, - 22u8, 114u8, 108u8, 57u8, 83u8, 246u8, 92u8, 0u8, - 127u8, 53u8, - ], - ) - } - #[doc = "Allow unprivileged transfers from an account again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be unfrozen."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn thaw( - &self, - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "thaw", - Thaw { id, who }, - [ - 52u8, 37u8, 227u8, 9u8, 177u8, 120u8, 93u8, 129u8, - 81u8, 35u8, 107u8, 22u8, 80u8, 58u8, 3u8, 98u8, - 211u8, 65u8, 49u8, 107u8, 184u8, 102u8, 185u8, - 84u8, 160u8, 73u8, 12u8, 242u8, 203u8, 233u8, 79u8, - 117u8, - ], - ) - } - #[doc = "Disallow further unprivileged transfers for the asset class."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn freeze_asset( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "freeze_asset", - FreezeAsset { id }, - [ - 208u8, 101u8, 0u8, 73u8, 41u8, 192u8, 227u8, 44u8, - 189u8, 231u8, 40u8, 124u8, 189u8, 147u8, 136u8, - 210u8, 76u8, 32u8, 249u8, 183u8, 68u8, 58u8, 150u8, - 136u8, 192u8, 47u8, 173u8, 178u8, 225u8, 84u8, - 110u8, 1u8, - ], - ) - } - #[doc = "Allow unprivileged transfers for the asset again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be thawed."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn thaw_asset( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "thaw_asset", - ThawAsset { id }, - [ - 18u8, 198u8, 141u8, 158u8, 182u8, 167u8, 160u8, - 227u8, 20u8, 74u8, 80u8, 164u8, 89u8, 46u8, 168u8, - 139u8, 251u8, 83u8, 155u8, 91u8, 91u8, 46u8, 205u8, - 55u8, 171u8, 175u8, 167u8, 188u8, 116u8, 155u8, - 79u8, 117u8, - ], - ) - } - #[doc = "Change the Owner of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = ""] - #[doc = "Emits `OwnerChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn transfer_ownership( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "transfer_ownership", - TransferOwnership { id, owner }, - [ - 170u8, 94u8, 202u8, 42u8, 41u8, 156u8, 250u8, 63u8, - 113u8, 110u8, 166u8, 129u8, 90u8, 233u8, 35u8, - 87u8, 123u8, 172u8, 65u8, 108u8, 170u8, 237u8, - 252u8, 70u8, 186u8, 12u8, 58u8, 6u8, 173u8, 87u8, - 161u8, 211u8, - ], - ) - } - #[doc = "Change the Issuer, Admin and Freezer of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = ""] - #[doc = "Emits `TeamChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn set_team( - &self, - id: ::core::primitive::u32, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "set_team", - SetTeam { - id, - issuer, - admin, - freezer, - }, - [ - 30u8, 60u8, 182u8, 252u8, 64u8, 97u8, 6u8, 80u8, - 159u8, 204u8, 14u8, 227u8, 54u8, 20u8, 172u8, - 100u8, 77u8, 59u8, 164u8, 247u8, 122u8, 39u8, - 129u8, 106u8, 87u8, 82u8, 77u8, 165u8, 215u8, - 232u8, 159u8, 29u8, - ], - ) - } - #[doc = "Set the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Funds of sender are reserved according to the formula:"] - #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] - #[doc = "account any already reserved funds."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn set_metadata( - &self, - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "set_metadata", - SetMetadata { - id, - name, - symbol, - decimals, - }, - [ - 15u8, 184u8, 50u8, 46u8, 164u8, 27u8, 105u8, 186u8, - 35u8, 115u8, 194u8, 247u8, 74u8, 252u8, 139u8, - 242u8, 108u8, 221u8, 122u8, 15u8, 139u8, 74u8, - 123u8, 17u8, 192u8, 138u8, 182u8, 163u8, 77u8, 7u8, - 124u8, 18u8, - ], - ) - } - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Any deposit is freed for the asset owner."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn clear_metadata( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "clear_metadata", - ClearMetadata { id }, - [ - 192u8, 41u8, 71u8, 183u8, 13u8, 128u8, 244u8, - 255u8, 175u8, 36u8, 99u8, 175u8, 15u8, 129u8, - 228u8, 76u8, 107u8, 214u8, 166u8, 116u8, 244u8, - 139u8, 60u8, 31u8, 123u8, 61u8, 203u8, 59u8, 213u8, - 146u8, 116u8, 126u8, - ], - ) - } - #[doc = "Force the metadata for an asset to some value."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is left alone."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] - pub fn force_set_metadata( - &self, - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - is_frozen: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "force_set_metadata", - ForceSetMetadata { - id, - name, - symbol, - decimals, - is_frozen, - }, - [ - 7u8, 30u8, 55u8, 233u8, 217u8, 113u8, 196u8, 21u8, - 29u8, 122u8, 168u8, 225u8, 63u8, 104u8, 57u8, 78u8, - 76u8, 145u8, 121u8, 118u8, 91u8, 149u8, 87u8, 26u8, - 26u8, 125u8, 44u8, 241u8, 143u8, 138u8, 144u8, 8u8, - ], - ) - } - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is returned."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_clear_metadata( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "force_clear_metadata", - ForceClearMetadata { id }, - [ - 71u8, 191u8, 101u8, 72u8, 188u8, 223u8, 215u8, - 187u8, 200u8, 206u8, 3u8, 42u8, 4u8, 62u8, 117u8, - 106u8, 26u8, 2u8, 68u8, 202u8, 162u8, 142u8, 172u8, - 123u8, 48u8, 196u8, 247u8, 89u8, 147u8, 75u8, 84u8, - 109u8, - ], - ) - } - #[doc = "Alter the attributes of a given asset."] - #[doc = ""] - #[doc = "Origin must be `ForceOrigin`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] - #[doc = "value to account for the state bloat associated with its balance storage. If set to"] - #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] - #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] - #[doc = "growth)."] - #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] - #[doc = "instructions."] - #[doc = ""] - #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_asset_status( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - min_balance: ::core::primitive::u128, - is_sufficient: ::core::primitive::bool, - is_frozen: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "force_asset_status", - ForceAssetStatus { - id, - owner, - issuer, - admin, - freezer, - min_balance, - is_sufficient, - is_frozen, - }, - [ - 46u8, 229u8, 189u8, 83u8, 196u8, 180u8, 79u8, 77u8, - 71u8, 147u8, 77u8, 243u8, 99u8, 3u8, 205u8, 171u8, - 129u8, 25u8, 60u8, 10u8, 162u8, 50u8, 205u8, 231u8, - 184u8, 75u8, 42u8, 230u8, 48u8, 194u8, 236u8, 71u8, - ], - ) - } - #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] - #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] - #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] - #[doc = "meet the right value."] - #[doc = ""] - #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] - #[doc = "making this call."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account to delegate permission to transfer asset."] - #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] - #[doc = "already an approval in place, then this acts additively."] - #[doc = ""] - #[doc = "Emits `ApprovedTransfer` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn approve_transfer( - &self, - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "approve_transfer", - ApproveTransfer { - id, - delegate, - amount, - }, - [ - 85u8, 79u8, 216u8, 233u8, 163u8, 169u8, 226u8, - 111u8, 10u8, 110u8, 33u8, 239u8, 248u8, 222u8, - 84u8, 160u8, 80u8, 164u8, 29u8, 88u8, 164u8, 252u8, - 238u8, 212u8, 9u8, 230u8, 201u8, 166u8, 192u8, - 225u8, 94u8, 13u8, - ], - ) - } - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place between signer and"] - #[doc = "`delegate`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn cancel_approval( - &self, - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "cancel_approval", - CancelApproval { id, delegate }, - [ - 120u8, 10u8, 77u8, 128u8, 1u8, 232u8, 42u8, 2u8, - 87u8, 7u8, 217u8, 51u8, 172u8, 13u8, 136u8, 176u8, - 153u8, 128u8, 196u8, 3u8, 190u8, 139u8, 219u8, - 24u8, 35u8, 51u8, 241u8, 87u8, 67u8, 49u8, 181u8, - 203u8, - ], - ) - } - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] - #[doc = "account of the asset `id`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_cancel_approval( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "force_cancel_approval", - ForceCancelApproval { - id, - owner, - delegate, - }, - [ - 192u8, 196u8, 91u8, 219u8, 20u8, 150u8, 220u8, - 79u8, 81u8, 151u8, 104u8, 109u8, 21u8, 87u8, 158u8, - 169u8, 208u8, 4u8, 241u8, 109u8, 230u8, 166u8, - 237u8, 164u8, 90u8, 54u8, 14u8, 51u8, 84u8, 239u8, - 178u8, 202u8, - ], - ) - } - #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] - #[doc = "account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] - #[doc = "signer."] - #[doc = ""] - #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] - #[doc = "reserved by `approve_transfer` is unreserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] - #[doc = "from which the asset balance will be withdrawn."] - #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] - #[doc = "- `amount`: The amount of assets to transfer."] - #[doc = ""] - #[doc = "Emits `TransferredApproved` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn transfer_approved( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - destination: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "transfer_approved", - TransferApproved { - id, - owner, - destination, - amount, - }, - [ - 151u8, 228u8, 207u8, 182u8, 179u8, 212u8, 208u8, - 3u8, 207u8, 181u8, 193u8, 164u8, 74u8, 160u8, 81u8, - 191u8, 42u8, 227u8, 56u8, 238u8, 50u8, 75u8, 8u8, - 50u8, 131u8, 83u8, 152u8, 20u8, 141u8, 39u8, 29u8, - 205u8, - ], - ) - } - #[doc = "Create an asset account for non-provider assets."] - #[doc = ""] - #[doc = "A deposit will be taken from the signer account."] - #[doc = ""] - #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] - #[doc = " to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = ""] - #[doc = "Emits `Touched` event when successful."] - pub fn touch( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "touch", - Touch { id }, - [ - 114u8, 149u8, 179u8, 168u8, 115u8, 117u8, 32u8, - 50u8, 39u8, 77u8, 148u8, 238u8, 123u8, 96u8, 193u8, - 174u8, 113u8, 141u8, 34u8, 228u8, 228u8, 214u8, - 71u8, 111u8, 55u8, 126u8, 103u8, 181u8, 133u8, - 77u8, 116u8, 105u8, - ], - ) - } - #[doc = "Return the deposit (if any) of an asset account."] - #[doc = ""] - #[doc = "The origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] - #[doc = ""] - #[doc = "Emits `Refunded` event when successful."] - pub fn refund( - &self, - id: ::core::primitive::u32, - allow_burn: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Assets", - "refund", - Refund { id, allow_burn }, - [ - 20u8, 139u8, 248u8, 67u8, 123u8, 221u8, 7u8, 106u8, - 239u8, 156u8, 68u8, 59u8, 81u8, 184u8, 47u8, 188u8, - 195u8, 227u8, 75u8, 168u8, 126u8, 176u8, 91u8, - 187u8, 30u8, 34u8, 24u8, 223u8, 108u8, 101u8, 88u8, - 83u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_assets::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some asset class was created."] - pub struct Created { - pub asset_id: ::core::primitive::u32, - pub creator: ::subxt::utils::AccountId32, - pub owner: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some assets were issued."] - pub struct Issued { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub total_supply: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Issued { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Issued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some assets were transferred."] - pub struct Transferred { - pub asset_id: ::core::primitive::u32, - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transferred { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Transferred"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some assets were destroyed."] - pub struct Burned { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Burned { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Burned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The management team changed."] - pub struct TeamChanged { - pub asset_id: ::core::primitive::u32, - pub issuer: ::subxt::utils::AccountId32, - pub admin: ::subxt::utils::AccountId32, - pub freezer: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TeamChanged { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "TeamChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The owner changed."] - pub struct OwnerChanged { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for OwnerChanged { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "OwnerChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some account `who` was frozen."] - pub struct Frozen { - pub asset_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Frozen { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Frozen"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some account `who` was thawed."] - pub struct Thawed { - pub asset_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Thawed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Thawed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some asset `asset_id` was frozen."] - pub struct AssetFrozen { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AssetFrozen { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AssetFrozen"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some asset `asset_id` was thawed."] - pub struct AssetThawed { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AssetThawed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AssetThawed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Accounts were destroyed for given asset."] - pub struct AccountsDestroyed { - pub asset_id: ::core::primitive::u32, - pub accounts_destroyed: ::core::primitive::u32, - pub accounts_remaining: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AccountsDestroyed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AccountsDestroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Approvals were destroyed for given asset."] - pub struct ApprovalsDestroyed { - pub asset_id: ::core::primitive::u32, - pub approvals_destroyed: ::core::primitive::u32, - pub approvals_remaining: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ApprovalsDestroyed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ApprovalsDestroyed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An asset class is in the process of being destroyed."] - pub struct DestructionStarted { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for DestructionStarted { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "DestructionStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An asset class was destroyed."] - pub struct Destroyed { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some asset class was force-created."] - pub struct ForceCreated { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ForceCreated { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ForceCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New metadata has been set for an asset."] - pub struct MetadataSet { - pub asset_id: ::core::primitive::u32, - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub symbol: ::std::vec::Vec<::core::primitive::u8>, - pub decimals: ::core::primitive::u8, - pub is_frozen: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Metadata has been cleared for an asset."] - pub struct MetadataCleared { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "MetadataCleared"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "(Additional) funds have been approved for transfer to a destination account."] - pub struct ApprovedTransfer { - pub asset_id: ::core::primitive::u32, - pub source: ::subxt::utils::AccountId32, - pub delegate: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for ApprovedTransfer { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ApprovedTransfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An approval for account `delegate` was cancelled by `owner`."] - pub struct ApprovalCancelled { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub delegate: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ApprovalCancelled { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ApprovalCancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] - #[doc = "the approved `delegate`."] - pub struct TransferredApproved { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub delegate: ::subxt::utils::AccountId32, - pub destination: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TransferredApproved { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "TransferredApproved"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An asset has had its attributes changed by the `Force` origin."] - pub struct AssetStatusChanged { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AssetStatusChanged { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AssetStatusChanged"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of an asset."] pub fn asset (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: AssetDetails < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Assets" , "Asset" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [251u8 , 148u8 , 82u8 , 150u8 , 66u8 , 26u8 , 46u8 , 186u8 , 60u8 , 59u8 , 239u8 , 190u8 , 102u8 , 156u8 , 113u8 , 175u8 , 1u8 , 117u8 , 147u8 , 236u8 , 114u8 , 88u8 , 49u8 , 210u8 , 165u8 , 162u8 , 201u8 , 230u8 , 147u8 , 141u8 , 174u8 , 221u8 ,]) - } - #[doc = " Details of an asset."] pub fn asset_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: AssetDetails < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Assets", - "Asset", - Vec::new(), - [ - 251u8, 148u8, 82u8, 150u8, 66u8, 26u8, 46u8, 186u8, - 60u8, 59u8, 239u8, 190u8, 102u8, 156u8, 113u8, - 175u8, 1u8, 117u8, 147u8, 236u8, 114u8, 88u8, 49u8, - 210u8, 165u8, 162u8, 201u8, 230u8, 147u8, 141u8, - 174u8, 221u8, - ], - ) - } - #[doc = " The holdings of a specific account for a specific asset."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: AssetAccount < :: core :: primitive :: u128 , :: core :: primitive :: u128 , () > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Assets" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [109u8 , 245u8 , 93u8 , 133u8 , 206u8 , 68u8 , 94u8 , 233u8 , 29u8 , 113u8 , 245u8 , 201u8 , 241u8 , 2u8 , 200u8 , 179u8 , 37u8 , 199u8 , 128u8 , 243u8 , 49u8 , 50u8 , 122u8 , 139u8 , 135u8 , 48u8 , 201u8 , 109u8 , 195u8 , 38u8 , 205u8 , 32u8 ,]) - } - #[doc = " The holdings of a specific account for a specific asset."] pub fn account_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: AssetAccount < :: core :: primitive :: u128 , :: core :: primitive :: u128 , () > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Assets", - "Account", - Vec::new(), - [ - 109u8, 245u8, 93u8, 133u8, 206u8, 68u8, 94u8, - 233u8, 29u8, 113u8, 245u8, 201u8, 241u8, 2u8, - 200u8, 179u8, 37u8, 199u8, 128u8, 243u8, 49u8, - 50u8, 122u8, 139u8, 135u8, 48u8, 201u8, 109u8, - 195u8, 38u8, 205u8, 32u8, - ], - ) - } - #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] - #[doc = " is the amount of `T::Currency` reserved for storing this."] - #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] pub fn approvals (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _2 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: Approval < :: core :: primitive :: u128 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Assets" , "Approvals" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_2 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [210u8 , 147u8 , 203u8 , 49u8 , 232u8 , 215u8 , 116u8 , 154u8 , 43u8 , 154u8 , 69u8 , 159u8 , 241u8 , 28u8 , 238u8 , 101u8 , 108u8 , 162u8 , 242u8 , 121u8 , 138u8 , 164u8 , 217u8 , 243u8 , 72u8 , 173u8 , 75u8 , 109u8 , 194u8 , 9u8 , 196u8 , 163u8 ,]) - } - #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] - #[doc = " is the amount of `T::Currency` reserved for storing this."] - #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] pub fn approvals_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: Approval < :: core :: primitive :: u128 , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Assets", - "Approvals", - Vec::new(), - [ - 210u8, 147u8, 203u8, 49u8, 232u8, 215u8, 116u8, - 154u8, 43u8, 154u8, 69u8, 159u8, 241u8, 28u8, - 238u8, 101u8, 108u8, 162u8, 242u8, 121u8, 138u8, - 164u8, 217u8, 243u8, 72u8, 173u8, 75u8, 109u8, - 194u8, 9u8, 196u8, 163u8, - ], - ) - } - #[doc = " Metadata of an asset."] pub fn metadata (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: AssetMetadata < :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Assets" , "Metadata" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [80u8 , 115u8 , 155u8 , 115u8 , 136u8 , 108u8 , 82u8 , 93u8 , 65u8 , 130u8 , 143u8 , 228u8 , 170u8 , 234u8 , 182u8 , 170u8 , 229u8 , 217u8 , 168u8 , 71u8 , 81u8 , 80u8 , 16u8 , 112u8 , 209u8 , 82u8 , 8u8 , 165u8 , 80u8 , 137u8 , 58u8 , 170u8 ,]) - } - #[doc = " Metadata of an asset."] pub fn metadata_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_assets :: types :: AssetMetadata < :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Assets", - "Metadata", - Vec::new(), - [ - 80u8, 115u8, 155u8, 115u8, 136u8, 108u8, 82u8, - 93u8, 65u8, 130u8, 143u8, 228u8, 170u8, 234u8, - 182u8, 170u8, 229u8, 217u8, 168u8, 71u8, 81u8, - 80u8, 16u8, 112u8, 209u8, 82u8, 8u8, 165u8, 80u8, - 137u8, 58u8, 170u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call."] - #[doc = ""] - #[doc = " Must be configured to result in a weight that makes each call fit in a block."] - pub fn remove_items_limit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "RemoveItemsLimit", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The basic amount of funds that must be reserved for an asset."] - pub fn asset_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "AssetDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of funds that must be reserved for a non-provider asset account to be"] - #[doc = " maintained."] - pub fn asset_account_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "AssetAccountDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The basic amount of funds that must be reserved when adding metadata to your asset."] - pub fn metadata_deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "MetadataDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The additional funds that must be reserved for the number of bytes you store in your"] - #[doc = " metadata."] - pub fn metadata_deposit_per_byte( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "MetadataDepositPerByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of funds that must be reserved when creating a new approval."] - pub fn approval_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "ApprovalDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum length of a name or symbol stored on-chain."] - pub fn string_limit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Assets", - "StringLimit", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod sudo { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Sudo { - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKey { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SudoAs { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - pub fn sudo( - &self, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "sudo", - Sudo { - call: ::std::boxed::Box::new(call), - }, - [ - 191u8, 25u8, 177u8, 200u8, 243u8, 62u8, 131u8, - 53u8, 236u8, 119u8, 159u8, 239u8, 197u8, 206u8, - 102u8, 210u8, 252u8, 47u8, 244u8, 207u8, 22u8, - 171u8, 216u8, 254u8, 149u8, 170u8, 236u8, 32u8, - 101u8, 159u8, 223u8, 209u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] - pub fn sudo_unchecked_weight( - &self, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "sudo_unchecked_weight", - SudoUncheckedWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 233u8, 247u8, 77u8, 35u8, 94u8, 216u8, 233u8, - 151u8, 105u8, 183u8, 43u8, 116u8, 83u8, 195u8, - 255u8, 222u8, 168u8, 93u8, 34u8, 165u8, 53u8, - 203u8, 99u8, 20u8, 178u8, 231u8, 159u8, 174u8, - 247u8, 67u8, 184u8, 184u8, - ], - ) - } - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] - pub fn set_key( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "set_key", - SetKey { new }, - [ - 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, - 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, - 163u8, 41u8, 138u8, 7u8, 81u8, 98u8, 230u8, 182u8, - 23u8, 222u8, 240u8, 117u8, 173u8, 232u8, 192u8, - 55u8, 92u8, 208u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - pub fn sudo_as( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "sudo_as", - SudoAs { - who, - call: ::std::boxed::Box::new(call), - }, - [ - 97u8, 173u8, 153u8, 77u8, 35u8, 5u8, 128u8, 122u8, - 68u8, 105u8, 124u8, 92u8, 134u8, 157u8, 21u8, 6u8, - 119u8, 196u8, 57u8, 165u8, 188u8, 110u8, 81u8, - 16u8, 129u8, 42u8, 229u8, 118u8, 33u8, 143u8, - 144u8, 99u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_sudo::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct Sudid { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Sudid { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "Sudid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - pub struct KeyChanged { - pub old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "KeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct SudoAsDone { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for SudoAsDone { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "SudoAsDone"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The `AccountId` of the sudo key."] pub fn key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Sudo", - "Key", - vec![], - [ - 244u8, 73u8, 188u8, 136u8, 218u8, 163u8, 68u8, - 179u8, 122u8, 173u8, 34u8, 108u8, 137u8, 28u8, - 182u8, 16u8, 196u8, 92u8, 138u8, 34u8, 102u8, 80u8, - 199u8, 88u8, 107u8, 207u8, 36u8, 22u8, 168u8, - 167u8, 20u8, 142u8, - ], - ) - } - } - } - } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u64 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] - pub fn heartbeat( - &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat< - ::core::primitive::u64, - >, - signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "ImOnline", - "heartbeat", - Heartbeat { - heartbeat, - signature, - }, - [ - 107u8, 222u8, 114u8, 147u8, 99u8, 249u8, 235u8, - 13u8, 39u8, 31u8, 163u8, 178u8, 109u8, 127u8, - 249u8, 33u8, 45u8, 253u8, 184u8, 171u8, 213u8, - 120u8, 249u8, 231u8, 128u8, 254u8, 63u8, 123u8, - 192u8, 175u8, 242u8, 171u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>, - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] pub fn heartbeat_after (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "HeartbeatAfter", - vec![], - [ - 129u8, 139u8, 197u8, 234u8, 125u8, 140u8, 229u8, - 91u8, 216u8, 174u8, 65u8, 69u8, 79u8, 76u8, 0u8, - 46u8, 38u8, 2u8, 229u8, 237u8, 36u8, 195u8, 24u8, - 94u8, 27u8, 36u8, 159u8, 24u8, 166u8, 105u8, 184u8, - 148u8, - ], - ) - } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "Keys", - vec![], - [ - 6u8, 198u8, 221u8, 58u8, 14u8, 166u8, 245u8, 103u8, - 191u8, 20u8, 69u8, 233u8, 147u8, 245u8, 24u8, 64u8, - 207u8, 180u8, 39u8, 208u8, 252u8, 236u8, 247u8, - 112u8, 187u8, 97u8, 70u8, 11u8, 248u8, 148u8, - 208u8, 106u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "ReceivedHeartbeats", - Vec::new(), - [ - 233u8, 128u8, 140u8, 233u8, 55u8, 146u8, 172u8, - 54u8, 54u8, 57u8, 141u8, 106u8, 168u8, 59u8, 147u8, - 253u8, 119u8, 48u8, 50u8, 251u8, 242u8, 109u8, - 251u8, 2u8, 136u8, 80u8, 146u8, 121u8, 180u8, - 219u8, 245u8, 37u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "AuthoredBlocks", - Vec::new(), - [ - 50u8, 4u8, 242u8, 240u8, 247u8, 184u8, 114u8, - 245u8, 233u8, 170u8, 24u8, 197u8, 18u8, 245u8, 8u8, - 28u8, 33u8, 115u8, 166u8, 245u8, 221u8, 223u8, - 56u8, 144u8, 33u8, 139u8, 10u8, 227u8, 228u8, - 223u8, 103u8, 151u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - } - } - } - pub mod authority_discovery { - use super::root_mod; - use super::runtime_types; - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - #[doc = "Events type."] - pub type Event = runtime_types::pallet_offences::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: [::core::primitive::u8; 16usize], - pub timeslot: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_staking :: offence :: OffenceDetails < :: subxt :: utils :: AccountId32 , (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Offences" , "Reports" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [144u8 , 30u8 , 66u8 , 199u8 , 102u8 , 236u8 , 175u8 , 201u8 , 206u8 , 170u8 , 55u8 , 162u8 , 137u8 , 120u8 , 220u8 , 213u8 , 57u8 , 252u8 , 0u8 , 88u8 , 210u8 , 68u8 , 5u8 , 25u8 , 77u8 , 114u8 , 204u8 , 23u8 , 190u8 , 32u8 , 211u8 , 30u8 ,]) - } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_staking :: offence :: OffenceDetails < :: subxt :: utils :: AccountId32 , (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Offences", - "Reports", - Vec::new(), - [ - 144u8, 30u8, 66u8, 199u8, 102u8, 236u8, 175u8, - 201u8, 206u8, 170u8, 55u8, 162u8, 137u8, 120u8, - 220u8, 213u8, 57u8, 252u8, 0u8, 88u8, 210u8, 68u8, - 5u8, 25u8, 77u8, 114u8, 204u8, 23u8, 190u8, 32u8, - 211u8, 30u8, - ], - ) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index (& self , _0 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 16usize] > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Offences" , "ConcurrentReportsIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [106u8 , 21u8 , 104u8 , 5u8 , 4u8 , 66u8 , 28u8 , 70u8 , 161u8 , 195u8 , 238u8 , 28u8 , 69u8 , 241u8 , 221u8 , 113u8 , 140u8 , 103u8 , 181u8 , 143u8 , 60u8 , 177u8 , 13u8 , 129u8 , 224u8 , 149u8 , 77u8 , 32u8 , 75u8 , 74u8 , 101u8 , 65u8 ,]) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: H256 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Offences", - "ConcurrentReportsIndex", - Vec::new(), - [ - 106u8, 21u8, 104u8, 5u8, 4u8, 66u8, 28u8, 70u8, - 161u8, 195u8, 238u8, 28u8, 69u8, 241u8, 221u8, - 113u8, 140u8, 103u8, 181u8, 143u8, 60u8, 177u8, - 13u8, 129u8, 224u8, 149u8, 77u8, 32u8, 75u8, 74u8, - 101u8, 65u8, - ], - ) - } - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] pub fn reports_by_kind_index (& self , _0 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 16usize] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Offences" , "ReportsByKindIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [162u8 , 66u8 , 131u8 , 48u8 , 250u8 , 237u8 , 179u8 , 214u8 , 36u8 , 137u8 , 226u8 , 136u8 , 120u8 , 61u8 , 215u8 , 43u8 , 164u8 , 50u8 , 91u8 , 164u8 , 20u8 , 96u8 , 189u8 , 100u8 , 242u8 , 106u8 , 21u8 , 136u8 , 98u8 , 215u8 , 180u8 , 145u8 ,]) - } - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] pub fn reports_by_kind_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Offences", - "ReportsByKindIndex", - Vec::new(), - [ - 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, - 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, - 215u8, 43u8, 164u8, 50u8, 91u8, 164u8, 20u8, 96u8, - 189u8, 100u8, 242u8, 106u8, 21u8, 136u8, 98u8, - 215u8, 180u8, 145u8, - ], - ) - } - } - } - } - pub mod historical { - use super::root_mod; - use super::runtime_types; - } - pub mod bounties { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeBounty { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ApproveBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnassignCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AcceptCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AwardBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CloseBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExtendBountyExpiry { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - 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: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "propose_bounty", - ProposeBounty { value, description }, - [ - 99u8, 160u8, 94u8, 74u8, 105u8, 161u8, 123u8, - 239u8, 241u8, 117u8, 97u8, 99u8, 84u8, 101u8, 87u8, - 3u8, 88u8, 175u8, 75u8, 59u8, 114u8, 87u8, 18u8, - 113u8, 126u8, 26u8, 42u8, 104u8, 201u8, 128u8, - 102u8, 219u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn approve_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "approve_bounty", - ApproveBounty { bounty_id }, - [ - 82u8, 228u8, 232u8, 103u8, 198u8, 173u8, 190u8, - 148u8, 159u8, 86u8, 48u8, 4u8, 32u8, 169u8, 1u8, - 129u8, 96u8, 145u8, 235u8, 68u8, 48u8, 34u8, 5u8, - 1u8, 76u8, 26u8, 100u8, 228u8, 92u8, 198u8, 183u8, - 173u8, - ], - ) - } - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn propose_curator( - &self, - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "propose_curator", - ProposeCurator { - bounty_id, - curator, - fee, - }, - [ - 85u8, 186u8, 206u8, 137u8, 98u8, 87u8, 202u8, 71u8, - 89u8, 241u8, 56u8, 212u8, 89u8, 215u8, 65u8, 97u8, - 202u8, 139u8, 78u8, 66u8, 92u8, 177u8, 163u8, - 111u8, 212u8, 244u8, 41u8, 153u8, 104u8, 129u8, - 112u8, 237u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn unassign_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "unassign_curator", - UnassignCurator { bounty_id }, - [ - 218u8, 241u8, 247u8, 89u8, 95u8, 120u8, 93u8, 18u8, - 85u8, 114u8, 158u8, 254u8, 68u8, 77u8, 230u8, - 186u8, 230u8, 201u8, 63u8, 223u8, 28u8, 173u8, - 244u8, 82u8, 113u8, 177u8, 99u8, 27u8, 207u8, - 247u8, 207u8, 213u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn accept_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "accept_curator", - AcceptCurator { bounty_id }, - [ - 106u8, 96u8, 22u8, 67u8, 52u8, 109u8, 180u8, 225u8, - 122u8, 253u8, 209u8, 214u8, 132u8, 131u8, 247u8, - 131u8, 162u8, 51u8, 144u8, 30u8, 12u8, 126u8, 50u8, - 152u8, 229u8, 119u8, 54u8, 116u8, 112u8, 235u8, - 34u8, 166u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn award_bounty( - &self, - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "award_bounty", - AwardBounty { - bounty_id, - beneficiary, - }, - [ - 7u8, 205u8, 73u8, 45u8, 57u8, 8u8, 24u8, 135u8, - 89u8, 157u8, 35u8, 176u8, 224u8, 106u8, 167u8, - 232u8, 230u8, 153u8, 239u8, 45u8, 210u8, 61u8, - 17u8, 106u8, 220u8, 131u8, 105u8, 136u8, 232u8, - 194u8, 243u8, 48u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn claim_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "claim_bounty", - ClaimBounty { bounty_id }, - [ - 102u8, 95u8, 8u8, 89u8, 4u8, 126u8, 189u8, 28u8, - 241u8, 16u8, 125u8, 218u8, 42u8, 92u8, 177u8, 91u8, - 8u8, 235u8, 33u8, 48u8, 64u8, 115u8, 177u8, 95u8, - 242u8, 97u8, 181u8, 50u8, 68u8, 37u8, 59u8, 85u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn close_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "close_bounty", - CloseBounty { bounty_id }, - [ - 64u8, 113u8, 151u8, 228u8, 90u8, 55u8, 251u8, 63u8, - 27u8, 211u8, 119u8, 229u8, 137u8, 137u8, 183u8, - 240u8, 241u8, 146u8, 69u8, 169u8, 124u8, 220u8, - 236u8, 111u8, 98u8, 188u8, 100u8, 52u8, 127u8, - 245u8, 244u8, 92u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn extend_bounty_expiry( - &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "extend_bounty_expiry", - ExtendBountyExpiry { bounty_id, remark }, - [ - 97u8, 69u8, 157u8, 39u8, 59u8, 72u8, 79u8, 88u8, - 104u8, 119u8, 91u8, 26u8, 73u8, 216u8, 174u8, 95u8, - 254u8, 214u8, 63u8, 138u8, 100u8, 112u8, 185u8, - 81u8, 159u8, 247u8, 221u8, 60u8, 87u8, 40u8, 80u8, - 202u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bounties::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New bounty proposal."] - pub struct BountyProposed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyProposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty proposal was rejected; funds were slashed."] - pub struct BountyRejected { - pub index: ::core::primitive::u32, - pub bond: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BountyRejected { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyRejected"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty proposal is funded and became active."] - pub struct BountyBecameActive { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyBecameActive { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyBecameActive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty is awarded to a beneficiary."] - pub struct BountyAwarded { - pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for BountyAwarded { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyAwarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty is claimed by beneficiary."] - pub struct BountyClaimed { - pub index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for BountyClaimed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyClaimed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty is cancelled."] - pub struct BountyCanceled { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyCanceled { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyCanceled"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty expiry is extended."] - pub struct BountyExtended { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyExtended { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyExtended"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of bounty proposals that have been made."] pub fn bounty_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "BountyCount", - vec![], - [ - 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, - 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, - 178u8, 202u8, 193u8, 41u8, 83u8, 115u8, 253u8, - 182u8, 123u8, 92u8, 138u8, 12u8, 31u8, 31u8, 213u8, - 23u8, 118u8, - ], - ) - } - #[doc = " Bounties that have been made."] pub fn bounties (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bounties :: Bounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Bounties" , "Bounties" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [252u8 , 32u8 , 63u8 , 115u8 , 137u8 , 66u8 , 138u8 , 21u8 , 35u8 , 169u8 , 4u8 , 0u8 , 35u8 , 110u8 , 154u8 , 43u8 , 155u8 , 63u8 , 61u8 , 194u8 , 149u8 , 151u8 , 83u8 , 35u8 , 207u8 , 147u8 , 80u8 , 49u8 , 111u8 , 197u8 , 172u8 , 188u8 ,]) - } - #[doc = " Bounties that have been made."] pub fn bounties_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bounties :: Bounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u64 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "Bounties", - Vec::new(), - [ - 252u8, 32u8, 63u8, 115u8, 137u8, 66u8, 138u8, 21u8, - 35u8, 169u8, 4u8, 0u8, 35u8, 110u8, 154u8, 43u8, - 155u8, 63u8, 61u8, 194u8, 149u8, 151u8, 83u8, 35u8, - 207u8, 147u8, 80u8, 49u8, 111u8, 197u8, 172u8, - 188u8, - ], - ) - } - #[doc = " The description of each bounty."] pub fn bounty_descriptions (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Bounties" , "BountyDescriptions" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [252u8 , 0u8 , 9u8 , 225u8 , 13u8 , 135u8 , 7u8 , 121u8 , 154u8 , 155u8 , 116u8 , 83u8 , 160u8 , 37u8 , 72u8 , 11u8 , 72u8 , 0u8 , 248u8 , 73u8 , 158u8 , 84u8 , 125u8 , 221u8 , 176u8 , 231u8 , 100u8 , 239u8 , 111u8 , 22u8 , 29u8 , 13u8 ,]) - } - #[doc = " The description of each bounty."] pub fn bounty_descriptions_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "BountyDescriptions", - Vec::new(), - [ - 252u8, 0u8, 9u8, 225u8, 13u8, 135u8, 7u8, 121u8, - 154u8, 155u8, 116u8, 83u8, 160u8, 37u8, 72u8, 11u8, - 72u8, 0u8, 248u8, 73u8, 158u8, 84u8, 125u8, 221u8, - 176u8, 231u8, 100u8, 239u8, 111u8, 22u8, 29u8, - 13u8, - ], - ) - } - #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "BountyApprovals", - vec![], - [ - 64u8, 93u8, 54u8, 94u8, 122u8, 9u8, 246u8, 86u8, - 234u8, 30u8, 125u8, 132u8, 49u8, 128u8, 1u8, 219u8, - 241u8, 13u8, 217u8, 186u8, 48u8, 21u8, 5u8, 227u8, - 71u8, 157u8, 128u8, 226u8, 214u8, 49u8, 249u8, - 183u8, - ], - ) - } - } - } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "BountyDepositPayoutDelay", - [ - 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 = " Bounty duration in blocks."] - pub fn bounty_update_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "BountyUpdatePeriod", - [ - 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 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "CuratorDepositMultiplier", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_max( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "CuratorDepositMax", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_min( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "CuratorDepositMin", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Minimum value for a bounty."] - pub fn bounty_value_minimum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AcceptCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnassignCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - 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: ::core::primitive::u32, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "add_child_bounty", - AddChildBounty { - parent_bounty_id, - value, - description, - }, - [ - 210u8, 156u8, 242u8, 121u8, 28u8, 214u8, 212u8, - 203u8, 46u8, 45u8, 110u8, 25u8, 33u8, 138u8, 136u8, - 71u8, 23u8, 102u8, 203u8, 122u8, 77u8, 162u8, - 112u8, 133u8, 43u8, 73u8, 201u8, 176u8, 102u8, - 68u8, 188u8, 8u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "propose_curator", - ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }, - [ - 147u8, 32u8, 161u8, 72u8, 92u8, 246u8, 250u8, - 138u8, 98u8, 84u8, 229u8, 228u8, 217u8, 128u8, - 168u8, 20u8, 73u8, 113u8, 55u8, 207u8, 117u8, 52u8, - 9u8, 139u8, 223u8, 149u8, 48u8, 1u8, 8u8, 82u8, - 133u8, 112u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "accept_curator", - AcceptCurator { - parent_bounty_id, - child_bounty_id, - }, - [ - 112u8, 175u8, 238u8, 54u8, 132u8, 20u8, 206u8, - 59u8, 220u8, 228u8, 207u8, 222u8, 132u8, 240u8, - 188u8, 0u8, 210u8, 225u8, 234u8, 142u8, 232u8, - 53u8, 64u8, 89u8, 220u8, 29u8, 28u8, 123u8, 125u8, - 207u8, 10u8, 52u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "unassign_curator", - UnassignCurator { - parent_bounty_id, - child_bounty_id, - }, - [ - 228u8, 189u8, 46u8, 75u8, 121u8, 161u8, 150u8, - 87u8, 207u8, 86u8, 192u8, 50u8, 52u8, 61u8, 49u8, - 88u8, 178u8, 182u8, 89u8, 72u8, 203u8, 45u8, 41u8, - 26u8, 149u8, 114u8, 154u8, 169u8, 118u8, 128u8, - 13u8, 211u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "award_child_bounty", - AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }, - [ - 214u8, 25u8, 53u8, 19u8, 146u8, 11u8, 223u8, 173u8, - 22u8, 235u8, 27u8, 57u8, 90u8, 171u8, 161u8, 45u8, - 102u8, 37u8, 171u8, 110u8, 215u8, 151u8, 46u8, - 136u8, 93u8, 7u8, 254u8, 112u8, 47u8, 42u8, 144u8, - 140u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "claim_child_bounty", - ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 134u8, 243u8, 151u8, 228u8, 38u8, 174u8, 96u8, - 140u8, 104u8, 124u8, 166u8, 206u8, 126u8, 211u8, - 17u8, 100u8, 172u8, 5u8, 234u8, 171u8, 125u8, 2u8, - 191u8, 163u8, 72u8, 29u8, 163u8, 107u8, 65u8, 92u8, - 41u8, 45u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "close_child_bounty", - CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 40u8, 0u8, 235u8, 75u8, 36u8, 196u8, 29u8, 26u8, - 30u8, 172u8, 240u8, 44u8, 129u8, 243u8, 55u8, - 211u8, 96u8, 159u8, 72u8, 96u8, 142u8, 68u8, 41u8, - 238u8, 157u8, 167u8, 90u8, 141u8, 213u8, 249u8, - 222u8, 22u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_child_bounties::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is added."] - pub struct Added { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Added { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Added"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is awarded to a beneficiary."] - pub struct Awarded { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is claimed by beneficiary."] - pub struct Claimed { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is cancelled."] - pub struct Canceled { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of total child bounties."] pub fn child_bounty_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildBountyCount", - vec![], - [ - 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, - 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, - 117u8, 160u8, 214u8, 167u8, 7u8, 109u8, 143u8, - 158u8, 1u8, 200u8, 205u8, 17u8, 93u8, 89u8, 26u8, - 30u8, 95u8, - ], - ) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ParentChildBounties" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [127u8 , 161u8 , 181u8 , 79u8 , 235u8 , 196u8 , 252u8 , 162u8 , 39u8 , 15u8 , 251u8 , 49u8 , 125u8 , 80u8 , 101u8 , 24u8 , 234u8 , 88u8 , 212u8 , 126u8 , 63u8 , 63u8 , 19u8 , 75u8 , 137u8 , 125u8 , 38u8 , 250u8 , 77u8 , 49u8 , 76u8 , 188u8 ,]) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ParentChildBounties", - Vec::new(), - [ - 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, - 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, - 24u8, 234u8, 88u8, 212u8, 126u8, 63u8, 63u8, 19u8, - 75u8, 137u8, 125u8, 38u8, 250u8, 77u8, 49u8, 76u8, - 188u8, - ], - ) - } - #[doc = " Child bounties that have been added."] pub fn child_bounties (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_child_bounties :: ChildBounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u64 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ChildBounties" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [99u8 , 216u8 , 128u8 , 63u8 , 135u8 , 176u8 , 227u8 , 200u8 , 21u8 , 159u8 , 149u8 , 70u8 , 203u8 , 203u8 , 115u8 , 26u8 , 1u8 , 104u8 , 239u8 , 89u8 , 204u8 , 40u8 , 87u8 , 147u8 , 58u8 , 223u8 , 89u8 , 187u8 , 125u8 , 237u8 , 104u8 , 197u8 ,]) - } - #[doc = " Child bounties that have been added."] pub fn child_bounties_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_child_bounties :: ChildBounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u64 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildBounties", - Vec::new(), - [ - 99u8, 216u8, 128u8, 63u8, 135u8, 176u8, 227u8, - 200u8, 21u8, 159u8, 149u8, 70u8, 203u8, 203u8, - 115u8, 26u8, 1u8, 104u8, 239u8, 89u8, 204u8, 40u8, - 87u8, 147u8, 58u8, 223u8, 89u8, 187u8, 125u8, - 237u8, 104u8, 197u8, - ], - ) - } - #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ChildBountyDescriptions" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [193u8 , 200u8 , 40u8 , 30u8 , 14u8 , 71u8 , 90u8 , 42u8 , 58u8 , 253u8 , 225u8 , 158u8 , 172u8 , 10u8 , 45u8 , 238u8 , 36u8 , 144u8 , 184u8 , 153u8 , 11u8 , 157u8 , 125u8 , 220u8 , 175u8 , 31u8 , 28u8 , 93u8 , 207u8 , 212u8 , 141u8 , 74u8 ,]) - } - #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildBountyDescriptions", - Vec::new(), - [ - 193u8, 200u8, 40u8, 30u8, 14u8, 71u8, 90u8, 42u8, - 58u8, 253u8, 225u8, 158u8, 172u8, 10u8, 45u8, - 238u8, 36u8, 144u8, 184u8, 153u8, 11u8, 157u8, - 125u8, 220u8, 175u8, 31u8, 28u8, 93u8, 207u8, - 212u8, 141u8, 74u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ChildrenCuratorFees" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [174u8 , 128u8 , 86u8 , 179u8 , 133u8 , 76u8 , 98u8 , 169u8 , 234u8 , 166u8 , 249u8 , 214u8 , 172u8 , 171u8 , 8u8 , 161u8 , 105u8 , 69u8 , 148u8 , 151u8 , 35u8 , 174u8 , 118u8 , 139u8 , 101u8 , 56u8 , 85u8 , 211u8 , 121u8 , 168u8 , 0u8 , 216u8 ,]) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildrenCuratorFees", - Vec::new(), - [ - 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, - 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, - 8u8, 161u8, 105u8, 69u8, 148u8, 151u8, 35u8, 174u8, - 118u8, 139u8, 101u8, 56u8, 85u8, 211u8, 121u8, - 168u8, 0u8, 216u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of child bounties that can be added to a parent bounty."] - pub fn max_active_child_bounty_count( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ChildBounties", - "MaxActiveChildBountyCount", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Minimum value for a child-bounty."] - pub fn child_bounty_value_minimum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 bags_list { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "BagsList", - "rebag", - Rebag { dislocated }, - [ - 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, - 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, - 116u8, 237u8, 55u8, 151u8, 71u8, 119u8, 42u8, 48u8, - 10u8, 66u8, 167u8, 208u8, 184u8, 228u8, 146u8, - 181u8, 84u8, 70u8, - ], - ) - } - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "BagsList", - "put_in_front_of", - PutInFrontOf { lighter }, - [ - 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, - 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, - 148u8, 76u8, 246u8, 71u8, 246u8, 205u8, 82u8, 32u8, - 186u8, 33u8, 5u8, 183u8, 127u8, 153u8, 232u8, 80u8, - 164u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bags_list::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Moved an account from one bag to another."] - pub struct Rebagged { - pub who: ::subxt::utils::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Rebagged { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "Rebagged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Updated the score of some account to the given amount."] - pub struct ScoreUpdated { - pub who: ::subxt::utils::AccountId32, - pub new_score: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ScoreUpdated { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "ScoreUpdated"; - } - } - pub mod storage { - use super::runtime_types; - 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 (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Node > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) - } - #[doc = " A single node, within some bag."] - #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Node > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BagsList", - "ListNodes", - Vec::new(), - [ - 176u8, 186u8, 93u8, 51u8, 100u8, 184u8, 240u8, - 29u8, 70u8, 3u8, 117u8, 47u8, 23u8, 66u8, 231u8, - 234u8, 53u8, 8u8, 234u8, 175u8, 181u8, 8u8, 161u8, - 154u8, 48u8, 178u8, 147u8, 227u8, 122u8, 115u8, - 57u8, 97u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BagsList", - "CounterForListNodes", - vec![], - [ - 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, - 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, - 210u8, 131u8, 87u8, 0u8, 241u8, 230u8, 160u8, - 142u8, 128u8, 153u8, 83u8, 36u8, 88u8, 247u8, 70u8, - 130u8, - ], - ) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Bag > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Bag > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BagsList", - "ListBags", - Vec::new(), - [ - 38u8, 86u8, 63u8, 92u8, 85u8, 59u8, 225u8, 244u8, - 14u8, 155u8, 76u8, 249u8, 153u8, 140u8, 179u8, 7u8, - 96u8, 170u8, 236u8, 179u8, 4u8, 18u8, 232u8, 146u8, - 216u8, 51u8, 135u8, 116u8, 196u8, 117u8, 143u8, - 153u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The list of thresholds separating the various bags."] - #[doc = ""] - #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] - #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] - #[doc = " is less than or equal to its upper threshold."] - #[doc = ""] - #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] - #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] - #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] - #[doc = ""] - #[doc = " # Expressing the constant"] - #[doc = ""] - #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] - #[doc = " permitted."] - #[doc = ""] - #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] - #[doc = " specified within the bag. For any two threshold lists, if one ends with"] - #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] - #[doc = " lists will behave identically."] - #[doc = ""] - #[doc = " # Calculation"] - #[doc = ""] - #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] - #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] - #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] - #[doc = ""] - #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] - #[doc = ""] - #[doc = " # Examples"] - #[doc = ""] - #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] - #[doc = " iteration is strictly in insertion order."] - #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is equal to 2."] - #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] - #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] - #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] - #[doc = ""] - #[doc = " # Migration"] - #[doc = ""] - #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] - #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub fn bag_thresholds( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::core::primitive::u64>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "BagsList", - "BagThresholds", - [ - 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, - 172u8, 112u8, 234u8, 25u8, 175u8, 178u8, 19u8, - 251u8, 73u8, 91u8, 192u8, 227u8, 81u8, 249u8, 45u8, - 126u8, 116u8, 7u8, 37u8, 9u8, 200u8, 167u8, 182u8, - 12u8, 131u8, - ], - ) - } - } - } - } - pub mod nomination_pools { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Join { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondExtra { - pub extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimPayout; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unbond { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithdrawUnbonded { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub pool_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: runtime_types::pallet_nomination_pools::PoolState, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetConfigs { - pub min_join_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub min_create_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub max_pools: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members_per_pool: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Chill { - pub pool_id: ::core::primitive::u32, - } - 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: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "join", - Join { amount, pool_id }, - [ - 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, - 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, - 197u8, 20u8, 75u8, 226u8, 29u8, 118u8, 208u8, 60u8, - 192u8, 247u8, 222u8, 100u8, 69u8, 80u8, 172u8, - 13u8, 69u8, 250u8, - ], - ) - } - #[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."] - pub fn bond_extra( - &self, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "bond_extra", - BondExtra { extra }, - [ - 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, - 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, - 197u8, 34u8, 21u8, 188u8, 248u8, 191u8, 11u8, 10u8, - 236u8, 161u8, 168u8, 37u8, 38u8, 238u8, 61u8, - 183u8, 86u8, 55u8, - ], - ) - } - #[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 there 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\"."] - pub fn claim_payout( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "claim_payout", - ClaimPayout {}, - [ - 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, - 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, - 221u8, 218u8, 1u8, 222u8, 5u8, 236u8, 32u8, 88u8, - 0u8, 198u8, 72u8, 196u8, 181u8, 104u8, 16u8, 212u8, - 29u8, - ], - ) - } - #[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 state-toggler. This is"] - #[doc = " refereed to 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "unbond", - Unbond { - member_account, - unbonding_points, - }, - [ - 139u8, 71u8, 78u8, 184u8, 141u8, 89u8, 179u8, - 123u8, 153u8, 30u8, 116u8, 186u8, 148u8, 49u8, - 48u8, 98u8, 33u8, 21u8, 29u8, 106u8, 180u8, 212u8, - 37u8, 251u8, 237u8, 21u8, 255u8, 13u8, 236u8, 73u8, - 250u8, 57u8, - ], - ) - } - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their 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: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "pool_withdraw_unbonded", - PoolWithdrawUnbonded { - pool_id, - num_slashing_spans, - }, - [ - 152u8, 245u8, 131u8, 247u8, 106u8, 214u8, 154u8, - 8u8, 7u8, 210u8, 149u8, 218u8, 118u8, 46u8, 242u8, - 182u8, 191u8, 119u8, 28u8, 199u8, 36u8, 49u8, - 219u8, 123u8, 58u8, 203u8, 211u8, 226u8, 217u8, - 36u8, 56u8, 0u8, - ], - ) - } - #[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 state-toggler."] - #[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."] - pub fn withdraw_unbonded( - &self, - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "withdraw_unbonded", - WithdrawUnbonded { - member_account, - num_slashing_spans, - }, - [ - 192u8, 183u8, 121u8, 87u8, 176u8, 70u8, 91u8, - 226u8, 156u8, 79u8, 87u8, 34u8, 227u8, 84u8, 22u8, - 235u8, 3u8, 181u8, 166u8, 194u8, 147u8, 72u8, 27u8, - 221u8, 57u8, 14u8, 44u8, 70u8, 253u8, 236u8, 44u8, - 84u8, - ], - ) - } - #[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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - pub fn create( - &self, - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "create", - Create { - amount, - root, - nominator, - state_toggler, - }, - [ - 73u8, 99u8, 205u8, 59u8, 21u8, 182u8, 163u8, 158u8, - 99u8, 182u8, 182u8, 63u8, 212u8, 84u8, 48u8, 244u8, - 95u8, 153u8, 86u8, 104u8, 92u8, 93u8, 191u8, 79u8, - 163u8, 123u8, 20u8, 121u8, 241u8, 194u8, 79u8, - 112u8, - ], - ) - } - #[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: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "create_with_pool_id", - CreateWithPoolId { - amount, - root, - nominator, - state_toggler, - pool_id, - }, - [ - 113u8, 67u8, 242u8, 175u8, 174u8, 4u8, 116u8, 44u8, - 157u8, 35u8, 13u8, 23u8, 55u8, 80u8, 255u8, 103u8, - 196u8, 247u8, 105u8, 152u8, 108u8, 145u8, 180u8, - 169u8, 252u8, 159u8, 175u8, 241u8, 122u8, 136u8, - 252u8, 95u8, - ], - ) - } - #[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."] - pub fn nominate( - &self, - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "nominate", - Nominate { - pool_id, - validators, - }, - [ - 10u8, 235u8, 64u8, 157u8, 36u8, 249u8, 186u8, 27u8, - 79u8, 172u8, 25u8, 3u8, 203u8, 19u8, 192u8, 182u8, - 36u8, 103u8, 13u8, 20u8, 89u8, 140u8, 159u8, 4u8, - 132u8, 242u8, 192u8, 146u8, 55u8, 251u8, 216u8, - 255u8, - ], - ) - } - #[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 state toggler, 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: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "set_state", - SetState { pool_id, state }, - [ - 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, - 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, - 151u8, 25u8, 194u8, 192u8, 187u8, 39u8, 170u8, - 212u8, 125u8, 75u8, 250u8, 248u8, 175u8, 159u8, - 161u8, 151u8, 162u8, - ], - ) - } - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] - #[doc = "of the pool."] - pub fn set_metadata( - &self, - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "set_metadata", - SetMetadata { pool_id, metadata }, - [ - 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, - 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, - 1u8, 6u8, 26u8, 168u8, 7u8, 8u8, 115u8, 158u8, - 151u8, 30u8, 211u8, 52u8, 177u8, 234u8, 87u8, - 125u8, 127u8, - ], - ) - } - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - pub fn set_configs( - &self, - 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 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "set_configs", - SetConfigs { - min_join_bond, - min_create_bond, - max_pools, - max_members, - max_members_per_pool, - }, - [ - 143u8, 196u8, 211u8, 30u8, 71u8, 15u8, 150u8, - 243u8, 7u8, 178u8, 179u8, 168u8, 40u8, 116u8, - 220u8, 140u8, 18u8, 206u8, 6u8, 189u8, 190u8, 37u8, - 68u8, 41u8, 45u8, 233u8, 247u8, 172u8, 185u8, 34u8, - 243u8, 187u8, - ], - ) - } - #[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: ::core::primitive::u32, - new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - new_state_toggler : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "update_roles", - UpdateRoles { - pool_id, - new_root, - new_nominator, - new_state_toggler, - }, - [ - 247u8, 95u8, 234u8, 56u8, 181u8, 229u8, 158u8, - 97u8, 69u8, 165u8, 38u8, 17u8, 27u8, 209u8, 204u8, - 250u8, 91u8, 193u8, 35u8, 93u8, 215u8, 131u8, - 148u8, 73u8, 67u8, 188u8, 92u8, 32u8, 34u8, 37u8, - 113u8, 93u8, - ], - ) - } - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - pub fn chill( - &self, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "chill", - Chill { pool_id }, - [ - 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, - 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, - 240u8, 172u8, 229u8, 132u8, 64u8, 175u8, 87u8, - 217u8, 27u8, 11u8, 124u8, 1u8, 140u8, 40u8, 191u8, - 187u8, 36u8, - ], - ) - } - } - } - #[doc = "Events of this pallet."] - pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A pool has been created."] - pub struct Created { - pub depositor: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A member has became bonded in a pool."] - pub struct Bonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub bonded: ::core::primitive::u128, - pub joined: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A payout has been made to a member."] - pub struct PaidOut { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PaidOut { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PaidOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - pub era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A pool has been destroyed."] - pub struct Destroyed { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The state of a pool has changed"] - pub struct StateChanged { - pub pool_id: ::core::primitive::u32, - pub new_state: - runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::events::StaticEvent for StateChanged { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "StateChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "MemberRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::option::Option<::subxt::utils::AccountId32>, - pub state_toggler: - ::core::option::Option<::subxt::utils::AccountId32>, - pub nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for RolesUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "RolesUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - pub struct PoolSlashed { - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - pub struct UnbondingPoolSlashed { - pub pool_id: ::core::primitive::u32, - pub era: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "UnbondingPoolSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MinJoinBond", - vec![], - [ - 125u8, 239u8, 45u8, 225u8, 74u8, 129u8, 247u8, - 184u8, 205u8, 58u8, 45u8, 186u8, 126u8, 170u8, - 112u8, 120u8, 23u8, 190u8, 247u8, 97u8, 131u8, - 126u8, 215u8, 44u8, 147u8, 122u8, 132u8, 212u8, - 217u8, 84u8, 240u8, 91u8, - ], - ) - } - #[doc = " Minimum bond required to create a pool."] - #[doc = ""] - #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] - #[doc = " indication of \"skin in the game\"."] - #[doc = ""] - #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] - #[doc = " while all other accounts leave."] pub fn min_create_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MinCreateBond", - vec![], - [ - 31u8, 208u8, 240u8, 158u8, 23u8, 218u8, 212u8, - 138u8, 92u8, 210u8, 207u8, 170u8, 32u8, 60u8, 5u8, - 21u8, 84u8, 162u8, 1u8, 111u8, 181u8, 243u8, 24u8, - 148u8, 193u8, 253u8, 248u8, 190u8, 16u8, 222u8, - 219u8, 67u8, - ], - ) - } - #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] - #[doc = " pools can exist."] pub fn max_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MaxPools", - vec![], - [ - 216u8, 111u8, 68u8, 103u8, 33u8, 50u8, 109u8, 3u8, - 176u8, 195u8, 23u8, 73u8, 112u8, 138u8, 9u8, 194u8, - 233u8, 73u8, 68u8, 215u8, 162u8, 255u8, 217u8, - 173u8, 141u8, 27u8, 72u8, 199u8, 7u8, 240u8, 25u8, - 34u8, - ], - ) - } - #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] - #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MaxPoolMembers", - vec![], - [ - 82u8, 217u8, 26u8, 234u8, 223u8, 241u8, 66u8, - 182u8, 43u8, 233u8, 59u8, 242u8, 202u8, 254u8, - 69u8, 50u8, 254u8, 196u8, 166u8, 89u8, 120u8, 87u8, - 76u8, 148u8, 31u8, 197u8, 49u8, 88u8, 206u8, 41u8, - 242u8, 62u8, - ], - ) - } - #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] - #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MaxPoolMembersPerPool", - vec![], - [ - 93u8, 241u8, 16u8, 169u8, 138u8, 199u8, 128u8, - 149u8, 65u8, 30u8, 55u8, 11u8, 41u8, 252u8, 83u8, - 250u8, 9u8, 33u8, 152u8, 239u8, 195u8, 147u8, 16u8, - 248u8, 180u8, 153u8, 88u8, 231u8, 248u8, 169u8, - 186u8, 48u8, - ], - ) - } - #[doc = " Active members."] pub fn pool_members (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: PoolMember > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) - } - #[doc = " Active members."] pub fn pool_members_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: PoolMember > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "PoolMembers", - Vec::new(), - [ - 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, - 144u8, 5u8, 108u8, 70u8, 30u8, 177u8, 232u8, 253u8, - 237u8, 211u8, 91u8, 63u8, 62u8, 155u8, 151u8, - 153u8, 165u8, 206u8, 53u8, 111u8, 31u8, 60u8, - 120u8, 100u8, 249u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForPoolMembers", - vec![], - [ - 114u8, 126u8, 27u8, 138u8, 119u8, 44u8, 45u8, - 129u8, 84u8, 107u8, 171u8, 206u8, 117u8, 141u8, - 20u8, 75u8, 229u8, 237u8, 31u8, 229u8, 124u8, - 190u8, 27u8, 124u8, 63u8, 59u8, 167u8, 42u8, 62u8, - 212u8, 160u8, 2u8, - ], - ) - } - #[doc = " Storage for bonded pools."] pub fn bonded_pools (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: BondedPoolInner > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) - } - #[doc = " Storage for bonded pools."] pub fn bonded_pools_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: BondedPoolInner > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "BondedPools", - Vec::new(), - [ - 34u8, 51u8, 86u8, 95u8, 237u8, 118u8, 40u8, 212u8, - 128u8, 227u8, 113u8, 6u8, 116u8, 28u8, 96u8, 223u8, - 63u8, 249u8, 33u8, 152u8, 61u8, 7u8, 205u8, 220u8, - 221u8, 174u8, 207u8, 39u8, 53u8, 176u8, 13u8, 74u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForBondedPools", - vec![], - [ - 134u8, 94u8, 199u8, 73u8, 174u8, 253u8, 66u8, - 242u8, 233u8, 244u8, 140u8, 170u8, 242u8, 40u8, - 41u8, 185u8, 183u8, 151u8, 58u8, 111u8, 221u8, - 225u8, 81u8, 71u8, 169u8, 219u8, 223u8, 135u8, 8u8, - 171u8, 180u8, 236u8, - ], - ) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: RewardPool > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: RewardPool > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "RewardPools", - Vec::new(), - [ - 139u8, 123u8, 46u8, 107u8, 9u8, 83u8, 141u8, 12u8, - 188u8, 225u8, 170u8, 215u8, 154u8, 21u8, 100u8, - 95u8, 237u8, 245u8, 46u8, 216u8, 199u8, 184u8, - 187u8, 155u8, 8u8, 16u8, 34u8, 177u8, 153u8, 65u8, - 109u8, 198u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForRewardPools", - vec![], - [ - 209u8, 139u8, 212u8, 116u8, 210u8, 178u8, 213u8, - 38u8, 75u8, 23u8, 188u8, 57u8, 253u8, 213u8, 95u8, - 118u8, 182u8, 250u8, 45u8, 205u8, 17u8, 175u8, - 17u8, 201u8, 234u8, 14u8, 98u8, 49u8, 143u8, 135u8, - 201u8, 81u8, - ], - ) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: SubPools > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: SubPools > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "SubPoolsStorage", - Vec::new(), - [ - 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, - 134u8, 224u8, 196u8, 94u8, 201u8, 229u8, 29u8, - 155u8, 211u8, 163u8, 150u8, 157u8, 34u8, 68u8, - 238u8, 55u8, 4u8, 222u8, 96u8, 186u8, 29u8, 205u8, - 237u8, 80u8, 42u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForSubPoolsStorage", - vec![], - [ - 212u8, 145u8, 212u8, 226u8, 234u8, 31u8, 26u8, - 240u8, 107u8, 91u8, 171u8, 120u8, 41u8, 195u8, - 16u8, 86u8, 55u8, 127u8, 103u8, 93u8, 128u8, 48u8, - 69u8, 104u8, 168u8, 236u8, 81u8, 54u8, 2u8, 184u8, - 215u8, 51u8, - ], - ) - } - #[doc = " Metadata for the pool."] pub fn metadata (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) - } - #[doc = " Metadata for the pool."] pub fn metadata_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "Metadata", - Vec::new(), - [ - 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, - 62u8, 97u8, 163u8, 161u8, 215u8, 171u8, 225u8, - 49u8, 18u8, 37u8, 200u8, 143u8, 254u8, 136u8, 26u8, - 54u8, 187u8, 39u8, 3u8, 216u8, 24u8, 188u8, 25u8, - 243u8, 251u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForMetadata", - vec![], - [ - 190u8, 232u8, 77u8, 134u8, 245u8, 89u8, 160u8, - 187u8, 163u8, 68u8, 188u8, 204u8, 31u8, 145u8, - 219u8, 165u8, 213u8, 1u8, 167u8, 90u8, 175u8, - 218u8, 147u8, 144u8, 158u8, 226u8, 23u8, 233u8, - 55u8, 168u8, 161u8, 237u8, - ], - ) - } - #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "LastPoolId", - vec![], - [ - 50u8, 254u8, 218u8, 41u8, 213u8, 184u8, 170u8, - 166u8, 31u8, 29u8, 196u8, 57u8, 215u8, 20u8, 40u8, - 40u8, 19u8, 22u8, 9u8, 184u8, 11u8, 21u8, 21u8, - 125u8, 97u8, 38u8, 219u8, 209u8, 2u8, 238u8, 247u8, - 51u8, - ], - ) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "ReversePoolIdLookup", - Vec::new(), - [ - 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, - 236u8, 159u8, 36u8, 237u8, 120u8, 128u8, 6u8, - 191u8, 41u8, 159u8, 94u8, 178u8, 174u8, 235u8, - 221u8, 173u8, 44u8, 81u8, 211u8, 255u8, 231u8, - 81u8, 16u8, 87u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForReversePoolIdLookup", - vec![], - [ - 148u8, 83u8, 81u8, 33u8, 188u8, 72u8, 148u8, 208u8, - 245u8, 178u8, 52u8, 245u8, 229u8, 140u8, 100u8, - 152u8, 8u8, 217u8, 161u8, 80u8, 226u8, 42u8, 15u8, - 252u8, 90u8, 197u8, 120u8, 114u8, 144u8, 90u8, - 199u8, 123u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The nomination pool's pallet id."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "NominationPools", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] - #[doc = ""] - #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] - #[doc = " ratio becomes disproportional."] - #[doc = ""] - #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] - #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] - #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] - #[doc = " the chain, in the absolute worse case."] - #[doc = ""] - #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] - #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] - pub fn max_points_to_balance( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod hasher_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetParameters { - pub parameters: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "HasherBn254", - "force_set_parameters", - ForceSetParameters { parameters }, - [ - 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, - 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, - 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, - 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, - 75u8, 166u8, 90u8, 127u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_hasher::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] pub fn parameters (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "HasherBn254", - "Parameters", - vec![], - [ - 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, - 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, - 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, - 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, - 110u8, 163u8, 192u8, - ], - ) - } - } - } - } - pub mod asset_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Register { pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , pub existential_deposit : :: core :: primitive :: u128 , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Update { pub asset_id : :: core :: primitive :: u32 , pub bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , pub existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub asset_id: ::core::primitive::u32, - pub symbol: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub decimals: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetLocation { - pub asset_id: ::core::primitive::u32, - pub location: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddAssetToPool { - pub pool: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub asset_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DeleteAssetFromPool { - pub pool: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub asset_id: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Register a new asset."] - #[doc = ""] - #[doc = "Asset is identified by `name` and the name must not be used to"] - #[doc = "register another asset."] - #[doc = ""] - #[doc = "New asset is given `NextAssetId` - sequential asset id"] - #[doc = ""] - #[doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] - #[doc = "be retrieved by name too (Note: this approach is used in AMM"] - #[doc = "implementation (xyk))"] - #[doc = ""] - #[doc = "Emits 'Registered` event when successful."] - pub fn register( - &self, - name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool >, - existential_deposit: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "register", - Register { - name, - asset_type, - existential_deposit, - }, - [ - 252u8, 45u8, 222u8, 83u8, 254u8, 164u8, 199u8, - 163u8, 77u8, 255u8, 2u8, 143u8, 50u8, 226u8, 47u8, - 91u8, 89u8, 75u8, 143u8, 234u8, 96u8, 83u8, 255u8, - 78u8, 146u8, 32u8, 217u8, 112u8, 52u8, 190u8, - 107u8, 187u8, - ], - ) - } - #[doc = "Update registered asset."] - #[doc = ""] - #[doc = "Updates also mapping between name and asset id if provided name is"] - #[doc = "different than currently registered."] - #[doc = ""] - #[doc = "Emits `Updated` event when successful."] - pub fn update( - &self, - asset_id: ::core::primitive::u32, - bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool >, - existential_deposit: ::core::option::Option< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "update", - Update { - asset_id, - bounded_name, - asset_type, - existential_deposit, - }, - [ - 71u8, 166u8, 66u8, 176u8, 128u8, 130u8, 47u8, - 243u8, 184u8, 119u8, 22u8, 2u8, 97u8, 59u8, 228u8, - 103u8, 144u8, 189u8, 83u8, 74u8, 190u8, 103u8, - 139u8, 217u8, 184u8, 92u8, 157u8, 83u8, 185u8, - 83u8, 34u8, 186u8, - ], - ) - } - #[doc = "Set metadata for an asset."] - #[doc = ""] - #[doc = "- `asset_id`: Asset identifier."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet` event when successful."] - pub fn set_metadata( - &self, - asset_id: ::core::primitive::u32, - symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - decimals: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "set_metadata", - SetMetadata { - asset_id, - symbol, - decimals, - }, - [ - 9u8, 120u8, 57u8, 240u8, 115u8, 83u8, 59u8, 131u8, - 253u8, 150u8, 149u8, 66u8, 75u8, 74u8, 35u8, 97u8, - 62u8, 134u8, 103u8, 15u8, 121u8, 202u8, 35u8, - 240u8, 138u8, 20u8, 146u8, 174u8, 99u8, 252u8, - 110u8, 194u8, - ], - ) - } - #[doc = "Set asset native location."] - #[doc = ""] - #[doc = "Adds mapping between native location and local asset id and vice"] - #[doc = "versa."] - #[doc = ""] - #[doc = "Mainly used in XCM."] - #[doc = ""] - #[doc = "Emits `LocationSet` event when successful."] - pub fn set_location( - &self, - asset_id: ::core::primitive::u32, - location: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "set_location", - SetLocation { asset_id, location }, - [ - 235u8, 57u8, 17u8, 193u8, 114u8, 60u8, 211u8, - 237u8, 163u8, 80u8, 178u8, 91u8, 195u8, 168u8, - 220u8, 77u8, 64u8, 129u8, 242u8, 37u8, 36u8, 166u8, - 28u8, 157u8, 222u8, 9u8, 197u8, 128u8, 175u8, - 118u8, 131u8, 237u8, - ], - ) - } - #[doc = "Add an asset to an existing pool."] - pub fn add_asset_to_pool( - &self, - pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "add_asset_to_pool", - AddAssetToPool { pool, asset_id }, - [ - 150u8, 36u8, 8u8, 105u8, 253u8, 91u8, 165u8, 163u8, - 178u8, 235u8, 110u8, 227u8, 183u8, 8u8, 126u8, - 217u8, 243u8, 37u8, 13u8, 66u8, 72u8, 239u8, 2u8, - 178u8, 152u8, 26u8, 39u8, 131u8, 225u8, 10u8, - 123u8, 134u8, - ], - ) - } - #[doc = "Remove an asset from an existing pool."] - pub fn delete_asset_from_pool( - &self, - pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "delete_asset_from_pool", - DeleteAssetFromPool { pool, asset_id }, - [ - 41u8, 72u8, 157u8, 129u8, 82u8, 30u8, 47u8, 66u8, - 180u8, 182u8, 0u8, 171u8, 251u8, 195u8, 72u8, - 181u8, 1u8, 45u8, 233u8, 220u8, 7u8, 45u8, 43u8, - 68u8, 164u8, 107u8, 196u8, 34u8, 225u8, 174u8, - 22u8, 102u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_asset_registry::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Asset was registered."] - pub struct Registered { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } - impl ::subxt::events::StaticEvent for Registered { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "Registered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Asset was updated."] - pub struct Updated { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } - impl ::subxt::events::StaticEvent for Updated { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "Updated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Metadata set for an asset."] - pub struct MetadataSet { - pub asset_id: ::core::primitive::u32, - pub symbol: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub decimals: ::core::primitive::u8, - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Native location set for an asset."] - pub struct LocationSet { - pub asset_id: ::core::primitive::u32, - pub location: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for LocationSet { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "LocationSet"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of an asset."] pub fn assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "Assets" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [182u8 , 114u8 , 167u8 , 11u8 , 64u8 , 250u8 , 48u8 , 87u8 , 231u8 , 111u8 , 138u8 , 236u8 , 205u8 , 82u8 , 37u8 , 218u8 , 41u8 , 136u8 , 38u8 , 62u8 , 215u8 , 152u8 , 76u8 , 17u8 , 209u8 , 60u8 , 196u8 , 247u8 , 99u8 , 45u8 , 32u8 , 224u8 ,]) - } - #[doc = " Details of an asset."] pub fn assets_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "Assets", - Vec::new(), - [ - 182u8, 114u8, 167u8, 11u8, 64u8, 250u8, 48u8, 87u8, - 231u8, 111u8, 138u8, 236u8, 205u8, 82u8, 37u8, - 218u8, 41u8, 136u8, 38u8, 62u8, 215u8, 152u8, 76u8, - 17u8, 209u8, 60u8, 196u8, 247u8, 99u8, 45u8, 32u8, - 224u8, - ], - ) - } - #[doc = " Next available asset id. This is sequential id assigned for each new"] - #[doc = " registered asset."] pub fn next_asset_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "NextAssetId", - vec![], - [ - 130u8, 214u8, 178u8, 195u8, 222u8, 57u8, 89u8, - 143u8, 138u8, 218u8, 234u8, 251u8, 36u8, 221u8, - 51u8, 213u8, 130u8, 249u8, 153u8, 24u8, 245u8, - 51u8, 126u8, 71u8, 51u8, 148u8, 167u8, 143u8, 33u8, - 15u8, 44u8, 115u8, - ], - ) - } - #[doc = " Mapping between asset name and asset id."] pub fn asset_ids (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "AssetIds" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [142u8 , 138u8 , 84u8 , 162u8 , 209u8 , 97u8 , 173u8 , 83u8 , 185u8 , 226u8 , 233u8 , 40u8 , 74u8 , 97u8 , 166u8 , 13u8 , 199u8 , 229u8 , 235u8 , 15u8 , 6u8 , 196u8 , 7u8 , 35u8 , 87u8 , 202u8 , 4u8 , 101u8 , 212u8 , 84u8 , 250u8 , 251u8 ,]) - } - #[doc = " Mapping between asset name and asset id."] pub fn asset_ids_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "AssetIds", - Vec::new(), - [ - 142u8, 138u8, 84u8, 162u8, 209u8, 97u8, 173u8, - 83u8, 185u8, 226u8, 233u8, 40u8, 74u8, 97u8, 166u8, - 13u8, 199u8, 229u8, 235u8, 15u8, 6u8, 196u8, 7u8, - 35u8, 87u8, 202u8, 4u8, 101u8, 212u8, 84u8, 250u8, - 251u8, - ], - ) - } - #[doc = " Native location of an asset."] pub fn asset_locations (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "AssetLocations" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [146u8 , 222u8 , 59u8 , 210u8 , 64u8 , 240u8 , 139u8 , 32u8 , 171u8 , 75u8 , 247u8 , 43u8 , 179u8 , 108u8 , 20u8 , 64u8 , 24u8 , 154u8 , 133u8 , 154u8 , 208u8 , 98u8 , 241u8 , 62u8 , 158u8 , 126u8 , 19u8 , 188u8 , 237u8 , 70u8 , 178u8 , 197u8 ,]) - } - #[doc = " Native location of an asset."] pub fn asset_locations_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "AssetLocations", - Vec::new(), - [ - 146u8, 222u8, 59u8, 210u8, 64u8, 240u8, 139u8, - 32u8, 171u8, 75u8, 247u8, 43u8, 179u8, 108u8, 20u8, - 64u8, 24u8, 154u8, 133u8, 154u8, 208u8, 98u8, - 241u8, 62u8, 158u8, 126u8, 19u8, 188u8, 237u8, - 70u8, 178u8, 197u8, - ], - ) - } - #[doc = " Local asset for native location."] pub fn location_assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "LocationAssets" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [82u8 , 140u8 , 248u8 , 178u8 , 200u8 , 49u8 , 11u8 , 121u8 , 43u8 , 2u8 , 125u8 , 44u8 , 253u8 , 10u8 , 29u8 , 242u8 , 56u8 , 45u8 , 249u8 , 223u8 , 136u8 , 40u8 , 155u8 , 201u8 , 99u8 , 166u8 , 243u8 , 79u8 , 47u8 , 93u8 , 211u8 , 241u8 ,]) - } - #[doc = " Local asset for native location."] pub fn location_assets_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "LocationAssets", - Vec::new(), - [ - 82u8, 140u8, 248u8, 178u8, 200u8, 49u8, 11u8, - 121u8, 43u8, 2u8, 125u8, 44u8, 253u8, 10u8, 29u8, - 242u8, 56u8, 45u8, 249u8, 223u8, 136u8, 40u8, - 155u8, 201u8, 99u8, 166u8, 243u8, 79u8, 47u8, 93u8, - 211u8, 241u8, - ], - ) - } - #[doc = " Metadata of an asset."] pub fn asset_metadata_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "AssetMetadataMap" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [44u8 , 143u8 , 207u8 , 24u8 , 27u8 , 113u8 , 207u8 , 155u8 , 211u8 , 232u8 , 91u8 , 255u8 , 153u8 , 141u8 , 196u8 , 195u8 , 124u8 , 164u8 , 72u8 , 41u8 , 185u8 , 232u8 , 190u8 , 195u8 , 205u8 , 146u8 , 56u8 , 154u8 , 1u8 , 113u8 , 54u8 , 86u8 ,]) - } - #[doc = " Metadata of an asset."] pub fn asset_metadata_map_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "AssetMetadataMap", - Vec::new(), - [ - 44u8, 143u8, 207u8, 24u8, 27u8, 113u8, 207u8, - 155u8, 211u8, 232u8, 91u8, 255u8, 153u8, 141u8, - 196u8, 195u8, 124u8, 164u8, 72u8, 41u8, 185u8, - 232u8, 190u8, 195u8, 205u8, 146u8, 56u8, 154u8, - 1u8, 113u8, 54u8, 86u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Native Asset Id"] - pub fn native_asset_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "AssetRegistry", - "NativeAssetId", - [ - 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 currencies { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferNativeCurrency { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - pub amount: ::core::primitive::i128, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some balance to another account under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Currencies", - "transfer", - Transfer { - dest, - currency_id, - amount, - }, - [ - 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, - 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, - 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, - 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, - 176u8, 62u8, - ], - ) - } - #[doc = "Transfer some native currency to another account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - pub fn transfer_native_currency( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Currencies", - "transfer_native_currency", - TransferNativeCurrency { dest, amount }, - [ - 212u8, 113u8, 64u8, 214u8, 137u8, 16u8, 101u8, - 17u8, 123u8, 43u8, 143u8, 69u8, 53u8, 22u8, 227u8, - 62u8, 117u8, 160u8, 162u8, 73u8, 195u8, 177u8, - 99u8, 75u8, 48u8, 237u8, 145u8, 164u8, 72u8, 47u8, - 215u8, 117u8, - ], - ) - } - #[doc = "update amount of account `who` under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - pub fn update_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::i128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Currencies", - "update_balance", - UpdateBalance { - who, - currency_id, - amount, - }, - [ - 10u8, 79u8, 233u8, 250u8, 126u8, 190u8, 236u8, - 106u8, 73u8, 243u8, 163u8, 187u8, 206u8, 132u8, - 241u8, 254u8, 76u8, 0u8, 38u8, 159u8, 147u8, 102u8, - 126u8, 6u8, 36u8, 129u8, 235u8, 240u8, 233u8, - 100u8, 81u8, 8u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn get_native_currency_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Currencies", - "GetNativeCurrencyId", - [ - 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 tokens { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - pub keep_alive: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "It will decrease the total issuance of the system by the"] - #[doc = "`TransferFee`. If the sender's account is below the existential"] - #[doc = "deposit as a result of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "transfer", - Transfer { - dest, - currency_id, - amount, - }, - [ - 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, - 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, - 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, - 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, - 176u8, 62u8, - ], - ) - } - #[doc = "Transfer all remaining balance to the given account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_"] - #[doc = "balances. This means that any locked, reserved, or existential"] - #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] - #[doc = "this function. To ensure that this function results in a killed"] - #[doc = "account, you might need to prepare the account by removing any"] - #[doc = "reference counters, storage deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] - #[doc = " operation should send all of the funds the account has, causing"] - #[doc = " the sender account to be killed (false), or transfer everything"] - #[doc = " except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "transfer_all", - TransferAll { - dest, - currency_id, - keep_alive, - }, - [ - 83u8, 119u8, 29u8, 13u8, 126u8, 23u8, 51u8, 229u8, - 26u8, 65u8, 104u8, 86u8, 68u8, 42u8, 83u8, 171u8, - 177u8, 241u8, 88u8, 235u8, 122u8, 180u8, 216u8, - 118u8, 52u8, 210u8, 95u8, 234u8, 9u8, 188u8, 122u8, - 34u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] - #[doc = "will not kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "transfer_keep_alive", - TransferKeepAlive { - dest, - currency_id, - amount, - }, - [ - 76u8, 132u8, 171u8, 42u8, 174u8, 55u8, 166u8, - 171u8, 22u8, 191u8, 234u8, 185u8, 156u8, 22u8, - 210u8, 10u8, 104u8, 253u8, 183u8, 231u8, 42u8, - 95u8, 204u8, 28u8, 177u8, 5u8, 147u8, 51u8, 160u8, - 132u8, 194u8, 74u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source"] - #[doc = "account may be specified."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The sender of the transfer."] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "force_transfer", - ForceTransfer { - source, - dest, - currency_id, - amount, - }, - [ - 196u8, 35u8, 25u8, 247u8, 46u8, 2u8, 11u8, 188u8, - 120u8, 147u8, 123u8, 147u8, 174u8, 111u8, 237u8, - 23u8, 25u8, 50u8, 34u8, 69u8, 189u8, 211u8, 235u8, - 61u8, 183u8, 42u8, 110u8, 62u8, 44u8, 20u8, 43u8, - 214u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] - #[doc = "will also decrease the total issuance of the system"] - #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] - #[doc = "existential deposit, it will reap the `AccountInfo`."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "set_balance", - SetBalance { - who, - currency_id, - new_free, - new_reserved, - }, - [ - 155u8, 189u8, 114u8, 37u8, 193u8, 38u8, 48u8, 39u8, - 149u8, 224u8, 232u8, 189u8, 205u8, 248u8, 215u8, - 97u8, 50u8, 171u8, 118u8, 214u8, 47u8, 13u8, 104u8, - 3u8, 77u8, 34u8, 37u8, 135u8, 56u8, 94u8, 17u8, - 213u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::orml_tokens::module::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was removed whose balance was non-zero but below"] - #[doc = "ExistentialDeposit, resulting in an outright loss."] - pub struct DustLost { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub currency_id: ::core::primitive::u32, - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some reserved balance was repatriated (moved from reserved to"] - #[doc = "another account)."] - pub struct ReserveRepatriated { pub currency_id : :: core :: primitive :: u32 , pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The total issuance of an currency has been set"] - pub struct TotalIssuanceSet { - pub currency_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TotalIssuanceSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "TotalIssuanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] - pub struct Withdrawn { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balances were slashed (e.g. due to mis-behavior)"] - pub struct Slashed { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub free_amount: ::core::primitive::u128, - pub reserved_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Deposited some balance into an account"] - pub struct Deposited { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposited { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Deposited"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some funds are locked"] - pub struct LockSet { - pub lock_id: [::core::primitive::u8; 8usize], - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for LockSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "LockSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some locked funds were unlocked"] - pub struct LockRemoved { - pub lock_id: [::core::primitive::u8; 8usize], - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for LockRemoved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "LockRemoved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total issuance of a token type."] pub fn total_issuance (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "TotalIssuance" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [98u8 , 233u8 , 210u8 , 150u8 , 87u8 , 41u8 , 162u8 , 54u8 , 32u8 , 221u8 , 211u8 , 10u8 , 170u8 , 237u8 , 65u8 , 73u8 , 46u8 , 4u8 , 5u8 , 209u8 , 170u8 , 13u8 , 231u8 , 113u8 , 196u8 , 133u8 , 38u8 , 213u8 , 225u8 , 160u8 , 31u8 , 122u8 ,]) - } - #[doc = " The total issuance of a token type."] pub fn total_issuance_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "TotalIssuance", - Vec::new(), - [ - 98u8, 233u8, 210u8, 150u8, 87u8, 41u8, 162u8, 54u8, - 32u8, 221u8, 211u8, 10u8, 170u8, 237u8, 65u8, 73u8, - 46u8, 4u8, 5u8, 209u8, 170u8, 13u8, 231u8, 113u8, - 196u8, 133u8, 38u8, 213u8, 225u8, 160u8, 31u8, - 122u8, - ], - ) - } - #[doc = " Any liquidity locks of a token type under an account."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: BalanceLock < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "Locks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [69u8 , 159u8 , 129u8 , 252u8 , 160u8 , 61u8 , 216u8 , 240u8 , 79u8 , 172u8 , 194u8 , 168u8 , 1u8 , 214u8 , 69u8 , 208u8 , 56u8 , 220u8 , 176u8 , 5u8 , 196u8 , 19u8 , 70u8 , 60u8 , 229u8 , 79u8 , 223u8 , 11u8 , 253u8 , 150u8 , 5u8 , 99u8 ,]) - } - #[doc = " Any liquidity locks of a token type under an account."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: BalanceLock < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "Locks", - Vec::new(), - [ - 69u8, 159u8, 129u8, 252u8, 160u8, 61u8, 216u8, - 240u8, 79u8, 172u8, 194u8, 168u8, 1u8, 214u8, 69u8, - 208u8, 56u8, 220u8, 176u8, 5u8, 196u8, 19u8, 70u8, - 60u8, 229u8, 79u8, 223u8, 11u8, 253u8, 150u8, 5u8, - 99u8, - ], - ) - } - #[doc = " The balance of a token type under an account."] - #[doc = ""] - #[doc = " NOTE: If the total is ever zero, decrease account ref account."] - #[doc = ""] - #[doc = " NOTE: This is only used in the case that this module is used to store"] - #[doc = " balances."] pub fn accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: orml_tokens :: AccountData < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "Accounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [136u8 , 147u8 , 98u8 , 221u8 , 153u8 , 10u8 , 206u8 , 218u8 , 153u8 , 159u8 , 62u8 , 152u8 , 110u8 , 198u8 , 125u8 , 15u8 , 127u8 , 21u8 , 31u8 , 191u8 , 241u8 , 167u8 , 124u8 , 77u8 , 138u8 , 133u8 , 204u8 , 30u8 , 180u8 , 253u8 , 126u8 , 214u8 ,]) - } - #[doc = " The balance of a token type under an account."] - #[doc = ""] - #[doc = " NOTE: If the total is ever zero, decrease account ref account."] - #[doc = ""] - #[doc = " NOTE: This is only used in the case that this module is used to store"] - #[doc = " balances."] pub fn accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: orml_tokens :: AccountData < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "Accounts", - Vec::new(), - [ - 136u8, 147u8, 98u8, 221u8, 153u8, 10u8, 206u8, - 218u8, 153u8, 159u8, 62u8, 152u8, 110u8, 198u8, - 125u8, 15u8, 127u8, 21u8, 31u8, 191u8, 241u8, - 167u8, 124u8, 77u8, 138u8, 133u8, 204u8, 30u8, - 180u8, 253u8, 126u8, 214u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] pub fn reserves (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "Reserves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [103u8 , 137u8 , 30u8 , 231u8 , 144u8 , 86u8 , 36u8 , 246u8 , 38u8 , 138u8 , 76u8 , 9u8 , 82u8 , 232u8 , 100u8 , 7u8 , 48u8 , 111u8 , 249u8 , 59u8 , 57u8 , 60u8 , 5u8 , 70u8 , 144u8 , 190u8 , 122u8 , 205u8 , 36u8 , 237u8 , 57u8 , 254u8 ,]) - } - #[doc = " Named reserves on some account balances."] pub fn reserves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "Reserves", - Vec::new(), - [ - 103u8, 137u8, 30u8, 231u8, 144u8, 86u8, 36u8, - 246u8, 38u8, 138u8, 76u8, 9u8, 82u8, 232u8, 100u8, - 7u8, 48u8, 111u8, 249u8, 59u8, 57u8, 60u8, 5u8, - 70u8, 144u8, 190u8, 122u8, 205u8, 36u8, 237u8, - 57u8, 254u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Tokens", - "MaxLocks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Tokens", - "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, - ], - ) - } - } - } - } - pub mod token_wrapper { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetWrappingFee { - pub fee: ::core::primitive::u128, - pub into_pool_share_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetFeeRecipient { - pub pool_share_id: ::core::primitive::u32, - pub fee_recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Wrap { - pub from_asset_id: ::core::primitive::u32, - pub into_pool_share_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unwrap { - pub from_pool_share_id: ::core::primitive::u32, - pub into_asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RescueTokens { - pub from_pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn set_wrapping_fee( - &self, - fee: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "set_wrapping_fee", - SetWrappingFee { - fee, - into_pool_share_id, - nonce, - }, - [ - 60u8, 135u8, 246u8, 184u8, 70u8, 22u8, 245u8, 60u8, - 190u8, 224u8, 114u8, 168u8, 238u8, 146u8, 49u8, - 213u8, 85u8, 107u8, 221u8, 241u8, 218u8, 121u8, - 170u8, 227u8, 254u8, 146u8, 84u8, 21u8, 249u8, - 65u8, 1u8, 73u8, - ], - ) - } - pub fn set_fee_recipient( - &self, - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "set_fee_recipient", - SetFeeRecipient { - pool_share_id, - fee_recipient, - nonce, - }, - [ - 4u8, 219u8, 75u8, 151u8, 219u8, 115u8, 91u8, 35u8, - 73u8, 226u8, 132u8, 46u8, 137u8, 243u8, 186u8, - 25u8, 49u8, 233u8, 67u8, 218u8, 187u8, 182u8, 52u8, - 11u8, 139u8, 91u8, 69u8, 112u8, 141u8, 80u8, 141u8, - 210u8, - ], - ) - } - pub fn wrap( - &self, - from_asset_id: ::core::primitive::u32, - into_pool_share_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "wrap", - Wrap { - from_asset_id, - into_pool_share_id, - amount, - recipient, - }, - [ - 151u8, 42u8, 129u8, 19u8, 51u8, 10u8, 96u8, 207u8, - 223u8, 91u8, 43u8, 25u8, 221u8, 146u8, 64u8, 244u8, - 239u8, 74u8, 177u8, 62u8, 28u8, 41u8, 125u8, 63u8, - 191u8, 218u8, 188u8, 23u8, 196u8, 98u8, 201u8, - 82u8, - ], - ) - } - pub fn unwrap( - &self, - from_pool_share_id: ::core::primitive::u32, - into_asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "unwrap", - Unwrap { - from_pool_share_id, - into_asset_id, - amount, - recipient, - }, - [ - 3u8, 113u8, 42u8, 230u8, 32u8, 79u8, 31u8, 174u8, - 5u8, 72u8, 213u8, 19u8, 44u8, 117u8, 75u8, 170u8, - 14u8, 1u8, 18u8, 30u8, 32u8, 142u8, 2u8, 3u8, - 218u8, 244u8, 201u8, 16u8, 192u8, 142u8, 194u8, - 6u8, - ], - ) - } - pub fn rescue_tokens( - &self, - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "rescue_tokens", - RescueTokens { - from_pool_share_id, - asset_id, - amount, - recipient, - nonce, - }, - [ - 253u8, 87u8, 167u8, 31u8, 39u8, 125u8, 110u8, 56u8, - 163u8, 190u8, 120u8, 179u8, 145u8, 82u8, 214u8, - 146u8, 61u8, 70u8, 48u8, 19u8, 156u8, 21u8, 176u8, - 146u8, 195u8, 127u8, 118u8, 61u8, 170u8, 119u8, - 187u8, 106u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_token_wrapper::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WrappedToken { - pub pool_share_asset: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for WrappedToken { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "WrappedToken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnwrappedToken { - pub pool_share_asset: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for UnwrappedToken { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UnwrappedToken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdatedWrappingFeePercent { - pub into_pool_share_id: ::core::primitive::u32, - pub wrapping_fee_percent: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UpdatedWrappingFeePercent"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdatedFeeRecipient { - pub fee_recipient: ::subxt::utils::AccountId32, - pub pool_share_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for UpdatedFeeRecipient { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UpdatedFeeRecipient"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TokensRescued { - pub from_pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TokensRescued { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "TokensRescued"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Percentage of amount to be used as wrapping fee"] pub fn wrapping_fee_percent (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TokenWrapper" , "WrappingFeePercent" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [31u8 , 126u8 , 185u8 , 195u8 , 250u8 , 224u8 , 247u8 , 225u8 , 251u8 , 232u8 , 118u8 , 36u8 , 104u8 , 42u8 , 118u8 , 184u8 , 232u8 , 148u8 , 238u8 , 142u8 , 123u8 , 71u8 , 37u8 , 218u8 , 200u8 , 216u8 , 84u8 , 184u8 , 4u8 , 56u8 , 13u8 , 94u8 ,]) - } - #[doc = " Percentage of amount to be used as wrapping fee"] pub fn wrapping_fee_percent_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TokenWrapper", - "WrappingFeePercent", - Vec::new(), - [ - 31u8, 126u8, 185u8, 195u8, 250u8, 224u8, 247u8, - 225u8, 251u8, 232u8, 118u8, 36u8, 104u8, 42u8, - 118u8, 184u8, 232u8, 148u8, 238u8, 142u8, 123u8, - 71u8, 37u8, 218u8, 200u8, 216u8, 84u8, 184u8, 4u8, - 56u8, 13u8, 94u8, - ], - ) - } - #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] pub fn fee_recipient (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TokenWrapper" , "FeeRecipient" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [79u8 , 99u8 , 123u8 , 161u8 , 162u8 , 129u8 , 150u8 , 254u8 , 231u8 , 49u8 , 234u8 , 102u8 , 25u8 , 234u8 , 86u8 , 145u8 , 97u8 , 30u8 , 37u8 , 85u8 , 223u8 , 139u8 , 16u8 , 16u8 , 12u8 , 70u8 , 12u8 , 113u8 , 95u8 , 141u8 , 134u8 , 142u8 ,]) - } - #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] pub fn fee_recipient_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TokenWrapper", - "FeeRecipient", - Vec::new(), - [ - 79u8, 99u8, 123u8, 161u8, 162u8, 129u8, 150u8, - 254u8, 231u8, 49u8, 234u8, 102u8, 25u8, 234u8, - 86u8, 145u8, 97u8, 30u8, 37u8, 85u8, 223u8, 139u8, - 16u8, 16u8, 12u8, 70u8, 12u8, 113u8, 95u8, 141u8, - 134u8, 142u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TokenWrapper" , "ProposalNonce" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [255u8 , 130u8 , 216u8 , 75u8 , 22u8 , 132u8 , 182u8 , 54u8 , 158u8 , 158u8 , 6u8 , 185u8 , 86u8 , 163u8 , 142u8 , 247u8 , 135u8 , 96u8 , 187u8 , 53u8 , 18u8 , 142u8 , 28u8 , 247u8 , 190u8 , 42u8 , 246u8 , 180u8 , 25u8 , 163u8 , 134u8 , 228u8 ,]) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TokenWrapper", - "ProposalNonce", - Vec::new(), - [ - 255u8, 130u8, 216u8, 75u8, 22u8, 132u8, 182u8, - 54u8, 158u8, 158u8, 6u8, 185u8, 86u8, 163u8, 142u8, - 247u8, 135u8, 96u8, 187u8, 53u8, 18u8, 142u8, 28u8, - 247u8, 190u8, 42u8, 246u8, 180u8, 25u8, 163u8, - 134u8, 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "TokenWrapper", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - pub fn treasury_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "TokenWrapper", - "TreasuryId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - pub fn wrapping_fee_divider( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "TokenWrapper", - "WrappingFeeDivider", - [ - 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 token_wrapper_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteWrappingFeeProposal { - pub wrapping_fee_percent: ::core::primitive::u128, - pub into_pool_share_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteAddTokenToPoolShare { - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub asset_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteRemoveTokenFromPoolShare { - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub asset_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetFeeRecipientProposal { - pub pool_share_id: ::core::primitive::u32, - pub fee_recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteRescueTokensProposal { - pub pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] - #[doc = "method. Ensures that only the bridge can call this function."] - pub fn execute_wrapping_fee_proposal( - &self, - wrapping_fee_percent: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_wrapping_fee_proposal", - ExecuteWrappingFeeProposal { - wrapping_fee_percent, - into_pool_share_id, - nonce, - }, - [ - 151u8, 198u8, 139u8, 120u8, 128u8, 232u8, 69u8, - 120u8, 115u8, 47u8, 107u8, 79u8, 227u8, 240u8, - 115u8, 75u8, 93u8, 122u8, 216u8, 5u8, 163u8, 45u8, - 124u8, 42u8, 108u8, 171u8, 164u8, 75u8, 81u8, - 105u8, 156u8, 63u8, - ], - ) - } - pub fn execute_add_token_to_pool_share( - &self, - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_add_token_to_pool_share", - ExecuteAddTokenToPoolShare { - name, - asset_id, - nonce, - }, - [ - 100u8, 68u8, 240u8, 86u8, 44u8, 153u8, 29u8, 25u8, - 97u8, 95u8, 237u8, 202u8, 172u8, 150u8, 40u8, - 206u8, 67u8, 115u8, 11u8, 48u8, 2u8, 97u8, 41u8, - 2u8, 22u8, 172u8, 6u8, 11u8, 251u8, 248u8, 193u8, - 11u8, - ], - ) - } - pub fn execute_remove_token_from_pool_share( - &self, - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_remove_token_from_pool_share", - ExecuteRemoveTokenFromPoolShare { - name, - asset_id, - nonce, - }, - [ - 174u8, 253u8, 31u8, 62u8, 240u8, 34u8, 230u8, - 165u8, 169u8, 90u8, 189u8, 44u8, 12u8, 169u8, - 136u8, 98u8, 192u8, 79u8, 223u8, 153u8, 239u8, - 84u8, 71u8, 108u8, 178u8, 143u8, 61u8, 148u8, 6u8, - 204u8, 105u8, 144u8, - ], - ) - } - #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] - #[doc = "who will be receiving wrapping fee cost for given asset."] - #[doc = "Ensures that only the bridge can call this function."] - pub fn execute_set_fee_recipient_proposal( - &self, - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_set_fee_recipient_proposal", - ExecuteSetFeeRecipientProposal { - pool_share_id, - fee_recipient, - nonce, - }, - [ - 5u8, 50u8, 89u8, 17u8, 97u8, 30u8, 250u8, 167u8, - 227u8, 198u8, 222u8, 211u8, 6u8, 165u8, 94u8, - 252u8, 151u8, 49u8, 74u8, 244u8, 131u8, 196u8, - 234u8, 202u8, 19u8, 92u8, 247u8, 183u8, 242u8, - 89u8, 98u8, 40u8, - ], - ) - } - #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] - #[doc = "fee recipient to given recipient address from given asset."] - #[doc = "Ensures that only the bridge can call this function."] - pub fn execute_rescue_tokens_proposal( - &self, - pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_rescue_tokens_proposal", - ExecuteRescueTokensProposal { - pool_share_id, - asset_id, - amount, - recipient, - nonce, - }, - [ - 152u8, 151u8, 76u8, 65u8, 60u8, 153u8, 36u8, 0u8, - 46u8, 254u8, 155u8, 205u8, 61u8, 153u8, 8u8, 137u8, - 53u8, 66u8, 49u8, 14u8, 53u8, 250u8, 95u8, 98u8, - 148u8, 141u8, 135u8, 142u8, 163u8, 123u8, 250u8, - 235u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_token_wrapper_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdatedWrappingFeePercent { - pub wrapping_fee_percent: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { - const PALLET: &'static str = "TokenWrapperHandler"; - const EVENT: &'static str = "UpdatedWrappingFeePercent"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi {} - } - } - pub mod mixer_verifier_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetParameters { - pub parameters: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "MixerVerifierBn254", - "force_set_parameters", - ForceSetParameters { parameters }, - [ - 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, - 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, - 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, - 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, - 75u8, 166u8, 90u8, 127u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_verifier::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] pub fn parameters (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MixerVerifierBn254", - "Parameters", - vec![], - [ - 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, - 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, - 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, - 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, - 110u8, 163u8, 192u8, - ], - ) - } - } - } - } - pub mod v_anchor_verifier { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetParameters { - pub configuration: - (::core::primitive::u8, ::core::primitive::u8), - pub parameters: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - configuration: ( - ::core::primitive::u8, - ::core::primitive::u8, - ), - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorVerifier", - "force_set_parameters", - ForceSetParameters { - configuration, - parameters, - }, - [ - 21u8, 13u8, 77u8, 47u8, 51u8, 143u8, 238u8, 56u8, - 197u8, 27u8, 184u8, 112u8, 150u8, 225u8, 90u8, - 114u8, 85u8, 223u8, 80u8, 180u8, 87u8, 224u8, 88u8, - 240u8, 31u8, 155u8, 173u8, 71u8, 22u8, 223u8, - 162u8, 180u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor_verifier::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters for different vanchor configurations"] pub fn parameters (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u8 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u8 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorVerifier" , "Parameters" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [158u8 , 70u8 , 6u8 , 255u8 , 76u8 , 199u8 , 208u8 , 93u8 , 218u8 , 86u8 , 190u8 , 70u8 , 232u8 , 57u8 , 91u8 , 148u8 , 223u8 , 50u8 , 229u8 , 94u8 , 50u8 , 78u8 , 22u8 , 207u8 , 30u8 , 179u8 , 158u8 , 85u8 , 139u8 , 166u8 , 240u8 , 136u8 ,]) - } - #[doc = " Details of the module's parameters for different vanchor configurations"] pub fn parameters_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorVerifier", - "Parameters", - Vec::new(), - [ - 158u8, 70u8, 6u8, 255u8, 76u8, 199u8, 208u8, 93u8, - 218u8, 86u8, 190u8, 70u8, 232u8, 57u8, 91u8, 148u8, - 223u8, 50u8, 229u8, 94u8, 50u8, 78u8, 22u8, 207u8, - 30u8, 179u8, 158u8, 85u8, 139u8, 166u8, 240u8, - 136u8, - ], - ) - } - } - } - } - pub mod merkle_tree_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub depth: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Insert { - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetDefaultHashes { - pub default_hashes: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::webb_primitives::runtime::Element, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - depth: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MerkleTreeBn254", - "create", - Create { depth }, - [ - 101u8, 141u8, 101u8, 131u8, 97u8, 194u8, 160u8, - 159u8, 181u8, 29u8, 158u8, 167u8, 174u8, 21u8, 2u8, - 191u8, 254u8, 131u8, 228u8, 162u8, 70u8, 187u8, - 140u8, 95u8, 113u8, 138u8, 81u8, 219u8, 109u8, - 176u8, 131u8, 58u8, - ], - ) - } - pub fn insert( - &self, - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MerkleTreeBn254", - "insert", - Insert { tree_id, leaf }, - [ - 151u8, 86u8, 79u8, 4u8, 158u8, 170u8, 235u8, 236u8, - 161u8, 51u8, 108u8, 207u8, 113u8, 70u8, 64u8, 5u8, - 94u8, 5u8, 147u8, 87u8, 250u8, 27u8, 111u8, 46u8, - 141u8, 67u8, 223u8, 254u8, 177u8, 171u8, 111u8, - 103u8, - ], - ) - } - pub fn force_set_default_hashes( - &self, - default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "MerkleTreeBn254", - "force_set_default_hashes", - ForceSetDefaultHashes { default_hashes }, - [ - 39u8, 13u8, 28u8, 236u8, 30u8, 33u8, 206u8, 43u8, - 40u8, 220u8, 116u8, 91u8, 123u8, 161u8, 227u8, - 42u8, 155u8, 46u8, 27u8, 13u8, 101u8, 23u8, 103u8, - 151u8, 216u8, 71u8, 97u8, 160u8, 209u8, 76u8, 71u8, - 74u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_mt::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct TreeCreation { - pub tree_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TreeCreation { - const PALLET: &'static str = "MerkleTreeBn254"; - const EVENT: &'static str = "TreeCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New leaf inserted"] - pub struct LeafInsertion { - pub tree_id: ::core::primitive::u32, - pub leaf_index: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::events::StaticEvent for LeafInsertion { - const PALLET: &'static str = "MerkleTreeBn254"; - const EVENT: &'static str = "LeafInsertion"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] pub fn deposit (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: types :: DepositDetails < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "Deposit", - vec![], - [ - 175u8, 238u8, 72u8, 65u8, 101u8, 152u8, 252u8, - 101u8, 127u8, 181u8, 93u8, 29u8, 16u8, 241u8, - 243u8, 226u8, 128u8, 149u8, 202u8, 94u8, 15u8, - 35u8, 11u8, 240u8, 16u8, 177u8, 120u8, 193u8, - 213u8, 236u8, 151u8, 36u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_tree_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "NextTreeId", - vec![], - [ - 173u8, 89u8, 80u8, 58u8, 200u8, 64u8, 201u8, 3u8, - 169u8, 139u8, 75u8, 117u8, 56u8, 52u8, 163u8, 25u8, - 83u8, 189u8, 66u8, 245u8, 249u8, 30u8, 211u8, - 225u8, 16u8, 47u8, 232u8, 148u8, 75u8, 156u8, - 233u8, 74u8, - ], - ) - } - #[doc = " The map of trees to their metadata"] pub fn trees (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mt :: types :: TreeMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: webb_primitives :: runtime :: Element , runtime_types :: webb_standalone_runtime :: MaxEdges > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "Trees" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [64u8 , 52u8 , 2u8 , 9u8 , 150u8 , 70u8 , 94u8 , 245u8 , 245u8 , 212u8 , 230u8 , 204u8 , 106u8 , 58u8 , 79u8 , 64u8 , 17u8 , 36u8 , 212u8 , 85u8 , 67u8 , 39u8 , 90u8 , 194u8 , 193u8 , 110u8 , 85u8 , 133u8 , 224u8 , 193u8 , 13u8 , 46u8 ,]) - } - #[doc = " The map of trees to their metadata"] pub fn trees_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mt :: types :: TreeMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: webb_primitives :: runtime :: Element , runtime_types :: webb_standalone_runtime :: MaxEdges > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "Trees", - Vec::new(), - [ - 64u8, 52u8, 2u8, 9u8, 150u8, 70u8, 94u8, 245u8, - 245u8, 212u8, 230u8, 204u8, 106u8, 58u8, 79u8, - 64u8, 17u8, 36u8, 212u8, 85u8, 67u8, 39u8, 90u8, - 194u8, 193u8, 110u8, 85u8, 133u8, 224u8, 193u8, - 13u8, 46u8, - ], - ) - } - #[doc = " The default hashes for this tree pallet"] pub fn default_hashes (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "DefaultHashes", - vec![], - [ - 5u8, 167u8, 42u8, 194u8, 16u8, 7u8, 44u8, 239u8, - 119u8, 4u8, 126u8, 229u8, 53u8, 70u8, 117u8, 18u8, - 91u8, 186u8, 181u8, 55u8, 188u8, 230u8, 11u8, - 196u8, 247u8, 30u8, 98u8, 58u8, 193u8, 76u8, 9u8, - 212u8, - ], - ) - } - #[doc = " The map of (tree_id, index) to the leaf commitment"] pub fn leaves (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: runtime :: Element > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "Leaves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [254u8 , 175u8 , 119u8 , 127u8 , 20u8 , 24u8 , 100u8 , 16u8 , 25u8 , 49u8 , 82u8 , 151u8 , 73u8 , 145u8 , 127u8 , 130u8 , 154u8 , 198u8 , 137u8 , 37u8 , 202u8 , 114u8 , 151u8 , 31u8 , 246u8 , 162u8 , 210u8 , 127u8 , 139u8 , 44u8 , 35u8 , 13u8 ,]) - } - #[doc = " The map of (tree_id, index) to the leaf commitment"] pub fn leaves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: runtime :: Element > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "Leaves", - Vec::new(), - [ - 254u8, 175u8, 119u8, 127u8, 20u8, 24u8, 100u8, - 16u8, 25u8, 49u8, 82u8, 151u8, 73u8, 145u8, 127u8, - 130u8, 154u8, 198u8, 137u8, 37u8, 202u8, 114u8, - 151u8, 31u8, 246u8, 162u8, 210u8, 127u8, 139u8, - 44u8, 35u8, 13u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_root_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "NextRootIndex", - vec![], - [ - 175u8, 70u8, 212u8, 119u8, 231u8, 181u8, 88u8, - 15u8, 186u8, 22u8, 1u8, 117u8, 56u8, 178u8, 191u8, - 154u8, 150u8, 203u8, 131u8, 128u8, 22u8, 141u8, - 171u8, 148u8, 160u8, 177u8, 38u8, 48u8, 76u8, - 198u8, 224u8, 126u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_leaf_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "NextLeafIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [50u8 , 243u8 , 135u8 , 181u8 , 149u8 , 69u8 , 42u8 , 31u8 , 72u8 , 206u8 , 86u8 , 230u8 , 207u8 , 247u8 , 60u8 , 27u8 , 91u8 , 95u8 , 103u8 , 48u8 , 101u8 , 252u8 , 136u8 , 220u8 , 56u8 , 246u8 , 184u8 , 208u8 , 140u8 , 82u8 , 250u8 , 22u8 ,]) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_leaf_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "NextLeafIndex", - Vec::new(), - [ - 50u8, 243u8, 135u8, 181u8, 149u8, 69u8, 42u8, 31u8, - 72u8, 206u8, 86u8, 230u8, 207u8, 247u8, 60u8, 27u8, - 91u8, 95u8, 103u8, 48u8, 101u8, 252u8, 136u8, - 220u8, 56u8, 246u8, 184u8, 208u8, 140u8, 82u8, - 250u8, 22u8, - ], - ) - } - #[doc = " Map of root history from tree id to root index to root values"] pub fn cached_roots (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: runtime :: Element > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "CachedRoots" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [60u8 , 183u8 , 112u8 , 98u8 , 129u8 , 52u8 , 122u8 , 187u8 , 82u8 , 235u8 , 222u8 , 75u8 , 72u8 , 150u8 , 53u8 , 69u8 , 76u8 , 144u8 , 11u8 , 131u8 , 140u8 , 152u8 , 243u8 , 122u8 , 168u8 , 92u8 , 219u8 , 42u8 , 229u8 , 208u8 , 78u8 , 105u8 ,]) - } - #[doc = " Map of root history from tree id to root index to root values"] pub fn cached_roots_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: runtime :: Element > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "CachedRoots", - Vec::new(), - [ - 60u8, 183u8, 112u8, 98u8, 129u8, 52u8, 122u8, - 187u8, 82u8, 235u8, 222u8, 75u8, 72u8, 150u8, 53u8, - 69u8, 76u8, 144u8, 11u8, 131u8, 140u8, 152u8, - 243u8, 122u8, 168u8, 92u8, 219u8, 42u8, 229u8, - 208u8, 78u8, 105u8, - ], - ) - } - } - } - } - pub mod linkable_tree_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub max_edges: ::core::primitive::u32, - pub depth: ::core::primitive::u8, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "LinkableTreeBn254", - "create", - Create { max_edges, depth }, - [ - 95u8, 217u8, 213u8, 178u8, 133u8, 233u8, 101u8, - 67u8, 62u8, 233u8, 188u8, 150u8, 111u8, 88u8, 0u8, - 241u8, 215u8, 208u8, 245u8, 191u8, 52u8, 162u8, - 79u8, 231u8, 228u8, 232u8, 49u8, 103u8, 178u8, - 96u8, 176u8, 206u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_linkable_tree::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct LinkableTreeCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for LinkableTreeCreation { - const PALLET: &'static str = "LinkableTreeBn254"; - const EVENT: &'static str = "LinkableTreeCreation"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to the maximum number of anchor edges they can have"] pub fn max_edges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "MaxEdges" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [198u8 , 254u8 , 155u8 , 234u8 , 177u8 , 109u8 , 109u8 , 57u8 , 207u8 , 37u8 , 12u8 , 234u8 , 187u8 , 187u8 , 77u8 , 227u8 , 100u8 , 135u8 , 111u8 , 195u8 , 194u8 , 104u8 , 52u8 , 186u8 , 10u8 , 128u8 , 248u8 , 88u8 , 87u8 , 154u8 , 229u8 , 90u8 ,]) - } - #[doc = " The map of trees to the maximum number of anchor edges they can have"] pub fn max_edges_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "MaxEdges", - Vec::new(), - [ - 198u8, 254u8, 155u8, 234u8, 177u8, 109u8, 109u8, - 57u8, 207u8, 37u8, 12u8, 234u8, 187u8, 187u8, 77u8, - 227u8, 100u8, 135u8, 111u8, 195u8, 194u8, 104u8, - 52u8, 186u8, 10u8, 128u8, 248u8, 88u8, 87u8, 154u8, - 229u8, 90u8, - ], - ) - } - #[doc = " The map of trees and chain ids to their edge metadata"] pub fn edge_list (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_linkable_tree :: types :: EdgeMetadata < :: core :: primitive :: u64 , runtime_types :: webb_primitives :: runtime :: Element , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "EdgeList" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [129u8 , 93u8 , 177u8 , 204u8 , 167u8 , 37u8 , 32u8 , 189u8 , 47u8 , 99u8 , 19u8 , 161u8 , 55u8 , 2u8 , 224u8 , 1u8 , 223u8 , 145u8 , 51u8 , 138u8 , 243u8 , 185u8 , 255u8 , 32u8 , 6u8 , 123u8 , 244u8 , 248u8 , 133u8 , 189u8 , 97u8 , 159u8 ,]) - } - #[doc = " The map of trees and chain ids to their edge metadata"] pub fn edge_list_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_linkable_tree :: types :: EdgeMetadata < :: core :: primitive :: u64 , runtime_types :: webb_primitives :: runtime :: Element , :: core :: primitive :: u32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "EdgeList", - Vec::new(), - [ - 129u8, 93u8, 177u8, 204u8, 167u8, 37u8, 32u8, - 189u8, 47u8, 99u8, 19u8, 161u8, 55u8, 2u8, 224u8, - 1u8, 223u8, 145u8, 51u8, 138u8, 243u8, 185u8, - 255u8, 32u8, 6u8, 123u8, 244u8, 248u8, 133u8, - 189u8, 97u8, 159u8, - ], - ) - } - #[doc = " A helper map for denoting whether an tree is bridged to given chain"] pub fn linkable_tree_has_edge (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "LinkableTreeHasEdge" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [159u8 , 137u8 , 120u8 , 239u8 , 119u8 , 134u8 , 14u8 , 74u8 , 253u8 , 30u8 , 22u8 , 29u8 , 177u8 , 255u8 , 4u8 , 81u8 , 86u8 , 20u8 , 141u8 , 192u8 , 23u8 , 16u8 , 200u8 , 87u8 , 93u8 , 252u8 , 91u8 , 240u8 , 162u8 , 163u8 , 146u8 , 163u8 ,]) - } - #[doc = " A helper map for denoting whether an tree is bridged to given chain"] pub fn linkable_tree_has_edge_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "LinkableTreeHasEdge", - Vec::new(), - [ - 159u8, 137u8, 120u8, 239u8, 119u8, 134u8, 14u8, - 74u8, 253u8, 30u8, 22u8, 29u8, 177u8, 255u8, 4u8, - 81u8, 86u8, 20u8, 141u8, 192u8, 23u8, 16u8, 200u8, - 87u8, 93u8, 252u8, 91u8, 240u8, 162u8, 163u8, - 146u8, 163u8, - ], - ) - } - #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] pub fn neighbor_roots (& self , _0 : impl :: std :: borrow :: Borrow < (:: core :: primitive :: u32 , :: core :: primitive :: u64 ,) > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: runtime :: Element > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "NeighborRoots" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [240u8 , 198u8 , 38u8 , 115u8 , 71u8 , 53u8 , 46u8 , 249u8 , 243u8 , 197u8 , 50u8 , 11u8 , 181u8 , 11u8 , 183u8 , 61u8 , 213u8 , 66u8 , 191u8 , 220u8 , 225u8 , 203u8 , 3u8 , 190u8 , 131u8 , 47u8 , 66u8 , 12u8 , 68u8 , 201u8 , 181u8 , 99u8 ,]) - } - #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] pub fn neighbor_roots_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: runtime :: Element > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "NeighborRoots", - Vec::new(), - [ - 240u8, 198u8, 38u8, 115u8, 71u8, 53u8, 46u8, 249u8, - 243u8, 197u8, 50u8, 11u8, 181u8, 11u8, 183u8, 61u8, - 213u8, 66u8, 191u8, 220u8, 225u8, 203u8, 3u8, - 190u8, 131u8, 47u8, 66u8, 12u8, 68u8, 201u8, 181u8, - 99u8, - ], - ) - } - #[doc = " The next neighbor root index to store the merkle root update record"] pub fn current_neighbor_root_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "CurrentNeighborRootIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [114u8 , 40u8 , 99u8 , 72u8 , 241u8 , 89u8 , 253u8 , 122u8 , 226u8 , 181u8 , 168u8 , 58u8 , 70u8 , 0u8 , 110u8 , 141u8 , 58u8 , 12u8 , 177u8 , 129u8 , 103u8 , 45u8 , 160u8 , 139u8 , 99u8 , 198u8 , 181u8 , 154u8 , 78u8 , 62u8 , 201u8 , 227u8 ,]) - } - #[doc = " The next neighbor root index to store the merkle root update record"] pub fn current_neighbor_root_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "CurrentNeighborRootIndex", - Vec::new(), - [ - 114u8, 40u8, 99u8, 72u8, 241u8, 89u8, 253u8, 122u8, - 226u8, 181u8, 168u8, 58u8, 70u8, 0u8, 110u8, 141u8, - 58u8, 12u8, 177u8, 129u8, 103u8, 45u8, 160u8, - 139u8, 99u8, 198u8, 181u8, 154u8, 78u8, 62u8, - 201u8, 227u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " ChainID type for this chain"] - pub fn chain_type( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - [::core::primitive::u8; 2usize], - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "LinkableTreeBn254", - "ChainType", - [ - 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, - 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, - 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, - 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, - 240u8, 86u8, - ], - ) - } - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "LinkableTreeBn254", - "ChainIdentifier", - [ - 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 pruning length for neighbor root histories"] - pub fn history_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "LinkableTreeBn254", - "HistoryLength", - [ - 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 mixer_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub deposit_size: ::core::primitive::u128, - pub depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Deposit { - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Withdraw { - pub id: ::core::primitive::u32, - pub proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - pub root: runtime_types::webb_primitives::runtime::Element, - pub nullifier_hash: - runtime_types::webb_primitives::runtime::Element, - pub recipient: ::subxt::utils::AccountId32, - pub relayer: ::subxt::utils::AccountId32, - pub fee: ::core::primitive::u128, - pub refund: ::core::primitive::u128, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - deposit_size: ::core::primitive::u128, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MixerBn254", - "create", - Create { - deposit_size, - depth, - asset, - }, - [ - 53u8, 217u8, 41u8, 250u8, 195u8, 125u8, 121u8, - 239u8, 62u8, 136u8, 254u8, 202u8, 250u8, 97u8, - 183u8, 23u8, 85u8, 249u8, 212u8, 217u8, 218u8, - 162u8, 212u8, 89u8, 76u8, 95u8, 239u8, 34u8, 76u8, - 231u8, 27u8, 151u8, - ], - ) - } - pub fn deposit( - &self, - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MixerBn254", - "deposit", - Deposit { tree_id, leaf }, - [ - 104u8, 199u8, 158u8, 83u8, 100u8, 27u8, 207u8, - 32u8, 124u8, 162u8, 5u8, 227u8, 125u8, 197u8, - 251u8, 180u8, 199u8, 250u8, 95u8, 69u8, 174u8, - 124u8, 66u8, 95u8, 122u8, 84u8, 231u8, 8u8, 205u8, - 71u8, 23u8, 224u8, - ], - ) - } - pub fn withdraw( - &self, - id: ::core::primitive::u32, - proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - root: runtime_types::webb_primitives::runtime::Element, - nullifier_hash : runtime_types :: webb_primitives :: runtime :: Element, - recipient: ::subxt::utils::AccountId32, - relayer: ::subxt::utils::AccountId32, - fee: ::core::primitive::u128, - refund: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MixerBn254", - "withdraw", - Withdraw { - id, - proof_bytes, - root, - nullifier_hash, - recipient, - relayer, - fee, - refund, - }, - [ - 30u8, 228u8, 205u8, 113u8, 251u8, 11u8, 150u8, - 32u8, 63u8, 227u8, 217u8, 126u8, 154u8, 250u8, - 95u8, 192u8, 203u8, 107u8, 241u8, 221u8, 251u8, - 83u8, 70u8, 84u8, 69u8, 190u8, 222u8, 57u8, 29u8, - 183u8, 17u8, 68u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_mixer::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct MixerCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for MixerCreation { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "MixerCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Deposit { - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Withdraw { - pub tree_id: ::core::primitive::u32, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "Withdraw"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to their mixer metadata"] pub fn mixers (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mixer :: types :: MixerMetadata < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MixerBn254" , "Mixers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [30u8 , 216u8 , 0u8 , 53u8 , 203u8 , 108u8 , 202u8 , 45u8 , 173u8 , 173u8 , 108u8 , 254u8 , 29u8 , 23u8 , 97u8 , 163u8 , 102u8 , 196u8 , 204u8 , 14u8 , 30u8 , 68u8 , 217u8 , 162u8 , 175u8 , 88u8 , 138u8 , 153u8 , 228u8 , 74u8 , 125u8 , 11u8 ,]) - } - #[doc = " The map of trees to their mixer metadata"] pub fn mixers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mixer :: types :: MixerMetadata < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MixerBn254", - "Mixers", - Vec::new(), - [ - 30u8, 216u8, 0u8, 53u8, 203u8, 108u8, 202u8, 45u8, - 173u8, 173u8, 108u8, 254u8, 29u8, 23u8, 97u8, - 163u8, 102u8, 196u8, 204u8, 14u8, 30u8, 68u8, - 217u8, 162u8, 175u8, 88u8, 138u8, 153u8, 228u8, - 74u8, 125u8, 11u8, - ], - ) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: webb_primitives :: runtime :: Element > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MixerBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MixerBn254", - "NullifierHashes", - Vec::new(), - [ - 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, - 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, - 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, - 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, - 185u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "MixerBn254", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " Native currency id"] - pub fn native_currency_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "MixerBn254", - "NativeCurrencyId", - [ - 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 v_anchor_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub max_edges: ::core::primitive::u32, - pub depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transact { - pub id: ::core::primitive::u32, - pub proof_data: - runtime_types::webb_primitives::types::vanchor::ProofData< - runtime_types::webb_primitives::runtime::Element, - >, - pub ext_data: - runtime_types::webb_primitives::types::vanchor::ExtData< - ::subxt::utils::AccountId32, - ::core::primitive::i128, - ::core::primitive::u128, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RegisterAndTransact { - pub owner: ::subxt::utils::AccountId32, - pub public_key: ::std::vec::Vec<::core::primitive::u8>, - pub id: ::core::primitive::u32, - pub proof_data: - runtime_types::webb_primitives::types::vanchor::ProofData< - runtime_types::webb_primitives::runtime::Element, - >, - pub ext_data: - runtime_types::webb_primitives::types::vanchor::ExtData< - ::subxt::utils::AccountId32, - ::core::primitive::i128, - ::core::primitive::u128, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMaxDepositAmount { - pub max_deposit_amount: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMinWithdrawAmount { - pub min_withdraw_amount: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "create", - Create { - max_edges, - depth, - asset, - }, - [ - 179u8, 67u8, 213u8, 88u8, 4u8, 208u8, 165u8, 229u8, - 106u8, 59u8, 181u8, 181u8, 67u8, 139u8, 48u8, - 227u8, 237u8, 190u8, 95u8, 118u8, 70u8, 177u8, - 106u8, 67u8, 253u8, 70u8, 125u8, 78u8, 22u8, 142u8, - 161u8, 100u8, - ], - ) - } - pub fn transact( - &self, - id: ::core::primitive::u32, - proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element >, - ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "transact", - Transact { - id, - proof_data, - ext_data, - }, - [ - 157u8, 31u8, 193u8, 175u8, 45u8, 95u8, 117u8, - 197u8, 158u8, 109u8, 20u8, 9u8, 148u8, 218u8, - 112u8, 129u8, 151u8, 106u8, 221u8, 47u8, 172u8, - 114u8, 172u8, 173u8, 2u8, 7u8, 145u8, 32u8, 157u8, - 61u8, 215u8, 176u8, - ], - ) - } - pub fn register_and_transact( - &self, - owner: ::subxt::utils::AccountId32, - public_key: ::std::vec::Vec<::core::primitive::u8>, - id: ::core::primitive::u32, - proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element >, - ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "register_and_transact", - RegisterAndTransact { - owner, - public_key, - id, - proof_data, - ext_data, - }, - [ - 21u8, 243u8, 134u8, 214u8, 148u8, 56u8, 53u8, 92u8, - 137u8, 39u8, 119u8, 189u8, 110u8, 72u8, 76u8, 84u8, - 233u8, 62u8, 147u8, 247u8, 172u8, 9u8, 69u8, 49u8, - 141u8, 145u8, 161u8, 32u8, 86u8, 13u8, 74u8, 119u8, - ], - ) - } - pub fn set_max_deposit_amount( - &self, - max_deposit_amount: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "set_max_deposit_amount", - SetMaxDepositAmount { - max_deposit_amount, - nonce, - }, - [ - 176u8, 129u8, 140u8, 194u8, 38u8, 99u8, 96u8, - 123u8, 223u8, 127u8, 142u8, 201u8, 168u8, 229u8, - 117u8, 84u8, 88u8, 187u8, 141u8, 17u8, 227u8, - 250u8, 61u8, 213u8, 138u8, 191u8, 79u8, 233u8, - 219u8, 157u8, 162u8, 131u8, - ], - ) - } - pub fn set_min_withdraw_amount( - &self, - min_withdraw_amount: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "set_min_withdraw_amount", - SetMinWithdrawAmount { - min_withdraw_amount, - nonce, - }, - [ - 57u8, 249u8, 24u8, 174u8, 12u8, 147u8, 47u8, 89u8, - 196u8, 217u8, 27u8, 19u8, 74u8, 241u8, 51u8, 27u8, - 209u8, 252u8, 129u8, 50u8, 7u8, 162u8, 115u8, 60u8, - 92u8, 168u8, 238u8, 168u8, 139u8, 240u8, 58u8, - 16u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct VAnchorCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for VAnchorCreation { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "VAnchorCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Transaction has been made"] - pub struct Transaction { - pub transactor: ::subxt::utils::AccountId32, - pub tree_id: ::core::primitive::u32, - pub leafs: ::std::vec::Vec< - runtime_types::webb_primitives::runtime::Element, - >, - pub encrypted_output1: ::std::vec::Vec<::core::primitive::u8>, - pub encrypted_output2: ::std::vec::Vec<::core::primitive::u8>, - pub amount: ::core::primitive::i128, - } - impl ::subxt::events::StaticEvent for Transaction { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "Transaction"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Deposit hook has executed successfully"] - pub struct Deposit { - pub depositor: ::subxt::utils::AccountId32, - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MaxDepositAmountChanged { - pub max_deposit_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for MaxDepositAmountChanged { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "MaxDepositAmountChanged"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MinWithdrawAmountChanged { - pub min_withdraw_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for MinWithdrawAmountChanged { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "MinWithdrawAmountChanged"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn max_deposit_amount (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "MaxDepositAmount", - vec![], - [ - 103u8, 143u8, 218u8, 145u8, 13u8, 227u8, 200u8, - 72u8, 147u8, 151u8, 21u8, 63u8, 38u8, 101u8, 23u8, - 45u8, 67u8, 250u8, 184u8, 206u8, 10u8, 184u8, 98u8, - 179u8, 120u8, 62u8, 92u8, 199u8, 30u8, 255u8, 26u8, - 84u8, - ], - ) - } pub fn min_withdraw_amount (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "MinWithdrawAmount", - vec![], - [ - 217u8, 143u8, 57u8, 19u8, 253u8, 60u8, 103u8, - 182u8, 70u8, 55u8, 27u8, 66u8, 117u8, 86u8, 196u8, - 163u8, 41u8, 18u8, 117u8, 125u8, 232u8, 109u8, - 197u8, 177u8, 54u8, 157u8, 165u8, 251u8, 16u8, - 49u8, 113u8, 240u8, - ], - ) - } - #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorBn254" , "VAnchors" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [36u8 , 134u8 , 67u8 , 39u8 , 166u8 , 66u8 , 25u8 , 61u8 , 47u8 , 227u8 , 59u8 , 137u8 , 206u8 , 140u8 , 252u8 , 38u8 , 69u8 , 243u8 , 65u8 , 15u8 , 127u8 , 65u8 , 200u8 , 12u8 , 60u8 , 140u8 , 19u8 , 168u8 , 135u8 , 135u8 , 38u8 , 219u8 ,]) - } - #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "VAnchors", - Vec::new(), - [ - 36u8, 134u8, 67u8, 39u8, 166u8, 66u8, 25u8, 61u8, - 47u8, 227u8, 59u8, 137u8, 206u8, 140u8, 252u8, - 38u8, 69u8, 243u8, 65u8, 15u8, 127u8, 65u8, 200u8, - 12u8, 60u8, 140u8, 19u8, 168u8, 135u8, 135u8, 38u8, - 219u8, - ], - ) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: webb_primitives :: runtime :: Element > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "NullifierHashes", - Vec::new(), - [ - 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, - 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, - 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, - 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, - 185u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "ProposalNonce", - vec![], - [ - 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, - 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, - 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, - 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "VAnchorBn254", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " Native currency id"] - pub fn native_currency_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "VAnchorBn254", - "NativeCurrencyId", - [ - 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 v_anchor_handler_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteVanchorCreateProposal { - pub src_chain_id: ::core::primitive::u64, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub max_edges: ::core::primitive::u32, - pub tree_depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteVanchorUpdateProposal { - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub merkle_root: - runtime_types::webb_primitives::runtime::Element, - pub src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetResourceProposal { - pub r_id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetMaxDepositLimitProposal { - pub max_deposit_limit: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetMinWithdrawalLimitProposal { - pub min_withdraw_limit: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "This will be called by bridge when proposal to create a"] - #[doc = "vanchor has been successfully voted on."] - pub fn execute_vanchor_create_proposal( - &self, - src_chain_id: ::core::primitive::u64, - r_id: runtime_types::webb_proposals::header::ResourceId, - max_edges: ::core::primitive::u32, - tree_depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_vanchor_create_proposal", - ExecuteVanchorCreateProposal { - src_chain_id, - r_id, - max_edges, - tree_depth, - asset, - nonce, - }, - [ - 87u8, 197u8, 136u8, 226u8, 195u8, 230u8, 78u8, - 200u8, 62u8, 131u8, 194u8, 106u8, 230u8, 87u8, - 105u8, 141u8, 52u8, 10u8, 34u8, 132u8, 152u8, 12u8, - 182u8, 110u8, 124u8, 248u8, 42u8, 37u8, 184u8, - 160u8, 30u8, 239u8, - ], - ) - } - #[doc = "This will be called by bridge when proposal to add/update edge of a"] - #[doc = "vanchor has been successfully voted on."] - pub fn execute_vanchor_update_proposal( - &self, - r_id: runtime_types::webb_proposals::header::ResourceId, - merkle_root : runtime_types :: webb_primitives :: runtime :: Element, - src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_vanchor_update_proposal", - ExecuteVanchorUpdateProposal { - r_id, - merkle_root, - src_resource_id, - nonce, - }, - [ - 248u8, 213u8, 40u8, 228u8, 156u8, 188u8, 16u8, - 104u8, 13u8, 176u8, 140u8, 155u8, 185u8, 97u8, - 109u8, 27u8, 12u8, 209u8, 41u8, 174u8, 158u8, - 208u8, 85u8, 120u8, 128u8, 218u8, 147u8, 71u8, - 165u8, 153u8, 7u8, 249u8, - ], - ) - } - #[doc = "This will by called by bridge when proposal to set new resource for"] - #[doc = "handler has been successfully voted on."] - pub fn execute_set_resource_proposal( - &self, - r_id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_set_resource_proposal", - ExecuteSetResourceProposal { r_id }, - [ - 228u8, 152u8, 137u8, 216u8, 49u8, 178u8, 221u8, - 163u8, 89u8, 90u8, 63u8, 173u8, 170u8, 175u8, 30u8, - 31u8, 77u8, 198u8, 214u8, 169u8, 52u8, 13u8, 63u8, - 98u8, 218u8, 108u8, 82u8, 222u8, 224u8, 50u8, - 151u8, 247u8, - ], - ) - } - #[doc = "Execute set max deposit limit proposal."] - #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] - #[doc = "anchor system."] - pub fn execute_set_max_deposit_limit_proposal( - &self, - max_deposit_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload< - ExecuteSetMaxDepositLimitProposal, - > { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_set_max_deposit_limit_proposal", - ExecuteSetMaxDepositLimitProposal { - max_deposit_limit, - nonce, - }, - [ - 60u8, 64u8, 168u8, 137u8, 52u8, 27u8, 152u8, 36u8, - 248u8, 102u8, 189u8, 30u8, 35u8, 149u8, 173u8, - 199u8, 22u8, 113u8, 146u8, 120u8, 59u8, 222u8, - 215u8, 146u8, 165u8, 220u8, 17u8, 107u8, 118u8, - 224u8, 13u8, 47u8, - ], - ) - } - #[doc = "Execute set min withdrawal limit proposal."] - #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] - #[doc = "variable anchor system."] - pub fn execute_set_min_withdrawal_limit_proposal( - &self, - min_withdraw_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload< - ExecuteSetMinWithdrawalLimitProposal, - > { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_set_min_withdrawal_limit_proposal", - ExecuteSetMinWithdrawalLimitProposal { - min_withdraw_limit, - nonce, - }, - [ - 53u8, 181u8, 146u8, 2u8, 51u8, 158u8, 29u8, 5u8, - 70u8, 72u8, 54u8, 41u8, 190u8, 172u8, 173u8, 239u8, - 53u8, 244u8, 186u8, 76u8, 58u8, 162u8, 227u8, - 128u8, 174u8, 199u8, 121u8, 162u8, 88u8, 92u8, - 207u8, 128u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AnchorCreated; - impl ::subxt::events::StaticEvent for AnchorCreated { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AnchorEdgeAdded; - impl ::subxt::events::StaticEvent for AnchorEdgeAdded { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorEdgeAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AnchorEdgeUpdated; - impl ::subxt::events::StaticEvent for AnchorEdgeUpdated { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorEdgeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ResourceAnchored; - impl ::subxt::events::StaticEvent for ResourceAnchored { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "ResourceAnchored"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to their anchor metadata"] pub fn anchor_list (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorHandlerBn254" , "AnchorList" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [208u8 , 135u8 , 255u8 , 171u8 , 144u8 , 24u8 , 220u8 , 50u8 , 12u8 , 31u8 , 90u8 , 255u8 , 252u8 , 78u8 , 107u8 , 239u8 , 162u8 , 141u8 , 248u8 , 201u8 , 149u8 , 98u8 , 234u8 , 116u8 , 212u8 , 184u8 , 249u8 , 242u8 , 41u8 , 40u8 , 66u8 , 72u8 ,]) - } - #[doc = " The map of trees to their anchor metadata"] pub fn anchor_list_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorHandlerBn254", - "AnchorList", - Vec::new(), - [ - 208u8, 135u8, 255u8, 171u8, 144u8, 24u8, 220u8, - 50u8, 12u8, 31u8, 90u8, 255u8, 252u8, 78u8, 107u8, - 239u8, 162u8, 141u8, 248u8, 201u8, 149u8, 98u8, - 234u8, 116u8, 212u8, 184u8, 249u8, 242u8, 41u8, - 40u8, 66u8, 72u8, - ], - ) - } - } - } - } - pub mod signature_bridge { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMaintainer { - pub message: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub signature: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetMaintainer { - pub nonce: ::core::primitive::u32, - pub new_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WhitelistChain { - pub id: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResourceWithSignature { - pub src_id: ::core::primitive::u64, - pub proposal_data: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub signature: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteProposal { - pub src_id: ::core::primitive::u64, - pub proposal_data: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub signature: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Sets the maintainer."] - pub fn set_maintainer( - &self, - message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "set_maintainer", - SetMaintainer { message, signature }, - [ - 132u8, 42u8, 94u8, 104u8, 168u8, 131u8, 130u8, - 157u8, 33u8, 175u8, 220u8, 71u8, 33u8, 117u8, - 255u8, 142u8, 5u8, 101u8, 176u8, 48u8, 222u8, - 220u8, 24u8, 87u8, 34u8, 29u8, 104u8, 35u8, 245u8, - 119u8, 109u8, 20u8, - ], - ) - } - pub fn force_set_maintainer( - &self, - nonce: ::core::primitive::u32, - new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "force_set_maintainer", - ForceSetMaintainer { - nonce, - new_maintainer, - }, - [ - 172u8, 54u8, 216u8, 12u8, 194u8, 151u8, 209u8, - 122u8, 232u8, 194u8, 137u8, 135u8, 126u8, 150u8, - 144u8, 41u8, 26u8, 244u8, 43u8, 49u8, 161u8, 209u8, - 85u8, 212u8, 86u8, 59u8, 57u8, 120u8, 157u8, 38u8, - 180u8, 254u8, - ], - ) - } - #[doc = "Stores a method name on chain under an associated resource ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) write"] - #[doc = "# "] - pub fn set_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "set_resource", - SetResource { id }, - [ - 100u8, 124u8, 197u8, 183u8, 34u8, 42u8, 154u8, - 55u8, 12u8, 151u8, 135u8, 152u8, 211u8, 151u8, - 33u8, 14u8, 67u8, 222u8, 3u8, 109u8, 144u8, 235u8, - 253u8, 116u8, 76u8, 145u8, 90u8, 158u8, 138u8, - 33u8, 204u8, 170u8, - ], - ) - } - #[doc = "Removes a resource ID from the resource mapping."] - #[doc = ""] - #[doc = "After this call, bridge transfers with the associated resource ID"] - #[doc = "will be rejected."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) removal"] - #[doc = "# "] - pub fn remove_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "remove_resource", - RemoveResource { id }, - [ - 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, - 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, - 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, - 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, - 172u8, 92u8, 67u8, - ], - ) - } - #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn whitelist_chain( - &self, - id: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "whitelist_chain", - WhitelistChain { id }, - [ - 230u8, 109u8, 92u8, 10u8, 127u8, 214u8, 167u8, - 56u8, 125u8, 37u8, 161u8, 108u8, 98u8, 250u8, 3u8, - 146u8, 224u8, 178u8, 139u8, 72u8, 21u8, 159u8, - 54u8, 225u8, 172u8, 88u8, 214u8, 162u8, 235u8, - 87u8, 125u8, 23u8, - ], - ) - } - #[doc = "@param origin"] - #[doc = "@param src_id"] - #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] - #[doc = "@param signature: a signature over the proposal_data"] - #[doc = ""] - #[doc = "We check:"] - #[doc = "1. That the signature is actually over the proposal data"] - #[doc = "2. Add ResourceId to the Storage"] - #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] - #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] - #[doc = "indeed this chain's id type"] - #[doc = ""] - #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] - #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] - #[doc = "the anchor-handler or token-wrapper-handler pallet."] - #[doc = ""] - #[doc = "There are a few TODOs left in the function."] - #[doc = ""] - #[doc = "In the set_resource_with_signature"] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn set_resource_with_signature( - &self, - src_id: ::core::primitive::u64, - proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "set_resource_with_signature", - SetResourceWithSignature { - src_id, - proposal_data, - signature, - }, - [ - 77u8, 91u8, 104u8, 22u8, 207u8, 86u8, 57u8, 238u8, - 168u8, 243u8, 218u8, 73u8, 192u8, 133u8, 163u8, - 164u8, 252u8, 145u8, 103u8, 1u8, 0u8, 128u8, 145u8, - 83u8, 213u8, 58u8, 228u8, 190u8, 46u8, 114u8, - 227u8, 86u8, - ], - ) - } - #[doc = "@param origin"] - #[doc = "@param src_id"] - #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] - #[doc = "@param signature: a signature over the proposal_data"] - #[doc = ""] - #[doc = "We check:"] - #[doc = "1. That the signature is actually over the proposal data"] - #[doc = "2. That the r_id parsed from the proposal data exists"] - #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] - #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] - #[doc = "indeed this chain's id type"] - #[doc = ""] - #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] - #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] - #[doc = "the anchor-handler or token-wrapper-handler pallet."] - #[doc = ""] - #[doc = "There are a few TODOs left in the function."] - #[doc = ""] - #[doc = "In the execute_proposal"] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn execute_proposal( - &self, - src_id: ::core::primitive::u64, - proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "execute_proposal", - ExecuteProposal { - src_id, - proposal_data, - signature, - }, - [ - 206u8, 23u8, 14u8, 145u8, 199u8, 21u8, 242u8, 83u8, - 4u8, 46u8, 238u8, 210u8, 121u8, 48u8, 75u8, 151u8, - 188u8, 20u8, 165u8, 177u8, 67u8, 34u8, 129u8, 92u8, - 155u8, 141u8, 199u8, 127u8, 227u8, 255u8, 237u8, - 128u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_signature_bridge::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Maintainer is set"] - pub struct MaintainerSet { - pub old_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub new_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - impl ::subxt::events::StaticEvent for MaintainerSet { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "MaintainerSet"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Chain now available for transfers (chain_id)"] - pub struct ChainWhitelisted { - pub chain_id: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ChainWhitelisted { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ChainWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Proposal has been approved"] - pub struct ProposalApproved { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalApproved { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalApproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Execution of call succeeded"] - pub struct ProposalSucceeded { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalSucceeded { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalSucceeded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Execution of call failed"] - pub struct ProposalFailed { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalFailed { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalFailed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The parameter maintainer who can change the parameters"] pub fn maintainer (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "Maintainer", - vec![], - [ - 104u8, 164u8, 76u8, 22u8, 55u8, 166u8, 230u8, 23u8, - 129u8, 166u8, 199u8, 31u8, 66u8, 142u8, 10u8, - 119u8, 72u8, 63u8, 10u8, 213u8, 69u8, 49u8, 243u8, - 128u8, 212u8, 125u8, 202u8, 208u8, 180u8, 62u8, - 84u8, 157u8, - ], - ) - } - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("SignatureBridge" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [46u8 , 115u8 , 113u8 , 107u8 , 117u8 , 64u8 , 44u8 , 249u8 , 225u8 , 85u8 , 228u8 , 126u8 , 121u8 , 101u8 , 13u8 , 244u8 , 174u8 , 210u8 , 21u8 , 34u8 , 248u8 , 203u8 , 38u8 , 35u8 , 113u8 , 149u8 , 100u8 , 157u8 , 8u8 , 100u8 , 113u8 , 68u8 ,]) - } - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "ChainNonces", - Vec::new(), - [ - 46u8, 115u8, 113u8, 107u8, 117u8, 64u8, 44u8, - 249u8, 225u8, 85u8, 228u8, 126u8, 121u8, 101u8, - 13u8, 244u8, 174u8, 210u8, 21u8, 34u8, 248u8, - 203u8, 38u8, 35u8, 113u8, 149u8, 100u8, 157u8, 8u8, - 100u8, 113u8, 68u8, - ], - ) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < () > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("SignatureBridge" , "Resources" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [244u8 , 76u8 , 108u8 , 200u8 , 197u8 , 2u8 , 102u8 , 136u8 , 158u8 , 135u8 , 102u8 , 251u8 , 56u8 , 170u8 , 225u8 , 248u8 , 37u8 , 168u8 , 49u8 , 184u8 , 241u8 , 15u8 , 4u8 , 100u8 , 144u8 , 154u8 , 29u8 , 128u8 , 69u8 , 188u8 , 80u8 , 121u8 ,]) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < () > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "Resources", - Vec::new(), - [ - 244u8, 76u8, 108u8, 200u8, 197u8, 2u8, 102u8, - 136u8, 158u8, 135u8, 102u8, 251u8, 56u8, 170u8, - 225u8, 248u8, 37u8, 168u8, 49u8, 184u8, 241u8, - 15u8, 4u8, 100u8, 144u8, 154u8, 29u8, 128u8, 69u8, - 188u8, 80u8, 121u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "ProposalNonce", - vec![], - [ - 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, - 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, - 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, - 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, - ], - ) - } pub fn maintainer_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "MaintainerNonce", - vec![], - [ - 139u8, 246u8, 239u8, 180u8, 188u8, 73u8, 234u8, - 114u8, 211u8, 68u8, 84u8, 178u8, 142u8, 49u8, 24u8, - 160u8, 32u8, 180u8, 211u8, 16u8, 75u8, 91u8, 40u8, - 132u8, 120u8, 68u8, 221u8, 167u8, 138u8, 53u8, - 71u8, 250u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The identifier for this chain."] - #[doc = " This must be unique and must not collide with existing IDs within a"] - #[doc = " set of bridged chains."] - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "ChainIdentifier", - [ - 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 chain type for this chain."] - #[doc = " This is either a standalone Substrate chain, relay chain, or parachain"] - pub fn chain_type( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - [::core::primitive::u8; 2usize], - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "ChainType", - [ - 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, - 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, - 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, - 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, - 240u8, 86u8, - ], - ) - } - pub fn proposal_lifetime( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "ProposalLifetime", - [ - 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 fn bridge_account_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "BridgeAccountId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - } - } - } - pub mod relayer_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "Identity pallet declaration."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResource { - pub resource_id: - runtime_types::webb_proposals::header::ResourceId, - pub info: ::std::boxed::Box< - runtime_types::pallet_relayer_registry::types::ResourceInfo, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClearResource { - pub resource_id: - runtime_types::webb_proposals::header::ResourceId, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set a resource's information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the resource already has resource information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The resource information."] - #[doc = ""] - #[doc = "Emits `ResourceSet` if successful."] - pub fn set_resource( - &self, - resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - info : runtime_types :: pallet_relayer_registry :: types :: ResourceInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "RelayerRegistry", - "set_resource", - SetResource { - resource_id, - info: ::std::boxed::Box::new(info), - }, - [ - 166u8, 246u8, 237u8, 192u8, 22u8, 46u8, 194u8, 9u8, - 231u8, 182u8, 27u8, 204u8, 242u8, 15u8, 131u8, - 111u8, 87u8, 15u8, 90u8, 74u8, 105u8, 242u8, 40u8, - 250u8, 17u8, 14u8, 155u8, 76u8, 179u8, 0u8, 86u8, - 29u8, - ], - ) - } - #[doc = "Clear an account's resource record."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "resource."] - #[doc = ""] - #[doc = "Emits `ResourceCleared` if successful."] - pub fn clear_resource( - &self, - resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "RelayerRegistry", - "clear_resource", - ClearResource { resource_id }, - [ - 92u8, 192u8, 248u8, 135u8, 120u8, 84u8, 22u8, - 226u8, 51u8, 182u8, 16u8, 88u8, 235u8, 113u8, - 231u8, 29u8, 194u8, 72u8, 78u8, 181u8, 35u8, 68u8, - 80u8, 100u8, 64u8, 164u8, 236u8, 19u8, 25u8, 255u8, - 121u8, 63u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_relayer_registry::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A resource was set or reset (which will remove all judgements)."] - pub struct ResourceSet { - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ResourceSet { - const PALLET: &'static str = "RelayerRegistry"; - const EVENT: &'static str = "ResourceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A resource was cleared, and the given balance returned."] - pub struct ResourceCleared { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for ResourceCleared { - const PALLET: &'static str = "RelayerRegistry"; - const EVENT: &'static str = "ResourceCleared"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " A map that allows accounts to store metadata about each resource they are interested in."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn resource_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_relayer_registry :: types :: ResourceRecord < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("RelayerRegistry" , "ResourceOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [185u8 , 81u8 , 138u8 , 7u8 , 131u8 , 31u8 , 61u8 , 187u8 , 117u8 , 12u8 , 0u8 , 178u8 , 133u8 , 254u8 , 247u8 , 85u8 , 113u8 , 184u8 , 82u8 , 178u8 , 182u8 , 103u8 , 240u8 , 30u8 , 20u8 , 126u8 , 187u8 , 120u8 , 113u8 , 119u8 , 53u8 , 250u8 ,]) - } - #[doc = " A map that allows accounts to store metadata about each resource they are interested in."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn resource_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_relayer_registry :: types :: ResourceRecord < :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "RelayerRegistry", - "ResourceOf", - Vec::new(), - [ - 185u8, 81u8, 138u8, 7u8, 131u8, 31u8, 61u8, 187u8, - 117u8, 12u8, 0u8, 178u8, 133u8, 254u8, 247u8, 85u8, - 113u8, 184u8, 82u8, 178u8, 182u8, 103u8, 240u8, - 30u8, 20u8, 126u8, 187u8, 120u8, 113u8, 119u8, - 53u8, 250u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The amount held on deposit for a registered identity"] - pub fn basic_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "RelayerRegistry", - "BasicDeposit", - [ - 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 additional field for a registered identity."] - pub fn field_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "RelayerRegistry", - "FieldDeposit", - [ - 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 number of additional fields that may be stored in an ID. Needed to bound the I/O"] - #[doc = " required to access an identity, but can be pretty high."] - pub fn max_additional_fields( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "RelayerRegistry", - "MaxAdditionalFields", - [ - 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 key_storage { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Register { - pub owner: ::subxt::utils::AccountId32, - pub public_key: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn register( - &self, - owner: ::subxt::utils::AccountId32, - public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "KeyStorage", - "register", - Register { owner, public_key }, - [ - 171u8, 208u8, 174u8, 130u8, 196u8, 84u8, 27u8, 8u8, - 186u8, 246u8, 169u8, 204u8, 151u8, 151u8, 172u8, - 47u8, 198u8, 250u8, 162u8, 161u8, 37u8, 144u8, - 193u8, 107u8, 125u8, 202u8, 8u8, 209u8, 244u8, - 108u8, 81u8, 62u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_key_storage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Public key registration"] - pub struct PublicKeyRegistration { - pub owner: ::subxt::utils::AccountId32, - pub public_key: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - impl ::subxt::events::StaticEvent for PublicKeyRegistration { - const PALLET: &'static str = "KeyStorage"; - const EVENT: &'static str = "PublicKeyRegistration"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of owners to public keys"] pub fn public_key_owners (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "KeyStorage", - "PublicKeyOwners", - vec![], - [ - 45u8, 68u8, 75u8, 191u8, 222u8, 164u8, 64u8, 224u8, - 76u8, 232u8, 244u8, 187u8, 33u8, 179u8, 192u8, - 168u8, 172u8, 102u8, 222u8, 81u8, 68u8, 213u8, - 182u8, 173u8, 161u8, 126u8, 247u8, 9u8, 226u8, - 119u8, 185u8, 18u8, - ], - ) - } - } - } - } - pub mod runtime_types { - use super::runtime_types; - pub mod finality_grandpa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - } - pub mod frame_support { - use super::runtime_types; - pub mod dispatch { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DispatchClass { - #[codec(index = 0)] - Normal, - #[codec(index = 1)] - Operational, - #[codec(index = 2)] - Mandatory, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Pays { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } - pub mod preimages { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Bounded<_0> { - # [codec (index = 0)] Legacy { hash : :: subxt :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } - } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckMortality( - pub runtime_types::sp_runtime::generic::era::Era, - ); - } - pub mod check_non_zero_sender { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckNonce( - #[codec(compact)] pub ::core::primitive::u32, - ); - } - pub mod check_spec_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckSpecVersion; - } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckTxVersion; - } - pub mod check_weight { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckWeight; - } - } - pub mod limits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - remark { - remark: ::std::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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - set_code { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - set_code_without_checks { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "Set some items of storage."] - set_storage { - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 5)] - #[doc = "Kill some items from storage."] - kill_storage { - keys: ::std::vec::Vec< - ::std::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: ::std::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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, - pub data: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::std::vec::Vec<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::std::string::String, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, - } - } - pub mod orml_currencies { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some balance to another account under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Transfer some native currency to another account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - transfer_native_currency { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "update amount of account `who` under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - update_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::i128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Unable to convert the Amount type into Balance."] - AmountIntoBalanceFailed, - #[codec(index = 1)] - #[doc = "Balance is too low."] - BalanceTooLow, - #[codec(index = 2)] - #[doc = "Deposit result is not expected"] - DepositFailed, - } - } - } - pub mod orml_tokens { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "It will decrease the total issuance of the system by the"] - #[doc = "`TransferFee`. If the sender's account is below the existential"] - #[doc = "deposit as a result of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Transfer all remaining balance to the given account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_"] - #[doc = "balances. This means that any locked, reserved, or existential"] - #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] - #[doc = "this function. To ensure that this function results in a killed"] - #[doc = "account, you might need to prepare the account by removing any"] - #[doc = "reference counters, storage deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] - #[doc = " operation should send all of the funds the account has, causing"] - #[doc = " the sender account to be killed (false), or transfer everything"] - #[doc = " except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - keep_alive: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] - #[doc = "will not kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source"] - #[doc = "account may be specified."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The sender of the transfer."] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] - #[doc = "will also decrease the total issuance of the system"] - #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] - #[doc = "existential deposit, it will reap the `AccountInfo`."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The balance is too low"] - BalanceTooLow, - #[codec(index = 1)] - #[doc = "Cannot convert Amount into Balance type"] - AmountIntoBalanceFailed, - #[codec(index = 2)] - #[doc = "Failed because liquidity restrictions due to locking"] - LiquidityRestrictions, - #[codec(index = 3)] - #[doc = "Failed because the maximum locks was exceeded"] - MaxLocksExceeded, - #[codec(index = 4)] - #[doc = "Transfer/payment would kill account"] - KeepAlive, - #[codec(index = 5)] - #[doc = "Value too low to create account due to existential deposit"] - ExistentialDeposit, - #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist"] - DeadAccount, - #[codec(index = 7)] - TooManyReserves, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below"] # [doc = "ExistentialDeposit, resulting in an outright loss."] DustLost { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some reserved balance was repatriated (moved from reserved to"] # [doc = "another account)."] ReserveRepatriated { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 6)] # [doc = "A balance was set by root."] BalanceSet { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "The total issuance of an currency has been set"] TotalIssuanceSet { currency_id : :: core :: primitive :: u32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] Withdrawn { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some balances were slashed (e.g. due to mis-behavior)"] Slashed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free_amount : :: core :: primitive :: u128 , reserved_amount : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Deposited some balance into an account"] Deposited { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Some funds are locked"] LockSet { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "Some locked funds were unlocked"] LockRemoved { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_asset_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Register a new asset."] # [doc = ""] # [doc = "Asset is identified by `name` and the name must not be used to"] # [doc = "register another asset."] # [doc = ""] # [doc = "New asset is given `NextAssetId` - sequential asset id"] # [doc = ""] # [doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] # [doc = "be retrieved by name too (Note: this approach is used in AMM"] # [doc = "implementation (xyk))"] # [doc = ""] # [doc = "Emits 'Registered` event when successful."] register { name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , existential_deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Update registered asset."] # [doc = ""] # [doc = "Updates also mapping between name and asset id if provided name is"] # [doc = "different than currently registered."] # [doc = ""] # [doc = "Emits `Updated` event when successful."] update { asset_id : :: core :: primitive :: u32 , bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } , # [codec (index = 2)] # [doc = "Set metadata for an asset."] # [doc = ""] # [doc = "- `asset_id`: Asset identifier."] # [doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] # [doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] # [doc = ""] # [doc = "Emits `MetadataSet` event when successful."] set_metadata { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Set asset native location."] # [doc = ""] # [doc = "Adds mapping between native location and local asset id and vice"] # [doc = "versa."] # [doc = ""] # [doc = "Mainly used in XCM."] # [doc = ""] # [doc = "Emits `LocationSet` event when successful."] set_location { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Add an asset to an existing pool."] add_asset_to_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Remove an asset from an existing pool."] delete_asset_from_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Asset Id is not available. This only happens when it reaches the MAX"] - #[doc = "value of given id type."] - NoIdAvailable, - #[codec(index = 1)] - #[doc = "Invalid asset name or symbol."] - AssetNotFound, - #[codec(index = 2)] - #[doc = "Invalid asset name or symbol."] - TooLong, - #[codec(index = 3)] - #[doc = "Asset ID is not registered in the asset-registry."] - AssetNotRegistered, - #[codec(index = 4)] - #[doc = "Asset is already registered."] - AssetAlreadyRegistered, - #[codec(index = 5)] - #[doc = "Incorrect number of assets provided to create shared asset."] - InvalidSharedAssetLen, - #[codec(index = 6)] - #[doc = "Asset exists in to pool"] - AssetExistsInPool, - #[codec(index = 7)] - #[doc = "Asset not found in pool"] - AssetNotFoundInPool, - #[codec(index = 8)] - #[doc = "Max number of assets in pool is reached"] - MaxAssetIdInPoolReached, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Asset was registered."] Registered { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } , # [codec (index = 1)] # [doc = "Asset was updated."] Updated { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } , # [codec (index = 2)] # [doc = "Metadata set for an asset."] MetadataSet { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Native location set for an asset."] LocationSet { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetDetails<_0, _1, _2, _3> { - pub name: _2, - pub asset_type: - runtime_types::pallet_asset_registry::types::AssetType< - _0, - _3, - >, - pub existential_deposit: _1, - pub locked: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetMetadata<_0> { - pub symbol: _0, - pub decimals: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum AssetType<_0, _1> { - # [codec (index = 0)] Token , # [codec (index = 1)] PoolShare (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > ,) , __Ignore (:: core :: marker :: PhantomData < _1 >) , } - } - } - pub mod pallet_asset_tx_payment { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] - #[doc = "has been paid by `who` in an asset `asset_id`."] - AssetTxFeePaid { - who: ::subxt::utils::AccountId32, - actual_fee: ::core::primitive::u128, - tip: ::core::primitive::u128, - asset_id: - ::core::option::Option<::core::primitive::u32>, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ChargeAssetTxPayment { - #[codec(compact)] - pub tip: ::core::primitive::u128, - pub asset_id: ::core::option::Option<::core::primitive::u32>, - } - } - pub mod pallet_assets { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Issue a new class of fungible assets from a public origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially and its owner is the origin."] - #[doc = ""] - #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] - #[doc = ""] - #[doc = "Funds of sender are reserved by `AssetDeposit`."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] - #[doc = "member of the asset class's admin team."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `Created` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - create { - #[codec(compact)] - id: ::core::primitive::u32, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - min_balance: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Issue a new class of fungible assets from a privileged origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin`."] - #[doc = ""] - #[doc = "Unlike `create`, no funds are reserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] - #[doc = "over this asset, but may later change and configure the permissions using"] - #[doc = "`transfer_ownership` and `set_team`."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `ForceCreated` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_create { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - is_sufficient: ::core::primitive::bool, - #[codec(compact)] - min_balance: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Start the process of destroying a fungible asset class."] - #[doc = ""] - #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] - #[doc = "destruction of an asset class."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "The asset class must be frozen before calling `start_destroy`."] - start_destroy { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Destroy all accounts associated with a given asset."] - #[doc = ""] - #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedAccounts` event."] - destroy_accounts { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] - #[doc = ""] - #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedApprovals` event."] - destroy_approvals { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "Complete destroying asset and unreserve currency."] - #[doc = ""] - #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] - #[doc = "hand."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each successful call emits the `Event::Destroyed` event."] - finish_destroy { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "Mint assets of a particular class."] - #[doc = ""] - #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount minted."] - #[doc = "- `beneficiary`: The account to be credited with the minted assets."] - #[doc = "- `amount`: The amount of the asset to be minted."] - #[doc = ""] - #[doc = "Emits `Issued` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] - mint { - #[codec(compact)] - id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 7)] - #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] - #[doc = ""] - #[doc = "Bails with `NoAccount` if the `who` is already dead."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount burned."] - #[doc = "- `who`: The account to be debited from."] - #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] - #[doc = ""] - #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] - #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] - burn { - #[codec(compact)] - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "Move some assets from the sender account to another."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - transfer { - #[codec(compact)] - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - transfer_keep_alive { - #[codec(compact)] - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "Move some assets from one account to another."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `source`: The account to be debited."] - #[doc = "- `dest`: The account to be credited."] - #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] - #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] - #[doc = "below the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] - #[doc = "`dest`."] - force_transfer { - #[codec(compact)] - id: ::core::primitive::u32, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "Disallow further unprivileged transfers from an account."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - freeze { - #[codec(compact)] - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 12)] - #[doc = "Allow unprivileged transfers from an account again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be unfrozen."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - thaw { - #[codec(compact)] - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 13)] - #[doc = "Disallow further unprivileged transfers for the asset class."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - freeze_asset { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 14)] - #[doc = "Allow unprivileged transfers for the asset again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be thawed."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - thaw_asset { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 15)] - #[doc = "Change the Owner of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = ""] - #[doc = "Emits `OwnerChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - transfer_ownership { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 16)] - #[doc = "Change the Issuer, Admin and Freezer of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = ""] - #[doc = "Emits `TeamChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - set_team { - #[codec(compact)] - id: ::core::primitive::u32, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 17)] - #[doc = "Set the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Funds of sender are reserved according to the formula:"] - #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] - #[doc = "account any already reserved funds."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - set_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - }, - #[codec(index = 18)] - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Any deposit is freed for the asset owner."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - clear_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 19)] - #[doc = "Force the metadata for an asset to some value."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is left alone."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] - force_set_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - is_frozen: ::core::primitive::bool, - }, - #[codec(index = 20)] - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is returned."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_clear_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 21)] - #[doc = "Alter the attributes of a given asset."] - #[doc = ""] - #[doc = "Origin must be `ForceOrigin`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] - #[doc = "value to account for the state bloat associated with its balance storage. If set to"] - #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] - #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] - #[doc = "growth)."] - #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] - #[doc = "instructions."] - #[doc = ""] - #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_asset_status { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - min_balance: ::core::primitive::u128, - is_sufficient: ::core::primitive::bool, - is_frozen: ::core::primitive::bool, - }, - #[codec(index = 22)] - #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] - #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] - #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] - #[doc = "meet the right value."] - #[doc = ""] - #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] - #[doc = "making this call."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account to delegate permission to transfer asset."] - #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] - #[doc = "already an approval in place, then this acts additively."] - #[doc = ""] - #[doc = "Emits `ApprovedTransfer` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - approve_transfer { - #[codec(compact)] - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 23)] - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place between signer and"] - #[doc = "`delegate`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - cancel_approval { - #[codec(compact)] - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 24)] - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] - #[doc = "account of the asset `id`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_cancel_approval { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 25)] - #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] - #[doc = "account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] - #[doc = "signer."] - #[doc = ""] - #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] - #[doc = "reserved by `approve_transfer` is unreserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] - #[doc = "from which the asset balance will be withdrawn."] - #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] - #[doc = "- `amount`: The amount of assets to transfer."] - #[doc = ""] - #[doc = "Emits `TransferredApproved` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - transfer_approved { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - destination: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 26)] - #[doc = "Create an asset account for non-provider assets."] - #[doc = ""] - #[doc = "A deposit will be taken from the signer account."] - #[doc = ""] - #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] - #[doc = " to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = ""] - #[doc = "Emits `Touched` event when successful."] - touch { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 27)] - #[doc = "Return the deposit (if any) of an asset account."] - #[doc = ""] - #[doc = "The origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] - #[doc = ""] - #[doc = "Emits `Refunded` event when successful."] - refund { - #[codec(compact)] - id: ::core::primitive::u32, - allow_burn: ::core::primitive::bool, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account balance must be greater than or equal to the transfer amount."] - BalanceLow, - #[codec(index = 1)] - #[doc = "The account to alter does not exist."] - NoAccount, - #[codec(index = 2)] - #[doc = "The signing account has no permission to do the operation."] - NoPermission, - #[codec(index = 3)] - #[doc = "The given asset ID is unknown."] - Unknown, - #[codec(index = 4)] - #[doc = "The origin account is frozen."] - Frozen, - #[codec(index = 5)] - #[doc = "The asset ID is already taken."] - InUse, - #[codec(index = 6)] - #[doc = "Invalid witness data given."] - BadWitness, - #[codec(index = 7)] - #[doc = "Minimum balance should be non-zero."] - MinBalanceZero, - #[codec(index = 8)] - #[doc = "Unable to increment the consumer reference counters on the account. Either no provider"] - #[doc = "reference exists to allow a non-zero balance of a non-self-sufficient asset, or the"] - #[doc = "maximum number of consumers has been reached."] - NoProvider, - #[codec(index = 9)] - #[doc = "Invalid metadata given."] - BadMetadata, - #[codec(index = 10)] - #[doc = "No approval exists that would allow the transfer."] - Unapproved, - #[codec(index = 11)] - #[doc = "The source account would not survive the transfer and it needs to stay alive."] - WouldDie, - #[codec(index = 12)] - #[doc = "The asset-account already exists."] - AlreadyExists, - #[codec(index = 13)] - #[doc = "The asset-account doesn't have an associated deposit."] - NoDeposit, - #[codec(index = 14)] - #[doc = "The operation would result in funds being burned."] - WouldBurn, - #[codec(index = 15)] - #[doc = "The asset is a live asset and is actively being used. Usually emit for operations such"] - #[doc = "as `start_destroy` which require the asset to be in a destroying state."] - LiveAsset, - #[codec(index = 16)] - #[doc = "The asset is not live, and likely being destroyed."] - AssetNotLive, - #[codec(index = 17)] - #[doc = "The asset status is not the expected status."] - IncorrectStatus, - #[codec(index = 18)] - #[doc = "The asset should be frozen before the given operation."] - NotFrozen, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Some asset class was created."] - Created { - asset_id: ::core::primitive::u32, - creator: ::subxt::utils::AccountId32, - owner: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - #[doc = "Some assets were issued."] - Issued { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - total_supply: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Some assets were transferred."] - Transferred { - asset_id: ::core::primitive::u32, - from: ::subxt::utils::AccountId32, - to: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Some assets were destroyed."] - Burned { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - balance: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "The management team changed."] - TeamChanged { - asset_id: ::core::primitive::u32, - issuer: ::subxt::utils::AccountId32, - admin: ::subxt::utils::AccountId32, - freezer: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "The owner changed."] - OwnerChanged { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - }, - #[codec(index = 6)] - #[doc = "Some account `who` was frozen."] - Frozen { - asset_id: ::core::primitive::u32, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 7)] - #[doc = "Some account `who` was thawed."] - Thawed { - asset_id: ::core::primitive::u32, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "Some asset `asset_id` was frozen."] - AssetFrozen { asset_id: ::core::primitive::u32 }, - #[codec(index = 9)] - #[doc = "Some asset `asset_id` was thawed."] - AssetThawed { asset_id: ::core::primitive::u32 }, - #[codec(index = 10)] - #[doc = "Accounts were destroyed for given asset."] - AccountsDestroyed { - asset_id: ::core::primitive::u32, - accounts_destroyed: ::core::primitive::u32, - accounts_remaining: ::core::primitive::u32, - }, - #[codec(index = 11)] - #[doc = "Approvals were destroyed for given asset."] - ApprovalsDestroyed { - asset_id: ::core::primitive::u32, - approvals_destroyed: ::core::primitive::u32, - approvals_remaining: ::core::primitive::u32, - }, - #[codec(index = 12)] - #[doc = "An asset class is in the process of being destroyed."] - DestructionStarted { asset_id: ::core::primitive::u32 }, - #[codec(index = 13)] - #[doc = "An asset class was destroyed."] - Destroyed { asset_id: ::core::primitive::u32 }, - #[codec(index = 14)] - #[doc = "Some asset class was force-created."] - ForceCreated { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - }, - #[codec(index = 15)] - #[doc = "New metadata has been set for an asset."] - MetadataSet { - asset_id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - is_frozen: ::core::primitive::bool, - }, - #[codec(index = 16)] - #[doc = "Metadata has been cleared for an asset."] - MetadataCleared { asset_id: ::core::primitive::u32 }, - #[codec(index = 17)] - #[doc = "(Additional) funds have been approved for transfer to a destination account."] - ApprovedTransfer { - asset_id: ::core::primitive::u32, - source: ::subxt::utils::AccountId32, - delegate: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 18)] - #[doc = "An approval for account `delegate` was cancelled by `owner`."] - ApprovalCancelled { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - delegate: ::subxt::utils::AccountId32, - }, - #[codec(index = 19)] - #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] - #[doc = "the approved `delegate`."] - TransferredApproved { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - delegate: ::subxt::utils::AccountId32, - destination: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 20)] - #[doc = "An asset has had its attributes changed by the `Force` origin."] - AssetStatusChanged { asset_id: ::core::primitive::u32 }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Approval<_0, _1> { - pub amount: _0, - pub deposit: _0, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetAccount<_0, _1, _2> { - pub balance: _0, - pub is_frozen: ::core::primitive::bool, - pub reason: - runtime_types::pallet_assets::types::ExistenceReason< - _0, - >, - pub extra: _2, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetDetails<_0, _1, _2> { - pub owner: _1, - pub issuer: _1, - pub admin: _1, - pub freezer: _1, - pub supply: _0, - pub deposit: _0, - pub min_balance: _0, - pub is_sufficient: ::core::primitive::bool, - pub accounts: ::core::primitive::u32, - pub sufficients: ::core::primitive::u32, - pub approvals: ::core::primitive::u32, - pub status: - runtime_types::pallet_assets::types::AssetStatus, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_2>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetMetadata<_0, _1> { - pub deposit: _0, - pub name: _1, - pub symbol: _1, - pub decimals: ::core::primitive::u8, - pub is_frozen: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum AssetStatus { - #[codec(index = 0)] - Live, - #[codec(index = 1)] - Frozen, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ExistenceReason<_0> { - #[codec(index = 0)] - Consumer, - #[codec(index = 1)] - Sufficient, - #[codec(index = 2)] - DepositHeld(_0), - #[codec(index = 3)] - DepositRefunded, - } - } - } - pub mod pallet_authorship { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Provide a set of uncles."] - set_uncles { - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The uncle parent not in the chain."] - InvalidUncleParent, - #[codec(index = 1)] - #[doc = "Uncles already set in the block."] - UnclesAlreadySet, - #[codec(index = 2)] - #[doc = "Too many uncles."] - TooManyUncles, - #[codec(index = 3)] - #[doc = "The uncle is genesis."] - GenesisUncle, - #[codec(index = 4)] - #[doc = "The uncle is too high in chain."] - TooHighUncle, - #[codec(index = 5)] - #[doc = "The uncle is already included."] - UncleAlreadyIncluded, - #[codec(index = 6)] - #[doc = "The uncle isn't recent enough to be included."] - OldUncle, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum UncleEntryItem<_0, _1, _2> { - #[codec(index = 0)] - InclusionHeight(_0), - #[codec(index = 1)] - Uncle(_1, ::core::option::Option<_2>), - } - } - pub mod pallet_babe { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , 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 : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bag { - pub head: - ::core::option::Option<::subxt::utils::AccountId32>, - pub tail: - ::core::option::Option<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ListError { - #[codec(index = 0)] - Duplicate, - #[codec(index = 1)] - NotHeavier, - #[codec(index = 2)] - NotInSameBag, - #[codec(index = 3)] - NodeNotFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Node { - pub id: ::subxt::utils::AccountId32, - pub prev: - ::core::option::Option<::subxt::utils::AccountId32>, - pub next: - ::core::option::Option<::subxt::utils::AccountId32>, - pub bag_upper: ::core::primitive::u64, - pub score: ::core::primitive::u64, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] - put_in_front_of { - lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "A error in the list interface implementation."] - List(runtime_types::pallet_bags_list::list::ListError), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Moved an account from one bag to another."] - Rebagged { - who: ::subxt::utils::AccountId32, - from: ::core::primitive::u64, - to: ::core::primitive::u64, - }, - #[codec(index = 1)] - #[doc = "Updated the score of some account to the given amount."] - ScoreUpdated { - who: ::subxt::utils::AccountId32, - new_score: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_balances { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] - KeepAlive, - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - approve_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - propose_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - award_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - extend_bounty_expiry { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "A bounty is claimed by beneficiary."] - BountyClaimed { - index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::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 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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_child_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::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::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A child-bounty is cancelled."] - Canceled { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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_collective { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] - set_members { - new_members: - ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: - ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] - execute { - proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] - propose { - #[codec(compact)] - threshold: ::core::primitive::u32, - proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] - vote { - proposal: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - }, - #[codec(index = 4)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close_old_weight { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: - runtime_types::sp_weights::OldWeight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] - disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - proposal_weight_bound: - runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account is not a member"] - NotMember, - #[codec(index = 1)] - #[doc = "Duplicate proposals not allowed"] - DuplicateProposal, - #[codec(index = 2)] - #[doc = "Proposal must exist"] - ProposalMissing, - #[codec(index = 3)] - #[doc = "Mismatched index"] - WrongIndex, - #[codec(index = 4)] - #[doc = "Duplicate vote ignored"] - DuplicateVote, - #[codec(index = 5)] - #[doc = "Members are already initialized!"] - AlreadyInitialized, - #[codec(index = 6)] - #[doc = "The close call was made too early, before the end of the voting."] - TooEarly, - #[codec(index = 7)] - #[doc = "There can only be a maximum of `MaxProposals` active proposals."] - TooManyProposals, - #[codec(index = 8)] - #[doc = "The given weight bound for the proposal was too low."] - WrongProposalWeight, - #[codec(index = 9)] - #[doc = "The given length bound for the proposal was too low."] - WrongProposalLength, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - Proposed { - account: ::subxt::utils::AccountId32, - proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::utils::H256, - threshold: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - Voted { - account: ::subxt::utils::AccountId32, - proposal_hash: ::subxt::utils::H256, - voted: ::core::primitive::bool, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "A motion was approved by the required threshold."] - Approved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 3)] - #[doc = "A motion was not approved by the required threshold."] - Disapproved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 4)] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - Executed { - proposal_hash: ::subxt::utils::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 5)] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - MemberExecuted { - proposal_hash: ::subxt::utils::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 6)] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - Closed { - proposal_hash: ::subxt::utils::H256, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Members(::core::primitive::u32, ::core::primitive::u32), - #[codec(index = 1)] - Member(_0), - #[codec(index = 2)] - _Phantom, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Votes<_0, _1> { - pub index: ::core::primitive::u32, - pub threshold: ::core::primitive::u32, - pub ayes: ::std::vec::Vec<_0>, - pub nays: ::std::vec::Vec<_0>, - pub end: _1, - } - } - pub mod pallet_democracy { - use super::runtime_types; - pub mod conviction { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Conviction { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Locked1x, - #[codec(index = 2)] - Locked2x, - #[codec(index = 3)] - Locked3x, - #[codec(index = 4)] - Locked4x, - #[codec(index = 5)] - Locked5x, - #[codec(index = 6)] - Locked6x, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Propose a sensitive action to be taken."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender must"] # [doc = "have funds to cover the deposit."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the proposal preimage."] # [doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] # [doc = ""] # [doc = "Emits `Proposed`."] propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Signals agreement with a particular proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender"] # [doc = "must have funds to cover the deposit, equal to the original deposit."] # [doc = ""] # [doc = "- `proposal`: The index of the proposal to second."] second { # [codec (compact)] proposal : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] # [doc = "- `vote`: The vote configuration."] vote { # [codec (compact)] ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 3)] # [doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancellationOrigin`."] # [doc = ""] # [doc = "-`ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "Weight: `O(1)`."] emergency_cancel { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `ExternalOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] # [doc = "an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_majority { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] # [doc = "schedule an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_default { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] # [doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] # [doc = "but it is not a majority-carries referendum then it fails."] # [doc = ""] # [doc = "The dispatch of this call must be `FastTrackOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the current external proposal."] # [doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] # [doc = "\tMust be always greater than zero."] # [doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] # [doc = "- `delay`: The number of block after voting has ended in approval and this should be"] # [doc = " enacted. This doesn't have a minimum amount."] # [doc = ""] # [doc = "Emits `Started`."] # [doc = ""] # [doc = "Weight: `O(1)`"] fast_track { proposal_hash : :: subxt :: utils :: H256 , voting_period : :: core :: primitive :: u64 , delay : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "Veto and blacklist the external proposal hash."] # [doc = ""] # [doc = "The dispatch origin of this call must be `VetoOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] # [doc = ""] # [doc = "Emits `Vetoed`."] # [doc = ""] # [doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Remove a referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "- `ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "# Weight: `O(1)`."] cancel_referendum { # [codec (compact)] ref_index : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Delegate the voting power (with some given conviction) of the sending account."] # [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/consolidated"] # [doc = " through `reap_vote` or `unvote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [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 referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] delegate { to : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , balance : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Undelegate the voting power of the sending account."] # [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."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] undelegate , # [codec (index = 12)] # [doc = "Clears all public proposals."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "Weight: `O(1)`."] clear_public_proposals , # [codec (index = 13)] # [doc = "Unlock tokens that have an expired lock."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] unlock { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove a vote for a referendum."] # [doc = ""] # [doc = "If:"] # [doc = "- the referendum was cancelled, or"] # [doc = "- the referendum is ongoing, or"] # [doc = "- the referendum 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 referendum 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 referendum `index`."] # [doc = ""] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_vote { index : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Remove a vote for a referendum."] # [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 referendum was cancelled, because the voter lost the referendum 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"] # [doc = " referendum `index`."] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , index : :: core :: primitive :: u32 , } , # [codec (index = 16)] # [doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] # [doc = "proposed again."] # [doc = ""] # [doc = "If called on a queued public or external proposal, then this will result in it being"] # [doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] # [doc = "then it will be cancelled."] # [doc = ""] # [doc = "The dispatch origin of this call must be `BlacklistOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] # [doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] # [doc = "cancelled."] # [doc = ""] # [doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] # [doc = " reasonable value)."] blacklist { proposal_hash : :: subxt :: utils :: H256 , maybe_ref_index : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 17)] # [doc = "Remove a proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] # [doc = ""] # [doc = "- `prop_index`: The index of the proposal to cancel."] # [doc = ""] # [doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { # [codec (compact)] prop_index : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Value too low"] - ValueLow, - #[codec(index = 1)] - #[doc = "Proposal does not exist"] - ProposalMissing, - #[codec(index = 2)] - #[doc = "Cannot cancel the same proposal twice"] - AlreadyCanceled, - #[codec(index = 3)] - #[doc = "Proposal already made"] - DuplicateProposal, - #[codec(index = 4)] - #[doc = "Proposal still blacklisted"] - ProposalBlacklisted, - #[codec(index = 5)] - #[doc = "Next external proposal not simple majority"] - NotSimpleMajority, - #[codec(index = 6)] - #[doc = "Invalid hash"] - InvalidHash, - #[codec(index = 7)] - #[doc = "No external proposal"] - NoProposal, - #[codec(index = 8)] - #[doc = "Identity may not veto a proposal twice"] - AlreadyVetoed, - #[codec(index = 9)] - #[doc = "Vote given for invalid referendum"] - ReferendumInvalid, - #[codec(index = 10)] - #[doc = "No proposals waiting"] - NoneWaiting, - #[codec(index = 11)] - #[doc = "The given account did not vote on the referendum."] - NotVoter, - #[codec(index = 12)] - #[doc = "The actor has no permission to conduct the action."] - NoPermission, - #[codec(index = 13)] - #[doc = "The account is already delegating."] - AlreadyDelegating, - #[codec(index = 14)] - #[doc = "Too high a balance was provided that the account cannot afford."] - InsufficientFunds, - #[codec(index = 15)] - #[doc = "The account is not currently delegating."] - NotDelegating, - #[codec(index = 16)] - #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] - #[doc = "these are removed, either through `unvote` or `reap_vote`."] - VotesExist, - #[codec(index = 17)] - #[doc = "The instant referendum origin is currently disallowed."] - InstantNotAllowed, - #[codec(index = 18)] - #[doc = "Delegation to oneself makes no sense."] - Nonsense, - #[codec(index = 19)] - #[doc = "Invalid upper bound."] - WrongUpperBound, - #[codec(index = 20)] - #[doc = "Maximum number of votes reached."] - MaxVotesReached, - #[codec(index = 21)] - #[doc = "Maximum number of items reached."] - TooMany, - #[codec(index = 22)] - #[doc = "Voting period too low"] - VotingPeriodLow, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A motion has been proposed by a public account."] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "An external proposal has been tabled."] ExternalTabled , # [codec (index = 3)] # [doc = "A referendum has begun."] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] # [doc = "A proposal has been approved by referendum."] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proposal has been rejected by referendum."] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A referendum has been cancelled."] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "An account has delegated their vote to another account."] Delegated { who : :: subxt :: utils :: AccountId32 , target : :: subxt :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An account has cancelled a previous delegation operation."] Undelegated { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An external proposal has been vetoed."] Vetoed { who : :: subxt :: utils :: AccountId32 , proposal_hash : :: subxt :: utils :: H256 , until : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 11)] # [doc = "An account has voted in a referendum"] Voted { voter : :: subxt :: utils :: AccountId32 , ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 12)] # [doc = "An account has secconded a proposal"] Seconded { seconder : :: subxt :: utils :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , # [codec (index = 13)] # [doc = "A proposal got canceled."] ProposalCanceled { prop_index : :: core :: primitive :: u32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ReferendumInfo<_0, _1, _2> { - # [codec (index = 0)] Ongoing (runtime_types :: pallet_democracy :: types :: ReferendumStatus < _0 , _1 , _2 > ,) , # [codec (index = 1)] Finished { approved : :: core :: primitive :: bool , end : _0 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReferendumStatus < _0 , _1 , _2 > { pub end : _0 , pub proposal : _1 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , pub delay : _0 , pub tally : runtime_types :: pallet_democracy :: types :: Tally < _2 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub turnout: _0, - } - } - pub mod vote { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum AccountVote<_0> { - #[codec(index = 0)] - Standard { - vote: runtime_types::pallet_democracy::vote::Vote, - balance: _0, - }, - #[codec(index = 1)] - Split { aye: _0, nay: _0 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PriorLock<_0, _1>(pub _0, pub _1); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Voting<_0, _1, _2> { - # [codec (index = 0)] Direct { votes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_democracy :: vote :: AccountVote < _0 > ,) > , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , # [codec (index = 1)] Delegating { balance : _0 , target : _1 , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , } - } - pub mod vote_threshold { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum VoteThreshold { - #[codec(index = 0)] - SuperMajorityApprove, - #[codec(index = 1)] - SuperMajorityAgainst, - #[codec(index = 2)] - SimpleMajority, - } - } - } - pub mod pallet_election_provider_multi_phase { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } - } - pub mod signed { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ElectionCompute { - #[codec(index = 0)] - OnChain, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned, - #[codec(index = 3)] - Fallback, - #[codec(index = 4)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Phase<_0> { - #[codec(index = 0)] - Off, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned((::core::primitive::bool, _0)), - #[codec(index = 3)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub round: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReadySolution { pub supports : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: ::core::primitive::u32, - #[codec(compact)] - pub targets: ::core::primitive::u32, - } - } - pub mod pallet_elections_phragmen { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] # [doc = "set the initial votes, or update already existing votes."] # [doc = ""] # [doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] # [doc = "reserved. The deposit is based on the number of votes and can be updated over time."] # [doc = ""] # [doc = "The `votes` should:"] # [doc = " - not be empty."] # [doc = " - be less than the number of possible candidates. Note that all current members and"] # [doc = " runners-up are also automatically candidates for the next round."] # [doc = ""] # [doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] # [doc = "lock and keep some for further operations."] # [doc = ""] # [doc = "# "] # [doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] # [doc = "# "] vote { votes : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Remove `origin` as a voter."] # [doc = ""] # [doc = "This removes the lock and returns the deposit."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter , # [codec (index = 2)] # [doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] # [doc = ""] # [doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] # [doc = "or leave the system while their deposit is slashed."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] # [doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] # [doc = ""] # [doc = "# "] # [doc = "The number of current candidates must be provided as witness data."] # [doc = "# "] submit_candidacy { # [codec (compact)] candidate_count : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] # [doc = "outcomes exist:"] # [doc = ""] # [doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] # [doc = " unreserved, returned and origin is removed as a candidate."] # [doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] # [doc = " origin is removed as a runner-up."] # [doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] # [doc = " removed as a member, consequently not being a candidate for the next round anymore."] # [doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] # [doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] # [doc = " next round."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed, and have one of the above roles."] # [doc = ""] # [doc = "# "] # [doc = "The type of renouncing must be provided as witness data."] # [doc = "# "] renounce_candidacy { renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing , } , # [codec (index = 4)] # [doc = "Remove a particular member from the set. This is effective immediately and the bond of"] # [doc = "the outgoing member is slashed."] # [doc = ""] # [doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] # [doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] # [doc = "started, else, nothing happens."] # [doc = ""] # [doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] # [doc = "it is returned."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "Note that this does not affect the designated block number of the next election."] # [doc = ""] # [doc = "# "] # [doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] # [doc = "will go into phragmen, we assume full block for now."] # [doc = "# "] remove_member { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , slash_bond : :: core :: primitive :: bool , rerun_election : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] # [doc = "deposit of the removed voters are returned."] # [doc = ""] # [doc = "This is an root function to be used only for cleaning the state."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "# "] # [doc = "The total number of voters and those that are defunct must be provided as witness data."] # [doc = "# "] clean_defunct_voters { num_voters : :: core :: primitive :: u32 , num_defunct : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Cannot vote when no candidates or members exist."] - UnableToVote, - #[codec(index = 1)] - #[doc = "Must vote for at least one candidate."] - NoVotes, - #[codec(index = 2)] - #[doc = "Cannot vote more than candidates."] - TooManyVotes, - #[codec(index = 3)] - #[doc = "Cannot vote more than maximum allowed."] - MaximumVotesExceeded, - #[codec(index = 4)] - #[doc = "Cannot vote with stake less than minimum balance."] - LowBalance, - #[codec(index = 5)] - #[doc = "Voter can not pay voting bond."] - UnableToPayBond, - #[codec(index = 6)] - #[doc = "Must be a voter."] - MustBeVoter, - #[codec(index = 7)] - #[doc = "Duplicated candidate submission."] - DuplicatedCandidate, - #[codec(index = 8)] - #[doc = "Too many candidates have been created."] - TooManyCandidates, - #[codec(index = 9)] - #[doc = "Member cannot re-submit candidacy."] - MemberSubmit, - #[codec(index = 10)] - #[doc = "Runner cannot re-submit candidacy."] - RunnerUpSubmit, - #[codec(index = 11)] - #[doc = "Candidate does not have enough funds."] - InsufficientCandidateFunds, - #[codec(index = 12)] - #[doc = "Not a member."] - NotMember, - #[codec(index = 13)] - #[doc = "The provided count of number of candidates is incorrect."] - InvalidWitnessData, - #[codec(index = 14)] - #[doc = "The provided count of number of votes is incorrect."] - InvalidVoteCount, - #[codec(index = 15)] - #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] - InvalidRenouncing, - #[codec(index = 16)] - #[doc = "Prediction regarding replacement after member removal is wrong."] - InvalidReplacement, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - NewTerm { - new_members: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - }, - #[codec(index = 1)] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - EmptyTerm, - #[codec(index = 2)] - #[doc = "Internal error happened while trying to perform election."] - ElectionError, - #[codec(index = 3)] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - MemberKicked { member: ::subxt::utils::AccountId32 }, - #[codec(index = 4)] - #[doc = "Someone has renounced their candidacy."] - Renounced { - candidate: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - CandidateSlashed { - candidate: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - SeatHolderSlashed { - seat_holder: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Renouncing { - #[codec(index = 0)] - Member, - #[codec(index = 1)] - RunnerUp, - #[codec(index = 2)] - Candidate(#[codec(compact)] ::core::primitive::u32), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SeatHolder<_0, _1> { - pub who: _0, - pub stake: _1, - pub deposit: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Voter<_0, _1> { - pub votes: ::std::vec::Vec<_0>, - pub stake: _1, - pub deposit: _1, - } - } - pub mod pallet_grandpa { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , 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 :: u64 , best_finalized_block_number : :: core :: primitive :: u64 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New authority set has been applied."] - NewAuthorities { - authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , _0 ,) > , pub forced : :: core :: option :: Option < _0 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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_hasher { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - HashingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during hashing"] - HashError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_identity { - use super::runtime_types; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Data { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Raw0([::core::primitive::u8; 0usize]), - #[codec(index = 2)] - Raw1([::core::primitive::u8; 1usize]), - #[codec(index = 3)] - Raw2([::core::primitive::u8; 2usize]), - #[codec(index = 4)] - Raw3([::core::primitive::u8; 3usize]), - #[codec(index = 5)] - Raw4([::core::primitive::u8; 4usize]), - #[codec(index = 6)] - Raw5([::core::primitive::u8; 5usize]), - #[codec(index = 7)] - Raw6([::core::primitive::u8; 6usize]), - #[codec(index = 8)] - Raw7([::core::primitive::u8; 7usize]), - #[codec(index = 9)] - Raw8([::core::primitive::u8; 8usize]), - #[codec(index = 10)] - Raw9([::core::primitive::u8; 9usize]), - #[codec(index = 11)] - Raw10([::core::primitive::u8; 10usize]), - #[codec(index = 12)] - Raw11([::core::primitive::u8; 11usize]), - #[codec(index = 13)] - Raw12([::core::primitive::u8; 12usize]), - #[codec(index = 14)] - Raw13([::core::primitive::u8; 13usize]), - #[codec(index = 15)] - Raw14([::core::primitive::u8; 14usize]), - #[codec(index = 16)] - Raw15([::core::primitive::u8; 15usize]), - #[codec(index = 17)] - Raw16([::core::primitive::u8; 16usize]), - #[codec(index = 18)] - Raw17([::core::primitive::u8; 17usize]), - #[codec(index = 19)] - Raw18([::core::primitive::u8; 18usize]), - #[codec(index = 20)] - Raw19([::core::primitive::u8; 19usize]), - #[codec(index = 21)] - Raw20([::core::primitive::u8; 20usize]), - #[codec(index = 22)] - Raw21([::core::primitive::u8; 21usize]), - #[codec(index = 23)] - Raw22([::core::primitive::u8; 22usize]), - #[codec(index = 24)] - Raw23([::core::primitive::u8; 23usize]), - #[codec(index = 25)] - Raw24([::core::primitive::u8; 24usize]), - #[codec(index = 26)] - Raw25([::core::primitive::u8; 25usize]), - #[codec(index = 27)] - Raw26([::core::primitive::u8; 26usize]), - #[codec(index = 28)] - Raw27([::core::primitive::u8; 27usize]), - #[codec(index = 29)] - Raw28([::core::primitive::u8; 28usize]), - #[codec(index = 30)] - Raw29([::core::primitive::u8; 29usize]), - #[codec(index = 31)] - Raw30([::core::primitive::u8; 30usize]), - #[codec(index = 32)] - Raw31([::core::primitive::u8; 31usize]), - #[codec(index = 33)] - Raw32([::core::primitive::u8; 32usize]), - #[codec(index = 34)] - BlakeTwo256([::core::primitive::u8; 32usize]), - #[codec(index = 35)] - Sha256([::core::primitive::u8; 32usize]), - #[codec(index = 36)] - Keccak256([::core::primitive::u8; 32usize]), - #[codec(index = 37)] - ShaThree256([::core::primitive::u8; 32usize]), - } - } - } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u64 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Non existent public key."] - InvalidKey, - #[codec(index = 1)] - #[doc = "Duplicated heartbeat."] - DuplicatedHeartbeat, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } - } - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public( - pub runtime_types::sp_core::sr25519::Public, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature( - pub runtime_types::sp_core::sr25519::Signature, - ); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub network_state: - runtime_types::sp_core::offchain::OpaqueNetworkState, - pub session_index: ::core::primitive::u32, - pub authority_index: ::core::primitive::u32, - pub validators_len: ::core::primitive::u32, - } - } - pub mod pallet_indices { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] - transfer { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] - force_transfer { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - freeze { index: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A account index was assigned."] - IndexAssigned { - who: ::subxt::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::utils::AccountId32, - }, - } - } - } - pub mod pallet_key_storage { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] register { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - PubKeyOutOfBounds, - #[codec(index = 1)] - MaxPubkeyOwnersExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Public key registration"] PublicKeyRegistration { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - } - } - pub mod pallet_linkable_tree { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - create { - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - UnknownRoot, - #[codec(index = 1)] - #[doc = "Invalid Merkle Roots"] - InvalidMerkleRoots, - #[codec(index = 2)] - #[doc = "Invalid neighbor root passed in withdrawal"] - #[doc = "(neighbor root is not in neighbor history)"] - InvalidNeighborWithdrawRoot, - #[codec(index = 3)] - #[doc = "Anchor is at maximum number of edges for the given tree"] - TooManyEdges, - #[codec(index = 4)] - #[doc = "Edge already exists"] - EdgeAlreadyExists, - #[codec(index = 5)] - #[doc = "Edge does not exist"] - EdgeDoesntExists, - #[codec(index = 6)] - #[doc = "Invalid latest leaf index"] - InvalidLatestLeafIndex, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - LinkableTreeCreation { tree_id: ::core::primitive::u32 }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EdgeMetadata<_0, _1, _2> { - pub src_chain_id: _0, - pub root: _1, - pub latest_leaf_index: _2, - pub src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - } - } - } - pub mod pallet_mixer { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - create { - deposit_size: ::core::primitive::u128, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - }, - #[codec(index = 1)] - deposit { - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - #[codec(index = 2)] - withdraw { - id: ::core::primitive::u32, - proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - root: runtime_types::webb_primitives::runtime::Element, - nullifier_hash: - runtime_types::webb_primitives::runtime::Element, - recipient: ::subxt::utils::AccountId32, - relayer: ::subxt::utils::AccountId32, - fee: ::core::primitive::u128, - refund: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Invalid withdraw proof"] - InvalidWithdrawProof, - #[codec(index = 2)] - #[doc = "Invalid nullifier that is already used"] - #[doc = "(this error is returned when a nullifier is used twice)"] - AlreadyRevealedNullifier, - #[codec(index = 3)] - InvalidArbitraryData, - #[codec(index = 4)] - #[doc = "Invalid root"] - UnknownRoot, - #[codec(index = 5)] - #[doc = "No mixer found"] - NoMixerFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - MixerCreation { tree_id: ::core::primitive::u32 }, - #[codec(index = 1)] - Deposit { - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - #[codec(index = 2)] - Withdraw { - tree_id: ::core::primitive::u32, - recipient: ::subxt::utils::AccountId32, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MixerMetadata<_0, _1> { - pub deposit_size: _0, - pub asset: _1, - } - } - } - pub mod pallet_mt { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { depth : :: core :: primitive :: u8 , } , # [codec (index = 1)] insert { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: webb_primitives :: runtime :: Element , } , # [codec (index = 2)] force_set_default_hashes { default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Invalid depth of the tree specified"] - InvalidTreeDepth, - #[codec(index = 2)] - #[doc = "Invalid leaf index, either taken or too large"] - InvalidLeafIndex, - #[codec(index = 3)] - #[doc = "Tree is full"] - ExceedsMaxLeaves, - #[codec(index = 4)] - #[doc = "Tree doesnt exist"] - TreeDoesntExist, - #[codec(index = 5)] - #[doc = "Invalid length for default hashes"] - ExceedsMaxDefaultHashes, - #[codec(index = 6)] - #[doc = "Invalid length for edges"] - ExceedsMaxEdges, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - TreeCreation { - tree_id: ::core::primitive::u32, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - #[doc = "New leaf inserted"] - LeafInsertion { - tree_id: ::core::primitive::u32, - leaf_index: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TreeMetadata < _0 , _1 , _2 , _3 > { pub creator : :: core :: option :: Option < _0 > , pub paused : :: core :: primitive :: bool , pub leaf_count : _1 , pub max_leaves : _1 , pub depth : :: core :: primitive :: u8 , pub root : _2 , pub edge_nodes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _2 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } - } - } - pub mod pallet_multisig { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - as_multi_threshold_1 { - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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 = "# "] - #[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`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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 = "# "] - #[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`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] - approve_as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - 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 = "# "] - #[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."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] - cancel_as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - call_hash: [::core::primitive::u8; 32usize], - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new multisig operation has begun."] - NewMultisig { - approving: ::subxt::utils::AccountId32, - multisig: ::subxt::utils::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, - #[codec(index = 1)] - #[doc = "A multisig operation has been approved by someone."] - MultisigApproval { - approving: ::subxt::utils::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - multisig: ::subxt::utils::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - #[doc = "A multisig operation has been executed."] - MultisigExecuted { - approving: ::subxt::utils::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - multisig: ::subxt::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::utils::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - multisig: ::subxt::utils::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Multisig<_0, _1, _2> { - pub when: runtime_types::pallet_multisig::Timepoint<_0>, - pub deposit: _1, - pub depositor: _2, - pub approvals: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - _2, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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."] - 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 there 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\"."] - 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 state-toggler. This is"] - #[doc = " refereed to 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 their 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 state-toggler."] - #[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."] - withdraw_unbonded { - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - create { - #[codec(compact)] - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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."] - nominate { - pool_id: ::core::primitive::u32, - validators: - ::std::vec::Vec<::subxt::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 state toggler, 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 state toggler, or the root role"] - #[doc = "of the pool."] - set_metadata { - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - 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, - >, - }, - #[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::utils::AccountId32, - >, - new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 13)] - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - chill { pool_id: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DefensiveError { - #[codec(index = 0)] - NotEnoughSpaceInUnbondPool, - #[codec(index = 1)] - PoolNotFound, - #[codec(index = 2)] - RewardPoolNotFound, - #[codec(index = 3)] - SubPoolsNotFound, - #[codec(index = 4)] - BondedStashKilledPrematurely, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Events of this pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "A pool has been created."] - Created { - depositor: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A member has became bonded in a pool."] - Bonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - bonded: ::core::primitive::u128, - joined: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "A payout has been made to a member."] - PaidOut { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - payout: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - Unbonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - era: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - Withdrawn { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "A pool has been destroyed."] - Destroyed { pool_id: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "The state of a pool has changed"] - StateChanged { - pool_id: ::core::primitive::u32, - new_state: - runtime_types::pallet_nomination_pools::PoolState, - }, - #[codec(index = 7)] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - MemberRemoved { - pool_id: ::core::primitive::u32, - member: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - RolesUpdated { - root: - ::core::option::Option<::subxt::utils::AccountId32>, - state_toggler: - ::core::option::Option<::subxt::utils::AccountId32>, - nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 9)] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - PoolSlashed { - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - UnbondingPoolSlashed { - pool_id: ::core::primitive::u32, - era: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum BondExtra<_0> { - #[codec(index = 0)] - FreeBalance(_0), - #[codec(index = 1)] - Rewards, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondedPoolInner { - pub points: ::core::primitive::u128, - pub state: runtime_types::pallet_nomination_pools::PoolState, - pub member_counter: ::core::primitive::u32, - pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PoolRoles<_0> { - pub depositor: _0, - pub root: ::core::option::Option<_0>, - pub nominator: ::core::option::Option<_0>, - pub state_toggler: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum PoolState { - #[codec(index = 0)] - Open, - #[codec(index = 1)] - Blocked, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - } - } - pub mod pallet_preimage { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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::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::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::utils::H256 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A preimage has been noted."] - Noted { hash: ::subxt::utils::H256 }, - #[codec(index = 1)] - #[doc = "A preimage has been requested."] - Requested { hash: ::subxt::utils::H256 }, - #[codec(index = 2)] - #[doc = "A preimage has ben cleared."] - Cleared { hash: ::subxt::utils::H256 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RequestStatus<_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>, - }, - } - } - pub mod pallet_proxy { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "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 { - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - #[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::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - index: ::core::primitive::u16, - #[codec(compact)] - height: ::core::primitive::u64, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - who: ::subxt::utils::AccountId32, - proxy_type: - runtime_types::webb_standalone_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::utils::AccountId32, - proxy: ::subxt::utils::AccountId32, - call_hash: ::subxt::utils::H256, - }, - #[codec(index = 3)] - #[doc = "A proxy was added."] - ProxyAdded { - delegator: ::subxt::utils::AccountId32, - delegatee: ::subxt::utils::AccountId32, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - #[codec(index = 4)] - #[doc = "A proxy was removed."] - ProxyRemoved { - delegator: ::subxt::utils::AccountId32, - delegatee: ::subxt::utils::AccountId32, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Announcement<_0, _1, _2> { - pub real: _0, - pub call_hash: _1, - pub height: _2, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProxyDefinition<_0, _1, _2> { - pub delegate: _0, - pub proxy_type: _1, - pub delay: _2, - } - } - pub mod pallet_relayer_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Identity pallet declaration."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set a resource's information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the resource already has resource information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The resource information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_resource { resource_id : runtime_types :: webb_proposals :: header :: ResourceId , info : :: std :: boxed :: Box < runtime_types :: pallet_relayer_registry :: types :: ResourceInfo > , } , # [codec (index = 1)] # [doc = "Clear an account's resource record."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "resource."] # [doc = ""] # [doc = "Emits `ResourceCleared` if successful."] clear_resource { resource_id : runtime_types :: webb_proposals :: header :: ResourceId , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account isn't found."] - NotFound, - #[codec(index = 1)] - #[doc = "Account isn't named."] - NotNamed, - #[codec(index = 2)] - #[doc = "Too many additional fields."] - TooManyFields, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A resource was set or reset (which will remove all judgements)."] - ResourceSet { who: ::subxt::utils::AccountId32 }, - #[codec(index = 1)] - #[doc = "A resource was cleared, and the given balance returned."] - ResourceCleared { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ResourceInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub target_system : runtime_types :: webb_proposals :: target_system :: TargetSystem , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ResourceRecord < _0 > { pub deposit : _0 , pub info : runtime_types :: pallet_relayer_registry :: types :: ResourceInfo , } - } - } - pub mod pallet_scheduler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Anonymously schedule a task."] - schedule { - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - #[codec(index = 1)] - #[doc = "Cancel an anonymously scheduled task."] - cancel { - when: ::core::primitive::u64, - index: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Schedule a named task."] - schedule_named { - id: [::core::primitive::u8; 32usize], - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] - schedule_after { - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - #[codec(index = 5)] - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] - schedule_named_after { - id: [::core::primitive::u8; 32usize], - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Events type."] - pub enum Event { - #[codec(index = 0)] - #[doc = "Scheduled some task."] - Scheduled { - when: ::core::primitive::u64, - index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Canceled some task."] - Canceled { - when: ::core::primitive::u64, - index: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Dispatched some task."] - Dispatched { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 3)] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - CallUnavailable { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - }, - #[codec(index = 4)] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - PeriodicFailed { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - }, - #[codec(index = 5)] - #[doc = "The given task can never be executed since it is overweight."] - PermanentlyOverweight { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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, ::core::primitive::u32)>, - pub origin: _3, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, - } - } - pub mod pallet_session { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - set_keys { - keys: - runtime_types::webb_standalone_runtime::SessionKeys, - proof: ::std::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 = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - purge_keys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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_signature_bridge { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Sets the maintainer."] set_maintainer { message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] force_set_maintainer { nonce : :: core :: primitive :: u32 , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 4)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { id : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. Add ResourceId to the Storage"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the set_resource_with_signature"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] set_resource_with_signature { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 6)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. That the r_id parsed from the proposal data exists"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the execute_proposal"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] execute_proposal { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Provided chain Id is not valid"] - InvalidChainId, - #[codec(index = 2)] - #[doc = "Interactions with this chain is not permitted"] - ChainNotWhitelisted, - #[codec(index = 3)] - #[doc = "Chain has already been enabled"] - ChainAlreadyWhitelisted, - #[codec(index = 4)] - #[doc = "Resource ID provided isn't mapped to anything"] - ResourceDoesNotExist, - #[codec(index = 5)] - #[doc = "Resource ID provided is already mapped to anchor"] - ResourceAlreadyExists, - #[codec(index = 6)] - #[doc = "Provided signature is not from the active maintainer"] - SignatureInvalid, - #[codec(index = 7)] - #[doc = "Protected operation, must be performed by relayer"] - MustBeMaintainer, - #[codec(index = 8)] - #[doc = "A proposal with these parameters has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 9)] - #[doc = "Call does not match parsed call from proposal data"] - CallNotConsistentWithProposalData, - #[codec(index = 10)] - #[doc = "Call does not match resource id according to resources mapping"] - CallDoesNotMatchResourceId, - #[codec(index = 11)] - #[doc = "Chain Id Type from the r_id does not match this chain"] - IncorrectExecutionChainIdType, - #[codec(index = 12)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 13)] - #[doc = "Invalid proposal data"] - InvalidProposalData, - #[codec(index = 14)] - #[doc = "Invalid call - calls must be delegated to handler pallets"] - InvalidCall, - #[codec(index = 15)] - #[doc = "The max limit for string is exceeded"] - StringLimitExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Maintainer is set"] MaintainerSet { old_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Proposal has been approved"] ProposalApproved { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Execution of call succeeded"] ProposalSucceeded { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execution of call failed"] ProposalFailed { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [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_ and gets removed as dust."] # [doc = "------------------"] # [doc = "# "] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] # [doc = "# "] 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"] # [doc = "whatever 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 = "# "] # [doc = "Complexity O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] # [doc = "# "] 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 = "# "] # [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."] # [doc = "# "] nominate { targets : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "# "] 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] # [doc = "- Weight: O(1)"] # [doc = "- DB Weight:"] # [doc = " - Read: Ledger"] # [doc = " - Write: Payee"] # [doc = "# "] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "----------"] # [doc = "Weight: O(1)"] # [doc = "DB Weight:"] # [doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "# "] set_controller { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Weight: O(1)"] # [doc = "Write: Validator Count"] # [doc = "# "] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write: ForceEra"] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write ForceEra"] # [doc = "# "] 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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::SlashCancelOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "# "] # [doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] # [doc = "- Contains a limited number of reads and writes."] # [doc = "-----------"] # [doc = "N is the Number of payouts for the validator (including the validator)"] # [doc = "Weight:"] # [doc = "- Reward Destination Staked: O(N)"] # [doc = "- Reward Destination Controller (Creating): O(N)"] # [doc = ""] # [doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] # [doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] # [doc = "# "] payout_stakers { validator_stash : :: subxt :: 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 = "# "] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] # [doc = "- Storage changes: Can't increase storage, only decrease it."] # [doc = "# "] 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: utils :: AccountId32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 = "Incorrect previous history depth input provided."] - IncorrectHistoryDepth, - #[codec(index = 16)] - #[doc = "Incorrect number of slashing spans provided."] - IncorrectSlashingSpans, - #[codec(index = 17)] - #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] - BadState, - #[codec(index = 18)] - #[doc = "Too many nomination targets supplied."] - TooManyTargets, - #[codec(index = 19)] - #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] - BadTarget, - #[codec(index = 20)] - #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] - CannotChillOther, - #[codec(index = 21)] - #[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 = 22)] - #[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 = 23)] - #[doc = "Commission is too low. Must be at least `MinCommission`."] - CommissionTooLow, - #[codec(index = 24)] - #[doc = "Some bound is not met."] - BoundNotMet, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , } - } - } - pub mod slashing { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SlashingSpans { - pub span_index: ::core::primitive::u32, - pub last_start: ::core::primitive::u32, - pub last_nonzero_slash: ::core::primitive::u32, - pub prior: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ActiveEraInfo { - pub index: ::core::primitive::u32, - pub start: ::core::option::Option<::core::primitive::u64>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EraRewardPoints<_0> { - pub total: ::core::primitive::u32, - pub individual: - ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: ::std::vec::Vec< - runtime_types::pallet_staking::IndividualExposure<_0, _1>, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Forcing { - #[codec(index = 0)] - NotForcing, - #[codec(index = 1)] - ForceNew, - #[codec(index = 2)] - ForceNone, - #[codec(index = 3)] - ForceAlways, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominations { - pub targets: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - pub submitted_in: ::core::primitive::u32, - pub suppressed: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Releases { - #[codec(index = 0)] - V1_0_0Ancient, - #[codec(index = 1)] - V2_0_0, - #[codec(index = 2)] - V3_0_0, - #[codec(index = 3)] - V4_0_0, - #[codec(index = 4)] - V5_0_0, - #[codec(index = 5)] - V6_0_0, - #[codec(index = 6)] - V7_0_0, - #[codec(index = 7)] - V8_0_0, - #[codec(index = 8)] - V9_0_0, - #[codec(index = 9)] - V10_0_0, - #[codec(index = 10)] - V11_0_0, - #[codec(index = 11)] - V12_0_0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RewardDestination<_0> { - #[codec(index = 0)] - Staked, - #[codec(index = 1)] - Stash, - #[codec(index = 2)] - Controller, - #[codec(index = 3)] - Account(_0), - #[codec(index = 4)] - None, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct StakingLedger { - pub stash: ::subxt::utils::AccountId32, - #[codec(compact)] - pub total: ::core::primitive::u128, - #[codec(compact)] - pub active: ::core::primitive::u128, - pub unlocking: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk< - ::core::primitive::u128, - >, - >, - pub claimed_rewards: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnappliedSlash<_0, _1> { - pub validator: _0, - pub own: _1, - pub others: ::std::vec::Vec<(_0, _1)>, - pub reporters: ::std::vec::Vec<_0>, - pub payout: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: - runtime_types::sp_arithmetic::per_things::Perbill, - pub blocked: ::core::primitive::bool, - } - } - pub mod pallet_sudo { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - sudo { - call: ::std::boxed::Box< - runtime_types::webb_standalone_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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] - sudo_unchecked_weight { - call: ::std::boxed::Box< - runtime_types::webb_standalone_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."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] - set_key { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - sudo_as { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Error for the Sudo pallet"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Sender must be the Sudo account"] - RequireSudo, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A sudo just took place. \\[result\\]"] - Sudid { - sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 1)] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 2)] - #[doc = "A sudo just took place. \\[result\\]"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[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)`."] - #[doc = "# "] - set { - #[codec(compact)] - now: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_token_wrapper { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - set_wrapping_fee { - fee: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - set_fee_recipient { - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - wrap { - from_asset_id: ::core::primitive::u32, - into_pool_share_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - unwrap { - from_pool_share_id: ::core::primitive::u32, - into_asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - rescue_tokens { - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid transaction amount"] - InvalidAmount, - #[codec(index = 1)] - #[doc = "AssetId not found in selected pool share"] - UnregisteredAssetId, - #[codec(index = 2)] - #[doc = "Assets not found in selected pool"] - NotFoundInPool, - #[codec(index = 3)] - #[doc = "Insufficient Balance for an asset"] - InsufficientBalance, - #[codec(index = 4)] - NoWrappingFeePercentFound, - #[codec(index = 5)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 6)] - #[doc = "Name exceeds maximum limit"] - NameExceedsMaximumLimit, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - WrappedToken { - pool_share_asset: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - UnwrappedToken { - pool_share_asset: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 2)] - UpdatedWrappingFeePercent { - into_pool_share_id: ::core::primitive::u32, - wrapping_fee_percent: ::core::primitive::u128, - }, - #[codec(index = 3)] - UpdatedFeeRecipient { - fee_recipient: ::subxt::utils::AccountId32, - pool_share_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - TokensRescued { - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - } - } - } - pub mod pallet_token_wrapper_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] - #[doc = "method. Ensures that only the bridge can call this function."] - execute_wrapping_fee_proposal { - wrapping_fee_percent: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - execute_add_token_to_pool_share { - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - execute_remove_token_from_pool_share { - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] - #[doc = "who will be receiving wrapping fee cost for given asset."] - #[doc = "Ensures that only the bridge can call this function."] - execute_set_fee_recipient_proposal { - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] - #[doc = "fee recipient to given recipient address from given asset."] - #[doc = "Ensures that only the bridge can call this function."] - execute_rescue_tokens_proposal { - pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Access violation."] - InvalidPermissions, - #[codec(index = 1)] - ResourceIsAlreadyAnchored, - #[codec(index = 2)] - TokenWrapperHandlerNotFound, - #[codec(index = 3)] - #[doc = "Storage overflowed."] - StorageOverflow, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - UpdatedWrappingFeePercent { - wrapping_fee_percent: ::core::primitive::u128, - }, - } - } - } - pub mod pallet_transaction_payment { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - actual_fee: ::core::primitive::u128, - tip: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] - propose_spend { - #[codec(compact)] - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 1)] - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] - reject_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] - approve_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] - spend { - #[codec(compact)] - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 4)] - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] - remove_approval { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Error for the treasury 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 = "Too many approvals in the queue."] - TooManyApprovals, - #[codec(index = 3)] - #[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 = 4)] - #[doc = "Proposal has not been approved."] - ProposalNotApproved, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New proposal."] - Proposed { - proposal_index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "We have ended a spend period and will now allocate funds."] - Spending { - budget_remaining: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Some funds have been allocated."] - Awarded { - proposal_index: ::core::primitive::u32, - award: ::core::primitive::u128, - account: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A proposal was rejected; funds were slashed."] - Rejected { - proposal_index: ::core::primitive::u32, - slashed: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Some of our funds have been burnt."] - Burnt { - burnt_funds: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - Rollover { - rollover_balance: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "Some funds have been deposited."] - Deposit { value: ::core::primitive::u128 }, - #[codec(index = 7)] - #[doc = "A new spend proposal has been approved."] - SpendApproved { - proposal_index: ::core::primitive::u32, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::AccountId32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Proposal<_0, _1> { - pub proposer: _0, - pub value: _1, - pub beneficiary: _0, - pub bond: _1, - } - } - pub mod pallet_utility { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] # [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 : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 : :: std :: boxed :: Box < runtime_types :: webb_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] batch_all { calls : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB write (event)."] # [doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] # [doc = "# "] dispatch_as { as_origin : :: std :: boxed :: Box < runtime_types :: webb_standalone_runtime :: OriginCaller > , call : :: std :: boxed :: Box < runtime_types :: webb_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] force_batch { calls : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 : :: std :: boxed :: Box < runtime_types :: webb_standalone_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Too many calls batched."] - TooManyCalls, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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_vanchor { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { max_edges : :: core :: primitive :: u32 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] transact { id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 2)] register_and_transact { owner : :: subxt :: utils :: AccountId32 , public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 3)] set_max_deposit_amount { max_deposit_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] set_min_withdraw_amount { min_withdraw_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid transaction proof"] - InvalidTransactionProof, - #[codec(index = 1)] - #[doc = "Variable Anchor not found."] - NoVAnchorFound, - #[codec(index = 2)] - #[doc = "Invalid nullifier that is already used"] - #[doc = "(this error is returned when a nullifier is used twice)"] - AlreadyRevealedNullifier, - #[codec(index = 3)] - InvalidExtAmount, - #[codec(index = 4)] - InvalidDepositAmount, - #[codec(index = 5)] - InvalidWithdrawAmount, - #[codec(index = 6)] - InvalidExtData, - #[codec(index = 7)] - InvalidInputNullifiers, - #[codec(index = 8)] - InvalidFee, - #[codec(index = 9)] - InvalidPublicAmount, - #[codec(index = 10)] - #[doc = "Invalid nonce"] - InvalidNonce, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - VAnchorCreation { tree_id: ::core::primitive::u32 }, - #[codec(index = 1)] - #[doc = "Transaction has been made"] - Transaction { - transactor: ::subxt::utils::AccountId32, - tree_id: ::core::primitive::u32, - leafs: ::std::vec::Vec< - runtime_types::webb_primitives::runtime::Element, - >, - encrypted_output1: - ::std::vec::Vec<::core::primitive::u8>, - encrypted_output2: - ::std::vec::Vec<::core::primitive::u8>, - amount: ::core::primitive::i128, - }, - #[codec(index = 2)] - #[doc = "Deposit hook has executed successfully"] - Deposit { - depositor: ::subxt::utils::AccountId32, - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - #[codec(index = 3)] - MaxDepositAmountChanged { - max_deposit_amount: ::core::primitive::u128, - }, - #[codec(index = 4)] - MinWithdrawAmountChanged { - min_withdraw_amount: ::core::primitive::u128, - }, - } - } - } - pub mod pallet_vanchor_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "This will be called by bridge when proposal to create a"] - #[doc = "vanchor has been successfully voted on."] - execute_vanchor_create_proposal { - src_chain_id: ::core::primitive::u64, - r_id: runtime_types::webb_proposals::header::ResourceId, - max_edges: ::core::primitive::u32, - tree_depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "This will be called by bridge when proposal to add/update edge of a"] - #[doc = "vanchor has been successfully voted on."] - execute_vanchor_update_proposal { - r_id: runtime_types::webb_proposals::header::ResourceId, - merkle_root: - runtime_types::webb_primitives::runtime::Element, - src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "This will by called by bridge when proposal to set new resource for"] - #[doc = "handler has been successfully voted on."] - execute_set_resource_proposal { - r_id: runtime_types::webb_proposals::header::ResourceId, - }, - #[codec(index = 3)] - #[doc = "Execute set max deposit limit proposal."] - #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] - #[doc = "anchor system."] - execute_set_max_deposit_limit_proposal { - max_deposit_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Execute set min withdrawal limit proposal."] - #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] - #[doc = "variable anchor system."] - execute_set_min_withdrawal_limit_proposal { - min_withdraw_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Access violation."] - InvalidPermissions, - #[codec(index = 1)] - ResourceIsAlreadyAnchored, - #[codec(index = 2)] - AnchorHandlerNotFound, - #[codec(index = 3)] - SourceChainIdNotFound, - #[codec(index = 4)] - #[doc = "Storage overflowed."] - StorageOverflow, - #[codec(index = 5)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 6)] - #[doc = "Invalid resource ID"] - InvalidResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - AnchorCreated, - #[codec(index = 1)] - AnchorEdgeAdded, - #[codec(index = 2)] - AnchorEdgeUpdated, - #[codec(index = 3)] - ResourceAnchored, - } - } - } - pub mod pallet_vanchor_verifier { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - VerifyingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_verifier { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - VerifyingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod sp_arithmetic { - use super::runtime_types; - pub mod fixed_point { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FixedU128(pub ::core::primitive::u128); - } - pub mod per_things { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PerU16(pub ::core::primitive::u16); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Perbill(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Percent(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Permill(pub ::core::primitive::u32); - } - } - pub mod sp_authority_discovery { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - } - } - pub mod sp_consensus_babe { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - } - pub mod digests { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PrimaryPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SecondaryPlainPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SecondaryVRFPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum AllowedSlots { - #[codec(index = 0)] - PrimarySlots, - #[codec(index = 1)] - PrimaryAndSecondaryPlainSlots, - #[codec(index = 2)] - PrimaryAndSecondaryVRFSlots, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BabeEpochConfiguration { - pub c: (::core::primitive::u64, ::core::primitive::u64), - pub allowed_slots: - runtime_types::sp_consensus_babe::AllowedSlots, - } - } - pub mod sp_consensus_slots { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Slot(pub ::core::primitive::u64); - } - pub mod sp_core { - use super::runtime_types; - pub mod bounded { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BoundedBTreeMap<_0, _1>( - pub ::subxt::utils::KeyedVec<_0, _1>, - ); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } - pub mod crypto { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); - } - pub mod ecdsa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature(pub [::core::primitive::u8; 65usize]); - } - pub mod ed25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OpaqueMultiaddr( - pub ::std::vec::Vec<::core::primitive::u8>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: ::std::vec::Vec< - runtime_types::sp_core::offchain::OpaqueMultiaddr, - >, - } - } - pub mod sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Void {} - } - pub mod sp_finality_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature( - pub runtime_types::sp_core::ed25519::Signature, - ); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Equivocation<_0, _1> { - #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EquivocationProof<_0, _1> { - pub set_id: _1, - pub equivocation: - runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, - } - } - pub mod sp_npos_elections { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ElectionScore { - pub minimal_stake: ::core::primitive::u128, - pub sum_stake: ::core::primitive::u128, - pub sum_stake_squared: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Support<_0> { - pub total: ::core::primitive::u128, - pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, - } - } - pub mod sp_runtime { - use super::runtime_types; - pub mod generic { - use super::runtime_types; - pub mod digest { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DigestItem { - #[codec(index = 6)] - PreRuntime( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 4)] - Consensus( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 5)] - Seal( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 0)] - Other(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 8)] - RuntimeEnvironmentUpdated, - } - } - pub mod era { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } + pub fn balances(&self) -> balances::calls::TransactionApi { + balances::calls::TransactionApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::calls::TransactionApi { + election_provider_multi_phase::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } + pub fn democracy(&self) -> democracy::calls::TransactionApi { + democracy::calls::TransactionApi + } + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } + pub fn elections(&self) -> elections::calls::TransactionApi { + elections::calls::TransactionApi + } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } + pub fn treasury(&self) -> treasury::calls::TransactionApi { + treasury::calls::TransactionApi + } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } + pub fn multisig(&self) -> multisig::calls::TransactionApi { + multisig::calls::TransactionApi + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { + scheduler::calls::TransactionApi + } + pub fn preimage(&self) -> preimage::calls::TransactionApi { + preimage::calls::TransactionApi + } + pub fn proxy(&self) -> proxy::calls::TransactionApi { + proxy::calls::TransactionApi + } + pub fn assets(&self) -> assets::calls::TransactionApi { + assets::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } + pub fn im_online(&self) -> im_online::calls::TransactionApi { + im_online::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 bags_list(&self) -> bags_list::calls::TransactionApi { + bags_list::calls::TransactionApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn hasher_bn254(&self) -> hasher_bn254::calls::TransactionApi { + hasher_bn254::calls::TransactionApi + } + pub fn asset_registry(&self) -> asset_registry::calls::TransactionApi { + asset_registry::calls::TransactionApi + } + pub fn currencies(&self) -> currencies::calls::TransactionApi { + currencies::calls::TransactionApi + } + pub fn tokens(&self) -> tokens::calls::TransactionApi { + tokens::calls::TransactionApi + } + pub fn token_wrapper(&self) -> token_wrapper::calls::TransactionApi { + token_wrapper::calls::TransactionApi + } + pub fn token_wrapper_handler( + &self, + ) -> token_wrapper_handler::calls::TransactionApi { + token_wrapper_handler::calls::TransactionApi + } + pub fn mixer_verifier_bn254( + &self, + ) -> mixer_verifier_bn254::calls::TransactionApi { + mixer_verifier_bn254::calls::TransactionApi + } + pub fn v_anchor_verifier( + &self, + ) -> v_anchor_verifier::calls::TransactionApi { + v_anchor_verifier::calls::TransactionApi + } + pub fn merkle_tree_bn254( + &self, + ) -> merkle_tree_bn254::calls::TransactionApi { + merkle_tree_bn254::calls::TransactionApi + } + pub fn linkable_tree_bn254( + &self, + ) -> linkable_tree_bn254::calls::TransactionApi { + linkable_tree_bn254::calls::TransactionApi + } + pub fn mixer_bn254(&self) -> mixer_bn254::calls::TransactionApi { + mixer_bn254::calls::TransactionApi + } + pub fn v_anchor_bn254(&self) -> v_anchor_bn254::calls::TransactionApi { + v_anchor_bn254::calls::TransactionApi + } + pub fn v_anchor_handler_bn254( + &self, + ) -> v_anchor_handler_bn254::calls::TransactionApi { + v_anchor_handler_bn254::calls::TransactionApi + } + pub fn signature_bridge( + &self, + ) -> signature_bridge::calls::TransactionApi { + signature_bridge::calls::TransactionApi + } + pub fn relayer_registry( + &self, + ) -> relayer_registry::calls::TransactionApi { + relayer_registry::calls::TransactionApi + } + pub fn key_storage(&self) -> key_storage::calls::TransactionApi { + key_storage::calls::TransactionApi + } + } + #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] + pub fn validate_codegen< + T: ::subxt::Config, + C: ::subxt::client::OfflineClientT, + >( + client: &C, + ) -> Result<(), ::subxt::error::MetadataError> { + let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); + if runtime_metadata_hash + != [ + 82u8, 210u8, 44u8, 130u8, 76u8, 71u8, 26u8, 121u8, 94u8, 139u8, + 165u8, 218u8, 226u8, 163u8, 245u8, 154u8, 181u8, 178u8, 218u8, + 91u8, 54u8, 153u8, 180u8, 204u8, 59u8, 124u8, 29u8, 27u8, + 138u8, 208u8, 171u8, 86u8, + ] + { + Err(::subxt::error::MetadataError::IncompatibleMetadata) + } else { + Ok(()) + } + } + 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Remark { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for Remark { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetHeapPages { + pub pages: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_heap_pages"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetCode { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCode { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetCodeWithoutChecks { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code_without_checks"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetStorage { + pub items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_storage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillStorage { + pub keys: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } + impl ::subxt::blocks::StaticExtrinsic for KillStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_storage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillPrefix { + pub prefix: ::std::vec::Vec<::core::primitive::u8>, + pub subkeys: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for KillPrefix { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_prefix"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemarkWithEvent { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark_with_event"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`"] + #[doc = "# "] + pub fn remark( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "remark", + types::Remark { remark }, + [ + 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, + 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, + 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, + 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, + 181u8, 129u8, 160u8, + ], + ) + } + #[doc = "Set the number of pages in the WebAssembly environment's heap."] + pub fn set_heap_pages( + &self, + pages: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_heap_pages", + types::SetHeapPages { pages }, + [ + 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, + 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, + 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, + 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, + 86u8, 87u8, + ], + ) + } + #[doc = "Set the new runtime code."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] + #[doc = " expensive)."] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] + #[doc = "expensive. We will treat this as a full block."] + #[doc = "# "] + pub fn set_code( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_code", + types::SetCode { code }, + [ + 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, + 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, + 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, + 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, + 14u8, 40u8, + ], + ) + } + #[doc = "Set the new runtime code without doing any checks of the given `code`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C)` where `C` length of `code`"] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] + #[doc = "block. # "] + pub fn set_code_without_checks( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "System", + "set_code_without_checks", + types::SetCodeWithoutChecks { code }, + [ + 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, + 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, + 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, + 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, + 99u8, 216u8, + ], + ) + } + #[doc = "Set some items of storage."] + pub fn set_storage( + &self, + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_storage", + types::SetStorage { items }, + [ + 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, + 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, + 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, + 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, + 191u8, 22u8, 116u8, + ], + ) + } + #[doc = "Kill some items from storage."] + pub fn kill_storage( + &self, + keys: ::std::vec::Vec< + ::std::vec::Vec<::core::primitive::u8>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "kill_storage", + types::KillStorage { keys }, + [ + 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, + 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, + 70u8, 19u8, 108u8, 209u8, 41u8, 228u8, 67u8, 130u8, + 230u8, 160u8, 207u8, 11u8, 180u8, 139u8, 242u8, + 41u8, 15u8, + ], + ) + } + #[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: ::std::vec::Vec<::core::primitive::u8>, + subkeys: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "kill_prefix", + types::KillPrefix { prefix, subkeys }, + [ + 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, + 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, + 115u8, 187u8, 218u8, 129u8, 34u8, 80u8, 4u8, 173u8, + 120u8, 92u8, 35u8, 237u8, 112u8, 201u8, 207u8, + 200u8, 48u8, + ], + ) + } + #[doc = "Make some on-chain remark and emit event."] + pub fn remark_with_event( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "System", + "remark_with_event", + types::RemarkWithEvent { remark }, + [ + 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, + 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, + 158u8, 14u8, 213u8, 56u8, 225u8, 136u8, 88u8, 26u8, + 114u8, 178u8, 43u8, 176u8, 43u8, 240u8, 84u8, + 116u8, 46u8, + ], + ) + } + } + } + #[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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An extrinsic completed successfully."] + pub struct ExtrinsicSuccess { + pub dispatch_info: + runtime_types::frame_support::dispatch::DispatchInfo, + } + impl ::subxt::events::StaticEvent for ExtrinsicSuccess { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicSuccess"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An extrinsic failed."] + pub struct ExtrinsicFailed { + pub dispatch_error: runtime_types::sp_runtime::DispatchError, + pub dispatch_info: + runtime_types::frame_support::dispatch::DispatchInfo, + } + impl ::subxt::events::StaticEvent for ExtrinsicFailed { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "`:code` was updated."] + pub struct CodeUpdated; + impl ::subxt::events::StaticEvent for CodeUpdated { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "CodeUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new account was created."] + pub struct NewAccount { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for NewAccount { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "NewAccount"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was reaped."] + pub struct KilledAccount { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for KilledAccount { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "KilledAccount"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "On on-chain remark happened."] + pub struct Remarked { + pub sender: ::subxt::utils::AccountId32, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Remarked { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "Remarked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The full account information for a particular account ID."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) + } + #[doc = " The full account information for a particular account ID."] + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "Account", + Vec::new(), + [ + 176u8, 187u8, 21u8, 220u8, 159u8, 204u8, 127u8, + 14u8, 21u8, 69u8, 77u8, 114u8, 230u8, 141u8, 107u8, + 79u8, 23u8, 16u8, 174u8, 243u8, 252u8, 42u8, 65u8, + 120u8, 229u8, 38u8, 210u8, 255u8, 22u8, 40u8, + 109u8, 223u8, + ], + ) + } + #[doc = " Total extrinsics count for the current block."] + pub fn extrinsic_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicCount", + vec![], + [ + 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, + 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, + 249u8, 8u8, 225u8, 28u8, 232u8, 4u8, 136u8, 41u8, + 151u8, 82u8, 189u8, 149u8, 49u8, 166u8, 139u8, 9u8, + 163u8, 231u8, + ], + ) + } + #[doc = " The current weight for the block."] + pub fn block_weight( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockWeight", + vec![], + [ + 120u8, 67u8, 71u8, 163u8, 36u8, 202u8, 52u8, 106u8, + 143u8, 155u8, 144u8, 87u8, 142u8, 241u8, 232u8, + 183u8, 56u8, 235u8, 27u8, 237u8, 20u8, 202u8, 33u8, + 85u8, 189u8, 0u8, 28u8, 52u8, 198u8, 40u8, 219u8, + 54u8, + ], + ) + } + #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] + pub fn all_extrinsics_len( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "AllExtrinsicsLen", + vec![], + [ + 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, + 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, + 32u8, 117u8, 96u8, 149u8, 53u8, 145u8, 219u8, 64u8, + 234u8, 18u8, 217u8, 200u8, 203u8, 141u8, 145u8, + 28u8, 134u8, 60u8, + ], + ) + } + #[doc = " Map of block numbers to block hashes."] + pub fn block_hash( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [208u8 , 90u8 , 9u8 , 85u8 , 0u8 , 40u8 , 80u8 , 160u8 , 135u8 , 204u8 , 83u8 , 145u8 , 18u8 , 16u8 , 7u8 , 118u8 , 213u8 , 100u8 , 26u8 , 239u8 , 198u8 , 149u8 , 188u8 , 207u8 , 66u8 , 28u8 , 157u8 , 229u8 , 187u8 , 143u8 , 223u8 , 138u8 ,]) + } + #[doc = " Map of block numbers to block hashes."] + pub fn block_hash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockHash", + Vec::new(), + [ + 208u8, 90u8, 9u8, 85u8, 0u8, 40u8, 80u8, 160u8, + 135u8, 204u8, 83u8, 145u8, 18u8, 16u8, 7u8, 118u8, + 213u8, 100u8, 26u8, 239u8, 198u8, 149u8, 188u8, + 207u8, 66u8, 28u8, 157u8, 229u8, 187u8, 143u8, + 223u8, 138u8, + ], + ) + } + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] + pub fn extrinsic_data( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) + } + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] + pub fn extrinsic_data_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicData", + Vec::new(), + [ + 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, + 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, + 31u8, 229u8, 168u8, 125u8, 98u8, 23u8, 241u8, 59u8, + 49u8, 86u8, 126u8, 9u8, 114u8, 163u8, 160u8, 62u8, + 50u8, 67u8, + ], + ) + } + #[doc = " The current block number being processed. Set by `execute_block`."] + pub fn number( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Number", + vec![], + [ + 9u8, 143u8, 246u8, 146u8, 99u8, 116u8, 84u8, 22u8, + 199u8, 223u8, 48u8, 145u8, 245u8, 95u8, 225u8, + 149u8, 107u8, 46u8, 237u8, 158u8, 12u8, 135u8, + 104u8, 253u8, 72u8, 139u8, 178u8, 15u8, 25u8, 78u8, + 5u8, 207u8, + ], + ) + } + #[doc = " Hash of the previous block."] + pub fn parent_hash( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ParentHash", + vec![], + [ + 232u8, 206u8, 177u8, 119u8, 38u8, 57u8, 233u8, + 50u8, 225u8, 49u8, 169u8, 176u8, 210u8, 51u8, + 231u8, 176u8, 234u8, 186u8, 188u8, 112u8, 15u8, + 152u8, 195u8, 232u8, 201u8, 97u8, 208u8, 249u8, + 9u8, 163u8, 69u8, 36u8, + ], + ) + } + #[doc = " Digest of the current block, also part of the block header."] + pub fn digest( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_runtime::generic::digest::Digest, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Digest", + vec![], + [ + 83u8, 141u8, 200u8, 132u8, 182u8, 55u8, 197u8, + 122u8, 13u8, 159u8, 31u8, 42u8, 60u8, 191u8, 89u8, + 221u8, 242u8, 47u8, 199u8, 213u8, 48u8, 216u8, + 131u8, 168u8, 245u8, 82u8, 56u8, 190u8, 62u8, 69u8, + 96u8, 37u8, + ], + ) + } + #[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 :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: webb_standalone_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "System", + "Events", + vec![], + [ + 244u8, 79u8, 231u8, 71u8, 196u8, 5u8, 210u8, 76u8, + 218u8, 0u8, 255u8, 211u8, 238u8, 91u8, 64u8, 61u8, + 56u8, 163u8, 242u8, 224u8, 189u8, 233u8, 146u8, + 213u8, 24u8, 20u8, 68u8, 187u8, 244u8, 80u8, 180u8, + 216u8, + ], + ) + } + #[doc = " The number of events in the `Events` list."] + pub fn event_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventCount", + vec![], + [ + 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, + 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, + 227u8, 9u8, 249u8, 25u8, 202u8, 185u8, 161u8, + 144u8, 167u8, 104u8, 127u8, 187u8, 38u8, 18u8, + 52u8, 61u8, 66u8, 112u8, + ], + ) + } + #[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 `(T::BlockNumber, 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 ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [53u8 , 63u8 , 144u8 , 127u8 , 156u8 , 40u8 , 137u8 , 72u8 , 156u8 , 219u8 , 147u8 , 209u8 , 38u8 , 22u8 , 8u8 , 70u8 , 128u8 , 101u8 , 202u8 , 79u8 , 235u8 , 239u8 , 54u8 , 249u8 , 185u8 , 219u8 , 167u8 , 38u8 , 249u8 , 130u8 , 134u8 , 179u8 ,]) + } + #[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 `(T::BlockNumber, 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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventTopics", + Vec::new(), + [ + 53u8, 63u8, 144u8, 127u8, 156u8, 40u8, 137u8, 72u8, + 156u8, 219u8, 147u8, 209u8, 38u8, 22u8, 8u8, 70u8, + 128u8, 101u8, 202u8, 79u8, 235u8, 239u8, 54u8, + 249u8, 185u8, 219u8, 167u8, 38u8, 249u8, 130u8, + 134u8, 179u8, + ], + ) + } + #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] + pub fn last_runtime_upgrade( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::LastRuntimeUpgradeInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "LastRuntimeUpgrade", + vec![], + [ + 52u8, 37u8, 117u8, 111u8, 57u8, 130u8, 196u8, 14u8, + 99u8, 77u8, 91u8, 126u8, 178u8, 249u8, 78u8, 34u8, + 9u8, 194u8, 92u8, 105u8, 113u8, 81u8, 185u8, 127u8, + 245u8, 184u8, 60u8, 29u8, 234u8, 182u8, 96u8, + 196u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "UpgradedToU32RefCount", + vec![], + [ + 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, + 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, + 59u8, 222u8, 141u8, 32u8, 107u8, 3u8, 114u8, 83u8, + 250u8, 180u8, 233u8, 152u8, 54u8, 187u8, 99u8, + 131u8, 204u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "UpgradedToTripleRefCount", + vec![], + [ + 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, + 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, + 18u8, 51u8, 105u8, 14u8, 230u8, 103u8, 155u8, + 246u8, 99u8, 53u8, 207u8, 225u8, 128u8, 186u8, + 76u8, 40u8, 185u8, + ], + ) + } + #[doc = " The execution phase of the block."] + pub fn execution_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::Phase, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExecutionPhase", + vec![], + [ + 230u8, 183u8, 221u8, 135u8, 226u8, 223u8, 55u8, + 104u8, 138u8, 224u8, 103u8, 156u8, 222u8, 99u8, + 203u8, 199u8, 164u8, 168u8, 193u8, 133u8, 201u8, + 155u8, 63u8, 95u8, 17u8, 206u8, 165u8, 123u8, + 161u8, 33u8, 172u8, 93u8, + ], + ) + } + } + } + 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::constants::Address< + runtime_types::frame_system::limits::BlockWeights, + > { + ::subxt::constants::Address::new_static( + "System", + "BlockWeights", + [ + 118u8, 253u8, 239u8, 217u8, 145u8, 115u8, 85u8, + 86u8, 172u8, 248u8, 139u8, 32u8, 158u8, 126u8, + 172u8, 188u8, 197u8, 105u8, 145u8, 235u8, 171u8, + 50u8, 31u8, 225u8, 167u8, 187u8, 241u8, 87u8, 6u8, + 17u8, 234u8, 185u8, + ], + ) + } + #[doc = " The maximum length of a block (in bytes)."] + pub fn block_length( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_system::limits::BlockLength, + > { + ::subxt::constants::Address::new_static( + "System", + "BlockLength", + [ + 116u8, 184u8, 225u8, 228u8, 207u8, 203u8, 4u8, + 220u8, 234u8, 198u8, 150u8, 108u8, 205u8, 87u8, + 194u8, 131u8, 229u8, 51u8, 140u8, 4u8, 47u8, 12u8, + 200u8, 144u8, 153u8, 62u8, 51u8, 39u8, 138u8, + 205u8, 203u8, 236u8, + ], + ) + } + #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] + pub fn block_hash_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "System", + "BlockHashCount", + [ + 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 weight of runtime database operations the runtime can invoke."] + pub fn db_weight( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::RuntimeDbWeight, + > { + ::subxt::constants::Address::new_static( + "System", + "DbWeight", + [ + 124u8, 162u8, 190u8, 149u8, 49u8, 177u8, 162u8, + 231u8, 62u8, 167u8, 199u8, 181u8, 43u8, 232u8, + 185u8, 116u8, 195u8, 51u8, 233u8, 223u8, 20u8, + 129u8, 246u8, 13u8, 65u8, 180u8, 64u8, 9u8, 157u8, + 59u8, 245u8, 118u8, + ], + ) + } + #[doc = " Get the chain's current version."] + pub fn version( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_version::RuntimeVersion, + > { + ::subxt::constants::Address::new_static( + "System", + "Version", + [ + 93u8, 98u8, 57u8, 243u8, 229u8, 8u8, 234u8, 231u8, + 72u8, 230u8, 139u8, 47u8, 63u8, 181u8, 17u8, 2u8, + 220u8, 231u8, 104u8, 237u8, 185u8, 143u8, 165u8, + 253u8, 188u8, 76u8, 147u8, 12u8, 170u8, 26u8, 74u8, + 200u8, + ], + ) + } + #[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::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::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 randomness_collective_flip { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] + #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] + #[doc = " the oldest hash."] + pub fn random_material( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RandomnessCollectiveFlip", + "RandomMaterial", + vec![], + [ + 152u8, 126u8, 73u8, 88u8, 54u8, 147u8, 6u8, 19u8, + 214u8, 40u8, 159u8, 30u8, 236u8, 61u8, 240u8, 65u8, + 178u8, 94u8, 146u8, 152u8, 135u8, 252u8, 160u8, + 86u8, 123u8, 114u8, 251u8, 140u8, 98u8, 143u8, + 217u8, 242u8, + ], + ) + } + } + } + } + pub mod timestamp { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Set { + #[codec(compact)] + pub now: ::core::primitive::u64, + } + impl ::subxt::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 = "`MinimumPeriod`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Inherent`."] + #[doc = ""] + #[doc = "# "] + #[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)`."] + #[doc = "# "] + pub fn set( + &self, + now: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Timestamp", + "set", + types::Set { now }, + [ + 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, + 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, + 33u8, 187u8, 17u8, 166u8, 88u8, 127u8, 214u8, + 182u8, 51u8, 168u8, 88u8, 43u8, 101u8, 185u8, 8u8, + 1u8, 28u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Current time for the current block."] + pub fn now( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Timestamp", + "Now", + vec![], + [ + 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, + 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, + 39u8, 123u8, 106u8, 134u8, 202u8, 185u8, 83u8, + 85u8, 60u8, 41u8, 120u8, 96u8, 210u8, 34u8, 2u8, + 250u8, + ], + ) + } + #[doc = " Did the timestamp get updated in this block?"] + pub fn did_update( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Timestamp", + "DidUpdate", + vec![], + [ + 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, + 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, + 16u8, 6u8, 39u8, 158u8, 167u8, 85u8, 27u8, 47u8, + 122u8, 73u8, 127u8, 26u8, 35u8, 168u8, 72u8, 204u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] + #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] + #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] + #[doc = " double this period on default settings."] + pub fn minimum_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::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 babe { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_babe::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + runtime_types::sp_consensus_babe::app::Public, + >, + >, + pub key_owner_proof: + runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + runtime_types::sp_consensus_babe::app::Public, + >, + >, + pub key_owner_proof: + runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PlanConfigChange { pub config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } + impl ::subxt::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 : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Babe", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new( + equivocation_proof, + ), + key_owner_proof, + }, + [ + 197u8, 69u8, 250u8, 137u8, 133u8, 235u8, 135u8, + 236u8, 50u8, 219u8, 142u8, 88u8, 122u8, 80u8, + 210u8, 52u8, 99u8, 118u8, 68u8, 177u8, 160u8, + 118u8, 208u8, 34u8, 128u8, 133u8, 135u8, 75u8, + 146u8, 212u8, 125u8, 97u8, + ], + ) + } + #[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 : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Babe", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new( + equivocation_proof, + ), + key_owner_proof, + }, + [ + 163u8, 128u8, 193u8, 185u8, 172u8, 43u8, 25u8, + 115u8, 211u8, 32u8, 4u8, 235u8, 28u8, 138u8, 48u8, + 111u8, 92u8, 30u8, 104u8, 29u8, 19u8, 163u8, 144u8, + 175u8, 243u8, 122u8, 217u8, 118u8, 101u8, 0u8, + 68u8, 147u8, + ], + ) + } + #[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 : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Babe", + "plan_config_change", + types::PlanConfigChange { config }, + [ + 229u8, 157u8, 41u8, 58u8, 56u8, 4u8, 52u8, 107u8, + 104u8, 20u8, 42u8, 110u8, 1u8, 17u8, 45u8, 196u8, + 30u8, 135u8, 63u8, 46u8, 40u8, 137u8, 209u8, 37u8, + 24u8, 108u8, 251u8, 189u8, 77u8, 208u8, 74u8, 32u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Current epoch index."] + pub fn epoch_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochIndex", + vec![], + [ + 51u8, 27u8, 91u8, 156u8, 118u8, 99u8, 46u8, 219u8, + 190u8, 147u8, 205u8, 23u8, 106u8, 169u8, 121u8, + 218u8, 208u8, 235u8, 135u8, 127u8, 243u8, 41u8, + 55u8, 243u8, 235u8, 122u8, 57u8, 86u8, 37u8, 90u8, + 208u8, 71u8, + ], + ) + } + #[doc = " Current epoch authorities."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Babe", + "Authorities", + vec![], + [ + 61u8, 8u8, 133u8, 111u8, 169u8, 120u8, 0u8, 213u8, + 31u8, 159u8, 204u8, 212u8, 18u8, 205u8, 93u8, 84u8, + 140u8, 108u8, 136u8, 209u8, 234u8, 107u8, 145u8, + 9u8, 204u8, 224u8, 105u8, 9u8, 238u8, 241u8, 65u8, + 30u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "GenesisSlot", + vec![], + [ + 234u8, 127u8, 243u8, 100u8, 124u8, 160u8, 66u8, + 248u8, 48u8, 218u8, 61u8, 52u8, 54u8, 142u8, 158u8, + 77u8, 32u8, 63u8, 156u8, 39u8, 94u8, 255u8, 192u8, + 238u8, 170u8, 118u8, 58u8, 42u8, 199u8, 61u8, + 199u8, 77u8, + ], + ) + } + #[doc = " Current slot number."] + pub fn current_slot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "CurrentSlot", + vec![], + [ + 139u8, 237u8, 185u8, 137u8, 251u8, 179u8, 69u8, + 167u8, 133u8, 168u8, 204u8, 64u8, 178u8, 123u8, + 92u8, 250u8, 119u8, 190u8, 208u8, 178u8, 208u8, + 176u8, 124u8, 187u8, 74u8, 165u8, 33u8, 78u8, + 161u8, 206u8, 8u8, 108u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 32usize], + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Randomness", + vec![], + [ + 191u8, 197u8, 25u8, 164u8, 104u8, 248u8, 247u8, + 193u8, 244u8, 60u8, 181u8, 195u8, 248u8, 90u8, + 41u8, 199u8, 82u8, 123u8, 72u8, 126u8, 18u8, 17u8, + 128u8, 215u8, 34u8, 251u8, 227u8, 70u8, 166u8, + 10u8, 104u8, 140u8, + ], + ) + } + #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "Babe", + "PendingEpochConfigChange", + vec![], + [ + 4u8, 201u8, 0u8, 204u8, 47u8, 246u8, 4u8, 185u8, + 163u8, 242u8, 242u8, 152u8, 29u8, 222u8, 71u8, + 127u8, 49u8, 203u8, 206u8, 180u8, 244u8, 50u8, + 80u8, 49u8, 199u8, 97u8, 3u8, 170u8, 156u8, 139u8, + 106u8, 113u8, + ], + ) + } + #[doc = " Next epoch randomness."] + pub fn next_randomness( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 32usize], + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextRandomness", + vec![], + [ + 185u8, 98u8, 45u8, 109u8, 253u8, 38u8, 238u8, + 221u8, 240u8, 29u8, 38u8, 107u8, 118u8, 117u8, + 131u8, 115u8, 21u8, 255u8, 203u8, 81u8, 243u8, + 251u8, 91u8, 60u8, 163u8, 202u8, 125u8, 193u8, + 173u8, 234u8, 166u8, 92u8, + ], + ) + } + #[doc = " Next epoch authorities."] pub fn next_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Babe", + "NextAuthorities", + vec![], + [ + 201u8, 193u8, 164u8, 18u8, 155u8, 253u8, 124u8, + 163u8, 143u8, 73u8, 212u8, 20u8, 241u8, 108u8, + 110u8, 5u8, 171u8, 66u8, 224u8, 208u8, 10u8, 65u8, + 148u8, 164u8, 1u8, 12u8, 216u8, 83u8, 20u8, 226u8, + 254u8, 183u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "SegmentIndex", + vec![], + [ + 128u8, 45u8, 87u8, 58u8, 174u8, 152u8, 241u8, + 156u8, 56u8, 192u8, 19u8, 45u8, 75u8, 160u8, 35u8, + 253u8, 145u8, 11u8, 178u8, 81u8, 114u8, 117u8, + 112u8, 107u8, 163u8, 208u8, 240u8, 151u8, 102u8, + 176u8, 246u8, 5u8, + ], + ) + } + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] + pub fn under_construction( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Babe" , "UnderConstruction" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [180u8 , 4u8 , 149u8 , 245u8 , 231u8 , 92u8 , 99u8 , 170u8 , 254u8 , 172u8 , 182u8 , 3u8 , 152u8 , 156u8 , 132u8 , 196u8 , 140u8 , 97u8 , 7u8 , 84u8 , 220u8 , 89u8 , 195u8 , 177u8 , 235u8 , 51u8 , 98u8 , 144u8 , 73u8 , 238u8 , 59u8 , 164u8 ,]) + } + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] + pub fn under_construction_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "UnderConstruction", + Vec::new(), + [ + 180u8, 4u8, 149u8, 245u8, 231u8, 92u8, 99u8, 170u8, + 254u8, 172u8, 182u8, 3u8, 152u8, 156u8, 132u8, + 196u8, 140u8, 97u8, 7u8, 84u8, 220u8, 89u8, 195u8, + 177u8, 235u8, 51u8, 98u8, 144u8, 73u8, 238u8, 59u8, + 164u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::option::Option< + runtime_types::sp_consensus_babe::digests::PreDigest, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + vec![], + [ + 142u8, 101u8, 250u8, 113u8, 93u8, 201u8, 157u8, + 18u8, 166u8, 153u8, 59u8, 197u8, 107u8, 247u8, + 124u8, 110u8, 202u8, 67u8, 62u8, 57u8, 186u8, + 134u8, 49u8, 182u8, 149u8, 44u8, 255u8, 85u8, 87u8, + 177u8, 149u8, 121u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::option::Option<[::core::primitive::u8; 32usize]>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "AuthorVrfRandomness", + vec![], + [ + 66u8, 235u8, 74u8, 252u8, 222u8, 135u8, 19u8, 28u8, + 74u8, 191u8, 170u8, 197u8, 207u8, 127u8, 77u8, + 121u8, 138u8, 138u8, 110u8, 187u8, 34u8, 14u8, + 230u8, 43u8, 241u8, 241u8, 63u8, 163u8, 53u8, + 179u8, 250u8, 247u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u64), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochStart", + vec![], + [ + 108u8, 16u8, 132u8, 125u8, 122u8, 198u8, 22u8, + 251u8, 231u8, 157u8, 74u8, 188u8, 193u8, 42u8, + 78u8, 83u8, 108u8, 207u8, 49u8, 166u8, 105u8, + 143u8, 25u8, 87u8, 145u8, 240u8, 229u8, 211u8, + 90u8, 43u8, 22u8, 197u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Lateness", + vec![], + [ + 8u8, 9u8, 112u8, 117u8, 174u8, 35u8, 125u8, 86u8, + 41u8, 12u8, 7u8, 240u8, 27u8, 162u8, 6u8, 167u8, + 143u8, 69u8, 140u8, 109u8, 99u8, 209u8, 105u8, + 65u8, 240u8, 79u8, 76u8, 4u8, 3u8, 55u8, 157u8, + 40u8, + ], + ) + } + #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] + #[doc = " genesis."] + pub fn epoch_config( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_babe::BabeEpochConfiguration, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochConfig", + vec![], + [ + 41u8, 118u8, 141u8, 244u8, 72u8, 17u8, 125u8, + 203u8, 43u8, 153u8, 203u8, 119u8, 117u8, 223u8, + 123u8, 133u8, 73u8, 235u8, 130u8, 21u8, 160u8, + 167u8, 16u8, 173u8, 177u8, 35u8, 117u8, 97u8, + 149u8, 49u8, 220u8, 24u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_babe::BabeEpochConfiguration, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextEpochConfig", + vec![], + [ + 111u8, 182u8, 144u8, 180u8, 92u8, 146u8, 102u8, + 249u8, 196u8, 229u8, 226u8, 30u8, 25u8, 198u8, + 133u8, 9u8, 136u8, 95u8, 11u8, 151u8, 139u8, 156u8, + 105u8, 228u8, 181u8, 12u8, 175u8, 148u8, 174u8, + 33u8, 233u8, 228u8, + ], + ) + } + } + } + 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::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + pub mod authorship { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_authorship::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_authorship::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetUncles { + pub new_uncles: ::std::vec::Vec< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetUncles { + const PALLET: &'static str = "Authorship"; + const CALL: &'static str = "set_uncles"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Provide a set of uncles."] + pub fn set_uncles( + &self, + new_uncles: ::std::vec::Vec< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Authorship", + "set_uncles", + types::SetUncles { new_uncles }, + [ + 145u8, 151u8, 19u8, 25u8, 215u8, 52u8, 2u8, 133u8, + 36u8, 96u8, 254u8, 251u8, 120u8, 238u8, 183u8, + 33u8, 150u8, 5u8, 102u8, 122u8, 28u8, 51u8, 248u8, + 21u8, 160u8, 196u8, 111u8, 159u8, 145u8, 71u8, + 144u8, 126u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Uncles"] + pub fn uncles( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::pallet_authorship::UncleEntryItem< + ::core::primitive::u64, + ::subxt::utils::H256, + ::subxt::utils::AccountId32, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "Uncles", + vec![], + [ + 111u8, 12u8, 34u8, 219u8, 27u8, 243u8, 210u8, 10u8, + 36u8, 166u8, 107u8, 2u8, 103u8, 149u8, 185u8, 83u8, + 221u8, 138u8, 173u8, 172u8, 176u8, 136u8, 106u8, + 169u8, 49u8, 254u8, 21u8, 45u8, 70u8, 228u8, 127u8, + 30u8, + ], + ) + } + #[doc = " Author of current block."] + pub fn author( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "Author", + vec![], + [ + 149u8, 42u8, 33u8, 147u8, 190u8, 207u8, 174u8, + 227u8, 190u8, 110u8, 25u8, 131u8, 5u8, 167u8, + 237u8, 188u8, 188u8, 33u8, 177u8, 126u8, 181u8, + 49u8, 126u8, 118u8, 46u8, 128u8, 154u8, 95u8, 15u8, + 91u8, 103u8, 113u8, + ], + ) + } + #[doc = " Whether uncles were already set in this block."] + pub fn did_set_uncles( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "DidSetUncles", + vec![], + [ + 64u8, 3u8, 208u8, 187u8, 50u8, 45u8, 37u8, 88u8, + 163u8, 226u8, 37u8, 126u8, 232u8, 107u8, 156u8, + 187u8, 29u8, 15u8, 53u8, 46u8, 28u8, 73u8, 83u8, + 123u8, 14u8, 244u8, 243u8, 43u8, 245u8, 143u8, + 15u8, 115u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The number of blocks back we should accept uncles."] + #[doc = " This means that we will deal with uncle-parents that are"] + #[doc = " `UncleGenerations + 1` before `now`."] + pub fn uncle_generations( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Authorship", + "UncleGenerations", + [ + 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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_indices::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Claim { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Free { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Free { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + pub freeze: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Freeze { + pub index: ::core::primitive::u32, + } + impl ::subxt::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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] + pub fn claim( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, + [ + 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, + 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, + 88u8, 196u8, 189u8, 244u8, 18u8, 233u8, 37u8, + 228u8, 248u8, 76u8, 175u8, 212u8, 233u8, 238u8, + 203u8, 162u8, 68u8, + ], + ) + } + #[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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One transfer operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Indices Accounts, System Account (recipient)"] + #[doc = " - Writes: Indices Accounts, System Account (recipient)"] + #[doc = "# "] + pub fn transfer( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "transfer", + types::Transfer { new, index }, + [ + 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, + 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, + 154u8, 27u8, 34u8, 205u8, 188u8, 10u8, 169u8, + 203u8, 39u8, 2u8, 236u8, 181u8, 162u8, 115u8, + 254u8, 42u8, 28u8, + ], + ) + } + #[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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] + pub fn free( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, + [ + 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, + 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, + 74u8, 203u8, 235u8, 138u8, 255u8, 27u8, 163u8, + 71u8, 254u8, 217u8, 6u8, 208u8, 202u8, 204u8, + 238u8, 70u8, 126u8, 252u8, + ], + ) + } + #[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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- Up to one reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Indices Accounts, System Account (original owner)"] + #[doc = " - Writes: Indices Accounts, System Account (original owner)"] + #[doc = "# "] + pub fn force_transfer( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + freeze: ::core::primitive::bool, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Indices", + "force_transfer", + types::ForceTransfer { new, index, freeze }, + [ + 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, + 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, + 181u8, 172u8, 64u8, 37u8, 165u8, 121u8, 111u8, + 173u8, 224u8, 181u8, 79u8, 76u8, 134u8, 93u8, + 169u8, 65u8, 131u8, + ], + ) + } + #[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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- Up to one slash operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] + pub fn freeze( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "freeze", + types::Freeze { index }, + [ + 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, + 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, + 246u8, 149u8, 31u8, 168u8, 186u8, 208u8, 90u8, + 40u8, 47u8, 100u8, 228u8, 188u8, 33u8, 79u8, 220u8, + 105u8, 209u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_indices::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index was assigned."] + pub struct IndexAssigned { + pub who: ::subxt::utils::AccountId32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexAssigned { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index has been freed up (unassigned)."] + pub struct IndexFreed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexFreed { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index has been frozen to its current account ID."] + pub struct IndexFrozen { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for IndexFrozen { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFrozen"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The lookup from index to account."] + pub fn accounts( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) + } + #[doc = " The lookup from index to account."] + pub fn accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Indices", + "Accounts", + Vec::new(), + [ + 211u8, 169u8, 54u8, 254u8, 88u8, 57u8, 22u8, 223u8, + 108u8, 27u8, 38u8, 9u8, 202u8, 209u8, 111u8, 209u8, + 144u8, 13u8, 211u8, 114u8, 239u8, 127u8, 75u8, + 166u8, 234u8, 222u8, 225u8, 35u8, 160u8, 163u8, + 112u8, 242u8, + ], + ) + } + } + } + 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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_balances::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub new_reserved: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetBalance { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "set_balance"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnreserve { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_unreserve"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` 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."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] + #[doc = " types. See related functions below."] + #[doc = "- It contains a limited number of reads and writes internally and no complex"] + #[doc = " computation."] + #[doc = ""] + #[doc = "Related functions:"] + #[doc = ""] + #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] + #[doc = " - Transferring balances to accounts that did not exist before will cause"] + #[doc = " `T::OnNewAccount::on_new_account` to be called."] + #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] + #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] + #[doc = " that the transfer will not kill the origin account."] + #[doc = "---------------------------------"] + #[doc = "- Origin account is already in memory, so no DB operations for them."] + #[doc = "# "] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer", + types::Transfer { dest, value }, + [ + 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, + 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, + 66u8, 184u8, 27u8, 94u8, 176u8, 60u8, 233u8, 236u8, + 145u8, 218u8, 44u8, 138u8, 240u8, 224u8, 16u8, + 193u8, 220u8, 95u8, + ], + ) + } + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] + #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] + #[doc = "If the new free or reserved balance is below the existential deposit,"] + #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + pub fn set_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + new_free: ::core::primitive::u128, + new_reserved: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "set_balance", + types::SetBalance { + who, + new_free, + new_reserved, + }, + [ + 174u8, 34u8, 80u8, 252u8, 193u8, 51u8, 228u8, + 236u8, 234u8, 16u8, 173u8, 214u8, 122u8, 21u8, + 254u8, 7u8, 49u8, 176u8, 18u8, 128u8, 122u8, 68u8, + 72u8, 181u8, 119u8, 90u8, 167u8, 46u8, 203u8, + 220u8, 109u8, 110u8, + ], + ) + } + #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] + #[doc = "specified."] + #[doc = "# "] + #[doc = "- Same as transfer, but additional read and write because the source account is not"] + #[doc = " assumed to be in the overlay."] + #[doc = "# "] + pub fn force_transfer( + &self, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Balances", + "force_transfer", + types::ForceTransfer { + source, + dest, + value, + }, + [ + 56u8, 80u8, 186u8, 45u8, 134u8, 147u8, 200u8, 19u8, + 53u8, 221u8, 213u8, 32u8, 13u8, 51u8, 130u8, 42u8, + 244u8, 85u8, 50u8, 246u8, 189u8, 51u8, 93u8, 1u8, + 108u8, 142u8, 112u8, 245u8, 104u8, 255u8, 15u8, + 62u8, + ], + ) + } + #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] + #[doc = "origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + pub fn transfer_keep_alive( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_keep_alive", + types::TransferKeepAlive { dest, value }, + [ + 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, + 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, + 56u8, 217u8, 250u8, 21u8, 44u8, 239u8, 66u8, 79u8, + 99u8, 25u8, 106u8, 70u8, 226u8, 50u8, 255u8, 176u8, + 71u8, + ], + ) + } + #[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). # "] + #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] + #[doc = " #"] + pub fn transfer_all( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + keep_alive: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_all", + types::TransferAll { dest, keep_alive }, + [ + 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, + 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, + 53u8, 205u8, 112u8, 147u8, 88u8, 167u8, 197u8, + 32u8, 104u8, 117u8, 201u8, 168u8, 144u8, 230u8, + 120u8, 29u8, 122u8, 159u8, + ], + ) + } + #[doc = "Unreserve some balance from a user by force."] + #[doc = ""] + #[doc = "Can only be called by ROOT."] + pub fn force_unreserve( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Balances", + "force_unreserve", + types::ForceUnreserve { who, amount }, + [ + 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, + 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, + 46u8, 108u8, 136u8, 167u8, 145u8, 103u8, 65u8, + 33u8, 168u8, 36u8, 214u8, 126u8, 237u8, 180u8, + 61u8, 108u8, 110u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_balances::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub account: ::subxt::utils::AccountId32, + pub free_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + pub struct DustLost { + pub account: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A balance was set by root."] + pub struct BalanceSet { + pub who: ::subxt::utils::AccountId32, + pub free: ::core::primitive::u128, + pub reserved: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BalanceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was reserved (moved from free to reserved)."] + pub struct Reserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Reserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was unreserved (moved from reserved to free)."] + pub struct Unreserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unreserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was moved from the reserve of the first account to the second account."] + #[doc = "Final argument indicates the destination balance type."] + pub struct ReserveRepatriated { pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "ReserveRepatriated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was deposited (e.g. for transaction fees)."] + pub struct Deposit { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] + pub struct Withdraw { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] + pub struct Slashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The total units issued in the system."] + pub fn total_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "TotalIssuance", + vec![], + [ + 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, + 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, + 187u8, 44u8, 84u8, 25u8, 164u8, 235u8, 20u8, 86u8, + 242u8, 124u8, 23u8, 28u8, 140u8, 26u8, 73u8, 231u8, + 51u8, + ], + ) + } + #[doc = " The total units of outstanding deactivated balance in the system."] + pub fn inactive_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "InactiveIssuance", + vec![], + [ + 74u8, 203u8, 111u8, 142u8, 225u8, 104u8, 173u8, + 51u8, 226u8, 12u8, 85u8, 135u8, 41u8, 206u8, 177u8, + 238u8, 94u8, 246u8, 184u8, 250u8, 140u8, 213u8, + 91u8, 118u8, 163u8, 111u8, 211u8, 46u8, 204u8, + 160u8, 154u8, 21u8, + ], + ) + } + #[doc = " The Balances pallet example of storing the balance of an account."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " You can also store the balance of an account in the `System` pallet."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = System"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] + #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] + #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Account", + Vec::new(), + [ + 246u8, 154u8, 253u8, 71u8, 192u8, 192u8, 192u8, + 236u8, 128u8, 80u8, 40u8, 252u8, 201u8, 43u8, 3u8, + 131u8, 19u8, 49u8, 141u8, 240u8, 172u8, 217u8, + 215u8, 109u8, 87u8, 135u8, 248u8, 57u8, 98u8, + 185u8, 22u8, 4u8, + ], + ) + } + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) + } + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Balances", + "Locks", + Vec::new(), + [ + 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, + 244u8, 134u8, 195u8, 58u8, 255u8, 64u8, 153u8, + 212u8, 210u8, 232u8, 4u8, 122u8, 90u8, 212u8, + 136u8, 14u8, 127u8, 232u8, 8u8, 192u8, 40u8, 233u8, + 18u8, 250u8, + ], + ) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Reserves", + Vec::new(), + [ + 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, + 42u8, 250u8, 128u8, 167u8, 117u8, 44u8, 85u8, 96u8, + 105u8, 216u8, 16u8, 147u8, 74u8, 55u8, 183u8, 94u8, + 160u8, 177u8, 26u8, 187u8, 71u8, 197u8, 187u8, + 163u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum amount required to keep an account open."] + pub fn existential_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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."] + pub fn max_locks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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."] + pub fn max_reserves( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + pub mod transaction_payment { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_transaction_payment::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who`."] + pub struct TransactionFeePaid { + pub who: ::subxt::utils::AccountId32, + pub actual_fee: ::core::primitive::u128, + pub tip: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for TransactionFeePaid { + const PALLET: &'static str = "TransactionPayment"; + const EVENT: &'static str = "TransactionFeePaid"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn next_fee_multiplier( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::fixed_point::FixedU128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "NextFeeMultiplier", + vec![], + [ + 210u8, 0u8, 206u8, 165u8, 183u8, 10u8, 206u8, 52u8, + 14u8, 90u8, 218u8, 197u8, 189u8, 125u8, 113u8, + 216u8, 52u8, 161u8, 45u8, 24u8, 245u8, 237u8, + 121u8, 41u8, 106u8, 29u8, 45u8, 129u8, 250u8, + 203u8, 206u8, 180u8, + ], + ) + } + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_transaction_payment::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "StorageVersion", + vec![], + [ + 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, + 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, + 166u8, 11u8, 34u8, 12u8, 12u8, 198u8, 58u8, 191u8, + 186u8, 221u8, 221u8, 119u8, 181u8, 253u8, 154u8, + 228u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] + #[doc = " `priority`"] + #[doc = ""] + #[doc = " This value is multipled 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::constants::Address<::core::primitive::u8> + { + ::subxt::constants::Address::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 asset_tx_payment { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_asset_tx_payment::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who` in an asset `asset_id`."] + pub struct AssetTxFeePaid { + pub who: ::subxt::utils::AccountId32, + pub actual_fee: ::core::primitive::u128, + pub tip: ::core::primitive::u128, + pub asset_id: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::events::StaticEvent for AssetTxFeePaid { + const PALLET: &'static str = "AssetTxPayment"; + const EVENT: &'static str = "AssetTxFeePaid"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi {} + } + } + 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 one variant per dispatchable that can be called by an extrinsic."] + pub type Call = + runtime_types::pallet_election_provider_multi_phase::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } + impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_minimum_untrusted_score"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetEmergencyElectionResult { + pub supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::utils::AccountId32, + >, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_emergency_election_result"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct GovernanceFallback { + pub maybe_max_voters: + ::core::option::Option<::core::primitive::u32>, + pub maybe_max_targets: + ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "governance_fallback"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 >, + witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit_unsigned", + types::SubmitUnsigned { + raw_solution: ::std::boxed::Box::new(raw_solution), + witness, + }, + [ + 100u8, 240u8, 31u8, 34u8, 93u8, 98u8, 93u8, 57u8, + 41u8, 197u8, 97u8, 58u8, 242u8, 10u8, 69u8, 250u8, + 185u8, 169u8, 21u8, 8u8, 202u8, 61u8, 36u8, 25u8, + 4u8, 148u8, 82u8, 56u8, 242u8, 18u8, 27u8, 219u8, + ], + ) + } + #[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: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_minimum_untrusted_score", + types::SetMinimumUntrustedScore { maybe_next_score }, + [ + 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, + 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, + 144u8, 74u8, 106u8, 15u8, 62u8, 196u8, 247u8, 49u8, + 20u8, 48u8, 3u8, 105u8, 85u8, 46u8, 76u8, 4u8, + 67u8, 81u8, + ], + ) + } + #[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: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::utils::AccountId32, + >, + )>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_emergency_election_result", + types::SetEmergencyElectionResult { supports }, + [ + 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, + 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, + 54u8, 63u8, 251u8, 51u8, 214u8, 204u8, 55u8, 112u8, + 46u8, 228u8, 255u8, 250u8, 151u8, 5u8, 44u8, 133u8, + ], + ) + } + #[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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit", + types::Submit { + raw_solution: ::std::boxed::Box::new(raw_solution), + }, + [ + 220u8, 167u8, 40u8, 47u8, 253u8, 244u8, 72u8, + 124u8, 30u8, 123u8, 127u8, 227u8, 2u8, 66u8, 119u8, + 64u8, 211u8, 200u8, 210u8, 98u8, 248u8, 132u8, + 68u8, 25u8, 34u8, 182u8, 230u8, 225u8, 241u8, 58u8, + 193u8, 134u8, + ], + ) + } + #[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: ::core::option::Option< + ::core::primitive::u32, + >, + maybe_max_targets: ::core::option::Option< + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "governance_fallback", + types::GovernanceFallback { + maybe_max_voters, + maybe_max_targets, + }, + [ + 206u8, 247u8, 76u8, 85u8, 7u8, 24u8, 231u8, 226u8, + 192u8, 143u8, 43u8, 67u8, 91u8, 202u8, 88u8, 176u8, + 130u8, 1u8, 83u8, 229u8, 227u8, 200u8, 179u8, 4u8, + 113u8, 60u8, 99u8, 190u8, 53u8, 226u8, 142u8, + 182u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A solution was stored with the given compute."] + #[doc = ""] + #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] + #[doc = "solution is unsigned, this means that it has also been processed."] + #[doc = ""] + #[doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] + pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub prev_ejected : :: core :: primitive :: bool , } + impl ::subxt::events::StaticEvent for SolutionStored { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The election has been finalized, with the given computation and score."] + pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } + impl ::subxt::events::StaticEvent for ElectionFinalized { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An election failed."] + #[doc = ""] + #[doc = "Not much can be said about which computes failed in the process."] + pub struct ElectionFailed; + impl ::subxt::events::StaticEvent for ElectionFailed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been rewarded for their signed submission being finalized."] + pub struct Rewarded { + pub account: ::subxt::utils::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been slashed for submitting an invalid signed submission."] + pub struct Slashed { + pub account: ::subxt::utils::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The signed phase of the given round has started."] + pub struct SignedPhaseStarted { + pub round: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SignedPhaseStarted { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SignedPhaseStarted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The unsigned phase of the given round has started."] + pub struct UnsignedPhaseStarted { + pub round: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for UnsignedPhaseStarted { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "UnsignedPhaseStarted"; + } + } + pub mod storage { + use super::runtime_types; + 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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Round", + vec![], + [ + 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, + 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, + 34u8, 44u8, 166u8, 188u8, 199u8, 210u8, 21u8, 19u8, + 70u8, 96u8, 139u8, 8u8, 53u8, 82u8, 165u8, 239u8, + ], + ) + } + #[doc = " Current phase."] + pub fn current_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "CurrentPhase", + vec![], + [ + 144u8, 190u8, 94u8, 47u8, 205u8, 116u8, 228u8, + 239u8, 155u8, 128u8, 246u8, 168u8, 192u8, 10u8, + 102u8, 179u8, 53u8, 210u8, 181u8, 63u8, 209u8, + 231u8, 100u8, 103u8, 249u8, 197u8, 171u8, 43u8, + 12u8, 42u8, 177u8, 234u8, + ], + ) + } + #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: ReadySolution , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "QueuedSolution", + vec![], + [ + 11u8, 152u8, 13u8, 167u8, 204u8, 209u8, 171u8, + 249u8, 59u8, 250u8, 58u8, 152u8, 164u8, 121u8, + 146u8, 112u8, 241u8, 16u8, 159u8, 251u8, 209u8, + 251u8, 114u8, 29u8, 188u8, 30u8, 84u8, 71u8, 136u8, + 173u8, 145u8, 236u8, + ], + ) + } + #[doc = " Snapshot data of the round."] + #[doc = ""] + #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Snapshot", + vec![], + [ + 239u8, 56u8, 191u8, 77u8, 150u8, 224u8, 248u8, + 88u8, 132u8, 224u8, 164u8, 83u8, 253u8, 36u8, 46u8, + 156u8, 72u8, 152u8, 36u8, 206u8, 72u8, 27u8, 226u8, + 87u8, 146u8, 220u8, 93u8, 178u8, 26u8, 115u8, + 232u8, 71u8, + ], + ) + } + #[doc = " Desired number of targets to elect for this round."] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] + pub fn desired_targets( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "DesiredTargets", + vec![], + [ + 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, + 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, + 90u8, 140u8, 31u8, 210u8, 2u8, 116u8, 220u8, 231u8, + 115u8, 112u8, 118u8, 118u8, 68u8, 34u8, 151u8, + 165u8, + ], + ) + } + #[doc = " The metadata of the [`RoundSnapshot`]"] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SnapshotMetadata", + vec![], + [ + 135u8, 122u8, 60u8, 75u8, 194u8, 240u8, 187u8, + 96u8, 240u8, 203u8, 192u8, 22u8, 117u8, 148u8, + 118u8, 24u8, 240u8, 213u8, 94u8, 22u8, 194u8, 47u8, + 181u8, 245u8, 77u8, 149u8, 11u8, 251u8, 117u8, + 220u8, 205u8, 78u8, + ], + ) + } + #[doc = " The next index to be assigned to an incoming signed submission."] + #[doc = ""] + #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] + #[doc = " submission for the duration of the election. On election finalization, the next index is"] + #[doc = " reset to 0."] + #[doc = ""] + #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] + #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] + #[doc = " because iteration is slow. Instead, we store the value here."] + pub fn signed_submission_next_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionNextIndex", + vec![], + [ + 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, + 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, + 59u8, 42u8, 238u8, 115u8, 8u8, 6u8, 137u8, 45u8, + 2u8, 123u8, 187u8, 53u8, 215u8, 19u8, 129u8, 54u8, + 22u8, + ], + ) + } + #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] + #[doc = " value in `SignedSubmissions`."] + #[doc = ""] + #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] + #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] + #[doc = " them one at a time instead of reading and decoding all of them at once."] + pub fn signed_submission_indices( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + runtime_types::sp_npos_elections::ElectionScore, + ::core::primitive::u64, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionIndices", + vec![], + [ + 254u8, 6u8, 108u8, 182u8, 202u8, 49u8, 246u8, 66u8, + 54u8, 247u8, 159u8, 226u8, 113u8, 197u8, 237u8, + 229u8, 43u8, 237u8, 215u8, 69u8, 213u8, 50u8, 64u8, + 106u8, 61u8, 142u8, 113u8, 29u8, 209u8, 175u8, + 83u8, 214u8, + ], + ) + } + #[doc = " Unchecked, signed solutions."] + #[doc = ""] + #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] + #[doc = " allowing us to keep only a single one in memory at a time."] + #[doc = ""] + #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: webb_standalone_runtime :: NposSolution16 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) + } + #[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_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: webb_standalone_runtime :: NposSolution16 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionsMap", + Vec::new(), + [ + 84u8, 65u8, 205u8, 191u8, 143u8, 246u8, 239u8, + 27u8, 243u8, 54u8, 250u8, 8u8, 125u8, 32u8, 241u8, + 141u8, 210u8, 225u8, 56u8, 101u8, 241u8, 52u8, + 157u8, 29u8, 13u8, 155u8, 73u8, 132u8, 118u8, 53u8, + 2u8, 135u8, + ], + ) + } + #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] + #[doc = " feasible."] + #[doc = ""] + #[doc = " Can be set via `set_minimum_untrusted_score`."] + pub fn minimum_untrusted_score( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_npos_elections::ElectionScore, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "MinimumUntrustedScore", + vec![], + [ + 77u8, 235u8, 181u8, 45u8, 230u8, 12u8, 0u8, 179u8, + 152u8, 38u8, 74u8, 199u8, 47u8, 84u8, 85u8, 55u8, + 171u8, 226u8, 217u8, 125u8, 17u8, 194u8, 95u8, + 157u8, 73u8, 245u8, 75u8, 130u8, 248u8, 7u8, 53u8, + 226u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Duration of the unsigned phase."] + pub fn unsigned_phase( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "UnsignedPhase", + [ + 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 = " Duration of the signed phase."] + pub fn signed_phase( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedPhase", + [ + 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 minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Signed phase."] + pub fn better_signed_threshold( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perbill, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterSignedThreshold", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Unsigned phase."] + pub fn better_unsigned_threshold( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perbill, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterUnsignedThreshold", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " The repeat threshold of the offchain worker."] + #[doc = ""] + #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] + #[doc = " to submit the worker's solution."] + pub fn offchain_repeat( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "OffchainRepeat", + [ + 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 priority of the unsigned transaction submitted in the unsigned-phase"] + pub fn miner_tx_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerTxPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, + 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, + 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, + 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, + 239u8, 42u8, 246u8, + ], + ) + } + #[doc = " Maximum number of signed submissions that can be queued."] + #[doc = ""] + #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] + #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] + #[doc = " update this value during an election, you _must_ ensure that"] + #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] + #[doc = " attempts to submit new solutions may cause a runtime panic."] + pub fn signed_max_submissions( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxSubmissions", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum weight of a signed solution."] + #[doc = ""] + #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] + #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] + #[doc = " this value."] + pub fn signed_max_weight( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxWeight", + [ + 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, + 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, + 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, + 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, + 134u8, 106u8, 76u8, + ], + ) + } + #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] + pub fn signed_max_refunds( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxRefunds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Base reward for a signed solution"] + pub fn signed_reward_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedRewardBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Base deposit for a signed solution."] + pub fn signed_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Per-byte deposit for a signed solution."] + pub fn signed_deposit_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Per-weight deposit for a signed solution."] + pub fn signed_deposit_weight( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositWeight", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] + #[doc = " are only over a single block, but once multi-block elections are introduced they will"] + #[doc = " take place over multiple blocks."] + pub fn max_electing_voters( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxElectingVoters", + [ + 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 electable targets to put in the snapshot."] + pub fn max_electable_targets( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxElectableTargets", + [ + 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, + ], + ) + } + #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] + #[doc = " implementation."] + #[doc = ""] + #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] + pub fn max_winners( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_weight( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWeight", + [ + 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, + 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, + 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, + 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, + 134u8, 106u8, 76u8, + ], + ) + } + pub fn miner_max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod staking { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Bond { + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Bond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtra { + #[codec(compact)] + pub max_additional: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unbond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithdrawUnbonded { + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Validate { + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::blocks::StaticExtrinsic for Validate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "validate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nominate { + pub targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Chill; + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetPayee { + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetPayee { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_payee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetController { + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetController { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_controller"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetValidatorCount { + #[codec(compact)] + pub new: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct IncreaseValidatorCount { + #[codec(compact)] + pub additional: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "increase_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScaleValidatorCount { + pub factor: + runtime_types::sp_arithmetic::per_things::Percent, + } + impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "scale_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNoEras; + impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_no_eras"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNewEra; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetInvulnerables { + pub invulnerables: + ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_invulnerables"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnstake { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_unstake"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNewEraAlways; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era_always"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelDeferredSlash { + pub era: ::core::primitive::u32, + pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "cancel_deferred_slash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PayoutStakers { + pub validator_stash: ::subxt::utils::AccountId32, + pub era: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Rebond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Rebond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "rebond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReapStash { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ReapStash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "reap_stash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Kick { + pub who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Kick { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "kick"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetStakingConfigs { + pub min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + pub min_commission: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_staking_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ChillOther { + pub controller: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ChillOther { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceApplyMinCommission { + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_apply_min_commission"; + } + } + 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 = "# "] + #[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_ and gets removed as dust."] + #[doc = "------------------"] + #[doc = "# "] + pub fn bond( + &self, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond", + types::Bond { + controller, + value, + payee, + }, + [ + 140u8, 13u8, 108u8, 181u8, 212u8, 177u8, 190u8, + 212u8, 163u8, 40u8, 120u8, 232u8, 126u8, 213u8, + 6u8, 181u8, 99u8, 252u8, 58u8, 54u8, 139u8, 64u8, + 67u8, 76u8, 53u8, 226u8, 11u8, 133u8, 235u8, 159u8, + 103u8, 210u8, + ], + ) + } + #[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 = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn bond_extra( + &self, + max_additional: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond_extra", + types::BondExtra { max_additional }, + [ + 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, + 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, + 252u8, 15u8, 19u8, 128u8, 11u8, 187u8, 4u8, 151u8, + 103u8, 143u8, 24u8, 33u8, 149u8, 82u8, 35u8, 192u8, + ], + ) + } + #[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: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "unbond", + types::Unbond { value }, + [ + 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, + 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, + 114u8, 230u8, 240u8, 146u8, 14u8, 109u8, 185u8, + 151u8, 148u8, 44u8, 147u8, 182u8, 192u8, 253u8, + 51u8, 87u8, + ], + ) + } + #[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"] + #[doc = "whatever 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 = "# "] + #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] + #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] + #[doc = "# "] + pub fn withdraw_unbonded( + &self, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "withdraw_unbonded", + types::WithdrawUnbonded { num_slashing_spans }, + [ + 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, + 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, + 165u8, 192u8, 149u8, 249u8, 158u8, 159u8, 194u8, + 224u8, 118u8, 134u8, 204u8, 157u8, 72u8, 136u8, + 19u8, 193u8, 183u8, 84u8, + ], + ) + } + #[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: runtime_types::pallet_staking::ValidatorPrefs, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "validate", + types::Validate { prefs }, + [ + 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, + 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, + 106u8, 200u8, 172u8, 108u8, 145u8, 194u8, 146u8, + 61u8, 145u8, 233u8, 168u8, 2u8, 26u8, 145u8, 101u8, + 114u8, 157u8, + ], + ) + } + #[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 = "# "] + #[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."] + #[doc = "# "] + pub fn nominate( + &self, + targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "nominate", + types::Nominate { targets }, + [ + 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, + 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, + 129u8, 156u8, 190u8, 83u8, 178u8, 170u8, 116u8, + 27u8, 8u8, 244u8, 56u8, 73u8, 164u8, 223u8, 199u8, + 115u8, 168u8, 83u8, + ], + ) + } + #[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 = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains one read."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "# "] + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, + 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, + 166u8, 230u8, 56u8, 16u8, 222u8, 31u8, 153u8, + 120u8, 62u8, 153u8, 67u8, 220u8, 239u8, 11u8, + 234u8, 127u8, 122u8, + ], + ) + } + #[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 = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "---------"] + #[doc = "- Weight: O(1)"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Ledger"] + #[doc = " - Write: Payee"] + #[doc = "# "] + pub fn set_payee( + &self, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_payee", + types::SetPayee { payee }, + [ + 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, + 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, + 245u8, 14u8, 171u8, 108u8, 195u8, 250u8, 133u8, + 0u8, 75u8, 192u8, 159u8, 84u8, 220u8, 242u8, 133u8, + 60u8, 62u8, + ], + ) + } + #[doc = "(Re-)set the controller of a stash."] + #[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 = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "----------"] + #[doc = "Weight: O(1)"] + #[doc = "DB Weight:"] + #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] + #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] + #[doc = "# "] + pub fn set_controller( + &self, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_controller", + types::SetController { controller }, + [ + 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, + 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, + 117u8, 192u8, 143u8, 166u8, 38u8, 235u8, 75u8, + 161u8, 177u8, 229u8, 229u8, 82u8, 95u8, 39u8, 40u8, + 116u8, 9u8, 204u8, + ], + ) + } + #[doc = "Sets the ideal number of validators."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# "] + #[doc = "Weight: O(1)"] + #[doc = "Write: Validator Count"] + #[doc = "# "] + pub fn set_validator_count( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_validator_count", + types::SetValidatorCount { new }, + [ + 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, + 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, + 187u8, 194u8, 91u8, 15u8, 36u8, 215u8, 36u8, 160u8, + 108u8, 251u8, 60u8, 240u8, 202u8, 249u8, 235u8, + 28u8, 94u8, + ], + ) + } + #[doc = "Increments the ideal number of validators upto maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "# "] + pub fn increase_validator_count( + &self, + additional: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "increase_validator_count", + types::IncreaseValidatorCount { additional }, + [ + 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, + 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, + 60u8, 158u8, 8u8, 78u8, 175u8, 219u8, 46u8, 51u8, + 222u8, 193u8, 193u8, 201u8, 78u8, 90u8, 58u8, 86u8, + 196u8, 17u8, + ], + ) + } + #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "# "] + pub fn scale_validator_count( + &self, + factor: runtime_types::sp_arithmetic::per_things::Percent, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "scale_validator_count", + types::ScaleValidatorCount { factor }, + [ + 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, + 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, + 219u8, 167u8, 149u8, 112u8, 49u8, 139u8, 74u8, + 81u8, 172u8, 72u8, 253u8, 224u8, 56u8, 194u8, + 185u8, 90u8, 87u8, 125u8, + ], + ) + } + #[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 = "# "] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] + #[doc = "- Write: ForceEra"] + #[doc = "# "] + pub fn force_no_eras( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_no_eras", + types::ForceNoEras {}, + [ + 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, + 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, + 91u8, 120u8, 75u8, 24u8, 125u8, 53u8, 9u8, 28u8, + 242u8, 87u8, 245u8, 55u8, 40u8, 103u8, 151u8, + 178u8, + ], + ) + } + #[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 = "# "] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] + #[doc = "- Write ForceEra"] + #[doc = "# "] + pub fn force_new_era( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era", + types::ForceNewEra {}, + [ + 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, + 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, + 126u8, 73u8, 136u8, 162u8, 158u8, 174u8, 201u8, + 213u8, 230u8, 215u8, 44u8, 200u8, 32u8, 75u8, 27u8, + 23u8, 254u8, + ], + ) + } + #[doc = "Set the validators who cannot be slashed (if any)."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + pub fn set_invulnerables( + &self, + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_invulnerables", + types::SetInvulnerables { invulnerables }, + [ + 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, + 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, + 27u8, 76u8, 18u8, 203u8, 206u8, 9u8, 8u8, 81u8, + 35u8, 224u8, 22u8, 133u8, 58u8, 99u8, 103u8, 39u8, + ], + ) + } + #[doc = "Force a current staker to become completely unstaked, immediately."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + pub fn force_unstake( + &self, + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_unstake", + types::ForceUnstake { + stash, + num_slashing_spans, + }, + [ + 94u8, 247u8, 238u8, 47u8, 250u8, 6u8, 96u8, 175u8, + 173u8, 123u8, 161u8, 187u8, 162u8, 214u8, 176u8, + 233u8, 33u8, 33u8, 167u8, 239u8, 40u8, 223u8, 19u8, + 131u8, 230u8, 39u8, 175u8, 200u8, 36u8, 182u8, + 76u8, 207u8, + ], + ) + } + #[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::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era_always", + types::ForceNewEraAlways {}, + [ + 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, + 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, + 117u8, 147u8, 225u8, 118u8, 34u8, 177u8, 197u8, + 158u8, 8u8, 82u8, 202u8, 108u8, 208u8, 26u8, 64u8, + 33u8, 74u8, 43u8, + ], + ) + } + #[doc = "Cancel enactment of a deferred slash."] + #[doc = ""] + #[doc = "Can be called by the `T::SlashCancelOrigin`."] + #[doc = ""] + #[doc = "Parameters: era and indices of the slashes for that era to kill."] + pub fn cancel_deferred_slash( + &self, + era: ::core::primitive::u32, + slash_indices: ::std::vec::Vec<::core::primitive::u32>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "cancel_deferred_slash", + types::CancelDeferredSlash { era, slash_indices }, + [ + 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, + 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, + 106u8, 101u8, 19u8, 88u8, 146u8, 210u8, 171u8, + 44u8, 37u8, 50u8, 65u8, 178u8, 37u8, 223u8, 239u8, + 197u8, 116u8, 168u8, + ], + ) + } + #[doc = "Pay out all the stakers behind a single validator for a single era."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] + #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] + #[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 = "# "] + #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] + #[doc = "- Contains a limited number of reads and writes."] + #[doc = "-----------"] + #[doc = "N is the Number of payouts for the validator (including the validator)"] + #[doc = "Weight:"] + #[doc = "- Reward Destination Staked: O(N)"] + #[doc = "- Reward Destination Controller (Creating): O(N)"] + #[doc = ""] + #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] + #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] + #[doc = "# "] + pub fn payout_stakers( + &self, + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "payout_stakers", + types::PayoutStakers { + validator_stash, + era, + }, + [ + 184u8, 194u8, 33u8, 118u8, 7u8, 203u8, 89u8, 119u8, + 214u8, 76u8, 178u8, 20u8, 82u8, 111u8, 57u8, 132u8, + 212u8, 43u8, 232u8, 91u8, 252u8, 49u8, 42u8, 115u8, + 1u8, 181u8, 154u8, 207u8, 144u8, 206u8, 205u8, + 33u8, + ], + ) + } + #[doc = "Rebond a portion of the stash scheduled to be unlocked."] + #[doc = ""] + #[doc = "The dispatch origin must be signed by the controller."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Time complexity: O(L), where L is unlocking chunks"] + #[doc = "- Bounded by `MaxUnlockingChunks`."] + #[doc = "- Storage changes: Can't increase storage, only decrease it."] + #[doc = "# "] + pub fn rebond( + &self, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "rebond", + types::Rebond { value }, + [ + 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, + 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, + 253u8, 196u8, 30u8, 234u8, 49u8, 102u8, 68u8, + 145u8, 96u8, 148u8, 219u8, 162u8, 17u8, 177u8, + 184u8, 34u8, 113u8, + ], + ) + } + #[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 = ""] + #[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."] + pub fn reap_stash( + &self, + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "reap_stash", + types::ReapStash { + stash, + num_slashing_spans, + }, + [ + 34u8, 168u8, 120u8, 161u8, 95u8, 199u8, 106u8, + 233u8, 61u8, 240u8, 166u8, 31u8, 183u8, 165u8, + 158u8, 179u8, 32u8, 130u8, 27u8, 164u8, 112u8, + 44u8, 14u8, 125u8, 227u8, 87u8, 70u8, 203u8, 194u8, + 24u8, 212u8, 177u8, + ], + ) + } + #[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: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "kick", + types::Kick { who }, + [ + 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, + 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, + 115u8, 243u8, 166u8, 120u8, 121u8, 70u8, 227u8, + 240u8, 205u8, 240u8, 211u8, 202u8, 251u8, 232u8, + 209u8, 12u8, + ], + ) + } + #[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 : 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 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_staking_configs", + types::SetStakingConfigs { + min_nominator_bond, + min_validator_bond, + max_nominator_count, + max_validator_count, + chill_threshold, + min_commission, + }, + [ + 176u8, 168u8, 155u8, 176u8, 27u8, 79u8, 223u8, + 92u8, 88u8, 93u8, 223u8, 69u8, 179u8, 250u8, 138u8, + 138u8, 87u8, 220u8, 36u8, 3u8, 126u8, 213u8, 16u8, + 68u8, 3u8, 16u8, 218u8, 151u8, 98u8, 169u8, 217u8, + 75u8, + ], + ) + } + #[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, + controller: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill_other", + types::ChillOther { controller }, + [ + 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, + 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, + 220u8, 166u8, 170u8, 135u8, 176u8, 68u8, 228u8, + 14u8, 67u8, 42u8, 52u8, 140u8, 231u8, 62u8, 167u8, + 80u8, 173u8, + ], + ) + } + #[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: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "force_apply_min_commission", + types::ForceApplyMinCommission { validator_stash }, + [ + 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, + 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, + 78u8, 123u8, 229u8, 135u8, 129u8, 241u8, 119u8, + 106u8, 41u8, 182u8, 121u8, 181u8, 242u8, 175u8, + 74u8, 207u8, 64u8, 106u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] + #[doc = "the remainder from the maximum amount of reward."] + pub struct EraPaid { + pub era_index: ::core::primitive::u32, + pub validator_payout: ::core::primitive::u128, + pub remainder: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for EraPaid { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "EraPaid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The nominator has been rewarded by this amount."] + pub struct Rewarded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A staker (validator or nominator) has been slashed by the given amount."] + pub struct Slashed { + pub staker: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] + #[doc = "era as been reported."] + pub struct SlashReported { + pub validator: ::subxt::utils::AccountId32, + pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, + pub slash_era: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SlashReported { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SlashReported"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An old slashing report from a prior era was discarded because it could"] + #[doc = "not be processed."] + pub struct OldSlashingReportDiscarded { + pub session_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "OldSlashingReportDiscarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new set of stakers was elected."] + pub struct StakersElected; + impl ::subxt::events::StaticEvent for StakersElected { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakersElected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has bonded this amount. \\[stash, amount\\]"] + #[doc = ""] + #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] + #[doc = "it will not be emitted for staking rewards when they are added to stake."] + pub struct Bonded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has unbonded this amount."] + pub struct Unbonded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] + #[doc = "from the unlocking queue."] + pub struct Withdrawn { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A nominator has been kicked from a validator."] + pub struct Kicked { + pub nominator: ::subxt::utils::AccountId32, + pub stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Kicked { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Kicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The election failed. No new era is planned."] + pub struct StakingElectionFailed; + impl ::subxt::events::StaticEvent for StakingElectionFailed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakingElectionFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has stopped participating as either a validator or nominator."] + pub struct Chilled { + pub stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Chilled { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Chilled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The stakers' rewards are getting paid."] + pub struct PayoutStarted { + pub era_index: ::core::primitive::u32, + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for PayoutStarted { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "PayoutStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A validator has set their preferences."] + pub struct ValidatorPrefsSet { + pub stash: ::subxt::utils::AccountId32, + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::events::StaticEvent for ValidatorPrefsSet { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ValidatorPrefsSet"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The ideal number of active validators."] + pub fn validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorCount", + vec![], + [ + 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, + 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, + 184u8, 207u8, 6u8, 0u8, 126u8, 221u8, 67u8, 125u8, + 218u8, 188u8, 245u8, 156u8, 188u8, 34u8, 85u8, + 208u8, 197u8, + ], + ) + } + #[doc = " Minimum number of staking participants before emergency conditions are imposed."] + pub fn minimum_validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumValidatorCount", + vec![], + [ + 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, + 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, + 175u8, 1u8, 234u8, 162u8, 91u8, 252u8, 127u8, 68u8, + 243u8, 241u8, 13u8, 107u8, 214u8, 70u8, 87u8, + 249u8, + ], + ) + } + #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] + #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] + #[doc = " invulnerables) and restricted to testnets."] + pub fn invulnerables( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Invulnerables", + vec![], + [ + 77u8, 78u8, 63u8, 199u8, 150u8, 167u8, 135u8, + 130u8, 192u8, 51u8, 202u8, 119u8, 68u8, 49u8, + 241u8, 68u8, 82u8, 90u8, 226u8, 201u8, 96u8, 170u8, + 21u8, 173u8, 236u8, 116u8, 148u8, 8u8, 174u8, 92u8, + 7u8, 11u8, + ], + ) + } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + pub fn bonded( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) + } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + pub fn bonded_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Bonded", + Vec::new(), + [ + 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, + 77u8, 15u8, 118u8, 193u8, 155u8, 97u8, 229u8, 36u8, + 119u8, 128u8, 224u8, 162u8, 21u8, 46u8, 199u8, + 221u8, 15u8, 74u8, 59u8, 70u8, 77u8, 218u8, 73u8, + 165u8, + ], + ) + } + #[doc = " The minimum active bond to become and maintain the role of a nominator."] + pub fn min_nominator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinNominatorBond", + vec![], + [ + 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, + 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, + 127u8, 223u8, 58u8, 134u8, 81u8, 165u8, 200u8, + 142u8, 196u8, 158u8, 26u8, 38u8, 165u8, 19u8, 91u8, + 251u8, 119u8, 84u8, + ], + ) + } + #[doc = " The minimum active bond to become and maintain the role of a validator."] + pub fn min_validator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinValidatorBond", + vec![], + [ + 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, + 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, + 66u8, 182u8, 92u8, 20u8, 22u8, 109u8, 155u8, 174u8, + 87u8, 118u8, 242u8, 216u8, 193u8, 154u8, 4u8, 5u8, + 66u8, 56u8, + ], + ) + } + #[doc = " The minimum active nominator stake of the last successful election."] + pub fn minimum_active_stake( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumActiveStake", + vec![], + [ + 172u8, 190u8, 228u8, 47u8, 47u8, 192u8, 182u8, + 59u8, 9u8, 18u8, 103u8, 46u8, 175u8, 54u8, 17u8, + 79u8, 89u8, 107u8, 255u8, 200u8, 182u8, 107u8, + 89u8, 157u8, 55u8, 16u8, 77u8, 46u8, 154u8, 169u8, + 103u8, 151u8, + ], + ) + } + #[doc = " The minimum amount of commission that validators can set."] + #[doc = ""] + #[doc = " If set to `0`, no limit exists."] + pub fn min_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinCommission", + vec![], + [ + 61u8, 101u8, 69u8, 27u8, 220u8, 179u8, 5u8, 71u8, + 66u8, 227u8, 84u8, 98u8, 18u8, 141u8, 183u8, 49u8, + 98u8, 46u8, 123u8, 114u8, 198u8, 85u8, 15u8, 175u8, + 243u8, 239u8, 133u8, 129u8, 146u8, 174u8, 254u8, + 158u8, + ], + ) + } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + pub fn ledger( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) + } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + pub fn ledger_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Ledger", + Vec::new(), + [ + 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, + 33u8, 189u8, 124u8, 120u8, 177u8, 70u8, 27u8, + 242u8, 188u8, 184u8, 204u8, 188u8, 242u8, 140u8, + 128u8, 230u8, 85u8, 99u8, 181u8, 173u8, 67u8, + 252u8, 37u8, 236u8, + ], + ) + } + #[doc = " Where the reward payment should be made. Keyed by stash."] + pub fn payee( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) + } + #[doc = " Where the reward payment should be made. Keyed by stash."] + pub fn payee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Payee", + Vec::new(), + [ + 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, + 187u8, 163u8, 20u8, 230u8, 153u8, 13u8, 189u8, + 232u8, 119u8, 118u8, 107u8, 17u8, 102u8, 245u8, + 36u8, 42u8, 232u8, 137u8, 177u8, 165u8, 169u8, + 246u8, 199u8, 57u8, + ], + ) + } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + pub fn validators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) + } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + pub fn validators_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Validators", + Vec::new(), + [ + 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, + 43u8, 24u8, 149u8, 164u8, 208u8, 60u8, 144u8, 29u8, + 251u8, 195u8, 236u8, 196u8, 108u8, 58u8, 80u8, + 115u8, 246u8, 66u8, 226u8, 241u8, 201u8, 172u8, + 229u8, 152u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForValidators", + vec![], + [ + 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, + 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, + 112u8, 85u8, 49u8, 78u8, 88u8, 11u8, 8u8, 48u8, + 118u8, 34u8, 62u8, 159u8, 239u8, 122u8, 90u8, 45u8, + ], + ) + } + #[doc = " The maximum validator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_validators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxValidatorsCount", + vec![], + [ + 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, + 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, + 62u8, 131u8, 112u8, 64u8, 26u8, 133u8, 7u8, 130u8, + 1u8, 71u8, 158u8, 14u8, 55u8, 169u8, 239u8, 223u8, + 245u8, + ], + ) + } + #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] + pub fn nominators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) + } + #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] + pub fn nominators_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Nominators", + Vec::new(), + [ + 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, + 254u8, 19u8, 152u8, 85u8, 164u8, 171u8, 206u8, + 129u8, 184u8, 45u8, 221u8, 181u8, 229u8, 133u8, + 200u8, 231u8, 16u8, 146u8, 247u8, 21u8, 77u8, + 122u8, 165u8, 134u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_nominators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForNominators", + vec![], + [ + 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, + 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, + 40u8, 117u8, 215u8, 46u8, 82u8, 117u8, 225u8, 1u8, + 9u8, 208u8, 83u8, 63u8, 39u8, 187u8, 207u8, 191u8, + ], + ) + } + #[doc = " The maximum nominator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_nominators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxNominatorsCount", + vec![], + [ + 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, + 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, + 32u8, 119u8, 3u8, 73u8, 86u8, 49u8, 104u8, 17u8, + 186u8, 98u8, 221u8, 175u8, 109u8, 254u8, 207u8, + 245u8, 125u8, 179u8, + ], + ) + } + #[doc = " The current era index."] + #[doc = ""] + #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] + #[doc = " set, it might be active or not."] + pub fn current_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentEra", + vec![], + [ + 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, + 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, + 7u8, 10u8, 117u8, 71u8, 240u8, 74u8, 86u8, 36u8, + 198u8, 37u8, 153u8, 93u8, 196u8, 22u8, 192u8, + 243u8, + ], + ) + } + #[doc = " The active era information, it holds index and start."] + #[doc = ""] + #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] + #[doc = " equal to [`SessionInterface::validators`]."] + pub fn active_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ActiveEra", + vec![], + [ + 15u8, 112u8, 251u8, 183u8, 108u8, 61u8, 28u8, 71u8, + 44u8, 150u8, 162u8, 4u8, 143u8, 121u8, 11u8, 37u8, + 83u8, 29u8, 193u8, 21u8, 210u8, 116u8, 190u8, + 236u8, 213u8, 235u8, 49u8, 97u8, 189u8, 142u8, + 251u8, 124u8, + ], + ) + } + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] + pub fn eras_start_session_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) + } + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStartSessionIndex", + Vec::new(), + [ + 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, + 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, + 100u8, 163u8, 91u8, 32u8, 246u8, 122u8, 78u8, + 149u8, 214u8, 103u8, 249u8, 119u8, 20u8, 101u8, + 116u8, 110u8, 185u8, + ], + ) + } + #[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 `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) + } + #[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 `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + Vec::new(), + [ + 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, + 15u8, 139u8, 210u8, 128u8, 65u8, 92u8, 253u8, 43u8, + 35u8, 139u8, 171u8, 73u8, 185u8, 32u8, 78u8, 20u8, + 197u8, 154u8, 90u8, 233u8, 231u8, 23u8, 22u8, + 187u8, 156u8, + ], + ) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_clipped( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_clipped_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + Vec::new(), + [ + 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, + 153u8, 26u8, 55u8, 71u8, 119u8, 174u8, 48u8, 158u8, + 45u8, 214u8, 26u8, 136u8, 215u8, 46u8, 161u8, + 185u8, 17u8, 174u8, 204u8, 206u8, 246u8, 49u8, + 87u8, 134u8, 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 `HISTORY_DEPTH` eras."] + pub fn eras_validator_prefs( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) + } + #[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 `HISTORY_DEPTH` eras."] + pub fn eras_validator_prefs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + Vec::new(), + [ + 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, + 129u8, 62u8, 4u8, 56u8, 234u8, 114u8, 141u8, 136u8, + 127u8, 224u8, 142u8, 89u8, 150u8, 33u8, 31u8, 50u8, + 140u8, 108u8, 124u8, 77u8, 188u8, 102u8, 230u8, + 174u8, + ], + ) + } + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) + } + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorReward", + Vec::new(), + [ + 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, + 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, + 179u8, 84u8, 161u8, 223u8, 255u8, 254u8, 107u8, + 52u8, 89u8, 98u8, 169u8, 136u8, 241u8, 104u8, 3u8, + 244u8, 161u8, + ], + ) + } + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) + } + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::AccountId32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasRewardPoints", + Vec::new(), + [ + 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, + 88u8, 65u8, 24u8, 255u8, 120u8, 178u8, 23u8, 232u8, + 15u8, 64u8, 206u8, 0u8, 170u8, 40u8, 18u8, 149u8, + 45u8, 90u8, 179u8, 127u8, 52u8, 59u8, 37u8, 192u8, + ], + ) + } + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) + } + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasTotalStake", + Vec::new(), + [ + 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, + 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, + 239u8, 1u8, 110u8, 53u8, 11u8, 247u8, 235u8, 142u8, + 234u8, 22u8, 43u8, 24u8, 36u8, 37u8, 43u8, 170u8, + 40u8, + ], + ) + } + #[doc = " Mode of era forcing."] + pub fn force_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Forcing, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, + 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, + 131u8, 214u8, 136u8, 68u8, 156u8, 140u8, 194u8, + 69u8, 151u8, 115u8, 177u8, 92u8, 147u8, 29u8, 40u8, + 41u8, 31u8, + ], + ) + } + #[doc = " The percentage of the slash that is distributed to reporters."] + #[doc = ""] + #[doc = " The rest of the slashed value is handled by the `Slash`."] + pub fn slash_reward_fraction( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashRewardFraction", + vec![], + [ + 167u8, 79u8, 143u8, 202u8, 199u8, 100u8, 129u8, + 162u8, 23u8, 165u8, 106u8, 170u8, 244u8, 86u8, + 144u8, 242u8, 65u8, 207u8, 115u8, 224u8, 231u8, + 155u8, 55u8, 139u8, 101u8, 129u8, 242u8, 196u8, + 130u8, 50u8, 3u8, 117u8, + ], + ) + } + #[doc = " The amount of currency given to reporters of a slash event which was"] + #[doc = " canceled by extraordinary circumstances (e.g. governance)."] + pub fn canceled_slash_payout( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CanceledSlashPayout", + vec![], + [ + 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, + 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, + 156u8, 83u8, 14u8, 91u8, 15u8, 200u8, 170u8, 3u8, + 127u8, 141u8, 139u8, 151u8, 98u8, 74u8, 96u8, + 238u8, 29u8, + ], + ) + } + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) + } + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "UnappliedSlashes", + Vec::new(), + [ + 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, + 47u8, 125u8, 57u8, 0u8, 133u8, 176u8, 130u8, 2u8, + 175u8, 180u8, 167u8, 203u8, 230u8, 82u8, 198u8, + 183u8, 55u8, 82u8, 221u8, 248u8, 100u8, 173u8, + 206u8, 151u8, + ], + ) + } + #[doc = " A mapping from still-bonded eras to the first session index of that era."] + #[doc = ""] + #[doc = " Must contains information for eras for the range:"] + #[doc = " `[active_era - bounding_duration; active_era]`"] + pub fn bonded_eras( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "BondedEras", + vec![], + [ + 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, + 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, + 89u8, 206u8, 2u8, 155u8, 222u8, 154u8, 116u8, + 124u8, 4u8, 119u8, 155u8, 94u8, 248u8, 30u8, 171u8, + 51u8, 78u8, 106u8, + ], + ) + } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + Vec::new(), + [ + 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, + 251u8, 196u8, 85u8, 29u8, 27u8, 151u8, 98u8, 122u8, + 189u8, 147u8, 205u8, 40u8, 202u8, 194u8, 158u8, + 96u8, 138u8, 16u8, 116u8, 71u8, 140u8, 163u8, + 121u8, 197u8, + ], + ) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + Vec::new(), + [ + 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, + 12u8, 53u8, 101u8, 80u8, 96u8, 166u8, 71u8, 239u8, + 23u8, 153u8, 19u8, 152u8, 38u8, 138u8, 136u8, + 221u8, 200u8, 18u8, 165u8, 26u8, 228u8, 195u8, + 199u8, 62u8, 4u8, + ], + ) + } + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) + } + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashingSpans", + Vec::new(), + [ + 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, + 255u8, 204u8, 44u8, 5u8, 66u8, 36u8, 227u8, 252u8, + 86u8, 159u8, 186u8, 152u8, 196u8, 21u8, 74u8, + 201u8, 133u8, 93u8, 142u8, 191u8, 20u8, 27u8, + 218u8, 157u8, + ], + ) + } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + Vec::new(), + [ + 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, + 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, + 116u8, 210u8, 225u8, 230u8, 224u8, 163u8, 103u8, + 157u8, 100u8, 29u8, 86u8, 167u8, 84u8, 217u8, + 109u8, 200u8, + ], + ) + } + #[doc = " The last planned session scheduled by the session pallet."] + #[doc = ""] + #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] + pub fn current_planned_session( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentPlannedSession", + vec![], + [ + 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, + 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, + 190u8, 53u8, 241u8, 11u8, 185u8, 163u8, 227u8, + 10u8, 77u8, 210u8, 64u8, 156u8, 218u8, 105u8, 16u8, + 1u8, 57u8, + ], + ) + } + #[doc = " Indices of validators that have offended in the active era and whether they are currently"] + #[doc = " disabled."] + #[doc = ""] + #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] + #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] + #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] + #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] + #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] + #[doc = " the era ends."] + pub fn offending_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::bool, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "OffendingValidators", + vec![], + [ + 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, + 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, + 82u8, 182u8, 104u8, 167u8, 103u8, 187u8, 168u8, + 86u8, 16u8, 51u8, 235u8, 51u8, 119u8, 38u8, 154u8, + 42u8, 113u8, + ], + ) + } + #[doc = " True if network has been upgraded to this version."] + #[doc = " Storage version of the pallet."] + #[doc = ""] + #[doc = " This is set to v7.0.0 for new networks."] + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "StorageVersion", + vec![], + [ + 70u8, 24u8, 179u8, 189u8, 168u8, 164u8, 175u8, + 150u8, 215u8, 43u8, 18u8, 110u8, 180u8, 137u8, + 237u8, 187u8, 185u8, 50u8, 31u8, 57u8, 16u8, 110u8, + 6u8, 170u8, 19u8, 7u8, 160u8, 134u8, 232u8, 227u8, + 151u8, 116u8, + ], + ) + } + #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] + #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] + #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] + pub fn chill_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ChillThreshold", + vec![], + [ + 174u8, 165u8, 249u8, 105u8, 24u8, 151u8, 115u8, + 166u8, 199u8, 251u8, 28u8, 5u8, 50u8, 95u8, 144u8, + 110u8, 220u8, 76u8, 14u8, 23u8, 179u8, 41u8, 11u8, + 248u8, 28u8, 154u8, 159u8, 255u8, 156u8, 109u8, + 98u8, 92u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum number of nominations per nominator."] + pub fn max_nominations( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominations", + [ + 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 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`,"] + #[doc = " `StakingLedger.claimed_rewards`."] + #[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.claimed_rewards`. Setting this value lower than"] + #[doc = " the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a migration."] + #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] + pub fn history_depth( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of sessions per era."] + pub fn sessions_per_era( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that staked funds must remain bonded for."] + pub fn bonding_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that slashes are deferred by, after computation."] + #[doc = ""] + #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] + #[doc = " should be applied immediately, without opportunity for intervention."] + pub fn slash_defer_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of nominators rewarded for each validator."] + #[doc = ""] + #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] + #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] + pub fn max_nominator_rewarded_per_validator( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominatorRewardedPerValidator", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] + #[doc = " have. Effectively determines how many unique eras a staker may be"] + #[doc = " unbonding in."] + #[doc = ""] + #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] + #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] + #[doc = " lower than the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] + #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] + #[doc = " this effect."] + pub fn max_unlocking_chunks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKeys { + pub keys: + runtime_types::webb_standalone_runtime::SessionKeys, + pub proof: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PurgeKeys; + impl ::subxt::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 = "# "] + #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] + #[doc = " `T::Keys::key_ids()` which is fixed."] + #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] + #[doc = "- DbWrites: `origin account`, `NextKeys`"] + #[doc = "- DbReads per key id: `KeyOwner`"] + #[doc = "- DbWrites per key id: `KeyOwner`"] + #[doc = "# "] + pub fn set_keys( + &self, + keys: runtime_types::webb_standalone_runtime::SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "set_keys", + types::SetKeys { keys, proof }, + [ + 19u8, 210u8, 111u8, 216u8, 235u8, 1u8, 119u8, + 211u8, 79u8, 9u8, 91u8, 245u8, 109u8, 116u8, 95u8, + 223u8, 233u8, 189u8, 185u8, 243u8, 46u8, 178u8, + 10u8, 4u8, 231u8, 159u8, 217u8, 59u8, 45u8, 167u8, + 207u8, 137u8, + ], + ) + } + #[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 = "# "] + #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] + #[doc = " of `T::Keys::key_ids()` which is fixed."] + #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] + #[doc = "- DbWrites: `NextKeys`, `origin account`"] + #[doc = "- DbWrites per key id: `KeyOwner`"] + #[doc = "# "] + pub fn purge_keys( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "purge_keys", + types::PurgeKeys {}, + [ + 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, + 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, + 44u8, 91u8, 31u8, 145u8, 23u8, 213u8, 64u8, 71u8, + 242u8, 207u8, 239u8, 231u8, 37u8, 61u8, 63u8, + 190u8, 35u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_session::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New 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: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NewSession { + const PALLET: &'static str = "Session"; + const EVENT: &'static str = "NewSession"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The current set of validators."] + pub fn validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "Validators", + vec![], + [ + 144u8, 235u8, 200u8, 43u8, 151u8, 57u8, 147u8, + 172u8, 201u8, 202u8, 242u8, 96u8, 57u8, 76u8, + 124u8, 77u8, 42u8, 113u8, 218u8, 220u8, 230u8, + 32u8, 151u8, 152u8, 172u8, 106u8, 60u8, 227u8, + 122u8, 118u8, 137u8, 68u8, + ], + ) + } + #[doc = " Current index of the session."] + pub fn current_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "CurrentIndex", + vec![], + [ + 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, + 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, + 181u8, 191u8, 143u8, 252u8, 227u8, 80u8, 159u8, + 66u8, 194u8, 67u8, 113u8, 74u8, 111u8, 91u8, 218u8, + 187u8, 130u8, 40u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedChanged", + vec![], + [ + 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, + 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, + 202u8, 152u8, 42u8, 50u8, 113u8, 200u8, 247u8, + 59u8, 213u8, 77u8, 195u8, 1u8, 150u8, 220u8, 18u8, + 245u8, 46u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::webb_standalone_runtime::SessionKeys, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedKeys", + vec![], + [ + 57u8, 139u8, 66u8, 116u8, 133u8, 98u8, 66u8, 181u8, + 96u8, 190u8, 69u8, 124u8, 158u8, 124u8, 187u8, + 164u8, 223u8, 89u8, 209u8, 84u8, 106u8, 127u8, + 85u8, 202u8, 130u8, 7u8, 250u8, 163u8, 99u8, 209u8, + 225u8, 25u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "DisabledValidators", + vec![], + [ + 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, + 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, + 31u8, 20u8, 242u8, 73u8, 104u8, 11u8, 110u8, 214u8, + 34u8, 52u8, 217u8, 106u8, 33u8, 174u8, 174u8, + 198u8, 84u8, + ], + ) + } + #[doc = " The next session keys for a validator."] + pub fn next_keys( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_standalone_runtime::SessionKeys, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 66u8 , 207u8 , 19u8 , 247u8 , 26u8 , 110u8 , 116u8 , 209u8 , 77u8 , 141u8 , 64u8 , 128u8 , 214u8 , 71u8 , 104u8 , 56u8 , 117u8 , 10u8 , 162u8 , 166u8 , 137u8 , 33u8 , 98u8 , 110u8 , 31u8 , 161u8 , 116u8 , 207u8 , 46u8 , 82u8 , 64u8 ,]) + } + #[doc = " The next session keys for a validator."] + pub fn next_keys_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_standalone_runtime::SessionKeys, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "NextKeys", + Vec::new(), + [ + 246u8, 66u8, 207u8, 19u8, 247u8, 26u8, 110u8, + 116u8, 209u8, 77u8, 141u8, 64u8, 128u8, 214u8, + 71u8, 104u8, 56u8, 117u8, 10u8, 162u8, 166u8, + 137u8, 33u8, 98u8, 110u8, 31u8, 161u8, 116u8, + 207u8, 46u8, 82u8, 64u8, + ], + ) + } + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::sp_core::crypto::KeyTypeId, + >, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) + } + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "KeyOwner", + Vec::new(), + [ + 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, + 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, + 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, 0u8, + 148u8, 203u8, 144u8, 149u8, 64u8, 135u8, 254u8, + 242u8, 215u8, + ], + ) + } + } + } + } + pub mod democracy { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_democracy::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_democracy::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Propose { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , # [codec (compact)] pub value : :: core :: primitive :: u128 , } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Second { + #[codec(compact)] + pub proposal: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Second { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "second"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote { + #[codec(compact)] + pub ref_index: ::core::primitive::u32, + pub vote: + runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct EmergencyCancel { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "emergency_cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExternalPropose { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } + impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExternalProposeMajority { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_majority"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExternalProposeDefault { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_default"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FastTrack { + pub proposal_hash: ::subxt::utils::H256, + pub voting_period: ::core::primitive::u64, + pub delay: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for FastTrack { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "fast_track"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VetoExternal { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for VetoExternal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "veto_external"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelReferendum { + #[codec(compact)] + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_referendum"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Delegate { + pub to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub conviction: + runtime_types::pallet_democracy::conviction::Conviction, + pub balance: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "delegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Undelegate; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "undelegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClearPublicProposals; + impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "clear_public_proposals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unlock { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "unlock"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveVote { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveOtherVote { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_other_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Blacklist { + pub proposal_hash: ::subxt::utils::H256, + pub maybe_ref_index: + ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for Blacklist { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "blacklist"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelProposal { + #[codec(compact)] + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelProposal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Propose a sensitive action to be taken."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] + #[doc = "have funds to cover the deposit."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the proposal preimage."] + #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] + #[doc = ""] + #[doc = "Emits `Proposed`."] + pub fn propose( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "propose", + types::Propose { proposal, value }, + [ + 123u8, 3u8, 204u8, 140u8, 194u8, 195u8, 214u8, + 39u8, 167u8, 126u8, 45u8, 4u8, 219u8, 17u8, 143u8, + 185u8, 29u8, 224u8, 230u8, 68u8, 253u8, 15u8, + 170u8, 90u8, 232u8, 123u8, 46u8, 255u8, 168u8, + 39u8, 204u8, 63u8, + ], + ) + } + #[doc = "Signals agreement with a particular proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] + #[doc = "must have funds to cover the deposit, equal to the original deposit."] + #[doc = ""] + #[doc = "- `proposal`: The index of the proposal to second."] + pub fn second( + &self, + proposal: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "second", + types::Second { proposal }, + [ + 59u8, 240u8, 183u8, 218u8, 61u8, 93u8, 184u8, 67u8, + 10u8, 4u8, 138u8, 196u8, 168u8, 49u8, 42u8, 69u8, + 154u8, 42u8, 90u8, 112u8, 179u8, 69u8, 51u8, 148u8, + 159u8, 212u8, 221u8, 226u8, 132u8, 228u8, 51u8, + 83u8, + ], + ) + } + #[doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] + #[doc = "- `vote`: The vote configuration."] + pub fn vote( + &self, + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "vote", + types::Vote { ref_index, vote }, + [ + 138u8, 213u8, 229u8, 111u8, 1u8, 191u8, 73u8, 3u8, + 145u8, 28u8, 44u8, 88u8, 163u8, 188u8, 129u8, + 188u8, 64u8, 15u8, 64u8, 103u8, 250u8, 97u8, 234u8, + 188u8, 29u8, 205u8, 51u8, 6u8, 116u8, 58u8, 156u8, + 201u8, + ], + ) + } + #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] + #[doc = ""] + #[doc = "-`ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] + pub fn emergency_cancel( + &self, + ref_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "emergency_cancel", + types::EmergencyCancel { ref_index }, + [ + 139u8, 213u8, 133u8, 75u8, 34u8, 206u8, 124u8, + 245u8, 35u8, 237u8, 132u8, 92u8, 49u8, 167u8, + 117u8, 80u8, 188u8, 93u8, 198u8, 237u8, 132u8, + 77u8, 195u8, 65u8, 29u8, 37u8, 86u8, 74u8, 214u8, + 119u8, 71u8, 204u8, + ], + ) + } + #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + pub fn external_propose( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose", + types::ExternalPropose { proposal }, + [ + 164u8, 193u8, 14u8, 122u8, 105u8, 232u8, 20u8, + 194u8, 99u8, 227u8, 36u8, 105u8, 218u8, 146u8, + 16u8, 208u8, 56u8, 62u8, 100u8, 65u8, 35u8, 33u8, + 51u8, 208u8, 17u8, 43u8, 223u8, 198u8, 202u8, 16u8, + 56u8, 75u8, + ], + ) + } + #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] + #[doc = "an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn external_propose_majority( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_majority", + types::ExternalProposeMajority { proposal }, + [ + 129u8, 124u8, 147u8, 253u8, 69u8, 115u8, 230u8, + 186u8, 155u8, 4u8, 220u8, 103u8, 28u8, 132u8, + 115u8, 153u8, 196u8, 88u8, 9u8, 130u8, 129u8, + 234u8, 75u8, 96u8, 202u8, 216u8, 145u8, 189u8, + 231u8, 101u8, 127u8, 11u8, + ], + ) + } + #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] + #[doc = "schedule an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn external_propose_default( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_default", + types::ExternalProposeDefault { proposal }, + [ + 96u8, 15u8, 108u8, 208u8, 141u8, 247u8, 4u8, 73u8, + 2u8, 30u8, 231u8, 40u8, 184u8, 250u8, 42u8, 161u8, + 248u8, 45u8, 217u8, 50u8, 53u8, 13u8, 181u8, 214u8, + 136u8, 51u8, 93u8, 95u8, 165u8, 3u8, 83u8, 190u8, + ], + ) + } + #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] + #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] + #[doc = "but it is not a majority-carries referendum then it fails."] + #[doc = ""] + #[doc = "The dispatch of this call must be `FastTrackOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the current external proposal."] + #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] + #[doc = "\tMust be always greater than zero."] + #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] + #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] + #[doc = " enacted. This doesn't have a minimum amount."] + #[doc = ""] + #[doc = "Emits `Started`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn fast_track( + &self, + proposal_hash: ::subxt::utils::H256, + voting_period: ::core::primitive::u64, + delay: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "fast_track", + types::FastTrack { + proposal_hash, + voting_period, + delay, + }, + [ + 218u8, 196u8, 235u8, 104u8, 184u8, 235u8, 225u8, + 24u8, 15u8, 222u8, 181u8, 159u8, 234u8, 250u8, + 94u8, 9u8, 246u8, 66u8, 121u8, 28u8, 105u8, 185u8, + 225u8, 238u8, 17u8, 187u8, 187u8, 218u8, 193u8, + 188u8, 199u8, 134u8, + ], + ) + } + #[doc = "Veto and blacklist the external proposal hash."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `VetoOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] + #[doc = ""] + #[doc = "Emits `Vetoed`."] + #[doc = ""] + #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + pub fn veto_external( + &self, + proposal_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "veto_external", + types::VetoExternal { proposal_hash }, + [ + 209u8, 18u8, 18u8, 103u8, 186u8, 160u8, 214u8, + 124u8, 150u8, 207u8, 112u8, 90u8, 84u8, 197u8, + 95u8, 157u8, 165u8, 65u8, 109u8, 101u8, 75u8, + 201u8, 41u8, 149u8, 75u8, 154u8, 37u8, 178u8, + 239u8, 121u8, 124u8, 23u8, + ], + ) + } + #[doc = "Remove a referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "# Weight: `O(1)`."] + pub fn cancel_referendum( + &self, + ref_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_referendum", + types::CancelReferendum { ref_index }, + [ + 51u8, 25u8, 25u8, 251u8, 236u8, 115u8, 130u8, + 230u8, 72u8, 186u8, 119u8, 71u8, 165u8, 137u8, + 55u8, 167u8, 187u8, 128u8, 55u8, 8u8, 212u8, 139u8, + 245u8, 232u8, 103u8, 136u8, 229u8, 113u8, 125u8, + 36u8, 1u8, 149u8, + ], + ) + } + #[doc = "Delegate the voting power (with some given conviction) of the sending account."] + #[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/consolidated"] + #[doc = " through `reap_vote` or `unvote`)."] + #[doc = ""] + #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] + #[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 referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] + pub fn delegate( + &self, + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + conviction : runtime_types :: pallet_democracy :: conviction :: Conviction, + balance: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "delegate", + types::Delegate { + to, + conviction, + balance, + }, + [ + 247u8, 226u8, 242u8, 221u8, 47u8, 161u8, 91u8, + 223u8, 6u8, 79u8, 238u8, 205u8, 41u8, 188u8, 140u8, + 56u8, 181u8, 248u8, 102u8, 10u8, 127u8, 166u8, + 90u8, 187u8, 13u8, 124u8, 209u8, 117u8, 16u8, + 209u8, 74u8, 29u8, + ], + ) + } + #[doc = "Undelegate the voting power of the sending account."] + #[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."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] + #[doc = "currently delegating."] + #[doc = ""] + #[doc = "Emits `Undelegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] + pub fn undelegate( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "undelegate", + types::Undelegate {}, + [ + 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, + 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, + 155u8, 44u8, 245u8, 28u8, 220u8, 56u8, 134u8, 43u8, + 122u8, 248u8, 156u8, 191u8, 154u8, 4u8, 121u8, + 152u8, 153u8, + ], + ) + } + #[doc = "Clears all public proposals."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] + pub fn clear_public_proposals( + &self, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "clear_public_proposals", + types::ClearPublicProposals {}, + [ + 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, + 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, + 12u8, 141u8, 243u8, 197u8, 46u8, 130u8, 215u8, + 196u8, 225u8, 88u8, 48u8, 199u8, 231u8, 249u8, + 195u8, 53u8, 184u8, 204u8, + ], + ) + } + #[doc = "Unlock tokens that have an expired lock."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[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, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "unlock", + types::Unlock { target }, + [ + 227u8, 6u8, 154u8, 150u8, 253u8, 167u8, 142u8, 6u8, + 147u8, 24u8, 124u8, 51u8, 101u8, 185u8, 184u8, + 170u8, 6u8, 223u8, 29u8, 167u8, 73u8, 31u8, 179u8, + 60u8, 156u8, 244u8, 192u8, 233u8, 79u8, 99u8, + 248u8, 126u8, + ], + ) + } + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If:"] + #[doc = "- the referendum was cancelled, or"] + #[doc = "- the referendum is ongoing, or"] + #[doc = "- the referendum 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 referendum 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 referendum `index`."] + #[doc = ""] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] + pub fn remove_vote( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_vote", + types::RemoveVote { index }, + [ + 148u8, 120u8, 14u8, 172u8, 81u8, 152u8, 159u8, + 178u8, 106u8, 244u8, 36u8, 98u8, 120u8, 189u8, + 213u8, 93u8, 119u8, 156u8, 112u8, 34u8, 241u8, + 72u8, 206u8, 113u8, 212u8, 161u8, 164u8, 126u8, + 122u8, 82u8, 160u8, 74u8, + ], + ) + } + #[doc = "Remove a vote for a referendum."] + #[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 referendum was cancelled, because the voter lost the referendum 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"] + #[doc = " referendum `index`."] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] + pub fn remove_other_vote( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_other_vote", + types::RemoveOtherVote { target, index }, + [ + 251u8, 245u8, 79u8, 229u8, 3u8, 107u8, 66u8, 202u8, + 148u8, 31u8, 6u8, 236u8, 156u8, 202u8, 197u8, + 107u8, 100u8, 60u8, 255u8, 213u8, 222u8, 209u8, + 249u8, 61u8, 209u8, 215u8, 82u8, 73u8, 25u8, 73u8, + 161u8, 24u8, + ], + ) + } + #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] + #[doc = "proposed again."] + #[doc = ""] + #[doc = "If called on a queued public or external proposal, then this will result in it being"] + #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] + #[doc = "then it will be cancelled."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] + #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] + #[doc = "cancelled."] + #[doc = ""] + #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] + #[doc = " reasonable value)."] + pub fn blacklist( + &self, + proposal_hash: ::subxt::utils::H256, + maybe_ref_index: ::core::option::Option< + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "blacklist", + types::Blacklist { + proposal_hash, + maybe_ref_index, + }, + [ + 48u8, 144u8, 81u8, 164u8, 54u8, 111u8, 197u8, + 134u8, 6u8, 98u8, 121u8, 179u8, 254u8, 191u8, + 204u8, 212u8, 84u8, 255u8, 86u8, 110u8, 225u8, + 130u8, 26u8, 65u8, 133u8, 56u8, 231u8, 15u8, 245u8, + 137u8, 146u8, 242u8, + ], + ) + } + #[doc = "Remove a proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] + #[doc = ""] + #[doc = "- `prop_index`: The index of the proposal to cancel."] + #[doc = ""] + #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + pub fn cancel_proposal( + &self, + prop_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_proposal", + types::CancelProposal { prop_index }, + [ + 179u8, 3u8, 198u8, 244u8, 241u8, 124u8, 205u8, + 58u8, 100u8, 80u8, 177u8, 254u8, 98u8, 220u8, + 189u8, 63u8, 229u8, 60u8, 157u8, 83u8, 142u8, 6u8, + 236u8, 183u8, 193u8, 235u8, 253u8, 126u8, 153u8, + 185u8, 74u8, 117u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_democracy::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion has been proposed by a public account."] + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A public proposal has been tabled for referendum vote."] + pub struct Tabled { + pub proposal_index: ::core::primitive::u32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Tabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Tabled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An external proposal has been tabled."] + pub struct ExternalTabled; + impl ::subxt::events::StaticEvent for ExternalTabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ExternalTabled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has begun."] + pub struct Started { pub ref_index : :: core :: primitive :: u32 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } + impl ::subxt::events::StaticEvent for Started { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Started"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been approved by referendum."] + pub struct Passed { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Passed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Passed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been rejected by referendum."] + pub struct NotPassed { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NotPassed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "NotPassed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has delegated their vote to another account."] + pub struct Delegated { + pub who: ::subxt::utils::AccountId32, + pub target: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Delegated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has cancelled a previous delegation operation."] + pub struct Undelegated { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Undelegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Undelegated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An external proposal has been vetoed."] + pub struct Vetoed { + pub who: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, + pub until: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for Vetoed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Vetoed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal_hash has been blacklisted permanently."] + pub struct Blacklisted { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Blacklisted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Blacklisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has voted in a referendum"] + pub struct Voted { + pub voter: ::subxt::utils::AccountId32, + pub ref_index: ::core::primitive::u32, + pub vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has secconded a proposal"] + pub struct Seconded { + pub seconder: ::subxt::utils::AccountId32, + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Seconded { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Seconded"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal got canceled."] + pub struct ProposalCanceled { + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalCanceled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ProposalCanceled"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The number of (public) proposals that have been made so far."] + pub fn public_prop_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicPropCount", + vec![], + [ + 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, + 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, + 159u8, 9u8, 174u8, 74u8, 174u8, 218u8, 197u8, 23u8, + 235u8, 152u8, 226u8, 216u8, 4u8, 120u8, 121u8, + 27u8, 138u8, + ], + ) + } + #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: subxt :: utils :: AccountId32 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicProps", + vec![], + [ + 63u8, 172u8, 211u8, 85u8, 27u8, 14u8, 86u8, 49u8, + 133u8, 5u8, 132u8, 189u8, 138u8, 137u8, 219u8, + 37u8, 209u8, 49u8, 172u8, 86u8, 240u8, 235u8, 42u8, + 201u8, 203u8, 12u8, 122u8, 225u8, 0u8, 109u8, + 205u8, 103u8, + ], + ) + } + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "DepositOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [9u8 , 219u8 , 11u8 , 58u8 , 17u8 , 194u8 , 248u8 , 154u8 , 135u8 , 119u8 , 123u8 , 235u8 , 252u8 , 176u8 , 190u8 , 162u8 , 236u8 , 45u8 , 237u8 , 125u8 , 98u8 , 176u8 , 184u8 , 160u8 , 8u8 , 181u8 , 213u8 , 65u8 , 14u8 , 84u8 , 200u8 , 64u8 ,]) + } + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "DepositOf", + Vec::new(), + [ + 9u8, 219u8, 11u8, 58u8, 17u8, 194u8, 248u8, 154u8, + 135u8, 119u8, 123u8, 235u8, 252u8, 176u8, 190u8, + 162u8, 236u8, 45u8, 237u8, 125u8, 98u8, 176u8, + 184u8, 160u8, 8u8, 181u8, 213u8, 65u8, 14u8, 84u8, + 200u8, 64u8, + ], + ) + } + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumCount", + vec![], + [ + 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, + 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, + 119u8, 137u8, 11u8, 240u8, 160u8, 151u8, 248u8, + 229u8, 231u8, 89u8, 222u8, 18u8, 237u8, 144u8, + 78u8, 99u8, 58u8, + ], + ) + } + #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] + #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] + pub fn lowest_unbaked( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LowestUnbaked", + vec![], + [ + 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, + 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, + 128u8, 27u8, 165u8, 164u8, 111u8, 22u8, 209u8, + 190u8, 103u8, 7u8, 116u8, 16u8, 160u8, 144u8, + 123u8, 64u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u64 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "ReferendumInfoOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [94u8 , 203u8 , 193u8 , 49u8 , 4u8 , 227u8 , 47u8 , 82u8 , 168u8 , 56u8 , 163u8 , 93u8 , 81u8 , 20u8 , 166u8 , 135u8 , 170u8 , 24u8 , 12u8 , 249u8 , 92u8 , 250u8 , 116u8 , 78u8 , 23u8 , 124u8 , 195u8 , 98u8 , 211u8 , 246u8 , 53u8 , 40u8 ,]) + } + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u64 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumInfoOf", + Vec::new(), + [ + 94u8, 203u8, 193u8, 49u8, 4u8, 227u8, 47u8, 82u8, + 168u8, 56u8, 163u8, 93u8, 81u8, 20u8, 166u8, 135u8, + 170u8, 24u8, 12u8, 249u8, 92u8, 250u8, 116u8, 78u8, + 23u8, 124u8, 195u8, 98u8, 211u8, 246u8, 53u8, 40u8, + ], + ) + } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] + pub fn voting_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "VotingOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [118u8 , 188u8 , 170u8 , 219u8 , 109u8 , 160u8 , 36u8 , 230u8 , 218u8 , 155u8 , 18u8 , 14u8 , 48u8 , 186u8 , 156u8 , 67u8 , 109u8 , 252u8 , 136u8 , 183u8 , 251u8 , 230u8 , 12u8 , 178u8 , 117u8 , 187u8 , 68u8 , 28u8 , 103u8 , 242u8 , 39u8 , 32u8 ,]) + } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] + pub fn voting_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "VotingOf", + Vec::new(), + [ + 118u8, 188u8, 170u8, 219u8, 109u8, 160u8, 36u8, + 230u8, 218u8, 155u8, 18u8, 14u8, 48u8, 186u8, + 156u8, 67u8, 109u8, 252u8, 136u8, 183u8, 251u8, + 230u8, 12u8, 178u8, 117u8, 187u8, 68u8, 28u8, + 103u8, 242u8, 39u8, 32u8, + ], + ) + } + #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] + #[doc = " proposal."] + pub fn last_tabled_was_external( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LastTabledWasExternal", + vec![], + [ + 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, + 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, + 222u8, 82u8, 31u8, 223u8, 144u8, 169u8, 17u8, 6u8, + 138u8, 36u8, 113u8, 155u8, 241u8, 106u8, 189u8, + 218u8, + ], + ) + } + #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] + #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] + #[doc = " - `LastTabledWasExternal` is `false`; or"] + #[doc = " - `PublicProps` is empty."] pub fn next_external (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold ,) , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "NextExternal", + vec![], + [ + 213u8, 36u8, 235u8, 75u8, 153u8, 33u8, 140u8, + 121u8, 191u8, 197u8, 17u8, 57u8, 234u8, 67u8, 81u8, + 55u8, 123u8, 179u8, 207u8, 124u8, 238u8, 147u8, + 243u8, 126u8, 200u8, 2u8, 16u8, 143u8, 165u8, + 143u8, 159u8, 93u8, + ], + ) + } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "Blacklist" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [192u8 , 184u8 , 27u8 , 16u8 , 2u8 , 4u8 , 108u8 , 221u8 , 26u8 , 111u8 , 9u8 , 54u8 , 154u8 , 26u8 , 229u8 , 103u8 , 214u8 , 118u8 , 52u8 , 62u8 , 200u8 , 80u8 , 16u8 , 83u8 , 168u8 , 110u8 , 85u8 , 46u8 , 94u8 , 40u8 , 209u8 , 21u8 ,]) + } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "Blacklist", + Vec::new(), + [ + 192u8, 184u8, 27u8, 16u8, 2u8, 4u8, 108u8, 221u8, + 26u8, 111u8, 9u8, 54u8, 154u8, 26u8, 229u8, 103u8, + 214u8, 118u8, 52u8, 62u8, 200u8, 80u8, 16u8, 83u8, + 168u8, 110u8, 85u8, 46u8, 94u8, 40u8, 209u8, 21u8, + ], + ) + } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] + pub fn cancellations( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "Cancellations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [154u8 , 36u8 , 172u8 , 46u8 , 65u8 , 218u8 , 30u8 , 151u8 , 173u8 , 186u8 , 166u8 , 79u8 , 35u8 , 226u8 , 94u8 , 200u8 , 67u8 , 44u8 , 47u8 , 7u8 , 17u8 , 89u8 , 169u8 , 166u8 , 236u8 , 101u8 , 68u8 , 54u8 , 114u8 , 141u8 , 177u8 , 135u8 ,]) + } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] + pub fn cancellations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Cancellations", + Vec::new(), + [ + 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, + 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, + 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, + 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, + 177u8, 135u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The period between a proposal being approved and enacted."] + #[doc = ""] + #[doc = " It should generally be a little more than the unstake period to ensure that"] + #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] + #[doc = " where they are on the losing side of a vote."] + pub fn enactment_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 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 = " How often (in blocks) new public referenda are launched."] + pub fn launch_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 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 = " How often (in blocks) to check for new votes."] + pub fn voting_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 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 minimum period of vote locking."] + #[doc = ""] + #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] + #[doc = " those successful voters are locked into the consequences that their votes entail."] + pub fn vote_locking_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 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 minimum amount to be used as a deposit for a public referendum proposal."] + pub fn minimum_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] + #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] + #[doc = " as an upgrade having happened recently."] + pub fn instant_allowed( + &self, + ) -> ::subxt::constants::Address<::core::primitive::bool> + { + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, + 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, + 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, + 115u8, 102u8, 131u8, + ], + ) + } + #[doc = " Minimum voting period allowed for a fast-track referendum."] + pub fn fast_track_voting_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 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 = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] + pub fn cooloff_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 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 maximum number of votes for an account."] + #[doc = ""] + #[doc = " Also used to compute weight, an overly big value can"] + #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] + pub fn max_votes( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of public proposals that can exist at any time."] + pub fn max_proposals( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of deposits a public proposal may have at any time."] + pub fn max_deposits( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of items which can be blacklisted."] + pub fn max_blacklisted( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod council { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_collective::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_collective::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMembers { + pub new_members: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub prime: + ::core::option::Option<::subxt::utils::AccountId32>, + pub old_count: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMembers { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "set_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Execute { + pub proposal: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Execute { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "execute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Propose { + #[codec(compact)] + pub threshold: ::core::primitive::u32, + pub proposal: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote { + pub proposal: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + pub approve: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CloseOldWeight { + pub proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + #[codec(compact)] + pub proposal_weight_bound: + runtime_types::sp_weights::OldWeight, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseOldWeight { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "close_old_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DisapproveProposal { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "disapprove_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Close { + pub proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + pub proposal_weight_bound: + runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "close"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "Requires root origin."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] + #[doc = " members"] + #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] + #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] + #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] + #[doc = "# "] + pub fn set_members( + &self, + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "set_members", + types::SetMembers { + new_members, + prime, + old_count, + }, + [ + 196u8, 103u8, 123u8, 125u8, 226u8, 177u8, 126u8, + 37u8, 160u8, 114u8, 34u8, 136u8, 219u8, 84u8, + 199u8, 94u8, 242u8, 20u8, 126u8, 126u8, 166u8, + 190u8, 198u8, 33u8, 162u8, 113u8, 237u8, 222u8, + 90u8, 1u8, 2u8, 234u8, + ], + ) + } + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] + #[doc = " `proposal`"] + #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] + #[doc = "- 1 event"] + #[doc = "# "] + pub fn execute( + &self, + proposal : runtime_types :: webb_standalone_runtime :: RuntimeCall, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "execute", + types::Execute { + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 135u8, 21u8, 244u8, 77u8, 180u8, 129u8, 207u8, + 136u8, 166u8, 143u8, 162u8, 157u8, 57u8, 145u8, + 0u8, 145u8, 122u8, 19u8, 28u8, 114u8, 47u8, 175u8, + 174u8, 110u8, 206u8, 131u8, 125u8, 178u8, 197u8, + 43u8, 229u8, 130u8, + ], + ) + } + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] + #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] + #[doc = " - DB accesses influenced by `threshold`:"] + #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] + #[doc = " - OR proposal insertion (`threshold <= 2`)"] + #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] + #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] + #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] + #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] + #[doc = " - 1 event"] + #[doc = "# "] + pub fn propose( + &self, + threshold: ::core::primitive::u32, + proposal : runtime_types :: webb_standalone_runtime :: RuntimeCall, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 86u8, 219u8, 60u8, 141u8, 103u8, 84u8, 223u8, 12u8, + 73u8, 246u8, 226u8, 127u8, 110u8, 177u8, 193u8, + 22u8, 111u8, 72u8, 190u8, 47u8, 205u8, 102u8, + 103u8, 39u8, 175u8, 145u8, 170u8, 132u8, 43u8, + 137u8, 139u8, 110u8, + ], + ) + } + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `Members` (codec `O(M)`)"] + #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] + #[doc = "- 1 event"] + #[doc = "# "] + pub fn vote( + &self, + proposal: ::subxt::utils::H256, + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "vote", + types::Vote { + proposal, + index, + approve, + }, + [ + 108u8, 46u8, 180u8, 148u8, 145u8, 24u8, 173u8, + 56u8, 36u8, 100u8, 216u8, 43u8, 178u8, 202u8, 26u8, + 136u8, 93u8, 84u8, 80u8, 134u8, 14u8, 42u8, 248u8, + 205u8, 68u8, 92u8, 79u8, 11u8, 113u8, 115u8, 157u8, + 100u8, + ], + ) + } + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] + pub fn close_old_weight( + &self, + proposal_hash: ::subxt::utils::H256, + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::OldWeight, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Council", + "close_old_weight", + types::CloseOldWeight { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 133u8, 219u8, 90u8, 40u8, 102u8, 95u8, 4u8, 199u8, + 45u8, 234u8, 109u8, 17u8, 162u8, 63u8, 102u8, + 186u8, 95u8, 182u8, 13u8, 123u8, 227u8, 20u8, + 186u8, 207u8, 12u8, 47u8, 87u8, 252u8, 244u8, + 172u8, 60u8, 206u8, + ], + ) + } + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "# "] + #[doc = "Complexity: O(P) where P is the number of max proposals"] + #[doc = "DB Weight:"] + #[doc = "* Reads: Proposals"] + #[doc = "* Writes: Voting, Proposals, ProposalOf"] + #[doc = "# "] + pub fn disapprove_proposal( + &self, + proposal_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Council", + "disapprove_proposal", + types::DisapproveProposal { proposal_hash }, + [ + 25u8, 123u8, 1u8, 8u8, 74u8, 37u8, 3u8, 40u8, 97u8, + 37u8, 175u8, 224u8, 72u8, 155u8, 123u8, 109u8, + 104u8, 43u8, 91u8, 125u8, 199u8, 51u8, 17u8, 225u8, + 133u8, 38u8, 120u8, 76u8, 164u8, 5u8, 194u8, 201u8, + ], + ) + } + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] + pub fn close( + &self, + proposal_hash: ::subxt::utils::H256, + index: ::core::primitive::u32, + proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "close", + types::Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 191u8, 138u8, 89u8, 247u8, 97u8, 51u8, 45u8, 193u8, + 76u8, 16u8, 80u8, 225u8, 197u8, 83u8, 204u8, 133u8, + 169u8, 16u8, 86u8, 32u8, 125u8, 16u8, 116u8, 185u8, + 45u8, 20u8, 76u8, 148u8, 206u8, 163u8, 154u8, 30u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_collective::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + pub struct Proposed { + pub account: ::subxt::utils::AccountId32, + pub proposal_index: ::core::primitive::u32, + pub proposal_hash: ::subxt::utils::H256, + pub threshold: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + pub struct Voted { + pub account: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, + pub voted: ::core::primitive::bool, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was approved by the required threshold."] + pub struct Approved { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was not approved by the required threshold."] + pub struct Disapproved { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Disapproved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Disapproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + pub struct Executed { + pub proposal_hash: ::subxt::utils::H256, + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Executed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + pub struct MemberExecuted { + pub proposal_hash: ::subxt::utils::H256, + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for MemberExecuted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + pub struct Closed { + pub proposal_hash: ::subxt::utils::H256, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Closed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Closed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The hashes of the active proposals."] + pub fn proposals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Proposals", + vec![], + [ + 10u8, 133u8, 82u8, 54u8, 193u8, 41u8, 253u8, 159u8, + 56u8, 96u8, 249u8, 148u8, 43u8, 57u8, 116u8, 43u8, + 222u8, 243u8, 237u8, 231u8, 238u8, 60u8, 26u8, + 225u8, 19u8, 203u8, 213u8, 220u8, 114u8, 217u8, + 100u8, 27u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_standalone_runtime::RuntimeCall, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Council" , "ProposalOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [198u8 , 221u8 , 114u8 , 185u8 , 204u8 , 98u8 , 201u8 , 99u8 , 182u8 , 174u8 , 168u8 , 91u8 , 132u8 , 181u8 , 202u8 , 126u8 , 217u8 , 150u8 , 60u8 , 14u8 , 77u8 , 34u8 , 145u8 , 182u8 , 46u8 , 135u8 , 116u8 , 143u8 , 158u8 , 175u8 , 157u8 , 105u8 ,]) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_standalone_runtime::RuntimeCall, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalOf", + Vec::new(), + [ + 198u8, 221u8, 114u8, 185u8, 204u8, 98u8, 201u8, + 99u8, 182u8, 174u8, 168u8, 91u8, 132u8, 181u8, + 202u8, 126u8, 217u8, 150u8, 60u8, 14u8, 77u8, 34u8, + 145u8, 182u8, 46u8, 135u8, 116u8, 143u8, 158u8, + 175u8, 157u8, 105u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Council" , "Voting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [196u8 , 125u8 , 235u8 , 241u8 , 133u8 , 204u8 , 38u8 , 98u8 , 47u8 , 247u8 , 147u8 , 35u8 , 182u8 , 90u8 , 54u8 , 9u8 , 221u8 , 16u8 , 75u8 , 55u8 , 249u8 , 186u8 , 3u8 , 160u8 , 54u8 , 217u8 , 3u8 , 59u8 , 216u8 , 249u8 , 254u8 , 86u8 ,]) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Voting", + Vec::new(), + [ + 196u8, 125u8, 235u8, 241u8, 133u8, 204u8, 38u8, + 98u8, 47u8, 247u8, 147u8, 35u8, 182u8, 90u8, 54u8, + 9u8, 221u8, 16u8, 75u8, 55u8, 249u8, 186u8, 3u8, + 160u8, 54u8, 217u8, 3u8, 59u8, 216u8, 249u8, 254u8, + 86u8, + ], + ) + } + #[doc = " Proposals so far."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalCount", + vec![], + [ + 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, + 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, + 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, + 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, + 127u8, 160u8, 34u8, 70u8, + ], + ) + } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 162u8, 72u8, 174u8, 204u8, 140u8, 105u8, 205u8, + 176u8, 197u8, 117u8, 206u8, 134u8, 157u8, 110u8, + 139u8, 54u8, 43u8, 233u8, 25u8, 51u8, 36u8, 238u8, + 94u8, 124u8, 221u8, 52u8, 237u8, 71u8, 125u8, 56u8, + 129u8, 222u8, + ], + ) + } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 108u8, 118u8, 54u8, 193u8, 207u8, 227u8, 119u8, + 97u8, 23u8, 239u8, 157u8, 69u8, 56u8, 142u8, 106u8, + 17u8, 215u8, 159u8, 48u8, 42u8, 185u8, 209u8, 49u8, + 159u8, 32u8, 168u8, 111u8, 158u8, 159u8, 217u8, + 244u8, 158u8, + ], + ) + } + } + } + } + pub mod elections { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = + runtime_types::pallet_elections_phragmen::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote { + pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveVoter; + impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_voter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitCandidacy { + #[codec(compact)] + pub candidate_count: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "submit_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RenounceCandidacy { + pub renouncing: + runtime_types::pallet_elections_phragmen::Renouncing, + } + impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "renounce_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveMember { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub slash_bond: ::core::primitive::bool, + pub rerun_election: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CleanDefunctVoters { + pub num_voters: ::core::primitive::u32, + pub num_defunct: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "clean_defunct_voters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] + #[doc = "set the initial votes, or update already existing votes."] + #[doc = ""] + #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] + #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] + #[doc = ""] + #[doc = "The `votes` should:"] + #[doc = " - not be empty."] + #[doc = " - be less than the number of possible candidates. Note that all current members and"] + #[doc = " runners-up are also automatically candidates for the next round."] + #[doc = ""] + #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] + #[doc = "lock and keep some for further operations."] + #[doc = ""] + #[doc = "# "] + #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] + #[doc = "# "] + pub fn vote( + &self, + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "vote", + types::Vote { votes, value }, + [ + 71u8, 90u8, 175u8, 225u8, 51u8, 202u8, 197u8, + 252u8, 183u8, 92u8, 239u8, 83u8, 112u8, 144u8, + 128u8, 211u8, 109u8, 33u8, 252u8, 6u8, 156u8, 15u8, + 91u8, 88u8, 70u8, 19u8, 32u8, 29u8, 224u8, 255u8, + 26u8, 145u8, + ], + ) + } + #[doc = "Remove `origin` as a voter."] + #[doc = ""] + #[doc = "This removes the lock and returns the deposit."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed and be a voter."] + pub fn remove_voter( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_voter", + types::RemoveVoter {}, + [ + 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, + 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, + 161u8, 53u8, 155u8, 130u8, 50u8, 88u8, 149u8, + 255u8, 12u8, 17u8, 85u8, 95u8, 69u8, 153u8, 130u8, + 221u8, 1u8, + ], + ) + } + #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] + #[doc = ""] + #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] + #[doc = "or leave the system while their deposit is slashed."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] + #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] + #[doc = ""] + #[doc = "# "] + #[doc = "The number of current candidates must be provided as witness data."] + #[doc = "# "] + pub fn submit_candidacy( + &self, + candidate_count: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Elections", + "submit_candidacy", + types::SubmitCandidacy { candidate_count }, + [ + 228u8, 63u8, 217u8, 99u8, 128u8, 104u8, 175u8, + 10u8, 30u8, 35u8, 47u8, 14u8, 254u8, 122u8, 146u8, + 239u8, 61u8, 145u8, 82u8, 7u8, 181u8, 98u8, 238u8, + 208u8, 23u8, 84u8, 48u8, 255u8, 177u8, 255u8, 84u8, + 83u8, + ], + ) + } + #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] + #[doc = "outcomes exist:"] + #[doc = ""] + #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] + #[doc = " unreserved, returned and origin is removed as a candidate."] + #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] + #[doc = " origin is removed as a runner-up."] + #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] + #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] + #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] + #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] + #[doc = " next round."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] + #[doc = ""] + #[doc = "# "] + #[doc = "The type of renouncing must be provided as witness data."] + #[doc = "# "] + pub fn renounce_candidacy( + &self, + renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Elections", + "renounce_candidacy", + types::RenounceCandidacy { renouncing }, + [ + 70u8, 72u8, 208u8, 36u8, 80u8, 245u8, 224u8, 75u8, + 60u8, 142u8, 19u8, 49u8, 142u8, 90u8, 14u8, 69u8, + 15u8, 61u8, 170u8, 235u8, 16u8, 252u8, 86u8, 200u8, + 120u8, 127u8, 36u8, 42u8, 143u8, 130u8, 217u8, + 128u8, + ], + ) + } + #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] + #[doc = "the outgoing member is slashed."] + #[doc = ""] + #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] + #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] + #[doc = "started, else, nothing happens."] + #[doc = ""] + #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] + #[doc = "it is returned."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "Note that this does not affect the designated block number of the next election."] + #[doc = ""] + #[doc = "# "] + #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] + #[doc = "will go into phragmen, we assume full block for now."] + #[doc = "# "] + pub fn remove_member( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + slash_bond: ::core::primitive::bool, + rerun_election: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_member", + types::RemoveMember { + who, + slash_bond, + rerun_election, + }, + [ + 178u8, 90u8, 236u8, 184u8, 2u8, 67u8, 51u8, 162u8, + 83u8, 131u8, 242u8, 137u8, 17u8, 243u8, 209u8, + 110u8, 26u8, 238u8, 178u8, 136u8, 84u8, 74u8, + 216u8, 173u8, 221u8, 82u8, 179u8, 218u8, 162u8, + 159u8, 185u8, 59u8, + ], + ) + } + #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] + #[doc = "deposit of the removed voters are returned."] + #[doc = ""] + #[doc = "This is an root function to be used only for cleaning the state."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "# "] + #[doc = "The total number of voters and those that are defunct must be provided as witness data."] + #[doc = "# "] + pub fn clean_defunct_voters( + &self, + num_voters: ::core::primitive::u32, + num_defunct: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Elections", + "clean_defunct_voters", + types::CleanDefunctVoters { + num_voters, + num_defunct, + }, + [ + 198u8, 162u8, 30u8, 249u8, 191u8, 38u8, 141u8, + 123u8, 230u8, 90u8, 213u8, 103u8, 168u8, 28u8, 5u8, + 215u8, 213u8, 152u8, 46u8, 189u8, 238u8, 209u8, + 209u8, 142u8, 159u8, 222u8, 161u8, 26u8, 161u8, + 250u8, 9u8, 100u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_elections_phragmen::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] + pub struct NewTerm { + pub new_members: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + } + impl ::subxt::events::StaticEvent for NewTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "NewTerm"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] + pub struct EmptyTerm; + impl ::subxt::events::StaticEvent for EmptyTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "EmptyTerm"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Internal error happened while trying to perform election."] + pub struct ElectionError; + impl ::subxt::events::StaticEvent for ElectionError { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "ElectionError"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] + pub struct MemberKicked { + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberKicked { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "MemberKicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Someone has renounced their candidacy."] + pub struct Renounced { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Renounced { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "Renounced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] + pub struct CandidateSlashed { + pub candidate: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for CandidateSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "CandidateSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] + pub struct SeatHolderSlashed { + pub seat_holder: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SeatHolderSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "SeatHolderSlashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The current elected members."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Members", + vec![], + [ + 2u8, 182u8, 43u8, 180u8, 87u8, 185u8, 26u8, 79u8, + 196u8, 55u8, 28u8, 26u8, 174u8, 133u8, 158u8, + 221u8, 101u8, 161u8, 83u8, 9u8, 221u8, 175u8, + 221u8, 220u8, 81u8, 80u8, 1u8, 236u8, 74u8, 121u8, + 10u8, 82u8, + ], + ) + } + #[doc = " The current reserved runners-up."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] + #[doc = " last (i.e. _best_) runner-up will be replaced."] + pub fn runners_up( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "RunnersUp", + vec![], + [ + 248u8, 81u8, 190u8, 53u8, 121u8, 49u8, 55u8, 69u8, + 116u8, 177u8, 46u8, 30u8, 131u8, 14u8, 32u8, 198u8, + 10u8, 132u8, 73u8, 117u8, 2u8, 146u8, 188u8, 146u8, + 214u8, 227u8, 97u8, 77u8, 7u8, 131u8, 208u8, 209u8, + ], + ) + } + #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] + #[doc = " and is always implicitly assumed to be a candidate."] + #[doc = ""] + #[doc = " Second element is the deposit."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] + pub fn candidates( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Candidates", + vec![], + [ + 224u8, 107u8, 141u8, 11u8, 54u8, 86u8, 117u8, 45u8, + 195u8, 252u8, 152u8, 21u8, 165u8, 23u8, 198u8, + 117u8, 5u8, 216u8, 183u8, 163u8, 243u8, 56u8, 11u8, + 102u8, 85u8, 107u8, 219u8, 250u8, 45u8, 80u8, + 108u8, 127u8, + ], + ) + } + #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] + pub fn election_rounds( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "ElectionRounds", + vec![], + [ + 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, + 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, + 143u8, 104u8, 253u8, 86u8, 228u8, 68u8, 19u8, + 184u8, 166u8, 214u8, 58u8, 103u8, 176u8, 160u8, + 240u8, 249u8, 117u8, 115u8, + ], + ) + } + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Elections" , "Voting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [9u8 , 135u8 , 76u8 , 194u8 , 240u8 , 182u8 , 111u8 , 207u8 , 102u8 , 37u8 , 126u8 , 36u8 , 84u8 , 112u8 , 26u8 , 216u8 , 175u8 , 5u8 , 14u8 , 189u8 , 83u8 , 185u8 , 136u8 , 39u8 , 171u8 , 221u8 , 147u8 , 20u8 , 168u8 , 126u8 , 111u8 , 137u8 ,]) + } + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] + pub fn voting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Voting", + Vec::new(), + [ + 9u8, 135u8, 76u8, 194u8, 240u8, 182u8, 111u8, + 207u8, 102u8, 37u8, 126u8, 36u8, 84u8, 112u8, 26u8, + 216u8, 175u8, 5u8, 14u8, 189u8, 83u8, 185u8, 136u8, + 39u8, 171u8, 221u8, 147u8, 20u8, 168u8, 126u8, + 111u8, 137u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Identifier for the elections-phragmen pallet's lock"] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> + { + ::subxt::constants::Address::new_static( + "Elections", + "PalletId", + [ + 224u8, 197u8, 247u8, 125u8, 62u8, 180u8, 69u8, + 91u8, 226u8, 36u8, 82u8, 148u8, 70u8, 147u8, 209u8, + 40u8, 210u8, 229u8, 181u8, 191u8, 170u8, 205u8, + 138u8, 97u8, 127u8, 59u8, 124u8, 244u8, 252u8, + 30u8, 213u8, 179u8, + ], + ) + } + #[doc = " How much should be locked up in order to submit one's candidacy."] + pub fn candidacy_bond( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Elections", + "CandidacyBond", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Base deposit associated with voting."] + #[doc = ""] + #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] + #[doc = " creating a gigantic number of votes."] + pub fn voting_bond_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] + pub fn voting_bond_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Number of members to elect."] + pub fn desired_members( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredMembers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of runners_up to keep."] + pub fn desired_runners_up( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredRunnersUp", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How long each seat is kept. This defines the next block number at which an election"] + #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] + #[doc = " be in passive mode."] + pub fn term_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Elections", + "TermDuration", + [ + 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 maximum number of candidates in a phragmen election."] + #[doc = ""] + #[doc = " Warning: The election happens onchain, and this value will determine"] + #[doc = " the size of the election. When this limit is reached no more"] + #[doc = " candidates are accepted in the election."] + pub fn max_candidates( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "MaxCandidates", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of voters to allow in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain."] + #[doc = " When the limit is reached the new voters are ignored."] + pub fn max_voters( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVoters", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod grandpa { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_grandpa::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + >, + pub key_owner_proof: + runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + >, + pub key_owner_proof: + runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct NoteStalled { + pub delay: ::core::primitive::u64, + pub best_finalized_block_number: ::core::primitive::u64, + } + impl ::subxt::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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new( + equivocation_proof, + ), + key_owner_proof, + }, + [ + 99u8, 148u8, 112u8, 118u8, 17u8, 142u8, 167u8, + 162u8, 101u8, 236u8, 46u8, 164u8, 81u8, 182u8, + 18u8, 159u8, 141u8, 43u8, 173u8, 120u8, 28u8, + 168u8, 90u8, 243u8, 108u8, 108u8, 207u8, 156u8, + 162u8, 101u8, 205u8, 181u8, + ], + ) + } + #[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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new( + equivocation_proof, + ), + key_owner_proof, + }, + [ + 205u8, 218u8, 179u8, 128u8, 57u8, 43u8, 124u8, + 211u8, 44u8, 244u8, 200u8, 204u8, 188u8, 106u8, + 114u8, 147u8, 37u8, 240u8, 75u8, 172u8, 175u8, + 94u8, 197u8, 114u8, 53u8, 192u8, 157u8, 87u8, + 108u8, 60u8, 81u8, 198u8, + ], + ) + } + #[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: ::core::primitive::u64, + best_finalized_block_number: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "note_stalled", + types::NoteStalled { + delay, + best_finalized_block_number, + }, + [ + 97u8, 60u8, 121u8, 239u8, 221u8, 126u8, 45u8, + 211u8, 169u8, 129u8, 54u8, 35u8, 65u8, 117u8, + 224u8, 174u8, 189u8, 55u8, 189u8, 91u8, 217u8, + 66u8, 39u8, 52u8, 24u8, 247u8, 108u8, 169u8, 128u8, + 85u8, 43u8, 24u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_grandpa::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New authority set has been applied."] + pub struct NewAuthorities { + pub authority_set: ::std::vec::Vec<( + runtime_types::sp_finality_grandpa::app::Public, + ::core::primitive::u64, + )>, + } + impl ::subxt::events::StaticEvent for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current authority set has been paused."] + pub struct Paused; + impl ::subxt::events::StaticEvent for Paused { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Paused"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current authority set has been resumed."] + pub struct Resumed; + impl ::subxt::events::StaticEvent for Resumed { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " State of the current authority set."] + pub fn state( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredState< + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "State", + vec![], + [ + 254u8, 245u8, 141u8, 149u8, 219u8, 90u8, 110u8, + 106u8, 87u8, 147u8, 144u8, 230u8, 186u8, 178u8, + 183u8, 85u8, 226u8, 100u8, 127u8, 253u8, 71u8, + 245u8, 52u8, 200u8, 13u8, 242u8, 62u8, 222u8, 72u8, + 117u8, 253u8, 231u8, + ], + ) + } + #[doc = " Pending change: (signaled at, scheduled change)."] + pub fn pending_change( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredPendingChange< + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "PendingChange", + vec![], + [ + 145u8, 1u8, 218u8, 98u8, 162u8, 146u8, 154u8, + 117u8, 212u8, 77u8, 20u8, 60u8, 99u8, 165u8, 118u8, + 179u8, 100u8, 222u8, 218u8, 106u8, 200u8, 139u8, + 247u8, 19u8, 215u8, 227u8, 1u8, 190u8, 45u8, 240u8, + 115u8, 44u8, + ], + ) + } + #[doc = " next block number where we can force a change."] + pub fn next_forced( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "NextForced", + vec![], + [ + 129u8, 1u8, 76u8, 115u8, 147u8, 51u8, 231u8, 215u8, + 202u8, 18u8, 5u8, 115u8, 105u8, 172u8, 124u8, 44u8, + 57u8, 152u8, 78u8, 72u8, 125u8, 108u8, 52u8, 83u8, + 37u8, 100u8, 112u8, 115u8, 10u8, 153u8, 83u8, + 251u8, + ], + ) + } + #[doc = " `true` if we are currently stalled."] + pub fn stalled( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u64), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Stalled", + vec![], + [ + 250u8, 88u8, 175u8, 251u8, 162u8, 216u8, 94u8, + 93u8, 238u8, 2u8, 26u8, 67u8, 158u8, 242u8, 168u8, + 120u8, 112u8, 217u8, 191u8, 189u8, 70u8, 158u8, + 122u8, 130u8, 28u8, 205u8, 34u8, 245u8, 45u8, + 178u8, 85u8, 120u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "CurrentSetId", + vec![], + [ + 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, + 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, + 197u8, 157u8, 163u8, 116u8, 36u8, 105u8, 52u8, + 149u8, 244u8, 108u8, 94u8, 109u8, 111u8, 244u8, + 137u8, 7u8, 108u8, + ], + ) + } + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " TWOX-NOTE: `SetId` is not under user control."] + pub fn set_id_session( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) + } + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " TWOX-NOTE: `SetId` is not under user control."] + pub fn set_id_session_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "SetIdSession", + Vec::new(), + [ + 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, + 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, + 123u8, 133u8, 157u8, 15u8, 33u8, 234u8, 108u8, + 13u8, 88u8, 115u8, 254u8, 9u8, 145u8, 199u8, 102u8, + 47u8, 53u8, 134u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max Authorities in use"] + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeSpend { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "propose_spend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RejectProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "reject_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ApproveProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "approve_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Spend { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Spend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveApproval { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "remove_approval"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] + #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] + #[doc = "proposal is awarded."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)"] + #[doc = "- DbReads: `ProposalCount`, `origin account`"] + #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] + #[doc = "# "] + pub fn propose_spend( + &self, + value: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "propose_spend", + types::ProposeSpend { value, beneficiary }, + [ + 124u8, 32u8, 83u8, 127u8, 240u8, 169u8, 3u8, 190u8, + 235u8, 163u8, 23u8, 29u8, 88u8, 242u8, 238u8, + 187u8, 136u8, 75u8, 193u8, 192u8, 239u8, 2u8, 54u8, + 238u8, 147u8, 42u8, 91u8, 14u8, 244u8, 175u8, 41u8, + 14u8, + ], + ) + } + #[doc = "Reject a proposed spend. The original deposit will be slashed."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)"] + #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] + #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] + #[doc = "# "] + pub fn reject_proposal( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Treasury", + "reject_proposal", + types::RejectProposal { proposal_id }, + [ + 106u8, 223u8, 97u8, 22u8, 111u8, 208u8, 128u8, + 26u8, 198u8, 140u8, 118u8, 126u8, 187u8, 51u8, + 193u8, 50u8, 193u8, 68u8, 143u8, 144u8, 34u8, + 132u8, 44u8, 244u8, 105u8, 186u8, 223u8, 234u8, + 17u8, 145u8, 209u8, 145u8, + ], + ) + } + #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::ApproveOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)."] + #[doc = "- DbReads: `Proposals`, `Approvals`"] + #[doc = "- DbWrite: `Approvals`"] + #[doc = "# "] + pub fn approve_proposal( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Treasury", + "approve_proposal", + types::ApproveProposal { proposal_id }, + [ + 164u8, 229u8, 172u8, 98u8, 129u8, 62u8, 84u8, + 128u8, 47u8, 108u8, 33u8, 120u8, 89u8, 79u8, 57u8, + 121u8, 4u8, 197u8, 170u8, 153u8, 156u8, 17u8, 59u8, + 164u8, 123u8, 227u8, 175u8, 195u8, 220u8, 160u8, + 60u8, 186u8, + ], + ) + } + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + pub fn spend( + &self, + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "spend", + types::Spend { + amount, + beneficiary, + }, + [ + 208u8, 79u8, 96u8, 218u8, 205u8, 209u8, 165u8, + 119u8, 92u8, 208u8, 54u8, 168u8, 83u8, 190u8, 98u8, + 97u8, 6u8, 2u8, 35u8, 249u8, 18u8, 88u8, 193u8, + 51u8, 130u8, 33u8, 28u8, 99u8, 49u8, 194u8, 34u8, + 77u8, + ], + ) + } + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = "- `proposal_id`: The index of a proposal"] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(A) where `A` is the number of approvals"] + #[doc = "- Db reads and writes: `Approvals`"] + #[doc = "# "] + #[doc = ""] + #[doc = "Errors:"] + #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] + #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] + #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + pub fn remove_approval( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Treasury", + "remove_approval", + types::RemoveApproval { proposal_id }, + [ + 133u8, 126u8, 181u8, 47u8, 196u8, 243u8, 7u8, 46u8, + 25u8, 251u8, 154u8, 125u8, 217u8, 77u8, 54u8, + 245u8, 240u8, 180u8, 97u8, 34u8, 186u8, 53u8, + 225u8, 144u8, 155u8, 107u8, 172u8, 54u8, 250u8, + 184u8, 178u8, 86u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_treasury::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New proposal."] + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "We have ended a spend period and will now allocate funds."] + pub struct Spending { + pub budget_remaining: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Spending { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been allocated."] + pub struct Awarded { + pub proposal_index: ::core::primitive::u32, + pub award: ::core::primitive::u128, + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was rejected; funds were slashed."] + pub struct Rejected { + pub proposal_index: ::core::primitive::u32, + pub slashed: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rejected"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some of our funds have been burnt."] + pub struct Burnt { + pub burnt_funds: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Burnt { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Burnt"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] + pub struct Rollover { + pub rollover_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rollover { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rollover"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been deposited."] + pub struct Deposit { + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new spend proposal has been approved."] + pub struct SpendApproved { + pub proposal_index: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for SpendApproved { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "SpendApproved"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of proposals that have been made."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "ProposalCount", + vec![], + [ + 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, + 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, + 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, + 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, + 127u8, 160u8, 34u8, 70u8, + ], + ) + } + #[doc = " Proposals that have been made."] + pub fn proposals( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Treasury" , "Proposals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [62u8 , 223u8 , 55u8 , 209u8 , 151u8 , 134u8 , 122u8 , 65u8 , 207u8 , 38u8 , 113u8 , 213u8 , 237u8 , 48u8 , 129u8 , 32u8 , 91u8 , 228u8 , 108u8 , 91u8 , 37u8 , 49u8 , 94u8 , 4u8 , 75u8 , 122u8 , 25u8 , 34u8 , 198u8 , 224u8 , 246u8 , 160u8 ,]) + } + #[doc = " Proposals that have been made."] + pub fn proposals_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Proposals", + Vec::new(), + [ + 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, + 65u8, 207u8, 38u8, 113u8, 213u8, 237u8, 48u8, + 129u8, 32u8, 91u8, 228u8, 108u8, 91u8, 37u8, 49u8, + 94u8, 4u8, 75u8, 122u8, 25u8, 34u8, 198u8, 224u8, + 246u8, 160u8, + ], + ) + } + #[doc = " The amount which has been reported as inactive to Currency."] + pub fn inactive( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Inactive", + vec![], + [ + 240u8, 100u8, 242u8, 40u8, 169u8, 252u8, 255u8, + 248u8, 66u8, 157u8, 165u8, 206u8, 229u8, 145u8, + 80u8, 73u8, 237u8, 44u8, 72u8, 76u8, 101u8, 215u8, + 87u8, 33u8, 252u8, 224u8, 54u8, 138u8, 79u8, 99u8, + 225u8, 34u8, + ], + ) + } + #[doc = " Proposal indices that have been approved but not yet awarded."] + pub fn approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Approvals", + vec![], + [ + 202u8, 106u8, 189u8, 40u8, 127u8, 172u8, 108u8, + 50u8, 193u8, 4u8, 248u8, 226u8, 176u8, 101u8, + 212u8, 222u8, 64u8, 206u8, 244u8, 175u8, 111u8, + 106u8, 86u8, 96u8, 19u8, 109u8, 218u8, 152u8, 30u8, + 59u8, 96u8, 1u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] + #[doc = " An accepted proposal gets these back. A rejected proposal does not."] + pub fn proposal_bond( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 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 amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_maximum( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option<::core::primitive::u128>, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, + 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, + 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, + 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, + 122u8, 60u8, 216u8, + ], + ) + } + #[doc = " Period between successive spends."] + pub fn spend_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Treasury", + "SpendPeriod", + [ + 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 = " Percentage of spare funds (if any) that are burnt per spend period."] + pub fn burn( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + pub mod utility { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_utility::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_utility::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Batch { + pub calls: ::std::vec::Vec< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Batch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AsDerivative { + pub index: ::core::primitive::u16, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AsDerivative { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BatchAll { + pub calls: ::std::vec::Vec< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BatchAll { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DispatchAs { + pub as_origin: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::OriginCaller, + >, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for DispatchAs { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceBatch { + pub calls: ::std::vec::Vec< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ForceBatch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithWeight { + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for WithWeight { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "with_weight"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "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 = "# "] + #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] + #[doc = "# "] + #[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: ::std::vec::Vec< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 215u8, 150u8, 64u8, 23u8, 122u8, 70u8, 186u8, + 155u8, 163u8, 17u8, 217u8, 118u8, 138u8, 30u8, + 131u8, 111u8, 77u8, 96u8, 218u8, 192u8, 177u8, + 91u8, 202u8, 133u8, 64u8, 131u8, 16u8, 167u8, + 112u8, 119u8, 44u8, 255u8, + ], + ) + } + #[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: ::core::primitive::u16, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "as_derivative", + types::AsDerivative { + index, + call: ::std::boxed::Box::new(call), + }, + [ + 75u8, 241u8, 19u8, 140u8, 143u8, 49u8, 63u8, 45u8, + 19u8, 187u8, 227u8, 244u8, 174u8, 20u8, 253u8, + 141u8, 244u8, 110u8, 157u8, 254u8, 184u8, 37u8, + 20u8, 230u8, 215u8, 137u8, 43u8, 182u8, 172u8, + 202u8, 137u8, 66u8, + ], + ) + } + #[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 = "# "] + #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] + #[doc = "# "] + pub fn batch_all( + &self, + calls: ::std::vec::Vec< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch_all", + types::BatchAll { calls }, + [ + 248u8, 176u8, 108u8, 110u8, 211u8, 188u8, 52u8, + 248u8, 254u8, 134u8, 160u8, 63u8, 180u8, 119u8, + 68u8, 154u8, 243u8, 219u8, 178u8, 51u8, 205u8, + 242u8, 248u8, 132u8, 245u8, 9u8, 83u8, 190u8, 66u8, + 125u8, 82u8, 39u8, + ], + ) + } + #[doc = "Dispatches a function call with a provided origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] + #[doc = "# "] + pub fn dispatch_as( + &self, + as_origin : runtime_types :: webb_standalone_runtime :: OriginCaller, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "dispatch_as", + types::DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), + }, + [ + 199u8, 23u8, 79u8, 111u8, 23u8, 245u8, 43u8, 244u8, + 198u8, 33u8, 217u8, 114u8, 135u8, 198u8, 37u8, + 71u8, 201u8, 142u8, 27u8, 192u8, 28u8, 249u8, 95u8, + 18u8, 41u8, 47u8, 200u8, 34u8, 221u8, 118u8, 30u8, + 121u8, + ], + ) + } + #[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 = "# "] + #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] + #[doc = "# "] + pub fn force_batch( + &self, + calls: ::std::vec::Vec< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "force_batch", + types::ForceBatch { calls }, + [ + 88u8, 195u8, 172u8, 234u8, 217u8, 52u8, 90u8, 2u8, + 124u8, 107u8, 195u8, 64u8, 192u8, 20u8, 149u8, + 166u8, 237u8, 124u8, 201u8, 21u8, 86u8, 220u8, + 239u8, 137u8, 17u8, 139u8, 82u8, 161u8, 147u8, + 243u8, 100u8, 252u8, + ], + ) + } + #[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: runtime_types::webb_standalone_runtime::RuntimeCall, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "with_weight", + types::WithWeight { + call: ::std::boxed::Box::new(call), + weight, + }, + [ + 94u8, 33u8, 186u8, 164u8, 178u8, 64u8, 14u8, 41u8, + 71u8, 7u8, 120u8, 234u8, 136u8, 82u8, 78u8, 6u8, + 207u8, 112u8, 250u8, 47u8, 95u8, 185u8, 116u8, + 241u8, 207u8, 241u8, 101u8, 109u8, 111u8, 29u8, + 113u8, 181u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_utility::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] + #[doc = "well as the error."] + pub struct BatchInterrupted { + pub index: ::core::primitive::u32, + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches completed fully with no error."] + pub struct BatchCompleted; + impl ::subxt::events::StaticEvent for BatchCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches completed but has errors."] + pub struct BatchCompletedWithErrors; + impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompletedWithErrors"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single item within a Batch of dispatches has completed with no error."] + pub struct ItemCompleted; + impl ::subxt::events::StaticEvent for ItemCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single item within a Batch of dispatches has completed with error."] + pub struct ItemFailed { + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for ItemFailed { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A call was dispatched."] + pub struct DispatchedAs { + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The limit on the number of batched calls."] + pub fn batched_calls_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod multisig { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_multisig::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_multisig::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AsMultiThreshold1 { + pub other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi_threshold_1"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + >, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + pub max_weight: + runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for AsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ApproveAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + >, + pub call_hash: [::core::primitive::u8; 32usize], + pub max_weight: + runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "approve_as_multi"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "cancel_as_multi"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "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 = "# "] + #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] + #[doc = "-------------------------------"] + #[doc = "- DB Weight: None"] + #[doc = "- Plus Call Weight"] + #[doc = "# "] + pub fn as_multi_threshold_1( + &self, + other_signatories: ::std::vec::Vec< + ::subxt::utils::AccountId32, + >, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi_threshold_1", + types::AsMultiThreshold1 { + other_signatories, + call: ::std::boxed::Box::new(call), + }, + [ + 120u8, 173u8, 237u8, 218u8, 116u8, 207u8, 139u8, + 42u8, 184u8, 182u8, 93u8, 79u8, 83u8, 167u8, 24u8, + 200u8, 21u8, 162u8, 117u8, 159u8, 37u8, 236u8, + 86u8, 118u8, 237u8, 77u8, 184u8, 21u8, 154u8, 15u8, + 243u8, 99u8, + ], + ) + } + #[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 = "# "] + #[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`."] + #[doc = "-------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Multisig Storage, [Caller Account]"] + #[doc = " - Writes: Multisig Storage, [Caller Account]"] + #[doc = "- Plus Call Weight"] + #[doc = "# "] + pub fn as_multi( + &self, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec< + ::subxt::utils::AccountId32, + >, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + >, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + max_weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi", + types::AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call: ::std::boxed::Box::new(call), + max_weight, + }, + [ + 247u8, 128u8, 12u8, 76u8, 66u8, 160u8, 42u8, 98u8, + 11u8, 204u8, 70u8, 241u8, 11u8, 199u8, 90u8, 49u8, + 131u8, 22u8, 181u8, 228u8, 117u8, 193u8, 101u8, + 224u8, 88u8, 202u8, 135u8, 3u8, 133u8, 45u8, 78u8, + 223u8, + ], + ) + } + #[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 = "# "] + #[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`."] + #[doc = "----------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Multisig Storage, [Caller Account]"] + #[doc = " - Write: Multisig Storage, [Caller Account]"] + #[doc = "# "] + pub fn approve_as_multi( + &self, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec< + ::subxt::utils::AccountId32, + >, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + >, + call_hash: [::core::primitive::u8; 32usize], + max_weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Multisig", + "approve_as_multi", + types::ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }, + [ + 178u8, 235u8, 0u8, 98u8, 97u8, 54u8, 60u8, 84u8, + 131u8, 14u8, 143u8, 227u8, 130u8, 93u8, 24u8, 0u8, + 0u8, 73u8, 213u8, 232u8, 66u8, 118u8, 210u8, 110u8, + 82u8, 22u8, 168u8, 39u8, 26u8, 147u8, 126u8, 105u8, + ], + ) + } + #[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 = "# "] + #[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."] + #[doc = "----------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] + #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] + #[doc = "# "] + pub fn cancel_as_multi( + &self, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec< + ::subxt::utils::AccountId32, + >, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + call_hash: [::core::primitive::u8; 32usize], + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Multisig", + "cancel_as_multi", + types::CancelAsMulti { + threshold, + other_signatories, + timepoint, + call_hash, + }, + [ + 47u8, 30u8, 118u8, 58u8, 83u8, 19u8, 197u8, 197u8, + 114u8, 180u8, 211u8, 205u8, 116u8, 85u8, 51u8, + 164u8, 105u8, 250u8, 205u8, 194u8, 97u8, 184u8, + 224u8, 68u8, 23u8, 239u8, 183u8, 200u8, 226u8, + 146u8, 75u8, 189u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new multisig operation has begun."] + pub struct NewMultisig { + pub approving: ::subxt::utils::AccountId32, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been approved by someone."] + pub struct MultisigApproval { + pub approving: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been executed."] + pub struct MultisigExecuted { + pub approving: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been cancelled."] + pub struct MultisigCancelled { + pub cancelling: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for MultisigCancelled { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The set of open multisig operations."] + pub fn multisigs( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u64, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Multisig" , "Multisigs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [219u8 , 52u8 , 88u8 , 89u8 , 218u8 , 194u8 , 244u8 , 163u8 , 30u8 , 249u8 , 254u8 , 116u8 , 115u8 , 158u8 , 38u8 , 8u8 , 43u8 , 185u8 , 62u8 , 238u8 , 82u8 , 180u8 , 248u8 , 247u8 , 29u8 , 238u8 , 97u8 , 136u8 , 143u8 , 117u8 , 164u8 , 68u8 ,]) + } + #[doc = " The set of open multisig operations."] + pub fn multisigs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u64, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + Vec::new(), + [ + 219u8, 52u8, 88u8, 89u8, 218u8, 194u8, 244u8, + 163u8, 30u8, 249u8, 254u8, 116u8, 115u8, 158u8, + 38u8, 8u8, 43u8, 185u8, 62u8, 238u8, 82u8, 180u8, + 248u8, 247u8, 29u8, 238u8, 97u8, 136u8, 143u8, + 117u8, 164u8, 68u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] + #[doc = " store a dispatch call for later."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] + #[doc = " `32 + sizeof(AccountId)` bytes."] + pub fn deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] + pub fn deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount of signatories allowed in the multisig."] + pub fn max_signatories( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod scheduler { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_scheduler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Schedule { + pub when: ::core::primitive::u64, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Schedule { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Cancel { + pub when: ::core::primitive::u64, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScheduleNamed { + pub id: [::core::primitive::u8; 32usize], + pub when: ::core::primitive::u64, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelNamed { + pub id: [::core::primitive::u8; 32usize], + } + impl ::subxt::blocks::StaticExtrinsic for CancelNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_named"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScheduleAfter { + pub after: ::core::primitive::u64, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_after"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScheduleNamedAfter { + pub id: [::core::primitive::u8; 32usize], + pub after: ::core::primitive::u64, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named_after"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Anonymously schedule a task."] + pub fn schedule( + &self, + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule", + types::Schedule { + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 144u8, 27u8, 238u8, 77u8, 221u8, 116u8, 56u8, + 135u8, 161u8, 194u8, 38u8, 196u8, 182u8, 219u8, + 120u8, 40u8, 61u8, 32u8, 13u8, 10u8, 120u8, 237u8, + 64u8, 171u8, 138u8, 166u8, 194u8, 68u8, 61u8, + 238u8, 53u8, 1u8, + ], + ) + } + #[doc = "Cancel an anonymously scheduled task."] + pub fn cancel( + &self, + when: ::core::primitive::u64, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel", + types::Cancel { when, index }, + [ + 218u8, 92u8, 28u8, 181u8, 164u8, 107u8, 168u8, + 165u8, 120u8, 66u8, 113u8, 244u8, 0u8, 127u8, 25u8, + 207u8, 116u8, 223u8, 187u8, 162u8, 80u8, 234u8, + 50u8, 254u8, 124u8, 103u8, 34u8, 90u8, 65u8, 19u8, + 218u8, 173u8, + ], + ) + } + #[doc = "Schedule a named task."] + pub fn schedule_named( + &self, + id: [::core::primitive::u8; 32usize], + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named", + types::ScheduleNamed { + id, + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 198u8, 15u8, 204u8, 245u8, 236u8, 203u8, 44u8, + 129u8, 234u8, 24u8, 121u8, 4u8, 204u8, 58u8, 141u8, + 149u8, 193u8, 182u8, 99u8, 216u8, 159u8, 173u8, + 103u8, 91u8, 78u8, 52u8, 40u8, 223u8, 222u8, 247u8, + 177u8, 169u8, + ], + ) + } + #[doc = "Cancel a named scheduled task."] + pub fn cancel_named( + &self, + id: [::core::primitive::u8; 32usize], + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel_named", + types::CancelNamed { id }, + [ + 51u8, 3u8, 140u8, 50u8, 214u8, 211u8, 50u8, 4u8, + 19u8, 43u8, 230u8, 114u8, 18u8, 108u8, 138u8, 67u8, + 99u8, 24u8, 255u8, 11u8, 246u8, 37u8, 192u8, 207u8, + 90u8, 157u8, 171u8, 93u8, 233u8, 189u8, 64u8, + 180u8, + ], + ) + } + #[doc = "Anonymously schedule a task after a delay."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`schedule`]."] + #[doc = "# "] + pub fn schedule_after( + &self, + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_after", + types::ScheduleAfter { + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 169u8, 200u8, 158u8, 109u8, 115u8, 109u8, 93u8, + 242u8, 49u8, 56u8, 113u8, 207u8, 23u8, 196u8, 92u8, + 91u8, 254u8, 196u8, 199u8, 214u8, 236u8, 155u8, + 185u8, 63u8, 36u8, 154u8, 115u8, 185u8, 144u8, + 56u8, 158u8, 82u8, + ], + ) + } + #[doc = "Schedule a named task after a delay."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`schedule_named`](Self::schedule_named)."] + #[doc = "# "] + pub fn schedule_named_after( + &self, + id: [::core::primitive::u8; 32usize], + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named_after", + types::ScheduleNamedAfter { + id, + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 240u8, 34u8, 209u8, 204u8, 29u8, 153u8, 93u8, + 151u8, 222u8, 179u8, 32u8, 173u8, 208u8, 109u8, + 245u8, 17u8, 73u8, 210u8, 205u8, 176u8, 206u8, + 22u8, 30u8, 58u8, 127u8, 247u8, 29u8, 42u8, 212u8, + 118u8, 124u8, 115u8, + ], + ) + } + } + } + #[doc = "Events type."] + pub type Event = runtime_types::pallet_scheduler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Scheduled some task."] + pub struct Scheduled { + pub when: ::core::primitive::u64, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Scheduled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Canceled some task."] + pub struct Canceled { + pub when: ::core::primitive::u64, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Dispatched some task."] + pub struct Dispatched { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for Dispatched { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The call for the provided hash was not found so the task has been aborted."] + pub struct CallUnavailable { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for CallUnavailable { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "CallUnavailable"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] + pub struct PeriodicFailed { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PeriodicFailed { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PeriodicFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given task can never be executed since it is overweight."] + pub struct PermanentlyOverweight { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PermanentlyOverweight { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PermanentlyOverweight"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn incomplete_since( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "IncompleteSince", + vec![], + [ + 119u8, 104u8, 86u8, 249u8, 68u8, 225u8, 248u8, 2u8, + 231u8, 55u8, 186u8, 227u8, 85u8, 244u8, 178u8, + 86u8, 213u8, 208u8, 233u8, 228u8, 50u8, 43u8, + 178u8, 210u8, 38u8, 140u8, 74u8, 57u8, 173u8, 35u8, + 194u8, 132u8, + ], + ) + } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u64 , runtime_types :: webb_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Scheduler" , "Agenda" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 83u8 , 156u8 , 49u8 , 91u8 , 164u8 , 123u8 , 102u8 , 219u8 , 137u8 , 183u8 , 35u8 , 96u8 , 208u8 , 108u8 , 36u8 , 114u8 , 172u8 , 143u8 , 29u8 , 3u8 , 216u8 , 225u8 , 20u8 , 2u8 , 73u8 , 46u8 , 92u8 , 27u8 , 217u8 , 10u8 , 235u8 ,]) + } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u64 , runtime_types :: webb_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Agenda", + Vec::new(), + [ + 17u8, 83u8, 156u8, 49u8, 91u8, 164u8, 123u8, 102u8, + 219u8, 137u8, 183u8, 35u8, 96u8, 208u8, 108u8, + 36u8, 114u8, 172u8, 143u8, 29u8, 3u8, 216u8, 225u8, + 20u8, 2u8, 73u8, 46u8, 92u8, 27u8, 217u8, 10u8, + 235u8, + ], + ) + } + #[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 ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Scheduler" , "Lookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [170u8 , 113u8 , 172u8 , 164u8 , 64u8 , 203u8 , 144u8 , 121u8 , 238u8 , 117u8 , 29u8 , 85u8 , 53u8 , 128u8 , 6u8 , 180u8 , 59u8 , 56u8 , 185u8 , 57u8 , 92u8 , 249u8 , 153u8 , 8u8 , 4u8 , 220u8 , 250u8 , 69u8 , 143u8 , 42u8 , 62u8 , 102u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u32), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Lookup", + Vec::new(), + [ + 170u8, 113u8, 172u8, 164u8, 64u8, 203u8, 144u8, + 121u8, 238u8, 117u8, 29u8, 85u8, 53u8, 128u8, 6u8, + 180u8, 59u8, 56u8, 185u8, 57u8, 92u8, 249u8, 153u8, + 8u8, 4u8, 220u8, 250u8, 69u8, 143u8, 42u8, 62u8, + 102u8, + ], + ) + } + } + } + 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::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, + > { + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", + [ + 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, + 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, + 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, + 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, + 134u8, 106u8, 76u8, + ], + ) + } + #[doc = " The maximum number of scheduled calls in the queue for a single block."] + pub fn max_scheduled_per_block( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_preimage::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct NotePreimage { + pub bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for NotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "note_preimage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnnotePreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unnote_preimage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RequestPreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "request_preimage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnrequestPreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unrequest_preimage"; + } + } + 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: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Preimage", + "note_preimage", + types::NotePreimage { bytes }, + [ + 77u8, 48u8, 104u8, 3u8, 254u8, 65u8, 106u8, 95u8, + 204u8, 89u8, 149u8, 29u8, 144u8, 188u8, 99u8, 23u8, + 146u8, 142u8, 35u8, 17u8, 125u8, 130u8, 31u8, + 206u8, 106u8, 83u8, 163u8, 192u8, 81u8, 23u8, + 232u8, 230u8, + ], + ) + } + #[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: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Preimage", + "unnote_preimage", + types::UnnotePreimage { hash }, + [ + 211u8, 204u8, 205u8, 58u8, 33u8, 179u8, 68u8, 74u8, + 149u8, 138u8, 213u8, 45u8, 140u8, 27u8, 106u8, + 81u8, 68u8, 212u8, 147u8, 116u8, 27u8, 130u8, 84u8, + 34u8, 231u8, 197u8, 135u8, 8u8, 19u8, 242u8, 207u8, + 17u8, + ], + ) + } + #[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: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Preimage", + "request_preimage", + types::RequestPreimage { hash }, + [ + 195u8, 26u8, 146u8, 255u8, 79u8, 43u8, 73u8, 60u8, + 115u8, 78u8, 99u8, 197u8, 137u8, 95u8, 139u8, + 141u8, 79u8, 213u8, 170u8, 169u8, 127u8, 30u8, + 236u8, 65u8, 38u8, 16u8, 118u8, 228u8, 141u8, 83u8, + 162u8, 233u8, + ], + ) + } + #[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: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Preimage", + "unrequest_preimage", + types::UnrequestPreimage { hash }, + [ + 143u8, 225u8, 239u8, 44u8, 237u8, 83u8, 18u8, + 105u8, 101u8, 68u8, 111u8, 116u8, 66u8, 212u8, + 63u8, 190u8, 38u8, 32u8, 105u8, 152u8, 69u8, 177u8, + 193u8, 15u8, 60u8, 26u8, 95u8, 130u8, 11u8, 113u8, + 187u8, 108u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_preimage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A preimage has been noted."] + pub struct Noted { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Noted { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Noted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A preimage has been requested."] + pub struct Requested { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Requested { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Requested"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A preimage has ben cleared."] + pub struct Cleared { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Cleared { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Cleared"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The request status of a given hash."] + pub fn status_for( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Preimage" , "StatusFor" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [103u8 , 208u8 , 88u8 , 167u8 , 244u8 , 198u8 , 129u8 , 134u8 , 182u8 , 80u8 , 71u8 , 192u8 , 73u8 , 92u8 , 190u8 , 15u8 , 20u8 , 132u8 , 37u8 , 108u8 , 88u8 , 233u8 , 18u8 , 145u8 , 9u8 , 235u8 , 5u8 , 132u8 , 42u8 , 17u8 , 227u8 , 56u8 ,]) + } + #[doc = " The request status of a given hash."] + pub fn status_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "StatusFor", + Vec::new(), + [ + 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, + 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, + 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, + 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, + 56u8, + ], + ) + } + pub fn preimage_for( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Preimage" , "PreimageFor" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [96u8 , 74u8 , 30u8 , 112u8 , 120u8 , 41u8 , 52u8 , 187u8 , 252u8 , 68u8 , 42u8 , 5u8 , 61u8 , 228u8 , 250u8 , 192u8 , 224u8 , 61u8 , 53u8 , 222u8 , 95u8 , 148u8 , 6u8 , 53u8 , 43u8 , 152u8 , 88u8 , 58u8 , 185u8 , 234u8 , 131u8 , 124u8 ,]) + } + pub fn preimage_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "PreimageFor", + Vec::new(), + [ + 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, + 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, + 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, + 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, + 124u8, + ], + ) + } + } + } + } + pub mod proxy { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_proxy::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Proxy { + pub real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub force_proxy_type: ::core::option::Option< + runtime_types::webb_standalone_runtime::ProxyType, + >, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Proxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddProxy { + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub delay: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for AddProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "add_proxy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveProxy { + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub delay: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveProxies; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxies"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CreatePure { + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub delay: ::core::primitive::u64, + pub index: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for CreatePure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "create_pure"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillPure { + pub spawner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub index: ::core::primitive::u16, + #[codec(compact)] + pub height: ::core::primitive::u64, + #[codec(compact)] + pub ext_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for KillPure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "kill_pure"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Announce { + pub real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for Announce { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "announce"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveAnnouncement { + pub real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_announcement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RejectAnnouncement { + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "reject_announcement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProxyAnnounced { + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub force_proxy_type: ::core::option::Option< + runtime_types::webb_standalone_runtime::ProxyType, + >, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy_announced"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Dispatch the given `call` from an account that the sender is authorised 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( + &self, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + force_proxy_type: ::core::option::Option< + runtime_types::webb_standalone_runtime::ProxyType, + >, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "proxy", + types::Proxy { + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), + }, + [ + 220u8, 143u8, 127u8, 187u8, 168u8, 118u8, 34u8, + 4u8, 216u8, 67u8, 141u8, 179u8, 89u8, 23u8, 131u8, + 24u8, 219u8, 104u8, 27u8, 113u8, 196u8, 75u8, + 117u8, 39u8, 237u8, 216u8, 217u8, 48u8, 65u8, 89u8, + 66u8, 1u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, + delay: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "add_proxy", + types::AddProxy { + delegate, + proxy_type, + delay, + }, + [ + 38u8, 26u8, 76u8, 131u8, 12u8, 56u8, 235u8, 201u8, + 191u8, 224u8, 33u8, 99u8, 145u8, 43u8, 239u8, + 205u8, 117u8, 217u8, 30u8, 187u8, 35u8, 28u8, + 221u8, 4u8, 140u8, 22u8, 221u8, 83u8, 56u8, 190u8, + 108u8, 19u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, + delay: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_proxy", + types::RemoveProxy { + delegate, + proxy_type, + delay, + }, + [ + 227u8, 235u8, 120u8, 150u8, 221u8, 155u8, 132u8, + 125u8, 234u8, 133u8, 108u8, 137u8, 3u8, 14u8, + 143u8, 170u8, 35u8, 178u8, 127u8, 246u8, 119u8, + 21u8, 151u8, 89u8, 168u8, 18u8, 39u8, 229u8, 159u8, + 50u8, 141u8, 225u8, + ], + ) + } + #[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::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_proxies", + types::RemoveProxies {}, + [ + 15u8, 237u8, 27u8, 166u8, 254u8, 218u8, 92u8, 5u8, + 213u8, 239u8, 99u8, 59u8, 1u8, 26u8, 73u8, 252u8, + 81u8, 94u8, 214u8, 227u8, 169u8, 58u8, 40u8, 253u8, + 187u8, 225u8, 192u8, 26u8, 19u8, 23u8, 121u8, + 129u8, + ], + ) + } + #[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 : runtime_types :: webb_standalone_runtime :: ProxyType, + delay: ::core::primitive::u64, + index: ::core::primitive::u16, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "create_pure", + types::CreatePure { + proxy_type, + delay, + index, + }, + [ + 114u8, 222u8, 117u8, 16u8, 245u8, 120u8, 138u8, + 169u8, 123u8, 168u8, 8u8, 26u8, 237u8, 32u8, 40u8, + 172u8, 244u8, 89u8, 68u8, 125u8, 214u8, 22u8, + 214u8, 49u8, 253u8, 81u8, 152u8, 34u8, 77u8, 183u8, + 38u8, 242u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, + index: ::core::primitive::u16, + height: ::core::primitive::u64, + ext_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "kill_pure", + types::KillPure { + spawner, + proxy_type, + index, + height, + ext_index, + }, + [ + 223u8, 158u8, 75u8, 227u8, 188u8, 238u8, 80u8, + 141u8, 71u8, 63u8, 213u8, 103u8, 235u8, 189u8, + 177u8, 237u8, 116u8, 5u8, 252u8, 225u8, 240u8, + 244u8, 205u8, 229u8, 130u8, 62u8, 129u8, 182u8, + 232u8, 218u8, 205u8, 173u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "announce", + types::Announce { real, call_hash }, + [ + 226u8, 252u8, 69u8, 50u8, 248u8, 212u8, 209u8, + 225u8, 201u8, 236u8, 51u8, 136u8, 56u8, 85u8, 36u8, + 130u8, 233u8, 84u8, 44u8, 192u8, 174u8, 119u8, + 245u8, 62u8, 150u8, 78u8, 217u8, 90u8, 167u8, + 154u8, 228u8, 141u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_announcement", + types::RemoveAnnouncement { real, call_hash }, + [ + 251u8, 236u8, 113u8, 182u8, 125u8, 244u8, 31u8, + 144u8, 66u8, 28u8, 65u8, 97u8, 67u8, 94u8, 225u8, + 210u8, 46u8, 143u8, 242u8, 124u8, 120u8, 93u8, + 23u8, 165u8, 83u8, 177u8, 250u8, 171u8, 58u8, 66u8, + 70u8, 64u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Proxy", + "reject_announcement", + types::RejectAnnouncement { + delegate, + call_hash, + }, + [ + 122u8, 165u8, 114u8, 85u8, 209u8, 197u8, 11u8, + 96u8, 211u8, 93u8, 201u8, 42u8, 1u8, 131u8, 254u8, + 177u8, 191u8, 212u8, 229u8, 13u8, 28u8, 163u8, + 133u8, 200u8, 113u8, 28u8, 132u8, 45u8, 105u8, + 177u8, 82u8, 206u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + force_proxy_type: ::core::option::Option< + runtime_types::webb_standalone_runtime::ProxyType, + >, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Proxy", + "proxy_announced", + types::ProxyAnnounced { + delegate, + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), + }, + [ + 49u8, 251u8, 228u8, 100u8, 122u8, 252u8, 145u8, + 101u8, 7u8, 57u8, 83u8, 125u8, 255u8, 113u8, 183u8, + 203u8, 234u8, 49u8, 221u8, 203u8, 248u8, 218u8, + 41u8, 205u8, 78u8, 130u8, 220u8, 254u8, 118u8, + 166u8, 157u8, 83u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_proxy::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proxy was executed correctly, with the given."] + pub struct ProxyExecuted { + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for ProxyExecuted { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pure account has been created by new proxy with given"] + #[doc = "disambiguation index and proxy type."] + pub struct PureCreated { + pub pure: ::subxt::utils::AccountId32, + pub who: ::subxt::utils::AccountId32, + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub disambiguation_index: ::core::primitive::u16, + } + impl ::subxt::events::StaticEvent for PureCreated { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "PureCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An announcement was placed to make a call in the future."] + pub struct Announced { + pub real: ::subxt::utils::AccountId32, + pub proxy: ::subxt::utils::AccountId32, + pub call_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Announced { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "Announced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proxy was added."] + pub struct ProxyAdded { + pub delegator: ::subxt::utils::AccountId32, + pub delegatee: ::subxt::utils::AccountId32, + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub delay: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ProxyAdded { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proxy was removed."] + pub struct ProxyRemoved { + pub delegator: ::subxt::utils::AccountId32, + pub delegatee: ::subxt::utils::AccountId32, + pub proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + pub delay: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ProxyRemoved { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyRemoved"; + } + } + pub mod storage { + use super::runtime_types; + 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 (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: ProxyType , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Proxy" , "Proxies" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [29u8 , 196u8 , 62u8 , 237u8 , 202u8 , 233u8 , 119u8 , 198u8 , 157u8 , 71u8 , 212u8 , 171u8 , 83u8 , 157u8 , 157u8 , 69u8 , 181u8 , 0u8 , 136u8 , 157u8 , 166u8 , 119u8 , 27u8 , 157u8 , 208u8 , 194u8 , 151u8 , 3u8 , 58u8 , 48u8 , 184u8 , 39u8 ,]) + } + #[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_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: ProxyType , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Proxy", + "Proxies", + Vec::new(), + [ + 29u8, 196u8, 62u8, 237u8, 202u8, 233u8, 119u8, + 198u8, 157u8, 71u8, 212u8, 171u8, 83u8, 157u8, + 157u8, 69u8, 181u8, 0u8, 136u8, 157u8, 166u8, + 119u8, 27u8, 157u8, 208u8, 194u8, 151u8, 3u8, 58u8, + 48u8, 184u8, 39u8, + ], + ) + } + #[doc = " The announcements made by the proxy (key)."] pub fn announcements (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: Announcement < :: subxt :: utils :: AccountId32 , :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Proxy" , "Announcements" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [171u8 , 196u8 , 179u8 , 148u8 , 64u8 , 151u8 , 66u8 , 184u8 , 102u8 , 220u8 , 132u8 , 79u8 , 92u8 , 119u8 , 217u8 , 116u8 , 229u8 , 208u8 , 241u8 , 36u8 , 51u8 , 101u8 , 170u8 , 110u8 , 15u8 , 48u8 , 3u8 , 123u8 , 94u8 , 45u8 , 49u8 , 120u8 ,]) + } + #[doc = " The announcements made by the proxy (key)."] pub fn announcements_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: Announcement < :: subxt :: utils :: AccountId32 , :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Proxy", + "Announcements", + Vec::new(), + [ + 171u8, 196u8, 179u8, 148u8, 64u8, 151u8, 66u8, + 184u8, 102u8, 220u8, 132u8, 79u8, 92u8, 119u8, + 217u8, 116u8, 229u8, 208u8, 241u8, 36u8, 51u8, + 101u8, 170u8, 110u8, 15u8, 48u8, 3u8, 123u8, 94u8, + 45u8, 49u8, 120u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The base amount of currency needed to reserve for creating a proxy."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] + pub fn proxy_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Proxy", + "ProxyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per proxy added."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] + #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] + #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] + pub fn proxy_deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Proxy", + "ProxyDepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount of proxies allowed for a single account."] + pub fn max_proxies( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Proxy", + "MaxProxies", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] + pub fn max_pending( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Proxy", + "MaxPending", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The base amount of currency needed to reserve for creating an announcement."] + #[doc = ""] + #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] + #[doc = " bytes)."] + pub fn announcement_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Proxy", + "AnnouncementDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per announcement made."] + #[doc = ""] + #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] + #[doc = " into a pre-existing storage value."] + pub fn announcement_deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Proxy", + "AnnouncementDepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + } + } + } + pub mod assets { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_assets::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_assets::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub min_balance: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceCreate { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub is_sufficient: ::core::primitive::bool, + #[codec(compact)] + pub min_balance: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceCreate { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct StartDestroy { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for StartDestroy { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "start_destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DestroyAccounts { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for DestroyAccounts { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "destroy_accounts"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DestroyApprovals { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for DestroyApprovals { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "destroy_approvals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FinishDestroy { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for FinishDestroy { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "finish_destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Mint { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Mint { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "mint"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Burn { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Burn { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "burn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferKeepAlive { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Freeze { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "freeze"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Thaw { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Thaw { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "thaw"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FreezeAsset { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for FreezeAsset { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "freeze_asset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ThawAsset { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ThawAsset { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "thaw_asset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferOwnership { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for TransferOwnership { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetTeam { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetTeam { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "set_team"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub symbol: ::std::vec::Vec<::core::primitive::u8>, + pub decimals: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClearMetadata { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClearMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetMetadata { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub symbol: ::std::vec::Vec<::core::primitive::u8>, + pub decimals: ::core::primitive::u8, + pub is_frozen: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceClearMetadata { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceClearMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceAssetStatus { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub min_balance: ::core::primitive::u128, + pub is_sufficient: ::core::primitive::bool, + pub is_frozen: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceAssetStatus { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_asset_status"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ApproveTransfer { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveTransfer { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "approve_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelApproval { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for CancelApproval { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceCancelApproval { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ForceCancelApproval { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferApproved { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub destination: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferApproved { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer_approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Touch { + #[codec(compact)] + pub id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Touch { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "touch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Refund { + #[codec(compact)] + pub id: ::core::primitive::u32, + pub allow_burn: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for Refund { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "refund"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Issue a new class of fungible assets from a public origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially and its owner is the origin."] + #[doc = ""] + #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] + #[doc = ""] + #[doc = "Funds of sender are reserved by `AssetDeposit`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset."] + #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] + #[doc = "member of the asset class's admin team."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `Created` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn create( + &self, + id: ::core::primitive::u32, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + min_balance: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "create", + types::Create { + id, + admin, + min_balance, + }, + [ + 197u8, 86u8, 72u8, 4u8, 104u8, 55u8, 113u8, 73u8, + 86u8, 21u8, 128u8, 40u8, 25u8, 91u8, 18u8, 246u8, + 157u8, 168u8, 160u8, 65u8, 101u8, 193u8, 120u8, + 217u8, 245u8, 26u8, 194u8, 186u8, 126u8, 231u8, + 118u8, 176u8, + ], + ) + } + #[doc = "Issue a new class of fungible assets from a privileged origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin`."] + #[doc = ""] + #[doc = "Unlike `create`, no funds are reserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset."] + #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] + #[doc = "over this asset, but may later change and configure the permissions using"] + #[doc = "`transfer_ownership` and `set_team`."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `ForceCreated` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn force_create( + &self, + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + is_sufficient: ::core::primitive::bool, + min_balance: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_create", + types::ForceCreate { + id, + owner, + is_sufficient, + min_balance, + }, + [ + 152u8, 24u8, 39u8, 126u8, 101u8, 61u8, 147u8, + 180u8, 121u8, 52u8, 45u8, 205u8, 87u8, 32u8, 87u8, + 7u8, 134u8, 168u8, 1u8, 159u8, 191u8, 246u8, 90u8, + 245u8, 80u8, 172u8, 185u8, 254u8, 59u8, 37u8, + 204u8, 162u8, + ], + ) + } + #[doc = "Start the process of destroying a fungible asset class."] + #[doc = ""] + #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] + #[doc = "destruction of an asset class."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "The asset class must be frozen before calling `start_destroy`."] + pub fn start_destroy( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "start_destroy", + types::StartDestroy { id }, + [ + 83u8, 116u8, 245u8, 108u8, 180u8, 253u8, 0u8, + 109u8, 9u8, 206u8, 70u8, 95u8, 36u8, 80u8, 86u8, + 186u8, 191u8, 161u8, 227u8, 156u8, 162u8, 102u8, + 82u8, 239u8, 124u8, 162u8, 128u8, 121u8, 183u8, + 120u8, 214u8, 136u8, + ], + ) + } + #[doc = "Destroy all accounts associated with a given asset."] + #[doc = ""] + #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedAccounts` event."] + pub fn destroy_accounts( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "destroy_accounts", + types::DestroyAccounts { id }, + [ + 35u8, 134u8, 147u8, 165u8, 201u8, 250u8, 221u8, + 158u8, 216u8, 147u8, 218u8, 79u8, 235u8, 188u8, + 10u8, 101u8, 22u8, 48u8, 1u8, 192u8, 176u8, 84u8, + 111u8, 244u8, 99u8, 92u8, 254u8, 49u8, 156u8, 24u8, + 209u8, 180u8, + ], + ) + } + #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] + #[doc = ""] + #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedApprovals` event."] + pub fn destroy_approvals( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "destroy_approvals", + types::DestroyApprovals { id }, + [ + 138u8, 31u8, 250u8, 93u8, 156u8, 239u8, 19u8, 43u8, + 244u8, 208u8, 159u8, 223u8, 143u8, 253u8, 235u8, + 130u8, 159u8, 117u8, 15u8, 79u8, 1u8, 205u8, 153u8, + 36u8, 38u8, 23u8, 38u8, 0u8, 193u8, 104u8, 140u8, + 225u8, + ], + ) + } + #[doc = "Complete destroying asset and unreserve currency."] + #[doc = ""] + #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] + #[doc = "hand."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each successful call emits the `Event::Destroyed` event."] + pub fn finish_destroy( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "finish_destroy", + types::FinishDestroy { id }, + [ + 215u8, 16u8, 107u8, 60u8, 181u8, 1u8, 238u8, 172u8, + 36u8, 54u8, 187u8, 26u8, 159u8, 224u8, 161u8, 8u8, + 115u8, 183u8, 132u8, 121u8, 42u8, 165u8, 7u8, + 193u8, 208u8, 124u8, 45u8, 158u8, 100u8, 57u8, + 117u8, 209u8, + ], + ) + } + #[doc = "Mint assets of a particular class."] + #[doc = ""] + #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount minted."] + #[doc = "- `beneficiary`: The account to be credited with the minted assets."] + #[doc = "- `amount`: The amount of the asset to be minted."] + #[doc = ""] + #[doc = "Emits `Issued` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] + pub fn mint( + &self, + id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "mint", + types::Mint { + id, + beneficiary, + amount, + }, + [ + 21u8, 30u8, 124u8, 32u8, 105u8, 231u8, 137u8, + 139u8, 28u8, 252u8, 232u8, 138u8, 197u8, 0u8, + 109u8, 156u8, 102u8, 83u8, 51u8, 128u8, 246u8, + 186u8, 249u8, 144u8, 133u8, 127u8, 241u8, 152u8, + 201u8, 50u8, 41u8, 105u8, + ], + ) + } + #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] + #[doc = ""] + #[doc = "Bails with `NoAccount` if the `who` is already dead."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount burned."] + #[doc = "- `who`: The account to be debited from."] + #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] + #[doc = ""] + #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] + #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] + pub fn burn( + &self, + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "burn", + types::Burn { id, who, amount }, + [ + 104u8, 94u8, 68u8, 117u8, 145u8, 209u8, 149u8, + 156u8, 131u8, 137u8, 137u8, 93u8, 114u8, 237u8, + 75u8, 56u8, 77u8, 65u8, 18u8, 71u8, 19u8, 187u8, + 76u8, 145u8, 24u8, 128u8, 62u8, 234u8, 200u8, + 247u8, 196u8, 45u8, + ], + ) + } + #[doc = "Move some assets from the sender account to another."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] + pub fn transfer( + &self, + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer", + types::Transfer { id, target, amount }, + [ + 132u8, 120u8, 134u8, 8u8, 238u8, 66u8, 45u8, 83u8, + 151u8, 8u8, 118u8, 62u8, 2u8, 163u8, 213u8, 255u8, + 42u8, 211u8, 125u8, 21u8, 150u8, 117u8, 177u8, + 21u8, 105u8, 61u8, 3u8, 2u8, 30u8, 70u8, 65u8, + 145u8, + ], + ) + } + #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] + pub fn transfer_keep_alive( + &self, + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer_keep_alive", + types::TransferKeepAlive { id, target, amount }, + [ + 9u8, 46u8, 251u8, 191u8, 91u8, 192u8, 119u8, 203u8, + 147u8, 84u8, 76u8, 27u8, 237u8, 174u8, 67u8, 249u8, + 185u8, 199u8, 240u8, 122u8, 160u8, 111u8, 245u8, + 247u8, 241u8, 197u8, 238u8, 253u8, 75u8, 216u8, + 41u8, 148u8, + ], + ) + } + #[doc = "Move some assets from one account to another."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `source`: The account to be debited."] + #[doc = "- `dest`: The account to be credited."] + #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] + #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] + #[doc = "below the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] + #[doc = "`dest`."] + pub fn force_transfer( + &self, + id: ::core::primitive::u32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "force_transfer", + types::ForceTransfer { + id, + source, + dest, + amount, + }, + [ + 253u8, 100u8, 109u8, 66u8, 153u8, 140u8, 39u8, + 85u8, 19u8, 199u8, 68u8, 6u8, 124u8, 200u8, 250u8, + 142u8, 104u8, 55u8, 190u8, 25u8, 117u8, 180u8, + 201u8, 245u8, 153u8, 192u8, 240u8, 5u8, 176u8, + 142u8, 106u8, 92u8, + ], + ) + } + #[doc = "Disallow further unprivileged transfers from an account."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn freeze( + &self, + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "freeze", + types::Freeze { id, who }, + [ + 191u8, 155u8, 214u8, 95u8, 125u8, 58u8, 207u8, + 76u8, 99u8, 15u8, 102u8, 189u8, 26u8, 232u8, 9u8, + 73u8, 231u8, 114u8, 199u8, 129u8, 110u8, 84u8, + 22u8, 114u8, 108u8, 57u8, 83u8, 246u8, 92u8, 0u8, + 127u8, 53u8, + ], + ) + } + #[doc = "Allow unprivileged transfers from an account again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be unfrozen."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn thaw( + &self, + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "thaw", + types::Thaw { id, who }, + [ + 52u8, 37u8, 227u8, 9u8, 177u8, 120u8, 93u8, 129u8, + 81u8, 35u8, 107u8, 22u8, 80u8, 58u8, 3u8, 98u8, + 211u8, 65u8, 49u8, 107u8, 184u8, 102u8, 185u8, + 84u8, 160u8, 73u8, 12u8, 242u8, 203u8, 233u8, 79u8, + 117u8, + ], + ) + } + #[doc = "Disallow further unprivileged transfers for the asset class."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn freeze_asset( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "freeze_asset", + types::FreezeAsset { id }, + [ + 208u8, 101u8, 0u8, 73u8, 41u8, 192u8, 227u8, 44u8, + 189u8, 231u8, 40u8, 124u8, 189u8, 147u8, 136u8, + 210u8, 76u8, 32u8, 249u8, 183u8, 68u8, 58u8, 150u8, + 136u8, 192u8, 47u8, 173u8, 178u8, 225u8, 84u8, + 110u8, 1u8, + ], + ) + } + #[doc = "Allow unprivileged transfers for the asset again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be thawed."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn thaw_asset( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "thaw_asset", + types::ThawAsset { id }, + [ + 18u8, 198u8, 141u8, 158u8, 182u8, 167u8, 160u8, + 227u8, 20u8, 74u8, 80u8, 164u8, 89u8, 46u8, 168u8, + 139u8, 251u8, 83u8, 155u8, 91u8, 91u8, 46u8, 205u8, + 55u8, 171u8, 175u8, 167u8, 188u8, 116u8, 155u8, + 79u8, 117u8, + ], + ) + } + #[doc = "Change the Owner of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = ""] + #[doc = "Emits `OwnerChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn transfer_ownership( + &self, + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer_ownership", + types::TransferOwnership { id, owner }, + [ + 170u8, 94u8, 202u8, 42u8, 41u8, 156u8, 250u8, 63u8, + 113u8, 110u8, 166u8, 129u8, 90u8, 233u8, 35u8, + 87u8, 123u8, 172u8, 65u8, 108u8, 170u8, 237u8, + 252u8, 70u8, 186u8, 12u8, 58u8, 6u8, 173u8, 87u8, + 161u8, 211u8, + ], + ) + } + #[doc = "Change the Issuer, Admin and Freezer of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = ""] + #[doc = "Emits `TeamChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn set_team( + &self, + id: ::core::primitive::u32, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "set_team", + types::SetTeam { + id, + issuer, + admin, + freezer, + }, + [ + 30u8, 60u8, 182u8, 252u8, 64u8, 97u8, 6u8, 80u8, + 159u8, 204u8, 14u8, 227u8, 54u8, 20u8, 172u8, + 100u8, 77u8, 59u8, 164u8, 247u8, 122u8, 39u8, + 129u8, 106u8, 87u8, 82u8, 77u8, 165u8, 215u8, + 232u8, 159u8, 29u8, + ], + ) + } + #[doc = "Set the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Funds of sender are reserved according to the formula:"] + #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] + #[doc = "account any already reserved funds."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn set_metadata( + &self, + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "set_metadata", + types::SetMetadata { + id, + name, + symbol, + decimals, + }, + [ + 15u8, 184u8, 50u8, 46u8, 164u8, 27u8, 105u8, 186u8, + 35u8, 115u8, 194u8, 247u8, 74u8, 252u8, 139u8, + 242u8, 108u8, 221u8, 122u8, 15u8, 139u8, 74u8, + 123u8, 17u8, 192u8, 138u8, 182u8, 163u8, 77u8, 7u8, + 124u8, 18u8, + ], + ) + } + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Any deposit is freed for the asset owner."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn clear_metadata( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "clear_metadata", + types::ClearMetadata { id }, + [ + 192u8, 41u8, 71u8, 183u8, 13u8, 128u8, 244u8, + 255u8, 175u8, 36u8, 99u8, 175u8, 15u8, 129u8, + 228u8, 76u8, 107u8, 214u8, 166u8, 116u8, 244u8, + 139u8, 60u8, 31u8, 123u8, 61u8, 203u8, 59u8, 213u8, + 146u8, 116u8, 126u8, + ], + ) + } + #[doc = "Force the metadata for an asset to some value."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is left alone."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] + pub fn force_set_metadata( + &self, + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "force_set_metadata", + types::ForceSetMetadata { + id, + name, + symbol, + decimals, + is_frozen, + }, + [ + 7u8, 30u8, 55u8, 233u8, 217u8, 113u8, 196u8, 21u8, + 29u8, 122u8, 168u8, 225u8, 63u8, 104u8, 57u8, 78u8, + 76u8, 145u8, 121u8, 118u8, 91u8, 149u8, 87u8, 26u8, + 26u8, 125u8, 44u8, 241u8, 143u8, 138u8, 144u8, 8u8, + ], + ) + } + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is returned."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn force_clear_metadata( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "force_clear_metadata", + types::ForceClearMetadata { id }, + [ + 71u8, 191u8, 101u8, 72u8, 188u8, 223u8, 215u8, + 187u8, 200u8, 206u8, 3u8, 42u8, 4u8, 62u8, 117u8, + 106u8, 26u8, 2u8, 68u8, 202u8, 162u8, 142u8, 172u8, + 123u8, 48u8, 196u8, 247u8, 89u8, 147u8, 75u8, 84u8, + 109u8, + ], + ) + } + #[doc = "Alter the attributes of a given asset."] + #[doc = ""] + #[doc = "Origin must be `ForceOrigin`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] + #[doc = "value to account for the state bloat associated with its balance storage. If set to"] + #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] + #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] + #[doc = "growth)."] + #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] + #[doc = "instructions."] + #[doc = ""] + #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn force_asset_status( + &self, + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + min_balance: ::core::primitive::u128, + is_sufficient: ::core::primitive::bool, + is_frozen: ::core::primitive::bool, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "force_asset_status", + types::ForceAssetStatus { + id, + owner, + issuer, + admin, + freezer, + min_balance, + is_sufficient, + is_frozen, + }, + [ + 46u8, 229u8, 189u8, 83u8, 196u8, 180u8, 79u8, 77u8, + 71u8, 147u8, 77u8, 243u8, 99u8, 3u8, 205u8, 171u8, + 129u8, 25u8, 60u8, 10u8, 162u8, 50u8, 205u8, 231u8, + 184u8, 75u8, 42u8, 230u8, 48u8, 194u8, 236u8, 71u8, + ], + ) + } + #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] + #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] + #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] + #[doc = "meet the right value."] + #[doc = ""] + #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] + #[doc = "making this call."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account to delegate permission to transfer asset."] + #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] + #[doc = "already an approval in place, then this acts additively."] + #[doc = ""] + #[doc = "Emits `ApprovedTransfer` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn approve_transfer( + &self, + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "approve_transfer", + types::ApproveTransfer { + id, + delegate, + amount, + }, + [ + 85u8, 79u8, 216u8, 233u8, 163u8, 169u8, 226u8, + 111u8, 10u8, 110u8, 33u8, 239u8, 248u8, 222u8, + 84u8, 160u8, 80u8, 164u8, 29u8, 88u8, 164u8, 252u8, + 238u8, 212u8, 9u8, 230u8, 201u8, 166u8, 192u8, + 225u8, 94u8, 13u8, + ], + ) + } + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place between signer and"] + #[doc = "`delegate`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn cancel_approval( + &self, + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "cancel_approval", + types::CancelApproval { id, delegate }, + [ + 120u8, 10u8, 77u8, 128u8, 1u8, 232u8, 42u8, 2u8, + 87u8, 7u8, 217u8, 51u8, 172u8, 13u8, 136u8, 176u8, + 153u8, 128u8, 196u8, 3u8, 190u8, 139u8, 219u8, + 24u8, 35u8, 51u8, 241u8, 87u8, 67u8, 49u8, 181u8, + 203u8, + ], + ) + } + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] + #[doc = "account of the asset `id`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn force_cancel_approval( + &self, + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "force_cancel_approval", + types::ForceCancelApproval { + id, + owner, + delegate, + }, + [ + 192u8, 196u8, 91u8, 219u8, 20u8, 150u8, 220u8, + 79u8, 81u8, 151u8, 104u8, 109u8, 21u8, 87u8, 158u8, + 169u8, 208u8, 4u8, 241u8, 109u8, 230u8, 166u8, + 237u8, 164u8, 90u8, 54u8, 14u8, 51u8, 84u8, 239u8, + 178u8, 202u8, + ], + ) + } + #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] + #[doc = "account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] + #[doc = "signer."] + #[doc = ""] + #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] + #[doc = "reserved by `approve_transfer` is unreserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] + #[doc = "from which the asset balance will be withdrawn."] + #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] + #[doc = "- `amount`: The amount of assets to transfer."] + #[doc = ""] + #[doc = "Emits `TransferredApproved` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn transfer_approved( + &self, + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + destination: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer_approved", + types::TransferApproved { + id, + owner, + destination, + amount, + }, + [ + 151u8, 228u8, 207u8, 182u8, 179u8, 212u8, 208u8, + 3u8, 207u8, 181u8, 193u8, 164u8, 74u8, 160u8, 81u8, + 191u8, 42u8, 227u8, 56u8, 238u8, 50u8, 75u8, 8u8, + 50u8, 131u8, 83u8, 152u8, 20u8, 141u8, 39u8, 29u8, + 205u8, + ], + ) + } + #[doc = "Create an asset account for non-provider assets."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] + pub fn touch( + &self, + id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "touch", + types::Touch { id }, + [ + 114u8, 149u8, 179u8, 168u8, 115u8, 117u8, 32u8, + 50u8, 39u8, 77u8, 148u8, 238u8, 123u8, 96u8, 193u8, + 174u8, 113u8, 141u8, 34u8, 228u8, 228u8, 214u8, + 71u8, 111u8, 55u8, 126u8, 103u8, 181u8, 133u8, + 77u8, 116u8, 105u8, + ], + ) + } + #[doc = "Return the deposit (if any) of an asset account."] + #[doc = ""] + #[doc = "The origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] + pub fn refund( + &self, + id: ::core::primitive::u32, + allow_burn: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "refund", + types::Refund { id, allow_burn }, + [ + 20u8, 139u8, 248u8, 67u8, 123u8, 221u8, 7u8, 106u8, + 239u8, 156u8, 68u8, 59u8, 81u8, 184u8, 47u8, 188u8, + 195u8, 227u8, 75u8, 168u8, 126u8, 176u8, 91u8, + 187u8, 30u8, 34u8, 24u8, 223u8, 108u8, 101u8, 88u8, + 83u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_assets::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset class was created."] + pub struct Created { + pub asset_id: ::core::primitive::u32, + pub creator: ::subxt::utils::AccountId32, + pub owner: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were issued."] + pub struct Issued { + pub asset_id: ::core::primitive::u32, + pub owner: ::subxt::utils::AccountId32, + pub total_supply: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Issued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were transferred."] + pub struct Transferred { + pub asset_id: ::core::primitive::u32, + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Transferred"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were destroyed."] + pub struct Burned { + pub asset_id: ::core::primitive::u32, + pub owner: ::subxt::utils::AccountId32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Burned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The management team changed."] + pub struct TeamChanged { + pub asset_id: ::core::primitive::u32, + pub issuer: ::subxt::utils::AccountId32, + pub admin: ::subxt::utils::AccountId32, + pub freezer: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for TeamChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The owner changed."] + pub struct OwnerChanged { + pub asset_id: ::core::primitive::u32, + pub owner: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for OwnerChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was frozen."] + pub struct Frozen { + pub asset_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Frozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was thawed."] + pub struct Thawed { + pub asset_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Thawed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset `asset_id` was frozen."] + pub struct AssetFrozen { + pub asset_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for AssetFrozen { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetFrozen"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset `asset_id` was thawed."] + pub struct AssetThawed { + pub asset_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for AssetThawed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetThawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Accounts were destroyed for given asset."] + pub struct AccountsDestroyed { + pub asset_id: ::core::primitive::u32, + pub accounts_destroyed: ::core::primitive::u32, + pub accounts_remaining: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for AccountsDestroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AccountsDestroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Approvals were destroyed for given asset."] + pub struct ApprovalsDestroyed { + pub asset_id: ::core::primitive::u32, + pub approvals_destroyed: ::core::primitive::u32, + pub approvals_remaining: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ApprovalsDestroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovalsDestroyed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset class is in the process of being destroyed."] + pub struct DestructionStarted { + pub asset_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for DestructionStarted { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "DestructionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset class was destroyed."] + pub struct Destroyed { + pub asset_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset class was force-created."] + pub struct ForceCreated { + pub asset_id: ::core::primitive::u32, + pub owner: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for ForceCreated { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for an asset."] + pub struct MetadataSet { + pub asset_id: ::core::primitive::u32, + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub symbol: ::std::vec::Vec<::core::primitive::u8>, + pub decimals: ::core::primitive::u8, + pub is_frozen: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for an asset."] + pub struct MetadataCleared { + pub asset_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "(Additional) funds have been approved for transfer to a destination account."] + pub struct ApprovedTransfer { + pub asset_id: ::core::primitive::u32, + pub source: ::subxt::utils::AccountId32, + pub delegate: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for ApprovedTransfer { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovedTransfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An approval for account `delegate` was cancelled by `owner`."] + pub struct ApprovalCancelled { + pub asset_id: ::core::primitive::u32, + pub owner: ::subxt::utils::AccountId32, + pub delegate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for ApprovalCancelled { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovalCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] + #[doc = "the approved `delegate`."] + pub struct TransferredApproved { + pub asset_id: ::core::primitive::u32, + pub owner: ::subxt::utils::AccountId32, + pub delegate: ::subxt::utils::AccountId32, + pub destination: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for TransferredApproved { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "TransferredApproved"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset has had its attributes changed by the `Force` origin."] + pub struct AssetStatusChanged { + pub asset_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for AssetStatusChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetStatusChanged"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of an asset."] + pub fn asset( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_assets::types::AssetDetails< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Asset" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [251u8 , 148u8 , 82u8 , 150u8 , 66u8 , 26u8 , 46u8 , 186u8 , 60u8 , 59u8 , 239u8 , 190u8 , 102u8 , 156u8 , 113u8 , 175u8 , 1u8 , 117u8 , 147u8 , 236u8 , 114u8 , 88u8 , 49u8 , 210u8 , 165u8 , 162u8 , 201u8 , 230u8 , 147u8 , 141u8 , 174u8 , 221u8 ,]) + } + #[doc = " Details of an asset."] + pub fn asset_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_assets::types::AssetDetails< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Asset", + Vec::new(), + [ + 251u8, 148u8, 82u8, 150u8, 66u8, 26u8, 46u8, 186u8, + 60u8, 59u8, 239u8, 190u8, 102u8, 156u8, 113u8, + 175u8, 1u8, 117u8, 147u8, 236u8, 114u8, 88u8, 49u8, + 210u8, 165u8, 162u8, 201u8, 230u8, 147u8, 141u8, + 174u8, 221u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_assets::types::AssetAccount< + ::core::primitive::u128, + ::core::primitive::u128, + (), + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [109u8 , 245u8 , 93u8 , 133u8 , 206u8 , 68u8 , 94u8 , 233u8 , 29u8 , 113u8 , 245u8 , 201u8 , 241u8 , 2u8 , 200u8 , 179u8 , 37u8 , 199u8 , 128u8 , 243u8 , 49u8 , 50u8 , 122u8 , 139u8 , 135u8 , 48u8 , 201u8 , 109u8 , 195u8 , 38u8 , 205u8 , 32u8 ,]) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_assets::types::AssetAccount< + ::core::primitive::u128, + ::core::primitive::u128, + (), + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Account", + Vec::new(), + [ + 109u8, 245u8, 93u8, 133u8, 206u8, 68u8, 94u8, + 233u8, 29u8, 113u8, 245u8, 201u8, 241u8, 2u8, + 200u8, 179u8, 37u8, 199u8, 128u8, 243u8, 49u8, + 50u8, 122u8, 139u8, 135u8, 48u8, 201u8, 109u8, + 195u8, 38u8, 205u8, 32u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _2: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_assets::types::Approval< + ::core::primitive::u128, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Approvals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_2 . borrow ())] , [210u8 , 147u8 , 203u8 , 49u8 , 232u8 , 215u8 , 116u8 , 154u8 , 43u8 , 154u8 , 69u8 , 159u8 , 241u8 , 28u8 , 238u8 , 101u8 , 108u8 , 162u8 , 242u8 , 121u8 , 138u8 , 164u8 , 217u8 , 243u8 , 72u8 , 173u8 , 75u8 , 109u8 , 194u8 , 9u8 , 196u8 , 163u8 ,]) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_assets::types::Approval< + ::core::primitive::u128, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Approvals", + Vec::new(), + [ + 210u8, 147u8, 203u8, 49u8, 232u8, 215u8, 116u8, + 154u8, 43u8, 154u8, 69u8, 159u8, 241u8, 28u8, + 238u8, 101u8, 108u8, 162u8, 242u8, 121u8, 138u8, + 164u8, 217u8, 243u8, 72u8, 173u8, 75u8, 109u8, + 194u8, 9u8, 196u8, 163u8, + ], + ) + } + #[doc = " Metadata of an asset."] pub fn metadata (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_assets :: types :: AssetMetadata < :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 115u8 , 155u8 , 115u8 , 136u8 , 108u8 , 82u8 , 93u8 , 65u8 , 130u8 , 143u8 , 228u8 , 170u8 , 234u8 , 182u8 , 170u8 , 229u8 , 217u8 , 168u8 , 71u8 , 81u8 , 80u8 , 16u8 , 112u8 , 209u8 , 82u8 , 8u8 , 165u8 , 80u8 , 137u8 , 58u8 , 170u8 ,]) + } + #[doc = " Metadata of an asset."] pub fn metadata_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_assets :: types :: AssetMetadata < :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Assets", + "Metadata", + Vec::new(), + [ + 80u8, 115u8, 155u8, 115u8, 136u8, 108u8, 82u8, + 93u8, 65u8, 130u8, 143u8, 228u8, 170u8, 234u8, + 182u8, 170u8, 229u8, 217u8, 168u8, 71u8, 81u8, + 80u8, 16u8, 112u8, 209u8, 82u8, 8u8, 165u8, 80u8, + 137u8, 58u8, 170u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call."] + #[doc = ""] + #[doc = " Must be configured to result in a weight that makes each call fit in a block."] + pub fn remove_items_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Assets", + "RemoveItemsLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved for an asset."] + pub fn asset_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Assets", + "AssetDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of funds that must be reserved for a non-provider asset account to be"] + #[doc = " maintained."] + pub fn asset_account_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Assets", + "AssetAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding metadata to your asset."] + pub fn metadata_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Assets", + "MetadataDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The additional funds that must be reserved for the number of bytes you store in your"] + #[doc = " metadata."] + pub fn metadata_deposit_per_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Assets", + "MetadataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of funds that must be reserved when creating a new approval."] + pub fn approval_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Assets", + "ApprovalDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The maximum length of a name or symbol stored on-chain."] + pub fn string_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Assets", + "StringLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Sudo { + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Sudo { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKey { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SudoAs { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SudoAs { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + 10,000."] + #[doc = "# "] + pub fn sudo( + &self, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo", + types::Sudo { + call: ::std::boxed::Box::new(call), + }, + [ + 191u8, 25u8, 177u8, 200u8, 243u8, 62u8, 131u8, + 53u8, 236u8, 119u8, 159u8, 239u8, 197u8, 206u8, + 102u8, 210u8, 252u8, 47u8, 244u8, 207u8, 22u8, + 171u8, 216u8, 254u8, 149u8, 170u8, 236u8, 32u8, + 101u8, 159u8, 223u8, 209u8, + ], + ) + } + #[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_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- The weight of this call is defined by the caller."] + #[doc = "# "] + pub fn sudo_unchecked_weight( + &self, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_unchecked_weight", + types::SudoUncheckedWeight { + call: ::std::boxed::Box::new(call), + weight, + }, + [ + 233u8, 247u8, 77u8, 35u8, 94u8, 216u8, 233u8, + 151u8, 105u8, 183u8, 43u8, 116u8, 83u8, 195u8, + 255u8, 222u8, 168u8, 93u8, 34u8, 165u8, 53u8, + 203u8, 99u8, 20u8, 178u8, 231u8, 159u8, 174u8, + 247u8, 67u8, 184u8, 184u8, + ], + ) + } + #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] + #[doc = "key."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB change."] + #[doc = "# "] + pub fn set_key( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, + 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, + 163u8, 41u8, 138u8, 7u8, 81u8, 98u8, 230u8, 182u8, + 23u8, 222u8, 240u8, 117u8, 173u8, 232u8, 192u8, + 55u8, 92u8, 208u8, + ], + ) + } + #[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_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + 10,000."] + #[doc = "# "] + pub fn sudo_as( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: runtime_types::webb_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_as", + types::SudoAs { + who, + call: ::std::boxed::Box::new(call), + }, + [ + 97u8, 173u8, 153u8, 77u8, 35u8, 5u8, 128u8, 122u8, + 68u8, 105u8, 124u8, 92u8, 134u8, 157u8, 21u8, 6u8, + 119u8, 196u8, 57u8, 165u8, 188u8, 110u8, 81u8, + 16u8, 129u8, 42u8, 229u8, 118u8, 33u8, 143u8, + 144u8, 99u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_sudo::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sudo just took place. \\[result\\]"] + pub struct Sudid { + pub sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] + pub struct KeyChanged { + pub old_sudoer: + ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sudo just took place. \\[result\\]"] + pub struct SudoAsDone { + pub sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The `AccountId` of the sudo key."] + pub fn key( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 244u8, 73u8, 188u8, 136u8, 218u8, 163u8, 68u8, + 179u8, 122u8, 173u8, 34u8, 108u8, 137u8, 28u8, + 182u8, 16u8, 196u8, 92u8, 138u8, 34u8, 102u8, 80u8, + 199u8, 88u8, 107u8, 207u8, 36u8, 22u8, 168u8, + 167u8, 20u8, 142u8, + ], + ) + } + } + } + } + pub mod im_online { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_im_online::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u64 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } + impl ::subxt::blocks::StaticExtrinsic for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "# "] + #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] + #[doc = " length of `heartbeat.network_state.external_address`"] + #[doc = " - `O(K)`: decoding of length `K`"] + #[doc = " - `O(E)`: decoding/encoding of length `E`"] + #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] + #[doc = " `ReceivedHeartbeats`"] + #[doc = "- DbWrites: `ReceivedHeartbeats`"] + #[doc = "# "] + pub fn heartbeat( + &self, + heartbeat: runtime_types::pallet_im_online::Heartbeat< + ::core::primitive::u64, + >, + signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ImOnline", + "heartbeat", + types::Heartbeat { + heartbeat, + signature, + }, + [ + 107u8, 222u8, 114u8, 147u8, 99u8, 249u8, 235u8, + 13u8, 39u8, 31u8, 163u8, 178u8, 109u8, 127u8, + 249u8, 33u8, 45u8, 253u8, 184u8, 171u8, 213u8, + 120u8, 249u8, 231u8, 128u8, 254u8, 63u8, 123u8, + 192u8, 175u8, 242u8, 171u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new heartbeat was received from `AuthorityId`."] + pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } + impl ::subxt::events::StaticEvent for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, no offence was committed."] + pub struct AllGood; + impl ::subxt::events::StaticEvent for AllGood { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, at least one validator was found to be offline."] + pub struct SomeOffline { + pub offline: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + )>, + } + impl ::subxt::events::StaticEvent for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The block number after which it's ok to send heartbeats in the current"] + #[doc = " session."] + #[doc = ""] + #[doc = " At the beginning of each session we set this to a value that should fall"] + #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] + #[doc = " the validators to produce a block in the current session, so that the"] + #[doc = " heartbeat later on will not be necessary."] + #[doc = ""] + #[doc = " This value will only be used as a fallback if we fail to get a proper session"] + #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] + #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] + pub fn heartbeat_after( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "HeartbeatAfter", + vec![], + [ + 129u8, 139u8, 197u8, 234u8, 125u8, 140u8, 229u8, + 91u8, 216u8, 174u8, 65u8, 69u8, 79u8, 76u8, 0u8, + 46u8, 38u8, 2u8, 229u8, 237u8, 36u8, 195u8, 24u8, + 94u8, 27u8, 36u8, 159u8, 24u8, 166u8, 105u8, 184u8, + 148u8, + ], + ) + } + #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 6u8, 198u8, 221u8, 58u8, 14u8, 166u8, 245u8, 103u8, + 191u8, 20u8, 69u8, 233u8, 147u8, 245u8, 24u8, 64u8, + 207u8, 180u8, 39u8, 208u8, 252u8, 236u8, 247u8, + 112u8, 187u8, 97u8, 70u8, 11u8, 248u8, 148u8, + 208u8, 106u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] + #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] + #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + Vec::new(), + [ + 233u8, 128u8, 140u8, 233u8, 55u8, 146u8, 172u8, + 54u8, 54u8, 57u8, 141u8, 106u8, 168u8, 59u8, 147u8, + 253u8, 119u8, 48u8, 50u8, 251u8, 242u8, 109u8, + 251u8, 2u8, 136u8, 80u8, 146u8, 121u8, 180u8, + 219u8, 245u8, 37u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + Vec::new(), + [ + 50u8, 4u8, 242u8, 240u8, 247u8, 184u8, 114u8, + 245u8, 233u8, 170u8, 24u8, 197u8, 18u8, 245u8, 8u8, + 28u8, 33u8, 115u8, 166u8, 245u8, 221u8, 223u8, + 56u8, 144u8, 33u8, 139u8, 10u8, 227u8, 228u8, + 223u8, 103u8, 151u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = ""] + #[doc = " This is exposed so that it can be tuned for particular runtime, when"] + #[doc = " multiple pallets send unsigned transactions."] + pub fn unsigned_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ImOnline", + "UnsignedPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, + 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, + 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, + 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, + 239u8, 42u8, 246u8, + ], + ) + } + } + } + } + pub mod authority_discovery { + use super::root_mod; + use super::runtime_types; + } + pub mod offences { + use super::root_mod; + use super::runtime_types; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] + #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] + #[doc = "\\[kind, timeslot\\]."] + pub struct Offence { + pub kind: [::core::primitive::u8; 16usize], + pub timeslot: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Offences" , "Reports" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [144u8 , 30u8 , 66u8 , 199u8 , 102u8 , 236u8 , 175u8 , 201u8 , 206u8 , 170u8 , 55u8 , 162u8 , 137u8 , 120u8 , 220u8 , 213u8 , 57u8 , 252u8 , 0u8 , 88u8 , 210u8 , 68u8 , 5u8 , 25u8 , 77u8 , 114u8 , 204u8 , 23u8 , 190u8 , 32u8 , 211u8 , 30u8 ,]) + } + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + Vec::new(), + [ + 144u8, 30u8, 66u8, 199u8, 102u8, 236u8, 175u8, + 201u8, 206u8, 170u8, 55u8, 162u8, 137u8, 120u8, + 220u8, 213u8, 57u8, 252u8, 0u8, 88u8, 210u8, 68u8, + 5u8, 25u8, 77u8, 114u8, 204u8, 23u8, 190u8, 32u8, + 211u8, 30u8, + ], + ) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::H256>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Offences" , "ConcurrentReportsIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [106u8 , 21u8 , 104u8 , 5u8 , 4u8 , 66u8 , 28u8 , 70u8 , 161u8 , 195u8 , 238u8 , 28u8 , 69u8 , 241u8 , 221u8 , 113u8 , 140u8 , 103u8 , 181u8 , 143u8 , 60u8 , 177u8 , 13u8 , 129u8 , 224u8 , 149u8 , 77u8 , 32u8 , 75u8 , 74u8 , 101u8 , 65u8 ,]) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::H256>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + Vec::new(), + [ + 106u8, 21u8, 104u8, 5u8, 4u8, 66u8, 28u8, 70u8, + 161u8, 195u8, 238u8, 28u8, 69u8, 241u8, 221u8, + 113u8, 140u8, 103u8, 181u8, 143u8, 60u8, 177u8, + 13u8, 129u8, 224u8, 149u8, 77u8, 32u8, 75u8, 74u8, + 101u8, 65u8, + ], + ) + } + #[doc = " Enumerates all reports of a kind along with the time they happened."] + #[doc = ""] + #[doc = " All reports are sorted by the time of offence."] + #[doc = ""] + #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] + #[doc = " different types are not supported at the moment so we are doing the manual serialization."] + pub fn reports_by_kind_index( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Offences" , "ReportsByKindIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [162u8 , 66u8 , 131u8 , 48u8 , 250u8 , 237u8 , 179u8 , 214u8 , 36u8 , 137u8 , 226u8 , 136u8 , 120u8 , 61u8 , 215u8 , 43u8 , 164u8 , 50u8 , 91u8 , 164u8 , 20u8 , 96u8 , 189u8 , 100u8 , 242u8 , 106u8 , 21u8 , 136u8 , 98u8 , 215u8 , 180u8 , 145u8 ,]) + } + #[doc = " Enumerates all reports of a kind along with the time they happened."] + #[doc = ""] + #[doc = " All reports are sorted by the time of offence."] + #[doc = ""] + #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] + #[doc = " different types are not supported at the moment so we are doing the manual serialization."] + pub fn reports_by_kind_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ReportsByKindIndex", + Vec::new(), + [ + 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, + 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, + 215u8, 43u8, 164u8, 50u8, 91u8, 164u8, 20u8, 96u8, + 189u8, 100u8, 242u8, 106u8, 21u8, 136u8, 98u8, + 215u8, 180u8, 145u8, + ], + ) + } + } + } + } + pub mod historical { + use super::root_mod; + use super::runtime_types; + } + pub mod bounties { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bounties::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeBounty { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ApproveBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "approve_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnassignCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AcceptCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AwardBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AwardBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "award_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "claim_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CloseBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "close_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExtendBountyExpiry { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::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: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "propose_bounty", + types::ProposeBounty { value, description }, + [ + 99u8, 160u8, 94u8, 74u8, 105u8, 161u8, 123u8, + 239u8, 241u8, 117u8, 97u8, 99u8, 84u8, 101u8, 87u8, + 3u8, 88u8, 175u8, 75u8, 59u8, 114u8, 87u8, 18u8, + 113u8, 126u8, 26u8, 42u8, 104u8, 201u8, 128u8, + 102u8, 219u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn approve_bounty( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "approve_bounty", + types::ApproveBounty { bounty_id }, + [ + 82u8, 228u8, 232u8, 103u8, 198u8, 173u8, 190u8, + 148u8, 159u8, 86u8, 48u8, 4u8, 32u8, 169u8, 1u8, + 129u8, 96u8, 145u8, 235u8, 68u8, 48u8, 34u8, 5u8, + 1u8, 76u8, 26u8, 100u8, 228u8, 92u8, 198u8, 183u8, + 173u8, + ], + ) + } + #[doc = "Assign a curator to a funded bounty."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn propose_curator( + &self, + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "propose_curator", + types::ProposeCurator { + bounty_id, + curator, + fee, + }, + [ + 85u8, 186u8, 206u8, 137u8, 98u8, 87u8, 202u8, 71u8, + 89u8, 241u8, 56u8, 212u8, 89u8, 215u8, 65u8, 97u8, + 202u8, 139u8, 78u8, 66u8, 92u8, 177u8, 163u8, + 111u8, 212u8, 244u8, 41u8, 153u8, 104u8, 129u8, + 112u8, 237u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn unassign_curator( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "unassign_curator", + types::UnassignCurator { bounty_id }, + [ + 218u8, 241u8, 247u8, 89u8, 95u8, 120u8, 93u8, 18u8, + 85u8, 114u8, 158u8, 254u8, 68u8, 77u8, 230u8, + 186u8, 230u8, 201u8, 63u8, 223u8, 28u8, 173u8, + 244u8, 82u8, 113u8, 177u8, 99u8, 27u8, 207u8, + 247u8, 207u8, 213u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn accept_curator( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "accept_curator", + types::AcceptCurator { bounty_id }, + [ + 106u8, 96u8, 22u8, 67u8, 52u8, 109u8, 180u8, 225u8, + 122u8, 253u8, 209u8, 214u8, 132u8, 131u8, 247u8, + 131u8, 162u8, 51u8, 144u8, 30u8, 12u8, 126u8, 50u8, + 152u8, 229u8, 119u8, 54u8, 116u8, 112u8, 235u8, + 34u8, 166u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn award_bounty( + &self, + bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "award_bounty", + types::AwardBounty { + bounty_id, + beneficiary, + }, + [ + 7u8, 205u8, 73u8, 45u8, 57u8, 8u8, 24u8, 135u8, + 89u8, 157u8, 35u8, 176u8, 224u8, 106u8, 167u8, + 232u8, 230u8, 153u8, 239u8, 45u8, 210u8, 61u8, + 17u8, 106u8, 220u8, 131u8, 105u8, 136u8, 232u8, + 194u8, 243u8, 48u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn claim_bounty( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "claim_bounty", + types::ClaimBounty { bounty_id }, + [ + 102u8, 95u8, 8u8, 89u8, 4u8, 126u8, 189u8, 28u8, + 241u8, 16u8, 125u8, 218u8, 42u8, 92u8, 177u8, 91u8, + 8u8, 235u8, 33u8, 48u8, 64u8, 115u8, 177u8, 95u8, + 242u8, 97u8, 181u8, 50u8, 68u8, 37u8, 59u8, 85u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn close_bounty( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "close_bounty", + types::CloseBounty { bounty_id }, + [ + 64u8, 113u8, 151u8, 228u8, 90u8, 55u8, 251u8, 63u8, + 27u8, 211u8, 119u8, 229u8, 137u8, 137u8, 183u8, + 240u8, 241u8, 146u8, 69u8, 169u8, 124u8, 220u8, + 236u8, 111u8, 98u8, 188u8, 100u8, 52u8, 127u8, + 245u8, 244u8, 92u8, + ], + ) + } + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + pub fn extend_bounty_expiry( + &self, + bounty_id: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "extend_bounty_expiry", + types::ExtendBountyExpiry { bounty_id, remark }, + [ + 97u8, 69u8, 157u8, 39u8, 59u8, 72u8, 79u8, 88u8, + 104u8, 119u8, 91u8, 26u8, 73u8, 216u8, 174u8, 95u8, + 254u8, 214u8, 63u8, 138u8, 100u8, 112u8, 185u8, + 81u8, 159u8, 247u8, 221u8, 60u8, 87u8, 40u8, 80u8, + 202u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New bounty proposal."] + pub struct BountyProposed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyProposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty proposal was rejected; funds were slashed."] + pub struct BountyRejected { + pub index: ::core::primitive::u32, + pub bond: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BountyRejected { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyRejected"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty proposal is funded and became active."] + pub struct BountyBecameActive { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyBecameActive { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyBecameActive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is awarded to a beneficiary."] + pub struct BountyAwarded { + pub index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for BountyAwarded { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyAwarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is claimed by beneficiary."] + pub struct BountyClaimed { + pub index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for BountyClaimed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is cancelled."] + pub struct BountyCanceled { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyCanceled { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty expiry is extended."] + pub struct BountyExtended { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyExtended { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of bounty proposals that have been made."] + pub fn bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyCount", + vec![], + [ + 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, + 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, + 178u8, 202u8, 193u8, 41u8, 83u8, 115u8, 253u8, + 182u8, 123u8, 92u8, 138u8, 12u8, 31u8, 31u8, 213u8, + 23u8, 118u8, + ], + ) + } + #[doc = " Bounties that have been made."] + pub fn bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Bounties" , "Bounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 32u8 , 63u8 , 115u8 , 137u8 , 66u8 , 138u8 , 21u8 , 35u8 , 169u8 , 4u8 , 0u8 , 35u8 , 110u8 , 154u8 , 43u8 , 155u8 , 63u8 , 61u8 , 194u8 , 149u8 , 151u8 , 83u8 , 35u8 , 207u8 , 147u8 , 80u8 , 49u8 , 111u8 , 197u8 , 172u8 , 188u8 ,]) + } + #[doc = " Bounties that have been made."] + pub fn bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "Bounties", + Vec::new(), + [ + 252u8, 32u8, 63u8, 115u8, 137u8, 66u8, 138u8, 21u8, + 35u8, 169u8, 4u8, 0u8, 35u8, 110u8, 154u8, 43u8, + 155u8, 63u8, 61u8, 194u8, 149u8, 151u8, 83u8, 35u8, + 207u8, 147u8, 80u8, 49u8, 111u8, 197u8, 172u8, + 188u8, + ], + ) + } + #[doc = " The description of each bounty."] + pub fn bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Bounties" , "BountyDescriptions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 0u8 , 9u8 , 225u8 , 13u8 , 135u8 , 7u8 , 121u8 , 154u8 , 155u8 , 116u8 , 83u8 , 160u8 , 37u8 , 72u8 , 11u8 , 72u8 , 0u8 , 248u8 , 73u8 , 158u8 , 84u8 , 125u8 , 221u8 , 176u8 , 231u8 , 100u8 , 239u8 , 111u8 , 22u8 , 29u8 , 13u8 ,]) + } + #[doc = " The description of each bounty."] + pub fn bounty_descriptions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyDescriptions", + Vec::new(), + [ + 252u8, 0u8, 9u8, 225u8, 13u8, 135u8, 7u8, 121u8, + 154u8, 155u8, 116u8, 83u8, 160u8, 37u8, 72u8, 11u8, + 72u8, 0u8, 248u8, 73u8, 158u8, 84u8, 125u8, 221u8, + 176u8, 231u8, 100u8, 239u8, 111u8, 22u8, 29u8, + 13u8, + ], + ) + } + #[doc = " Bounty indices that have been approved but not yet funded."] + pub fn bounty_approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyApprovals", + vec![], + [ + 64u8, 93u8, 54u8, 94u8, 122u8, 9u8, 246u8, 86u8, + 234u8, 30u8, 125u8, 132u8, 49u8, 128u8, 1u8, 219u8, + 241u8, 13u8, 217u8, 186u8, 48u8, 21u8, 5u8, 227u8, + 71u8, 157u8, 128u8, 226u8, 214u8, 49u8, 249u8, + 183u8, + ], + ) + } + } + } + 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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyDepositPayoutDelay", + [ + 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 = " Bounty duration in blocks."] + pub fn bounty_update_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyUpdatePeriod", + [ + 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 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::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMultiplier", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] + pub fn curator_deposit_max( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option<::core::primitive::u128>, + > { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, + 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, + 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, + 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, + 122u8, 60u8, 216u8, + ], + ) + } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] + pub fn curator_deposit_min( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option<::core::primitive::u128>, + > { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, + 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, + 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, + 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, + 122u8, 60u8, 216u8, + ], + ) + } + #[doc = " Minimum value for a bounty."] + pub fn bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_child_bounties::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_child_bounties::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "add_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AcceptCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "award_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "claim_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "close_child_bounty"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "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: ::core::primitive::u32, + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "add_child_bounty", + types::AddChildBounty { + parent_bounty_id, + value, + description, + }, + [ + 210u8, 156u8, 242u8, 121u8, 28u8, 214u8, 212u8, + 203u8, 46u8, 45u8, 110u8, 25u8, 33u8, 138u8, 136u8, + 71u8, 23u8, 102u8, 203u8, 122u8, 77u8, 162u8, + 112u8, 133u8, 43u8, 73u8, 201u8, 176u8, 102u8, + 68u8, 188u8, 8u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "propose_curator", + types::ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, + }, + [ + 147u8, 32u8, 161u8, 72u8, 92u8, 246u8, 250u8, + 138u8, 98u8, 84u8, 229u8, 228u8, 217u8, 128u8, + 168u8, 20u8, 73u8, 113u8, 55u8, 207u8, 117u8, 52u8, + 9u8, 139u8, 223u8, 149u8, 48u8, 1u8, 8u8, 82u8, + 133u8, 112u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "accept_curator", + types::AcceptCurator { + parent_bounty_id, + child_bounty_id, + }, + [ + 112u8, 175u8, 238u8, 54u8, 132u8, 20u8, 206u8, + 59u8, 220u8, 228u8, 207u8, 222u8, 132u8, 240u8, + 188u8, 0u8, 210u8, 225u8, 234u8, 142u8, 232u8, + 53u8, 64u8, 89u8, 220u8, 29u8, 28u8, 123u8, 125u8, + 207u8, 10u8, 52u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "unassign_curator", + types::UnassignCurator { + parent_bounty_id, + child_bounty_id, + }, + [ + 228u8, 189u8, 46u8, 75u8, 121u8, 161u8, 150u8, + 87u8, 207u8, 86u8, 192u8, 50u8, 52u8, 61u8, 49u8, + 88u8, 178u8, 182u8, 89u8, 72u8, 203u8, 45u8, 41u8, + 26u8, 149u8, 114u8, 154u8, 169u8, 118u8, 128u8, + 13u8, 211u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "award_child_bounty", + types::AwardChildBounty { + parent_bounty_id, + child_bounty_id, + beneficiary, + }, + [ + 214u8, 25u8, 53u8, 19u8, 146u8, 11u8, 223u8, 173u8, + 22u8, 235u8, 27u8, 57u8, 90u8, 171u8, 161u8, 45u8, + 102u8, 37u8, 171u8, 110u8, 215u8, 151u8, 46u8, + 136u8, 93u8, 7u8, 254u8, 112u8, 47u8, 42u8, 144u8, + 140u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "claim_child_bounty", + types::ClaimChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 134u8, 243u8, 151u8, 228u8, 38u8, 174u8, 96u8, + 140u8, 104u8, 124u8, 166u8, 206u8, 126u8, 211u8, + 17u8, 100u8, 172u8, 5u8, 234u8, 171u8, 125u8, 2u8, + 191u8, 163u8, 72u8, 29u8, 163u8, 107u8, 65u8, 92u8, + 41u8, 45u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "close_child_bounty", + types::CloseChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 40u8, 0u8, 235u8, 75u8, 36u8, 196u8, 29u8, 26u8, + 30u8, 172u8, 240u8, 44u8, 129u8, 243u8, 55u8, + 211u8, 96u8, 159u8, 72u8, 96u8, 142u8, 68u8, 41u8, + 238u8, 157u8, 167u8, 90u8, 141u8, 213u8, 249u8, + 222u8, 22u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_child_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is added."] + pub struct Added { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is awarded to a beneficiary."] + pub struct Awarded { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is claimed by beneficiary."] + pub struct Claimed { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is cancelled."] + pub struct Canceled { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Canceled"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of total child bounties."] + pub fn child_bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyCount", + vec![], + [ + 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, + 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, + 117u8, 160u8, 214u8, 167u8, 7u8, 109u8, 143u8, + 158u8, 1u8, 200u8, 205u8, 17u8, 93u8, 89u8, 26u8, + 30u8, 95u8, + ], + ) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ParentChildBounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [127u8 , 161u8 , 181u8 , 79u8 , 235u8 , 196u8 , 252u8 , 162u8 , 39u8 , 15u8 , 251u8 , 49u8 , 125u8 , 80u8 , 101u8 , 24u8 , 234u8 , 88u8 , 212u8 , 126u8 , 63u8 , 63u8 , 19u8 , 75u8 , 137u8 , 125u8 , 38u8 , 250u8 , 77u8 , 49u8 , 76u8 , 188u8 ,]) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + Vec::new(), + [ + 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, + 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, + 24u8, 234u8, 88u8, 212u8, 126u8, 63u8, 63u8, 19u8, + 75u8, 137u8, 125u8, 38u8, 250u8, 77u8, 49u8, 76u8, + 188u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildBounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [99u8 , 216u8 , 128u8 , 63u8 , 135u8 , 176u8 , 227u8 , 200u8 , 21u8 , 159u8 , 149u8 , 70u8 , 203u8 , 203u8 , 115u8 , 26u8 , 1u8 , 104u8 , 239u8 , 89u8 , 204u8 , 40u8 , 87u8 , 147u8 , 58u8 , 223u8 , 89u8 , 187u8 , 125u8 , 237u8 , 104u8 , 197u8 ,]) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + Vec::new(), + [ + 99u8, 216u8, 128u8, 63u8, 135u8, 176u8, 227u8, + 200u8, 21u8, 159u8, 149u8, 70u8, 203u8, 203u8, + 115u8, 26u8, 1u8, 104u8, 239u8, 89u8, 204u8, 40u8, + 87u8, 147u8, 58u8, 223u8, 89u8, 187u8, 125u8, + 237u8, 104u8, 197u8, + ], + ) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildBountyDescriptions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [193u8 , 200u8 , 40u8 , 30u8 , 14u8 , 71u8 , 90u8 , 42u8 , 58u8 , 253u8 , 225u8 , 158u8 , 172u8 , 10u8 , 45u8 , 238u8 , 36u8 , 144u8 , 184u8 , 153u8 , 11u8 , 157u8 , 125u8 , 220u8 , 175u8 , 31u8 , 28u8 , 93u8 , 207u8 , 212u8 , 141u8 , 74u8 ,]) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + Vec::new(), + [ + 193u8, 200u8, 40u8, 30u8, 14u8, 71u8, 90u8, 42u8, + 58u8, 253u8, 225u8, 158u8, 172u8, 10u8, 45u8, + 238u8, 36u8, 144u8, 184u8, 153u8, 11u8, 157u8, + 125u8, 220u8, 175u8, 31u8, 28u8, 93u8, 207u8, + 212u8, 141u8, 74u8, + ], + ) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildrenCuratorFees" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [174u8 , 128u8 , 86u8 , 179u8 , 133u8 , 76u8 , 98u8 , 169u8 , 234u8 , 166u8 , 249u8 , 214u8 , 172u8 , 171u8 , 8u8 , 161u8 , 105u8 , 69u8 , 148u8 , 151u8 , 35u8 , 174u8 , 118u8 , 139u8 , 101u8 , 56u8 , 85u8 , 211u8 , 121u8 , 168u8 , 0u8 , 216u8 ,]) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + Vec::new(), + [ + 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, + 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, + 8u8, 161u8, 105u8, 69u8, 148u8, 151u8, 35u8, 174u8, + 118u8, 139u8, 101u8, 56u8, 85u8, 211u8, 121u8, + 168u8, 0u8, 216u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum number of child bounties that can be added to a parent bounty."] + pub fn max_active_child_bounty_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ChildBounties", + "MaxActiveChildBountyCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Minimum value for a child-bounty."] + pub fn child_bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ChildBounties", + "ChildBountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + } + } + } + pub mod bags_list { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bags_list::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_bags_list::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Rebag { + pub dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Rebag { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "rebag"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PutInFrontOf { + pub lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "put_in_front_of"; + } + } + 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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "rebag", + types::Rebag { dislocated }, + [ + 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, + 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, + 116u8, 237u8, 55u8, 151u8, 71u8, 119u8, 42u8, 48u8, + 10u8, 66u8, 167u8, 208u8, 184u8, 228u8, 146u8, + 181u8, 84u8, 70u8, + ], + ) + } + #[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`."] + #[doc = ""] + #[doc = "Only works if"] + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "put_in_front_of", + types::PutInFrontOf { lighter }, + [ + 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, + 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, + 148u8, 76u8, 246u8, 71u8, 246u8, 205u8, 82u8, 32u8, + 186u8, 33u8, 5u8, 183u8, 127u8, 153u8, 232u8, 80u8, + 164u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Moved an account from one bag to another."] + pub struct Rebagged { + pub who: ::subxt::utils::AccountId32, + pub from: ::core::primitive::u64, + pub to: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for Rebagged { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "Rebagged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Updated the score of some account to the given amount."] + pub struct ScoreUpdated { + pub who: ::subxt::utils::AccountId32, + pub new_score: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ScoreUpdated { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "ScoreUpdated"; + } + } + pub mod storage { + use super::runtime_types; + 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( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) + } + #[doc = " A single node, within some bag."] + #[doc = ""] + #[doc = " Nodes store links forward and back within their respective bags."] + pub fn list_nodes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListNodes", + Vec::new(), + [ + 176u8, 186u8, 93u8, 51u8, 100u8, 184u8, 240u8, + 29u8, 70u8, 3u8, 117u8, 47u8, 23u8, 66u8, 231u8, + 234u8, 53u8, 8u8, 234u8, 175u8, 181u8, 8u8, 161u8, + 154u8, 48u8, 178u8, 147u8, 227u8, 122u8, 115u8, + 57u8, 97u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_list_nodes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "CounterForListNodes", + vec![], + [ + 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, + 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, + 210u8, 131u8, 87u8, 0u8, 241u8, 230u8, 160u8, + 142u8, 128u8, 153u8, 83u8, 36u8, 88u8, 247u8, 70u8, + 130u8, + ], + ) + } + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) + } + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListBags", + Vec::new(), + [ + 38u8, 86u8, 63u8, 92u8, 85u8, 59u8, 225u8, 244u8, + 14u8, 155u8, 76u8, 249u8, 153u8, 140u8, 179u8, 7u8, + 96u8, 170u8, 236u8, 179u8, 4u8, 18u8, 232u8, 146u8, + 216u8, 51u8, 135u8, 116u8, 196u8, 117u8, 143u8, + 153u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The list of thresholds separating the various bags."] + #[doc = ""] + #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] + #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] + #[doc = " is less than or equal to its upper threshold."] + #[doc = ""] + #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] + #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] + #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] + #[doc = ""] + #[doc = " # Expressing the constant"] + #[doc = ""] + #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] + #[doc = " permitted."] + #[doc = ""] + #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] + #[doc = " specified within the bag. For any two threshold lists, if one ends with"] + #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] + #[doc = " lists will behave identically."] + #[doc = ""] + #[doc = " # Calculation"] + #[doc = ""] + #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] + #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] + #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] + #[doc = ""] + #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] + #[doc = ""] + #[doc = " # Examples"] + #[doc = ""] + #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] + #[doc = " iteration is strictly in insertion order."] + #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is equal to 2."] + #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] + #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] + #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] + #[doc = ""] + #[doc = " # Migration"] + #[doc = ""] + #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] + #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] + pub fn bag_thresholds( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<::core::primitive::u64>, + > { + ::subxt::constants::Address::new_static( + "BagsList", + "BagThresholds", + [ + 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, + 172u8, 112u8, 234u8, 25u8, 175u8, 178u8, 19u8, + 251u8, 73u8, 91u8, 192u8, 227u8, 81u8, 249u8, 45u8, + 126u8, 116u8, 7u8, 37u8, 9u8, 200u8, 167u8, 182u8, + 12u8, 131u8, + ], + ) + } + } + } + } + pub mod nomination_pools { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Join { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Join { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "join"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtra { + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimPayout; + impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unbond { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub unbonding_points: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PoolWithdrawUnbonded { + pub pool_id: ::core::primitive::u32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "pool_withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithdrawUnbonded { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CreateWithPoolId { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create_with_pool_id"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nominate { + pub pool_id: ::core::primitive::u32, + pub validators: + ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetState { + pub pool_id: ::core::primitive::u32, + pub state: + runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::blocks::StaticExtrinsic for SetState { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_state"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { + pub pool_id: ::core::primitive::u32, + pub metadata: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetConfigs { + pub min_join_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub min_create_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub max_pools: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members_per_pool: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetConfigs { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UpdateRoles { + pub pool_id: ::core::primitive::u32, + pub new_root: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_nominator: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_state_toggler: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "update_roles"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Chill { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "chill"; + } + } + 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: ::core::primitive::u128, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "join", + types::Join { amount, pool_id }, + [ + 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, + 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, + 197u8, 20u8, 75u8, 226u8, 29u8, 118u8, 208u8, 60u8, + 192u8, 247u8, 222u8, 100u8, 69u8, 80u8, 172u8, + 13u8, 69u8, 250u8, + ], + ) + } + #[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."] + pub fn bond_extra( + &self, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra", + types::BondExtra { extra }, + [ + 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, + 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, + 197u8, 34u8, 21u8, 188u8, 248u8, 191u8, 11u8, 10u8, + 236u8, 161u8, 168u8, 37u8, 38u8, 238u8, 61u8, + 183u8, 86u8, 55u8, + ], + ) + } + #[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 there 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\"."] + pub fn claim_payout( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout", + types::ClaimPayout {}, + [ + 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, + 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, + 221u8, 218u8, 1u8, 222u8, 5u8, 236u8, 32u8, 88u8, + 0u8, 198u8, 72u8, 196u8, 181u8, 104u8, 16u8, 212u8, + 29u8, + ], + ) + } + #[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 state-toggler. This is"] + #[doc = " refereed to 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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + unbonding_points: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "unbond", + types::Unbond { + member_account, + unbonding_points, + }, + [ + 139u8, 71u8, 78u8, 184u8, 141u8, 89u8, 179u8, + 123u8, 153u8, 30u8, 116u8, 186u8, 148u8, 49u8, + 48u8, 98u8, 33u8, 21u8, 29u8, 106u8, 180u8, 212u8, + 37u8, 251u8, 237u8, 21u8, 255u8, 13u8, 236u8, 73u8, + 250u8, 57u8, + ], + ) + } + #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] + #[doc = ""] + #[doc = "This is useful if their 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: ::core::primitive::u32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "pool_withdraw_unbonded", + types::PoolWithdrawUnbonded { + pool_id, + num_slashing_spans, + }, + [ + 152u8, 245u8, 131u8, 247u8, 106u8, 214u8, 154u8, + 8u8, 7u8, 210u8, 149u8, 218u8, 118u8, 46u8, 242u8, + 182u8, 191u8, 119u8, 28u8, 199u8, 36u8, 49u8, + 219u8, 123u8, 58u8, 203u8, 211u8, 226u8, 217u8, + 36u8, 56u8, 0u8, + ], + ) + } + #[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 state-toggler."] + #[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."] + pub fn withdraw_unbonded( + &self, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "withdraw_unbonded", + types::WithdrawUnbonded { + member_account, + num_slashing_spans, + }, + [ + 192u8, 183u8, 121u8, 87u8, 176u8, 70u8, 91u8, + 226u8, 156u8, 79u8, 87u8, 34u8, 227u8, 84u8, 22u8, + 235u8, 3u8, 181u8, 166u8, 194u8, 147u8, 72u8, 27u8, + 221u8, 57u8, 14u8, 44u8, 70u8, 253u8, 236u8, 44u8, + 84u8, + ], + ) + } + #[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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] + #[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` transferrable."] + pub fn create( + &self, + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create", + types::Create { + amount, + root, + nominator, + state_toggler, + }, + [ + 73u8, 99u8, 205u8, 59u8, 21u8, 182u8, 163u8, 158u8, + 99u8, 182u8, 182u8, 63u8, 212u8, 84u8, 48u8, 244u8, + 95u8, 153u8, 86u8, 104u8, 92u8, 93u8, 191u8, 79u8, + 163u8, 123u8, 20u8, 121u8, 241u8, 194u8, 79u8, + 112u8, + ], + ) + } + #[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: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create_with_pool_id", + types::CreateWithPoolId { + amount, + root, + nominator, + state_toggler, + pool_id, + }, + [ + 113u8, 67u8, 242u8, 175u8, 174u8, 4u8, 116u8, 44u8, + 157u8, 35u8, 13u8, 23u8, 55u8, 80u8, 255u8, 103u8, + 196u8, 247u8, 105u8, 152u8, 108u8, 145u8, 180u8, + 169u8, 252u8, 159u8, 175u8, 241u8, 122u8, 136u8, + 252u8, 95u8, + ], + ) + } + #[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."] + pub fn nominate( + &self, + pool_id: ::core::primitive::u32, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "nominate", + types::Nominate { + pool_id, + validators, + }, + [ + 10u8, 235u8, 64u8, 157u8, 36u8, 249u8, 186u8, 27u8, + 79u8, 172u8, 25u8, 3u8, 203u8, 19u8, 192u8, 182u8, + 36u8, 103u8, 13u8, 20u8, 89u8, 140u8, 159u8, 4u8, + 132u8, 242u8, 192u8, 146u8, 55u8, 251u8, 216u8, + 255u8, + ], + ) + } + #[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 state toggler, 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: ::core::primitive::u32, + state: runtime_types::pallet_nomination_pools::PoolState, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_state", + types::SetState { pool_id, state }, + [ + 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, + 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, + 151u8, 25u8, 194u8, 192u8, 187u8, 39u8, 170u8, + 212u8, 125u8, 75u8, 250u8, 248u8, 175u8, 159u8, + 161u8, 151u8, 162u8, + ], + ) + } + #[doc = "Set a new metadata for the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] + #[doc = "of the pool."] + pub fn set_metadata( + &self, + pool_id: ::core::primitive::u32, + metadata: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_metadata", + types::SetMetadata { pool_id, metadata }, + [ + 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, + 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, + 1u8, 6u8, 26u8, 168u8, 7u8, 8u8, 115u8, 158u8, + 151u8, 30u8, 211u8, 52u8, 177u8, 234u8, 87u8, + 125u8, 127u8, + ], + ) + } + #[doc = "Update configurations for the nomination pools. The origin for this call must be"] + #[doc = "Root."] + #[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`]."] + pub fn set_configs( + &self, + 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 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_configs", + types::SetConfigs { + min_join_bond, + min_create_bond, + max_pools, + max_members, + max_members_per_pool, + }, + [ + 143u8, 196u8, 211u8, 30u8, 71u8, 15u8, 150u8, + 243u8, 7u8, 178u8, 179u8, 168u8, 40u8, 116u8, + 220u8, 140u8, 18u8, 206u8, 6u8, 189u8, 190u8, 37u8, + 68u8, 41u8, 45u8, 233u8, 247u8, 172u8, 185u8, 34u8, + 243u8, 187u8, + ], + ) + } + #[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: ::core::primitive::u32, + new_root: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, + new_state_toggler : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "update_roles", + types::UpdateRoles { + pool_id, + new_root, + new_nominator, + new_state_toggler, + }, + [ + 247u8, 95u8, 234u8, 56u8, 181u8, 229u8, 158u8, + 97u8, 69u8, 165u8, 38u8, 17u8, 27u8, 209u8, 204u8, + 250u8, 91u8, 193u8, 35u8, 93u8, 215u8, 131u8, + 148u8, 73u8, 67u8, 188u8, 92u8, 32u8, 34u8, 37u8, + 113u8, 93u8, + ], + ) + } + #[doc = "Chill 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, same as [`Pallet::nominate`]."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] + pub fn chill( + &self, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "chill", + types::Chill { pool_id }, + [ + 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, + 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, + 240u8, 172u8, 229u8, 132u8, 64u8, 175u8, 87u8, + 217u8, 27u8, 11u8, 124u8, 1u8, 140u8, 40u8, 191u8, + 187u8, 36u8, + ], + ) + } + } + } + #[doc = "Events of this pallet."] + pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool has been created."] + pub struct Created { + pub depositor: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has became bonded in a pool."] + pub struct Bonded { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub bonded: ::core::primitive::u128, + pub joined: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A payout has been made to a member."] + pub struct PaidOut { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PaidOut { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PaidOut"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] + #[doc = "requested to be unbonded."] + pub struct Unbonded { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + pub points: ::core::primitive::u128, + pub era: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] + pub struct Withdrawn { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + pub points: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool has been destroyed."] + pub struct Destroyed { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The state of a pool has changed"] + pub struct StateChanged { + pub pool_id: ::core::primitive::u32, + pub new_state: + runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::events::StaticEvent for StateChanged { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "StateChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] + pub struct MemberRemoved { + pub pool_id: ::core::primitive::u32, + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MemberRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] + #[doc = "can never change."] + pub struct RolesUpdated { + pub root: ::core::option::Option<::subxt::utils::AccountId32>, + pub state_toggler: + ::core::option::Option<::subxt::utils::AccountId32>, + pub nominator: + ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for RolesUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "RolesUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] + pub struct PoolSlashed { + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] + pub struct UnbondingPoolSlashed { + pub pool_id: ::core::primitive::u32, + pub era: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "UnbondingPoolSlashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Minimum amount to bond to join a pool."] + pub fn min_join_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinJoinBond", + vec![], + [ + 125u8, 239u8, 45u8, 225u8, 74u8, 129u8, 247u8, + 184u8, 205u8, 58u8, 45u8, 186u8, 126u8, 170u8, + 112u8, 120u8, 23u8, 190u8, 247u8, 97u8, 131u8, + 126u8, 215u8, 44u8, 147u8, 122u8, 132u8, 212u8, + 217u8, 84u8, 240u8, 91u8, + ], + ) + } + #[doc = " Minimum bond required to create a pool."] + #[doc = ""] + #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] + #[doc = " indication of \"skin in the game\"."] + #[doc = ""] + #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] + #[doc = " while all other accounts leave."] + pub fn min_create_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinCreateBond", + vec![], + [ + 31u8, 208u8, 240u8, 158u8, 23u8, 218u8, 212u8, + 138u8, 92u8, 210u8, 207u8, 170u8, 32u8, 60u8, 5u8, + 21u8, 84u8, 162u8, 1u8, 111u8, 181u8, 243u8, 24u8, + 148u8, 193u8, 253u8, 248u8, 190u8, 16u8, 222u8, + 219u8, 67u8, + ], + ) + } + #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] + #[doc = " pools can exist."] + pub fn max_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPools", + vec![], + [ + 216u8, 111u8, 68u8, 103u8, 33u8, 50u8, 109u8, 3u8, + 176u8, 195u8, 23u8, 73u8, 112u8, 138u8, 9u8, 194u8, + 233u8, 73u8, 68u8, 215u8, 162u8, 255u8, 217u8, + 173u8, 141u8, 27u8, 72u8, 199u8, 7u8, 240u8, 25u8, + 34u8, + ], + ) + } + #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] + #[doc = " members are not bound on a system wide basis."] + pub fn max_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembers", + vec![], + [ + 82u8, 217u8, 26u8, 234u8, 223u8, 241u8, 66u8, + 182u8, 43u8, 233u8, 59u8, 242u8, 202u8, 254u8, + 69u8, 50u8, 254u8, 196u8, 166u8, 89u8, 120u8, 87u8, + 76u8, 148u8, 31u8, 197u8, 49u8, 88u8, 206u8, 41u8, + 242u8, 62u8, + ], + ) + } + #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] + #[doc = " members is not bound on a per pool basis."] + pub fn max_pool_members_per_pool( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembersPerPool", + vec![], + [ + 93u8, 241u8, 16u8, 169u8, 138u8, 199u8, 128u8, + 149u8, 65u8, 30u8, 55u8, 11u8, 41u8, 252u8, 83u8, + 250u8, 9u8, 33u8, 152u8, 239u8, 195u8, 147u8, 16u8, + 248u8, 180u8, 153u8, 88u8, 231u8, 248u8, 169u8, + 186u8, 48u8, + ], + ) + } + #[doc = " Active members."] + pub fn pool_members( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) + } + #[doc = " Active members."] + pub fn pool_members_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "PoolMembers", + Vec::new(), + [ + 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, + 144u8, 5u8, 108u8, 70u8, 30u8, 177u8, 232u8, 253u8, + 237u8, 211u8, 91u8, 63u8, 62u8, 155u8, 151u8, + 153u8, 165u8, 206u8, 53u8, 111u8, 31u8, 60u8, + 120u8, 100u8, 249u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForPoolMembers", + vec![], + [ + 114u8, 126u8, 27u8, 138u8, 119u8, 44u8, 45u8, + 129u8, 84u8, 107u8, 171u8, 206u8, 117u8, 141u8, + 20u8, 75u8, 229u8, 237u8, 31u8, 229u8, 124u8, + 190u8, 27u8, 124u8, 63u8, 59u8, 167u8, 42u8, 62u8, + 212u8, 160u8, 2u8, + ], + ) + } + #[doc = " Storage for bonded pools."] + pub fn bonded_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) + } + #[doc = " Storage for bonded pools."] + pub fn bonded_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "BondedPools", + Vec::new(), + [ + 34u8, 51u8, 86u8, 95u8, 237u8, 118u8, 40u8, 212u8, + 128u8, 227u8, 113u8, 6u8, 116u8, 28u8, 96u8, 223u8, + 63u8, 249u8, 33u8, 152u8, 61u8, 7u8, 205u8, 220u8, + 221u8, 174u8, 207u8, 39u8, 53u8, 176u8, 13u8, 74u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_bonded_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForBondedPools", + vec![], + [ + 134u8, 94u8, 199u8, 73u8, 174u8, 253u8, 66u8, + 242u8, 233u8, 244u8, 140u8, 170u8, 242u8, 40u8, + 41u8, 185u8, 183u8, 151u8, 58u8, 111u8, 221u8, + 225u8, 81u8, 71u8, 169u8, 219u8, 223u8, 135u8, 8u8, + 171u8, 180u8, 236u8, + ], + ) + } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] + #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) + } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] + #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "RewardPools", + Vec::new(), + [ + 139u8, 123u8, 46u8, 107u8, 9u8, 83u8, 141u8, 12u8, + 188u8, 225u8, 170u8, 215u8, 154u8, 21u8, 100u8, + 95u8, 237u8, 245u8, 46u8, 216u8, 199u8, 184u8, + 187u8, 155u8, 8u8, 16u8, 34u8, 177u8, 153u8, 65u8, + 109u8, 198u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reward_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForRewardPools", + vec![], + [ + 209u8, 139u8, 212u8, 116u8, 210u8, 178u8, 213u8, + 38u8, 75u8, 23u8, 188u8, 57u8, 253u8, 213u8, 95u8, + 118u8, 182u8, 250u8, 45u8, 205u8, 17u8, 175u8, + 17u8, 201u8, 234u8, 14u8, 98u8, 49u8, 143u8, 135u8, + 201u8, 81u8, + ], + ) + } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] + #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) + } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] + #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "SubPoolsStorage", + Vec::new(), + [ + 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, + 134u8, 224u8, 196u8, 94u8, 201u8, 229u8, 29u8, + 155u8, 211u8, 163u8, 150u8, 157u8, 34u8, 68u8, + 238u8, 55u8, 4u8, 222u8, 96u8, 186u8, 29u8, 205u8, + 237u8, 80u8, 42u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_sub_pools_storage( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForSubPoolsStorage", + vec![], + [ + 212u8, 145u8, 212u8, 226u8, 234u8, 31u8, 26u8, + 240u8, 107u8, 91u8, 171u8, 120u8, 41u8, 195u8, + 16u8, 86u8, 55u8, 127u8, 103u8, 93u8, 128u8, 48u8, + 69u8, 104u8, 168u8, 236u8, 81u8, 54u8, 2u8, 184u8, + 215u8, 51u8, + ], + ) + } + #[doc = " Metadata for the pool."] + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) + } + #[doc = " Metadata for the pool."] + pub fn metadata_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "Metadata", + Vec::new(), + [ + 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, + 62u8, 97u8, 163u8, 161u8, 215u8, 171u8, 225u8, + 49u8, 18u8, 37u8, 200u8, 143u8, 254u8, 136u8, 26u8, + 54u8, 187u8, 39u8, 3u8, 216u8, 24u8, 188u8, 25u8, + 243u8, 251u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForMetadata", + vec![], + [ + 190u8, 232u8, 77u8, 134u8, 245u8, 89u8, 160u8, + 187u8, 163u8, 68u8, 188u8, 204u8, 31u8, 145u8, + 219u8, 165u8, 213u8, 1u8, 167u8, 90u8, 175u8, + 218u8, 147u8, 144u8, 158u8, 226u8, 23u8, 233u8, + 55u8, 168u8, 161u8, 237u8, + ], + ) + } + #[doc = " Ever increasing number of all pools created so far."] + pub fn last_pool_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "LastPoolId", + vec![], + [ + 50u8, 254u8, 218u8, 41u8, 213u8, 184u8, 170u8, + 166u8, 31u8, 29u8, 196u8, 57u8, 215u8, 20u8, 40u8, + 40u8, 19u8, 22u8, 9u8, 184u8, 11u8, 21u8, 21u8, + 125u8, 97u8, 38u8, 219u8, 209u8, 2u8, 238u8, 247u8, + 51u8, + ], + ) + } + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) + } + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ReversePoolIdLookup", + Vec::new(), + [ + 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, + 236u8, 159u8, 36u8, 237u8, 120u8, 128u8, 6u8, + 191u8, 41u8, 159u8, 94u8, 178u8, 174u8, 235u8, + 221u8, 173u8, 44u8, 81u8, 211u8, 255u8, 231u8, + 81u8, 16u8, 87u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reverse_pool_id_lookup( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForReversePoolIdLookup", + vec![], + [ + 148u8, 83u8, 81u8, 33u8, 188u8, 72u8, 148u8, 208u8, + 245u8, 178u8, 52u8, 245u8, 229u8, 140u8, 100u8, + 152u8, 8u8, 217u8, 161u8, 80u8, 226u8, 42u8, 15u8, + 252u8, 90u8, 197u8, 120u8, 114u8, 144u8, 90u8, + 199u8, 123u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The nomination pool's pallet id."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] + #[doc = ""] + #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] + #[doc = " ratio becomes disproportional."] + #[doc = ""] + #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] + #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] + #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] + #[doc = " the chain, in the absolute worse case."] + #[doc = ""] + #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] + #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] + pub fn max_points_to_balance( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> + { + ::subxt::constants::Address::new_static( + "NominationPools", + "MaxPointsToBalance", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, + 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, + 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, + 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, + 228u8, 183u8, 165u8, + ], + ) + } + } + } + } + pub mod hasher_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_hasher::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_hasher::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetParameters { pub parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { + const PALLET: &'static str = "HasherBn254"; + const CALL: &'static str = "force_set_parameters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn force_set_parameters( + &self, + parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "HasherBn254", + "force_set_parameters", + types::ForceSetParameters { parameters }, + [ + 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, + 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, + 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, + 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, + 75u8, 166u8, 90u8, 127u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_hasher::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters"] + pub fn parameters( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "HasherBn254", + "Parameters", + vec![], + [ + 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, + 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, + 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, + 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, + 110u8, 163u8, 192u8, + ], + ) + } + } + } + } + pub mod asset_registry { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_asset_registry::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_asset_registry::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Register { pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , pub existential_deposit : :: core :: primitive :: u128 , } + impl ::subxt::blocks::StaticExtrinsic for Register { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "register"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Update { pub asset_id : :: core :: primitive :: u32 , pub bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , pub existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } + impl ::subxt::blocks::StaticExtrinsic for Update { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "update"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { pub asset_id : :: core :: primitive :: u32 , pub symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub decimals : :: core :: primitive :: u8 , } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetLocation { + pub asset_id: ::core::primitive::u32, + pub location: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetLocation { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "set_location"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddAssetToPool { pub pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_id : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for AddAssetToPool { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "add_asset_to_pool"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DeleteAssetFromPool { pub pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_id : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for DeleteAssetFromPool { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "delete_asset_from_pool"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Register a new asset."] + #[doc = ""] + #[doc = "Asset is identified by `name` and the name must not be used to"] + #[doc = "register another asset."] + #[doc = ""] + #[doc = "New asset is given `NextAssetId` - sequential asset id"] + #[doc = ""] + #[doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] + #[doc = "be retrieved by name too (Note: this approach is used in AMM"] + #[doc = "implementation (xyk))"] + #[doc = ""] + #[doc = "Emits 'Registered` event when successful."] + pub fn register( + &self, + name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool >, + existential_deposit: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "register", + types::Register { + name, + asset_type, + existential_deposit, + }, + [ + 252u8, 45u8, 222u8, 83u8, 254u8, 164u8, 199u8, + 163u8, 77u8, 255u8, 2u8, 143u8, 50u8, 226u8, 47u8, + 91u8, 89u8, 75u8, 143u8, 234u8, 96u8, 83u8, 255u8, + 78u8, 146u8, 32u8, 217u8, 112u8, 52u8, 190u8, + 107u8, 187u8, + ], + ) + } + #[doc = "Update registered asset."] + #[doc = ""] + #[doc = "Updates also mapping between name and asset id if provided name is"] + #[doc = "different than currently registered."] + #[doc = ""] + #[doc = "Emits `Updated` event when successful."] + pub fn update( + &self, + asset_id: ::core::primitive::u32, + bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool >, + existential_deposit: ::core::option::Option< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "update", + types::Update { + asset_id, + bounded_name, + asset_type, + existential_deposit, + }, + [ + 71u8, 166u8, 66u8, 176u8, 128u8, 130u8, 47u8, + 243u8, 184u8, 119u8, 22u8, 2u8, 97u8, 59u8, 228u8, + 103u8, 144u8, 189u8, 83u8, 74u8, 190u8, 103u8, + 139u8, 217u8, 184u8, 92u8, 157u8, 83u8, 185u8, + 83u8, 34u8, 186u8, + ], + ) + } + #[doc = "Set metadata for an asset."] + #[doc = ""] + #[doc = "- `asset_id`: Asset identifier."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet` event when successful."] + pub fn set_metadata( + &self, + asset_id: ::core::primitive::u32, + symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + decimals: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "set_metadata", + types::SetMetadata { + asset_id, + symbol, + decimals, + }, + [ + 9u8, 120u8, 57u8, 240u8, 115u8, 83u8, 59u8, 131u8, + 253u8, 150u8, 149u8, 66u8, 75u8, 74u8, 35u8, 97u8, + 62u8, 134u8, 103u8, 15u8, 121u8, 202u8, 35u8, + 240u8, 138u8, 20u8, 146u8, 174u8, 99u8, 252u8, + 110u8, 194u8, + ], + ) + } + #[doc = "Set asset native location."] + #[doc = ""] + #[doc = "Adds mapping between native location and local asset id and vice"] + #[doc = "versa."] + #[doc = ""] + #[doc = "Mainly used in XCM."] + #[doc = ""] + #[doc = "Emits `LocationSet` event when successful."] + pub fn set_location( + &self, + asset_id: ::core::primitive::u32, + location: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "set_location", + types::SetLocation { asset_id, location }, + [ + 235u8, 57u8, 17u8, 193u8, 114u8, 60u8, 211u8, + 237u8, 163u8, 80u8, 178u8, 91u8, 195u8, 168u8, + 220u8, 77u8, 64u8, 129u8, 242u8, 37u8, 36u8, 166u8, + 28u8, 157u8, 222u8, 9u8, 197u8, 128u8, 175u8, + 118u8, 131u8, 237u8, + ], + ) + } + #[doc = "Add an asset to an existing pool."] + pub fn add_asset_to_pool( + &self, + pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "add_asset_to_pool", + types::AddAssetToPool { pool, asset_id }, + [ + 150u8, 36u8, 8u8, 105u8, 253u8, 91u8, 165u8, 163u8, + 178u8, 235u8, 110u8, 227u8, 183u8, 8u8, 126u8, + 217u8, 243u8, 37u8, 13u8, 66u8, 72u8, 239u8, 2u8, + 178u8, 152u8, 26u8, 39u8, 131u8, 225u8, 10u8, + 123u8, 134u8, + ], + ) + } + #[doc = "Remove an asset from an existing pool."] + pub fn delete_asset_from_pool( + &self, + pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "delete_asset_from_pool", + types::DeleteAssetFromPool { pool, asset_id }, + [ + 41u8, 72u8, 157u8, 129u8, 82u8, 30u8, 47u8, 66u8, + 180u8, 182u8, 0u8, 171u8, 251u8, 195u8, 72u8, + 181u8, 1u8, 45u8, 233u8, 220u8, 7u8, 45u8, 43u8, + 68u8, 164u8, 107u8, 196u8, 34u8, 225u8, 174u8, + 22u8, 102u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_asset_registry::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Asset was registered."] + pub struct Registered { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } + impl ::subxt::events::StaticEvent for Registered { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "Registered"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Asset was updated."] + pub struct Updated { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } + impl ::subxt::events::StaticEvent for Updated { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "Updated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata set for an asset."] + pub struct MetadataSet { + pub asset_id: ::core::primitive::u32, + pub symbol: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub decimals: ::core::primitive::u8, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Native location set for an asset."] + pub struct LocationSet { + pub asset_id: ::core::primitive::u32, + pub location: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for LocationSet { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "LocationSet"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of an asset."] pub fn assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "Assets" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [182u8 , 114u8 , 167u8 , 11u8 , 64u8 , 250u8 , 48u8 , 87u8 , 231u8 , 111u8 , 138u8 , 236u8 , 205u8 , 82u8 , 37u8 , 218u8 , 41u8 , 136u8 , 38u8 , 62u8 , 215u8 , 152u8 , 76u8 , 17u8 , 209u8 , 60u8 , 196u8 , 247u8 , 99u8 , 45u8 , 32u8 , 224u8 ,]) + } + #[doc = " Details of an asset."] pub fn assets_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "Assets", + Vec::new(), + [ + 182u8, 114u8, 167u8, 11u8, 64u8, 250u8, 48u8, 87u8, + 231u8, 111u8, 138u8, 236u8, 205u8, 82u8, 37u8, + 218u8, 41u8, 136u8, 38u8, 62u8, 215u8, 152u8, 76u8, + 17u8, 209u8, 60u8, 196u8, 247u8, 99u8, 45u8, 32u8, + 224u8, + ], + ) + } + #[doc = " Next available asset id. This is sequential id assigned for each new"] + #[doc = " registered asset."] + pub fn next_asset_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "NextAssetId", + vec![], + [ + 130u8, 214u8, 178u8, 195u8, 222u8, 57u8, 89u8, + 143u8, 138u8, 218u8, 234u8, 251u8, 36u8, 221u8, + 51u8, 213u8, 130u8, 249u8, 153u8, 24u8, 245u8, + 51u8, 126u8, 71u8, 51u8, 148u8, 167u8, 143u8, 33u8, + 15u8, 44u8, 115u8, + ], + ) + } + #[doc = " Mapping between asset name and asset id."] + pub fn asset_ids( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetIds" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [142u8 , 138u8 , 84u8 , 162u8 , 209u8 , 97u8 , 173u8 , 83u8 , 185u8 , 226u8 , 233u8 , 40u8 , 74u8 , 97u8 , 166u8 , 13u8 , 199u8 , 229u8 , 235u8 , 15u8 , 6u8 , 196u8 , 7u8 , 35u8 , 87u8 , 202u8 , 4u8 , 101u8 , 212u8 , 84u8 , 250u8 , 251u8 ,]) + } + #[doc = " Mapping between asset name and asset id."] + pub fn asset_ids_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "AssetIds", + Vec::new(), + [ + 142u8, 138u8, 84u8, 162u8, 209u8, 97u8, 173u8, + 83u8, 185u8, 226u8, 233u8, 40u8, 74u8, 97u8, 166u8, + 13u8, 199u8, 229u8, 235u8, 15u8, 6u8, 196u8, 7u8, + 35u8, 87u8, 202u8, 4u8, 101u8, 212u8, 84u8, 250u8, + 251u8, + ], + ) + } + #[doc = " Native location of an asset."] + pub fn asset_locations( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetLocations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [146u8 , 222u8 , 59u8 , 210u8 , 64u8 , 240u8 , 139u8 , 32u8 , 171u8 , 75u8 , 247u8 , 43u8 , 179u8 , 108u8 , 20u8 , 64u8 , 24u8 , 154u8 , 133u8 , 154u8 , 208u8 , 98u8 , 241u8 , 62u8 , 158u8 , 126u8 , 19u8 , 188u8 , 237u8 , 70u8 , 178u8 , 197u8 ,]) + } + #[doc = " Native location of an asset."] + pub fn asset_locations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "AssetLocations", + Vec::new(), + [ + 146u8, 222u8, 59u8, 210u8, 64u8, 240u8, 139u8, + 32u8, 171u8, 75u8, 247u8, 43u8, 179u8, 108u8, 20u8, + 64u8, 24u8, 154u8, 133u8, 154u8, 208u8, 98u8, + 241u8, 62u8, 158u8, 126u8, 19u8, 188u8, 237u8, + 70u8, 178u8, 197u8, + ], + ) + } + #[doc = " Local asset for native location."] + pub fn location_assets( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "LocationAssets" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [82u8 , 140u8 , 248u8 , 178u8 , 200u8 , 49u8 , 11u8 , 121u8 , 43u8 , 2u8 , 125u8 , 44u8 , 253u8 , 10u8 , 29u8 , 242u8 , 56u8 , 45u8 , 249u8 , 223u8 , 136u8 , 40u8 , 155u8 , 201u8 , 99u8 , 166u8 , 243u8 , 79u8 , 47u8 , 93u8 , 211u8 , 241u8 ,]) + } + #[doc = " Local asset for native location."] + pub fn location_assets_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "LocationAssets", + Vec::new(), + [ + 82u8, 140u8, 248u8, 178u8, 200u8, 49u8, 11u8, + 121u8, 43u8, 2u8, 125u8, 44u8, 253u8, 10u8, 29u8, + 242u8, 56u8, 45u8, 249u8, 223u8, 136u8, 40u8, + 155u8, 201u8, 99u8, 166u8, 243u8, 79u8, 47u8, 93u8, + 211u8, 241u8, + ], + ) + } + #[doc = " Metadata of an asset."] pub fn asset_metadata_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetMetadataMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [44u8 , 143u8 , 207u8 , 24u8 , 27u8 , 113u8 , 207u8 , 155u8 , 211u8 , 232u8 , 91u8 , 255u8 , 153u8 , 141u8 , 196u8 , 195u8 , 124u8 , 164u8 , 72u8 , 41u8 , 185u8 , 232u8 , 190u8 , 195u8 , 205u8 , 146u8 , 56u8 , 154u8 , 1u8 , 113u8 , 54u8 , 86u8 ,]) + } + #[doc = " Metadata of an asset."] pub fn asset_metadata_map_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "AssetMetadataMap", + Vec::new(), + [ + 44u8, 143u8, 207u8, 24u8, 27u8, 113u8, 207u8, + 155u8, 211u8, 232u8, 91u8, 255u8, 153u8, 141u8, + 196u8, 195u8, 124u8, 164u8, 72u8, 41u8, 185u8, + 232u8, 190u8, 195u8, 205u8, 146u8, 56u8, 154u8, + 1u8, 113u8, 54u8, 86u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Native Asset Id"] + pub fn native_asset_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "AssetRegistry", + "NativeAssetId", + [ + 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 currencies { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::orml_currencies::module::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::orml_currencies::module::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Currencies"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferNativeCurrency { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferNativeCurrency { + const PALLET: &'static str = "Currencies"; + const CALL: &'static str = "transfer_native_currency"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UpdateBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + pub amount: ::core::primitive::i128, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateBalance { + const PALLET: &'static str = "Currencies"; + const CALL: &'static str = "update_balance"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Transfer some balance to another account under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Currencies", + "transfer", + types::Transfer { + dest, + currency_id, + amount, + }, + [ + 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, + 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, + 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, + 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, + 176u8, 62u8, + ], + ) + } + #[doc = "Transfer some native currency to another account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + pub fn transfer_native_currency( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Currencies", + "transfer_native_currency", + types::TransferNativeCurrency { dest, amount }, + [ + 212u8, 113u8, 64u8, 214u8, 137u8, 16u8, 101u8, + 17u8, 123u8, 43u8, 143u8, 69u8, 53u8, 22u8, 227u8, + 62u8, 117u8, 160u8, 162u8, 73u8, 195u8, 177u8, + 99u8, 75u8, 48u8, 237u8, 145u8, 164u8, 72u8, 47u8, + 215u8, 117u8, + ], + ) + } + #[doc = "update amount of account `who` under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + pub fn update_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::i128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Currencies", + "update_balance", + types::UpdateBalance { + who, + currency_id, + amount, + }, + [ + 10u8, 79u8, 233u8, 250u8, 126u8, 190u8, 236u8, + 106u8, 73u8, 243u8, 163u8, 187u8, 206u8, 132u8, + 241u8, 254u8, 76u8, 0u8, 38u8, 159u8, 147u8, 102u8, + 126u8, 6u8, 36u8, 129u8, 235u8, 240u8, 233u8, + 100u8, 81u8, 8u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn get_native_currency_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Currencies", + "GetNativeCurrencyId", + [ + 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 tokens { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::orml_tokens::module::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::orml_tokens::module::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "transfer_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub new_reserved: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetBalance { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "set_balance"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] + #[doc = "It will decrease the total issuance of the system by the"] + #[doc = "`TransferFee`. If the sender's account is below the existential"] + #[doc = "deposit as a result of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Tokens", + "transfer", + types::Transfer { + dest, + currency_id, + amount, + }, + [ + 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, + 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, + 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, + 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, + 176u8, 62u8, + ], + ) + } + #[doc = "Transfer all remaining balance to the given account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_"] + #[doc = "balances. This means that any locked, reserved, or existential"] + #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] + #[doc = "this function. To ensure that this function results in a killed"] + #[doc = "account, you might need to prepare the account by removing any"] + #[doc = "reference counters, storage deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] + #[doc = " operation should send all of the funds the account has, causing"] + #[doc = " the sender account to be killed (false), or transfer everything"] + #[doc = " except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true)."] + pub fn transfer_all( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + keep_alive: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Tokens", + "transfer_all", + types::TransferAll { + dest, + currency_id, + keep_alive, + }, + [ + 83u8, 119u8, 29u8, 13u8, 126u8, 23u8, 51u8, 229u8, + 26u8, 65u8, 104u8, 86u8, 68u8, 42u8, 83u8, 171u8, + 177u8, 241u8, 88u8, 235u8, 122u8, 180u8, 216u8, + 118u8, 52u8, 210u8, 95u8, 234u8, 9u8, 188u8, 122u8, + 34u8, + ], + ) + } + #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] + #[doc = "will not kill the origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + pub fn transfer_keep_alive( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Tokens", + "transfer_keep_alive", + types::TransferKeepAlive { + dest, + currency_id, + amount, + }, + [ + 76u8, 132u8, 171u8, 42u8, 174u8, 55u8, 166u8, + 171u8, 22u8, 191u8, 234u8, 185u8, 156u8, 22u8, + 210u8, 10u8, 104u8, 253u8, 183u8, 231u8, 42u8, + 95u8, 204u8, 28u8, 177u8, 5u8, 147u8, 51u8, 160u8, + 132u8, 194u8, 74u8, + ], + ) + } + #[doc = "Exactly as `transfer`, except the origin must be root and the source"] + #[doc = "account may be specified."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The sender of the transfer."] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + pub fn force_transfer( + &self, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Tokens", + "force_transfer", + types::ForceTransfer { + source, + dest, + currency_id, + amount, + }, + [ + 196u8, 35u8, 25u8, 247u8, 46u8, 2u8, 11u8, 188u8, + 120u8, 147u8, 123u8, 147u8, 174u8, 111u8, 237u8, + 23u8, 25u8, 50u8, 34u8, 69u8, 189u8, 211u8, 235u8, + 61u8, 183u8, 42u8, 110u8, 62u8, 44u8, 20u8, 43u8, + 214u8, + ], + ) + } + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] + #[doc = "will also decrease the total issuance of the system"] + #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] + #[doc = "existential deposit, it will reap the `AccountInfo`."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + pub fn set_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + new_free: ::core::primitive::u128, + new_reserved: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Tokens", + "set_balance", + types::SetBalance { + who, + currency_id, + new_free, + new_reserved, + }, + [ + 155u8, 189u8, 114u8, 37u8, 193u8, 38u8, 48u8, 39u8, + 149u8, 224u8, 232u8, 189u8, 205u8, 248u8, 215u8, + 97u8, 50u8, 171u8, 118u8, 214u8, 47u8, 13u8, 104u8, + 3u8, 77u8, 34u8, 37u8, 135u8, 56u8, 94u8, 17u8, + 213u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::orml_tokens::module::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Endowed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was removed whose balance was non-zero but below"] + #[doc = "ExistentialDeposit, resulting in an outright loss."] + pub struct DustLost { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "DustLost"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub currency_id: ::core::primitive::u32, + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was reserved (moved from free to reserved)."] + pub struct Reserved { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Reserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was unreserved (moved from reserved to free)."] + pub struct Unreserved { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Unreserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some reserved balance was repatriated (moved from reserved to"] + #[doc = "another account)."] + pub struct ReserveRepatriated { pub currency_id : :: core :: primitive :: u32 , pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "ReserveRepatriated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A balance was set by root."] + pub struct BalanceSet { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub free: ::core::primitive::u128, + pub reserved: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "BalanceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The total issuance of an currency has been set"] + pub struct TotalIssuanceSet { + pub currency_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for TotalIssuanceSet { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "TotalIssuanceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] + pub struct Withdrawn { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balances were slashed (e.g. due to mis-behavior)"] + pub struct Slashed { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub free_amount: ::core::primitive::u128, + pub reserved_amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Deposited some balance into an account"] + pub struct Deposited { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposited { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Deposited"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds are locked"] + pub struct LockSet { + pub lock_id: [::core::primitive::u8; 8usize], + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for LockSet { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "LockSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some locked funds were unlocked"] + pub struct LockRemoved { + pub lock_id: [::core::primitive::u8; 8usize], + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for LockRemoved { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "LockRemoved"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The total issuance of a token type."] + pub fn total_issuance( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "TotalIssuance" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [98u8 , 233u8 , 210u8 , 150u8 , 87u8 , 41u8 , 162u8 , 54u8 , 32u8 , 221u8 , 211u8 , 10u8 , 170u8 , 237u8 , 65u8 , 73u8 , 46u8 , 4u8 , 5u8 , 209u8 , 170u8 , 13u8 , 231u8 , 113u8 , 196u8 , 133u8 , 38u8 , 213u8 , 225u8 , 160u8 , 31u8 , 122u8 ,]) + } + #[doc = " The total issuance of a token type."] + pub fn total_issuance_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "TotalIssuance", + Vec::new(), + [ + 98u8, 233u8, 210u8, 150u8, 87u8, 41u8, 162u8, 54u8, + 32u8, 221u8, 211u8, 10u8, 170u8, 237u8, 65u8, 73u8, + 46u8, 4u8, 5u8, 209u8, 170u8, 13u8, 231u8, 113u8, + 196u8, 133u8, 38u8, 213u8, 225u8, 160u8, 31u8, + 122u8, + ], + ) + } + #[doc = " Any liquidity locks of a token type under an account."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + pub fn locks( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::orml_tokens::BalanceLock< + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [69u8 , 159u8 , 129u8 , 252u8 , 160u8 , 61u8 , 216u8 , 240u8 , 79u8 , 172u8 , 194u8 , 168u8 , 1u8 , 214u8 , 69u8 , 208u8 , 56u8 , 220u8 , 176u8 , 5u8 , 196u8 , 19u8 , 70u8 , 60u8 , 229u8 , 79u8 , 223u8 , 11u8 , 253u8 , 150u8 , 5u8 , 99u8 ,]) + } + #[doc = " Any liquidity locks of a token type under an account."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + pub fn locks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::orml_tokens::BalanceLock< + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "Locks", + Vec::new(), + [ + 69u8, 159u8, 129u8, 252u8, 160u8, 61u8, 216u8, + 240u8, 79u8, 172u8, 194u8, 168u8, 1u8, 214u8, 69u8, + 208u8, 56u8, 220u8, 176u8, 5u8, 196u8, 19u8, 70u8, + 60u8, 229u8, 79u8, 223u8, 11u8, 253u8, 150u8, 5u8, + 99u8, + ], + ) + } + #[doc = " The balance of a token type under an account."] + #[doc = ""] + #[doc = " NOTE: If the total is ever zero, decrease account ref account."] + #[doc = ""] + #[doc = " NOTE: This is only used in the case that this module is used to store"] + #[doc = " balances."] + pub fn accounts( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::orml_tokens::AccountData< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [136u8 , 147u8 , 98u8 , 221u8 , 153u8 , 10u8 , 206u8 , 218u8 , 153u8 , 159u8 , 62u8 , 152u8 , 110u8 , 198u8 , 125u8 , 15u8 , 127u8 , 21u8 , 31u8 , 191u8 , 241u8 , 167u8 , 124u8 , 77u8 , 138u8 , 133u8 , 204u8 , 30u8 , 180u8 , 253u8 , 126u8 , 214u8 ,]) + } + #[doc = " The balance of a token type under an account."] + #[doc = ""] + #[doc = " NOTE: If the total is ever zero, decrease account ref account."] + #[doc = ""] + #[doc = " NOTE: This is only used in the case that this module is used to store"] + #[doc = " balances."] + pub fn accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::orml_tokens::AccountData< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "Accounts", + Vec::new(), + [ + 136u8, 147u8, 98u8, 221u8, 153u8, 10u8, 206u8, + 218u8, 153u8, 159u8, 62u8, 152u8, 110u8, 198u8, + 125u8, 15u8, 127u8, 21u8, 31u8, 191u8, 241u8, + 167u8, 124u8, 77u8, 138u8, 133u8, 204u8, 30u8, + 180u8, 253u8, 126u8, 214u8, + ], + ) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::orml_tokens::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [103u8 , 137u8 , 30u8 , 231u8 , 144u8 , 86u8 , 36u8 , 246u8 , 38u8 , 138u8 , 76u8 , 9u8 , 82u8 , 232u8 , 100u8 , 7u8 , 48u8 , 111u8 , 249u8 , 59u8 , 57u8 , 60u8 , 5u8 , 70u8 , 144u8 , 190u8 , 122u8 , 205u8 , 36u8 , 237u8 , 57u8 , 254u8 ,]) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::orml_tokens::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "Reserves", + Vec::new(), + [ + 103u8, 137u8, 30u8, 231u8, 144u8, 86u8, 36u8, + 246u8, 38u8, 138u8, 76u8, 9u8, 82u8, 232u8, 100u8, + 7u8, 48u8, 111u8, 249u8, 59u8, 57u8, 60u8, 5u8, + 70u8, 144u8, 190u8, 122u8, 205u8, 36u8, 237u8, + 57u8, 254u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn max_locks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Tokens", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of named reserves that can exist on an account."] + pub fn max_reserves( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Tokens", + "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, + ], + ) + } + } + } + } + pub mod token_wrapper { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_token_wrapper::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_token_wrapper::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetWrappingFee { + pub fee: ::core::primitive::u128, + pub into_pool_share_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetWrappingFee { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "set_wrapping_fee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetFeeRecipient { + pub pool_share_id: ::core::primitive::u32, + pub fee_recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetFeeRecipient { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "set_fee_recipient"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Wrap { + pub from_asset_id: ::core::primitive::u32, + pub into_pool_share_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for Wrap { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "wrap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unwrap { + pub from_pool_share_id: ::core::primitive::u32, + pub into_asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for Unwrap { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "unwrap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RescueTokens { + pub from_pool_share_id: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RescueTokens { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "rescue_tokens"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn set_wrapping_fee( + &self, + fee: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "set_wrapping_fee", + types::SetWrappingFee { + fee, + into_pool_share_id, + nonce, + }, + [ + 60u8, 135u8, 246u8, 184u8, 70u8, 22u8, 245u8, 60u8, + 190u8, 224u8, 114u8, 168u8, 238u8, 146u8, 49u8, + 213u8, 85u8, 107u8, 221u8, 241u8, 218u8, 121u8, + 170u8, 227u8, 254u8, 146u8, 84u8, 21u8, 249u8, + 65u8, 1u8, 73u8, + ], + ) + } + pub fn set_fee_recipient( + &self, + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "set_fee_recipient", + types::SetFeeRecipient { + pool_share_id, + fee_recipient, + nonce, + }, + [ + 4u8, 219u8, 75u8, 151u8, 219u8, 115u8, 91u8, 35u8, + 73u8, 226u8, 132u8, 46u8, 137u8, 243u8, 186u8, + 25u8, 49u8, 233u8, 67u8, 218u8, 187u8, 182u8, 52u8, + 11u8, 139u8, 91u8, 69u8, 112u8, 141u8, 80u8, 141u8, + 210u8, + ], + ) + } + pub fn wrap( + &self, + from_asset_id: ::core::primitive::u32, + into_pool_share_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "wrap", + types::Wrap { + from_asset_id, + into_pool_share_id, + amount, + recipient, + }, + [ + 151u8, 42u8, 129u8, 19u8, 51u8, 10u8, 96u8, 207u8, + 223u8, 91u8, 43u8, 25u8, 221u8, 146u8, 64u8, 244u8, + 239u8, 74u8, 177u8, 62u8, 28u8, 41u8, 125u8, 63u8, + 191u8, 218u8, 188u8, 23u8, 196u8, 98u8, 201u8, + 82u8, + ], + ) + } + pub fn unwrap( + &self, + from_pool_share_id: ::core::primitive::u32, + into_asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "unwrap", + types::Unwrap { + from_pool_share_id, + into_asset_id, + amount, + recipient, + }, + [ + 3u8, 113u8, 42u8, 230u8, 32u8, 79u8, 31u8, 174u8, + 5u8, 72u8, 213u8, 19u8, 44u8, 117u8, 75u8, 170u8, + 14u8, 1u8, 18u8, 30u8, 32u8, 142u8, 2u8, 3u8, + 218u8, 244u8, 201u8, 16u8, 192u8, 142u8, 194u8, + 6u8, + ], + ) + } + pub fn rescue_tokens( + &self, + from_pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "rescue_tokens", + types::RescueTokens { + from_pool_share_id, + asset_id, + amount, + recipient, + nonce, + }, + [ + 253u8, 87u8, 167u8, 31u8, 39u8, 125u8, 110u8, 56u8, + 163u8, 190u8, 120u8, 179u8, 145u8, 82u8, 214u8, + 146u8, 61u8, 70u8, 48u8, 19u8, 156u8, 21u8, 176u8, + 146u8, 195u8, 127u8, 118u8, 61u8, 170u8, 119u8, + 187u8, 106u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_token_wrapper::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WrappedToken { + pub pool_share_asset: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for WrappedToken { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "WrappedToken"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnwrappedToken { + pub pool_share_asset: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for UnwrappedToken { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "UnwrappedToken"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdatedWrappingFeePercent { + pub into_pool_share_id: ::core::primitive::u32, + pub wrapping_fee_percent: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "UpdatedWrappingFeePercent"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdatedFeeRecipient { + pub fee_recipient: ::subxt::utils::AccountId32, + pub pool_share_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for UpdatedFeeRecipient { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "UpdatedFeeRecipient"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TokensRescued { + pub from_pool_share_id: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for TokensRescued { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "TokensRescued"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Percentage of amount to be used as wrapping fee"] + pub fn wrapping_fee_percent( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "WrappingFeePercent" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 126u8 , 185u8 , 195u8 , 250u8 , 224u8 , 247u8 , 225u8 , 251u8 , 232u8 , 118u8 , 36u8 , 104u8 , 42u8 , 118u8 , 184u8 , 232u8 , 148u8 , 238u8 , 142u8 , 123u8 , 71u8 , 37u8 , 218u8 , 200u8 , 216u8 , 84u8 , 184u8 , 4u8 , 56u8 , 13u8 , 94u8 ,]) + } + #[doc = " Percentage of amount to be used as wrapping fee"] + pub fn wrapping_fee_percent_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TokenWrapper", + "WrappingFeePercent", + Vec::new(), + [ + 31u8, 126u8, 185u8, 195u8, 250u8, 224u8, 247u8, + 225u8, 251u8, 232u8, 118u8, 36u8, 104u8, 42u8, + 118u8, 184u8, 232u8, 148u8, 238u8, 142u8, 123u8, + 71u8, 37u8, 218u8, 200u8, 216u8, 84u8, 184u8, 4u8, + 56u8, 13u8, 94u8, + ], + ) + } + #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] + pub fn fee_recipient( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "FeeRecipient" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [79u8 , 99u8 , 123u8 , 161u8 , 162u8 , 129u8 , 150u8 , 254u8 , 231u8 , 49u8 , 234u8 , 102u8 , 25u8 , 234u8 , 86u8 , 145u8 , 97u8 , 30u8 , 37u8 , 85u8 , 223u8 , 139u8 , 16u8 , 16u8 , 12u8 , 70u8 , 12u8 , 113u8 , 95u8 , 141u8 , 134u8 , 142u8 ,]) + } + #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] + pub fn fee_recipient_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TokenWrapper", + "FeeRecipient", + Vec::new(), + [ + 79u8, 99u8, 123u8, 161u8, 162u8, 129u8, 150u8, + 254u8, 231u8, 49u8, 234u8, 102u8, 25u8, 234u8, + 86u8, 145u8, 97u8, 30u8, 37u8, 85u8, 223u8, 139u8, + 16u8, 16u8, 12u8, 70u8, 12u8, 113u8, 95u8, 141u8, + 134u8, 142u8, + ], + ) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "ProposalNonce" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [255u8 , 130u8 , 216u8 , 75u8 , 22u8 , 132u8 , 182u8 , 54u8 , 158u8 , 158u8 , 6u8 , 185u8 , 86u8 , 163u8 , 142u8 , 247u8 , 135u8 , 96u8 , 187u8 , 53u8 , 18u8 , 142u8 , 28u8 , 247u8 , 190u8 , 42u8 , 246u8 , 180u8 , 25u8 , 163u8 , 134u8 , 228u8 ,]) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TokenWrapper", + "ProposalNonce", + Vec::new(), + [ + 255u8, 130u8, 216u8, 75u8, 22u8, 132u8, 182u8, + 54u8, 158u8, 158u8, 6u8, 185u8, 86u8, 163u8, 142u8, + 247u8, 135u8, 96u8, 187u8, 53u8, 18u8, 142u8, 28u8, + 247u8, 190u8, 42u8, 246u8, 180u8, 25u8, 163u8, + 134u8, 228u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "TokenWrapper", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + pub fn treasury_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "TokenWrapper", + "TreasuryId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + pub fn wrapping_fee_divider( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "TokenWrapper", + "WrappingFeeDivider", + [ + 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 token_wrapper_handler { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = + runtime_types::pallet_token_wrapper_handler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = + runtime_types::pallet_token_wrapper_handler::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteWrappingFeeProposal { + pub wrapping_fee_percent: ::core::primitive::u128, + pub into_pool_share_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteWrappingFeeProposal { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = "execute_wrapping_fee_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteAddTokenToPoolShare { + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub asset_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteAddTokenToPoolShare { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = + "execute_add_token_to_pool_share"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteRemoveTokenFromPoolShare { + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub asset_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteRemoveTokenFromPoolShare { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = + "execute_remove_token_from_pool_share"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetFeeRecipientProposal { + pub pool_share_id: ::core::primitive::u32, + pub fee_recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetFeeRecipientProposal { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = + "execute_set_fee_recipient_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteRescueTokensProposal { + pub pool_share_id: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteRescueTokensProposal { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = "execute_rescue_tokens_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] + #[doc = "method. Ensures that only the bridge can call this function."] + pub fn execute_wrapping_fee_proposal( + &self, + wrapping_fee_percent: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_wrapping_fee_proposal", + types::ExecuteWrappingFeeProposal { + wrapping_fee_percent, + into_pool_share_id, + nonce, + }, + [ + 151u8, 198u8, 139u8, 120u8, 128u8, 232u8, 69u8, + 120u8, 115u8, 47u8, 107u8, 79u8, 227u8, 240u8, + 115u8, 75u8, 93u8, 122u8, 216u8, 5u8, 163u8, 45u8, + 124u8, 42u8, 108u8, 171u8, 164u8, 75u8, 81u8, + 105u8, 156u8, 63u8, + ], + ) + } + pub fn execute_add_token_to_pool_share( + &self, + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_add_token_to_pool_share", + types::ExecuteAddTokenToPoolShare { + name, + asset_id, + nonce, + }, + [ + 100u8, 68u8, 240u8, 86u8, 44u8, 153u8, 29u8, 25u8, + 97u8, 95u8, 237u8, 202u8, 172u8, 150u8, 40u8, + 206u8, 67u8, 115u8, 11u8, 48u8, 2u8, 97u8, 41u8, + 2u8, 22u8, 172u8, 6u8, 11u8, 251u8, 248u8, 193u8, + 11u8, + ], + ) + } + pub fn execute_remove_token_from_pool_share( + &self, + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_remove_token_from_pool_share", + types::ExecuteRemoveTokenFromPoolShare { + name, + asset_id, + nonce, + }, + [ + 174u8, 253u8, 31u8, 62u8, 240u8, 34u8, 230u8, + 165u8, 169u8, 90u8, 189u8, 44u8, 12u8, 169u8, + 136u8, 98u8, 192u8, 79u8, 223u8, 153u8, 239u8, + 84u8, 71u8, 108u8, 178u8, 143u8, 61u8, 148u8, 6u8, + 204u8, 105u8, 144u8, + ], + ) + } + #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] + #[doc = "who will be receiving wrapping fee cost for given asset."] + #[doc = "Ensures that only the bridge can call this function."] + pub fn execute_set_fee_recipient_proposal( + &self, + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_set_fee_recipient_proposal", + types::ExecuteSetFeeRecipientProposal { + pool_share_id, + fee_recipient, + nonce, + }, + [ + 5u8, 50u8, 89u8, 17u8, 97u8, 30u8, 250u8, 167u8, + 227u8, 198u8, 222u8, 211u8, 6u8, 165u8, 94u8, + 252u8, 151u8, 49u8, 74u8, 244u8, 131u8, 196u8, + 234u8, 202u8, 19u8, 92u8, 247u8, 183u8, 242u8, + 89u8, 98u8, 40u8, + ], + ) + } + #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] + #[doc = "fee recipient to given recipient address from given asset."] + #[doc = "Ensures that only the bridge can call this function."] + pub fn execute_rescue_tokens_proposal( + &self, + pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_rescue_tokens_proposal", + types::ExecuteRescueTokensProposal { + pool_share_id, + asset_id, + amount, + recipient, + nonce, + }, + [ + 152u8, 151u8, 76u8, 65u8, 60u8, 153u8, 36u8, 0u8, + 46u8, 254u8, 155u8, 205u8, 61u8, 153u8, 8u8, 137u8, + 53u8, 66u8, 49u8, 14u8, 53u8, 250u8, 95u8, 98u8, + 148u8, 141u8, 135u8, 142u8, 163u8, 123u8, 250u8, + 235u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_token_wrapper_handler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdatedWrappingFeePercent { + pub wrapping_fee_percent: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { + const PALLET: &'static str = "TokenWrapperHandler"; + const EVENT: &'static str = "UpdatedWrappingFeePercent"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi {} + } + } + pub mod mixer_verifier_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_verifier::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_verifier::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetParameters { pub parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { + const PALLET: &'static str = "MixerVerifierBn254"; + const CALL: &'static str = "force_set_parameters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn force_set_parameters( + &self, + parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "MixerVerifierBn254", + "force_set_parameters", + types::ForceSetParameters { parameters }, + [ + 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, + 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, + 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, + 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, + 75u8, 166u8, 90u8, 127u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_verifier::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters"] + pub fn parameters( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MixerVerifierBn254", + "Parameters", + vec![], + [ + 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, + 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, + 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, + 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, + 110u8, 163u8, 192u8, + ], + ) + } + } + } + } + pub mod v_anchor_verifier { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_vanchor_verifier::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_vanchor_verifier::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetParameters { pub configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , pub parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { + const PALLET: &'static str = "VAnchorVerifier"; + const CALL: &'static str = "force_set_parameters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn force_set_parameters( + &self, + configuration: ( + ::core::primitive::u8, + ::core::primitive::u8, + ), + parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorVerifier", + "force_set_parameters", + types::ForceSetParameters { + configuration, + parameters, + }, + [ + 21u8, 13u8, 77u8, 47u8, 51u8, 143u8, 238u8, 56u8, + 197u8, 27u8, 184u8, 112u8, 150u8, 225u8, 90u8, + 114u8, 85u8, 223u8, 80u8, 180u8, 87u8, 224u8, 88u8, + 240u8, 31u8, 155u8, 173u8, 71u8, 22u8, 223u8, + 162u8, 180u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vanchor_verifier::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters for different vanchor configurations"] + pub fn parameters( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u8>, + _1: impl ::std::borrow::Borrow<::core::primitive::u8>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("VAnchorVerifier" , "Parameters" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [158u8 , 70u8 , 6u8 , 255u8 , 76u8 , 199u8 , 208u8 , 93u8 , 218u8 , 86u8 , 190u8 , 70u8 , 232u8 , 57u8 , 91u8 , 148u8 , 223u8 , 50u8 , 229u8 , 94u8 , 50u8 , 78u8 , 22u8 , 207u8 , 30u8 , 179u8 , 158u8 , 85u8 , 139u8 , 166u8 , 240u8 , 136u8 ,]) + } + #[doc = " Details of the module's parameters for different vanchor configurations"] + pub fn parameters_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VAnchorVerifier", + "Parameters", + Vec::new(), + [ + 158u8, 70u8, 6u8, 255u8, 76u8, 199u8, 208u8, 93u8, + 218u8, 86u8, 190u8, 70u8, 232u8, 57u8, 91u8, 148u8, + 223u8, 50u8, 229u8, 94u8, 50u8, 78u8, 22u8, 207u8, + 30u8, 179u8, 158u8, 85u8, 139u8, 166u8, 240u8, + 136u8, + ], + ) + } + } + } + } + pub mod merkle_tree_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_mt::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_mt::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub depth: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "MerkleTreeBn254"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Insert { + pub tree_id: ::core::primitive::u32, + pub leaf: runtime_types::webb_primitives::runtime::Element, + } + impl ::subxt::blocks::StaticExtrinsic for Insert { + const PALLET: &'static str = "MerkleTreeBn254"; + const CALL: &'static str = "insert"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetDefaultHashes { pub default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetDefaultHashes { + const PALLET: &'static str = "MerkleTreeBn254"; + const CALL: &'static str = "force_set_default_hashes"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + depth: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MerkleTreeBn254", + "create", + types::Create { depth }, + [ + 101u8, 141u8, 101u8, 131u8, 97u8, 194u8, 160u8, + 159u8, 181u8, 29u8, 158u8, 167u8, 174u8, 21u8, 2u8, + 191u8, 254u8, 131u8, 228u8, 162u8, 70u8, 187u8, + 140u8, 95u8, 113u8, 138u8, 81u8, 219u8, 109u8, + 176u8, 131u8, 58u8, + ], + ) + } + pub fn insert( + &self, + tree_id: ::core::primitive::u32, + leaf: runtime_types::webb_primitives::runtime::Element, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MerkleTreeBn254", + "insert", + types::Insert { tree_id, leaf }, + [ + 151u8, 86u8, 79u8, 4u8, 158u8, 170u8, 235u8, 236u8, + 161u8, 51u8, 108u8, 207u8, 113u8, 70u8, 64u8, 5u8, + 94u8, 5u8, 147u8, 87u8, 250u8, 27u8, 111u8, 46u8, + 141u8, 67u8, 223u8, 254u8, 177u8, 171u8, 111u8, + 103u8, + ], + ) + } + pub fn force_set_default_hashes( + &self, + default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "MerkleTreeBn254", + "force_set_default_hashes", + types::ForceSetDefaultHashes { default_hashes }, + [ + 39u8, 13u8, 28u8, 236u8, 30u8, 33u8, 206u8, 43u8, + 40u8, 220u8, 116u8, 91u8, 123u8, 161u8, 227u8, + 42u8, 155u8, 46u8, 27u8, 13u8, 101u8, 23u8, 103u8, + 151u8, 216u8, 71u8, 97u8, 160u8, 209u8, 76u8, 71u8, + 74u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_mt::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct TreeCreation { + pub tree_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for TreeCreation { + const PALLET: &'static str = "MerkleTreeBn254"; + const EVENT: &'static str = "TreeCreation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New leaf inserted"] + pub struct LeafInsertion { + pub tree_id: ::core::primitive::u32, + pub leaf_index: ::core::primitive::u32, + pub leaf: runtime_types::webb_primitives::runtime::Element, + } + impl ::subxt::events::StaticEvent for LeafInsertion { + const PALLET: &'static str = "MerkleTreeBn254"; + const EVENT: &'static str = "LeafInsertion"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters"] + pub fn deposit( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::types::DepositDetails< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "Deposit", + vec![], + [ + 175u8, 238u8, 72u8, 65u8, 101u8, 152u8, 252u8, + 101u8, 127u8, 181u8, 93u8, 29u8, 16u8, 241u8, + 243u8, 226u8, 128u8, 149u8, 202u8, 94u8, 15u8, + 35u8, 11u8, 240u8, 16u8, 177u8, 120u8, 193u8, + 213u8, 236u8, 151u8, 36u8, + ], + ) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_tree_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "NextTreeId", + vec![], + [ + 173u8, 89u8, 80u8, 58u8, 200u8, 64u8, 201u8, 3u8, + 169u8, 139u8, 75u8, 117u8, 56u8, 52u8, 163u8, 25u8, + 83u8, 189u8, 66u8, 245u8, 249u8, 30u8, 211u8, + 225u8, 16u8, 47u8, 232u8, 148u8, 75u8, 156u8, + 233u8, 74u8, + ], + ) + } + #[doc = " The map of trees to their metadata"] + pub fn trees( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_mt::types::TreeMetadata< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + runtime_types::webb_primitives::runtime::Element, + runtime_types::webb_standalone_runtime::MaxEdges, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "Trees" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [64u8 , 52u8 , 2u8 , 9u8 , 150u8 , 70u8 , 94u8 , 245u8 , 245u8 , 212u8 , 230u8 , 204u8 , 106u8 , 58u8 , 79u8 , 64u8 , 17u8 , 36u8 , 212u8 , 85u8 , 67u8 , 39u8 , 90u8 , 194u8 , 193u8 , 110u8 , 85u8 , 133u8 , 224u8 , 193u8 , 13u8 , 46u8 ,]) + } + #[doc = " The map of trees to their metadata"] + pub fn trees_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_mt::types::TreeMetadata< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + runtime_types::webb_primitives::runtime::Element, + runtime_types::webb_standalone_runtime::MaxEdges, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "Trees", + Vec::new(), + [ + 64u8, 52u8, 2u8, 9u8, 150u8, 70u8, 94u8, 245u8, + 245u8, 212u8, 230u8, 204u8, 106u8, 58u8, 79u8, + 64u8, 17u8, 36u8, 212u8, 85u8, 67u8, 39u8, 90u8, + 194u8, 193u8, 110u8, 85u8, 133u8, 224u8, 193u8, + 13u8, 46u8, + ], + ) + } + #[doc = " The default hashes for this tree pallet"] + pub fn default_hashes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::webb_primitives::runtime::Element, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "DefaultHashes", + vec![], + [ + 5u8, 167u8, 42u8, 194u8, 16u8, 7u8, 44u8, 239u8, + 119u8, 4u8, 126u8, 229u8, 53u8, 70u8, 117u8, 18u8, + 91u8, 186u8, 181u8, 55u8, 188u8, 230u8, 11u8, + 196u8, 247u8, 30u8, 98u8, 58u8, 193u8, 76u8, 9u8, + 212u8, + ], + ) + } + #[doc = " The map of (tree_id, index) to the leaf commitment"] + pub fn leaves( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::runtime::Element, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "Leaves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [254u8 , 175u8 , 119u8 , 127u8 , 20u8 , 24u8 , 100u8 , 16u8 , 25u8 , 49u8 , 82u8 , 151u8 , 73u8 , 145u8 , 127u8 , 130u8 , 154u8 , 198u8 , 137u8 , 37u8 , 202u8 , 114u8 , 151u8 , 31u8 , 246u8 , 162u8 , 210u8 , 127u8 , 139u8 , 44u8 , 35u8 , 13u8 ,]) + } + #[doc = " The map of (tree_id, index) to the leaf commitment"] + pub fn leaves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::runtime::Element, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "Leaves", + Vec::new(), + [ + 254u8, 175u8, 119u8, 127u8, 20u8, 24u8, 100u8, + 16u8, 25u8, 49u8, 82u8, 151u8, 73u8, 145u8, 127u8, + 130u8, 154u8, 198u8, 137u8, 37u8, 202u8, 114u8, + 151u8, 31u8, 246u8, 162u8, 210u8, 127u8, 139u8, + 44u8, 35u8, 13u8, + ], + ) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_root_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "NextRootIndex", + vec![], + [ + 175u8, 70u8, 212u8, 119u8, 231u8, 181u8, 88u8, + 15u8, 186u8, 22u8, 1u8, 117u8, 56u8, 178u8, 191u8, + 154u8, 150u8, 203u8, 131u8, 128u8, 22u8, 141u8, + 171u8, 148u8, 160u8, 177u8, 38u8, 48u8, 76u8, + 198u8, 224u8, 126u8, + ], + ) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_leaf_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "NextLeafIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [50u8 , 243u8 , 135u8 , 181u8 , 149u8 , 69u8 , 42u8 , 31u8 , 72u8 , 206u8 , 86u8 , 230u8 , 207u8 , 247u8 , 60u8 , 27u8 , 91u8 , 95u8 , 103u8 , 48u8 , 101u8 , 252u8 , 136u8 , 220u8 , 56u8 , 246u8 , 184u8 , 208u8 , 140u8 , 82u8 , 250u8 , 22u8 ,]) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_leaf_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "NextLeafIndex", + Vec::new(), + [ + 50u8, 243u8, 135u8, 181u8, 149u8, 69u8, 42u8, 31u8, + 72u8, 206u8, 86u8, 230u8, 207u8, 247u8, 60u8, 27u8, + 91u8, 95u8, 103u8, 48u8, 101u8, 252u8, 136u8, + 220u8, 56u8, 246u8, 184u8, 208u8, 140u8, 82u8, + 250u8, 22u8, + ], + ) + } + #[doc = " Map of root history from tree id to root index to root values"] + pub fn cached_roots( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::runtime::Element, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "CachedRoots" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [60u8 , 183u8 , 112u8 , 98u8 , 129u8 , 52u8 , 122u8 , 187u8 , 82u8 , 235u8 , 222u8 , 75u8 , 72u8 , 150u8 , 53u8 , 69u8 , 76u8 , 144u8 , 11u8 , 131u8 , 140u8 , 152u8 , 243u8 , 122u8 , 168u8 , 92u8 , 219u8 , 42u8 , 229u8 , 208u8 , 78u8 , 105u8 ,]) + } + #[doc = " Map of root history from tree id to root index to root values"] + pub fn cached_roots_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::runtime::Element, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "CachedRoots", + Vec::new(), + [ + 60u8, 183u8, 112u8, 98u8, 129u8, 52u8, 122u8, + 187u8, 82u8, 235u8, 222u8, 75u8, 72u8, 150u8, 53u8, + 69u8, 76u8, 144u8, 11u8, 131u8, 140u8, 152u8, + 243u8, 122u8, 168u8, 92u8, 219u8, 42u8, 229u8, + 208u8, 78u8, 105u8, + ], + ) + } + } + } + } + pub mod linkable_tree_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_linkable_tree::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_linkable_tree::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub max_edges: ::core::primitive::u32, + pub depth: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "LinkableTreeBn254"; + const CALL: &'static str = "create"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + max_edges: ::core::primitive::u32, + depth: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "LinkableTreeBn254", + "create", + types::Create { max_edges, depth }, + [ + 95u8, 217u8, 213u8, 178u8, 133u8, 233u8, 101u8, + 67u8, 62u8, 233u8, 188u8, 150u8, 111u8, 88u8, 0u8, + 241u8, 215u8, 208u8, 245u8, 191u8, 52u8, 162u8, + 79u8, 231u8, 228u8, 232u8, 49u8, 103u8, 178u8, + 96u8, 176u8, 206u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_linkable_tree::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct LinkableTreeCreation { + pub tree_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for LinkableTreeCreation { + const PALLET: &'static str = "LinkableTreeBn254"; + const EVENT: &'static str = "LinkableTreeCreation"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of trees to the maximum number of anchor edges they can have"] + pub fn max_edges( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "MaxEdges" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [198u8 , 254u8 , 155u8 , 234u8 , 177u8 , 109u8 , 109u8 , 57u8 , 207u8 , 37u8 , 12u8 , 234u8 , 187u8 , 187u8 , 77u8 , 227u8 , 100u8 , 135u8 , 111u8 , 195u8 , 194u8 , 104u8 , 52u8 , 186u8 , 10u8 , 128u8 , 248u8 , 88u8 , 87u8 , 154u8 , 229u8 , 90u8 ,]) + } + #[doc = " The map of trees to the maximum number of anchor edges they can have"] + pub fn max_edges_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "MaxEdges", + Vec::new(), + [ + 198u8, 254u8, 155u8, 234u8, 177u8, 109u8, 109u8, + 57u8, 207u8, 37u8, 12u8, 234u8, 187u8, 187u8, 77u8, + 227u8, 100u8, 135u8, 111u8, 195u8, 194u8, 104u8, + 52u8, 186u8, 10u8, 128u8, 248u8, 88u8, 87u8, 154u8, + 229u8, 90u8, + ], + ) + } + #[doc = " The map of trees and chain ids to their edge metadata"] + pub fn edge_list( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_linkable_tree::types::EdgeMetadata< + ::core::primitive::u64, + runtime_types::webb_primitives::runtime::Element, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "EdgeList" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [129u8 , 93u8 , 177u8 , 204u8 , 167u8 , 37u8 , 32u8 , 189u8 , 47u8 , 99u8 , 19u8 , 161u8 , 55u8 , 2u8 , 224u8 , 1u8 , 223u8 , 145u8 , 51u8 , 138u8 , 243u8 , 185u8 , 255u8 , 32u8 , 6u8 , 123u8 , 244u8 , 248u8 , 133u8 , 189u8 , 97u8 , 159u8 ,]) + } + #[doc = " The map of trees and chain ids to their edge metadata"] + pub fn edge_list_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_linkable_tree::types::EdgeMetadata< + ::core::primitive::u64, + runtime_types::webb_primitives::runtime::Element, + ::core::primitive::u32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "EdgeList", + Vec::new(), + [ + 129u8, 93u8, 177u8, 204u8, 167u8, 37u8, 32u8, + 189u8, 47u8, 99u8, 19u8, 161u8, 55u8, 2u8, 224u8, + 1u8, 223u8, 145u8, 51u8, 138u8, 243u8, 185u8, + 255u8, 32u8, 6u8, 123u8, 244u8, 248u8, 133u8, + 189u8, 97u8, 159u8, + ], + ) + } + #[doc = " A helper map for denoting whether an tree is bridged to given chain"] + pub fn linkable_tree_has_edge( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "LinkableTreeHasEdge" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [159u8 , 137u8 , 120u8 , 239u8 , 119u8 , 134u8 , 14u8 , 74u8 , 253u8 , 30u8 , 22u8 , 29u8 , 177u8 , 255u8 , 4u8 , 81u8 , 86u8 , 20u8 , 141u8 , 192u8 , 23u8 , 16u8 , 200u8 , 87u8 , 93u8 , 252u8 , 91u8 , 240u8 , 162u8 , 163u8 , 146u8 , 163u8 ,]) + } + #[doc = " A helper map for denoting whether an tree is bridged to given chain"] + pub fn linkable_tree_has_edge_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "LinkableTreeHasEdge", + Vec::new(), + [ + 159u8, 137u8, 120u8, 239u8, 119u8, 134u8, 14u8, + 74u8, 253u8, 30u8, 22u8, 29u8, 177u8, 255u8, 4u8, + 81u8, 86u8, 20u8, 141u8, 192u8, 23u8, 16u8, 200u8, + 87u8, 93u8, 252u8, 91u8, 240u8, 162u8, 163u8, + 146u8, 163u8, + ], + ) + } + #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] + pub fn neighbor_roots( + &self, + _0: impl ::std::borrow::Borrow<( + ::core::primitive::u32, + ::core::primitive::u64, + )>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::runtime::Element, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "NeighborRoots" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [240u8 , 198u8 , 38u8 , 115u8 , 71u8 , 53u8 , 46u8 , 249u8 , 243u8 , 197u8 , 50u8 , 11u8 , 181u8 , 11u8 , 183u8 , 61u8 , 213u8 , 66u8 , 191u8 , 220u8 , 225u8 , 203u8 , 3u8 , 190u8 , 131u8 , 47u8 , 66u8 , 12u8 , 68u8 , 201u8 , 181u8 , 99u8 ,]) + } + #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] + pub fn neighbor_roots_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::runtime::Element, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "NeighborRoots", + Vec::new(), + [ + 240u8, 198u8, 38u8, 115u8, 71u8, 53u8, 46u8, 249u8, + 243u8, 197u8, 50u8, 11u8, 181u8, 11u8, 183u8, 61u8, + 213u8, 66u8, 191u8, 220u8, 225u8, 203u8, 3u8, + 190u8, 131u8, 47u8, 66u8, 12u8, 68u8, 201u8, 181u8, + 99u8, + ], + ) + } + #[doc = " The next neighbor root index to store the merkle root update record"] + pub fn current_neighbor_root_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "CurrentNeighborRootIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [114u8 , 40u8 , 99u8 , 72u8 , 241u8 , 89u8 , 253u8 , 122u8 , 226u8 , 181u8 , 168u8 , 58u8 , 70u8 , 0u8 , 110u8 , 141u8 , 58u8 , 12u8 , 177u8 , 129u8 , 103u8 , 45u8 , 160u8 , 139u8 , 99u8 , 198u8 , 181u8 , 154u8 , 78u8 , 62u8 , 201u8 , 227u8 ,]) + } + #[doc = " The next neighbor root index to store the merkle root update record"] + pub fn current_neighbor_root_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "CurrentNeighborRootIndex", + Vec::new(), + [ + 114u8, 40u8, 99u8, 72u8, 241u8, 89u8, 253u8, 122u8, + 226u8, 181u8, 168u8, 58u8, 70u8, 0u8, 110u8, 141u8, + 58u8, 12u8, 177u8, 129u8, 103u8, 45u8, 160u8, + 139u8, 99u8, 198u8, 181u8, 154u8, 78u8, 62u8, + 201u8, 227u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " ChainID type for this chain"] + pub fn chain_type( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 2usize]> + { + ::subxt::constants::Address::new_static( + "LinkableTreeBn254", + "ChainType", + [ + 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, + 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, + 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, + 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, + 240u8, 86u8, + ], + ) + } + pub fn chain_identifier( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "LinkableTreeBn254", + "ChainIdentifier", + [ + 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 pruning length for neighbor root histories"] + pub fn history_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "LinkableTreeBn254", + "HistoryLength", + [ + 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 mixer_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_mixer::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_mixer::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub deposit_size: ::core::primitive::u128, + pub depth: ::core::primitive::u8, + pub asset: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "MixerBn254"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Deposit { + pub tree_id: ::core::primitive::u32, + pub leaf: runtime_types::webb_primitives::runtime::Element, + } + impl ::subxt::blocks::StaticExtrinsic for Deposit { + const PALLET: &'static str = "MixerBn254"; + const CALL: &'static str = "deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Withdraw { + pub id: ::core::primitive::u32, + pub proof_bytes: ::std::vec::Vec<::core::primitive::u8>, + pub root: runtime_types::webb_primitives::runtime::Element, + pub nullifier_hash: + runtime_types::webb_primitives::runtime::Element, + pub recipient: ::subxt::utils::AccountId32, + pub relayer: ::subxt::utils::AccountId32, + pub fee: ::core::primitive::u128, + pub refund: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Withdraw { + const PALLET: &'static str = "MixerBn254"; + const CALL: &'static str = "withdraw"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + deposit_size: ::core::primitive::u128, + depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MixerBn254", + "create", + types::Create { + deposit_size, + depth, + asset, + }, + [ + 53u8, 217u8, 41u8, 250u8, 195u8, 125u8, 121u8, + 239u8, 62u8, 136u8, 254u8, 202u8, 250u8, 97u8, + 183u8, 23u8, 85u8, 249u8, 212u8, 217u8, 218u8, + 162u8, 212u8, 89u8, 76u8, 95u8, 239u8, 34u8, 76u8, + 231u8, 27u8, 151u8, + ], + ) + } + pub fn deposit( + &self, + tree_id: ::core::primitive::u32, + leaf: runtime_types::webb_primitives::runtime::Element, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MixerBn254", + "deposit", + types::Deposit { tree_id, leaf }, + [ + 104u8, 199u8, 158u8, 83u8, 100u8, 27u8, 207u8, + 32u8, 124u8, 162u8, 5u8, 227u8, 125u8, 197u8, + 251u8, 180u8, 199u8, 250u8, 95u8, 69u8, 174u8, + 124u8, 66u8, 95u8, 122u8, 84u8, 231u8, 8u8, 205u8, + 71u8, 23u8, 224u8, + ], + ) + } + pub fn withdraw( + &self, + id: ::core::primitive::u32, + proof_bytes: ::std::vec::Vec<::core::primitive::u8>, + root: runtime_types::webb_primitives::runtime::Element, + nullifier_hash : runtime_types :: webb_primitives :: runtime :: Element, + recipient: ::subxt::utils::AccountId32, + relayer: ::subxt::utils::AccountId32, + fee: ::core::primitive::u128, + refund: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MixerBn254", + "withdraw", + types::Withdraw { + id, + proof_bytes, + root, + nullifier_hash, + recipient, + relayer, + fee, + refund, + }, + [ + 30u8, 228u8, 205u8, 113u8, 251u8, 11u8, 150u8, + 32u8, 63u8, 227u8, 217u8, 126u8, 154u8, 250u8, + 95u8, 192u8, 203u8, 107u8, 241u8, 221u8, 251u8, + 83u8, 70u8, 84u8, 69u8, 190u8, 222u8, 57u8, 29u8, + 183u8, 17u8, 68u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_mixer::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct MixerCreation { + pub tree_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for MixerCreation { + const PALLET: &'static str = "MixerBn254"; + const EVENT: &'static str = "MixerCreation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Deposit { + pub tree_id: ::core::primitive::u32, + pub leaf: runtime_types::webb_primitives::runtime::Element, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "MixerBn254"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Withdraw { + pub tree_id: ::core::primitive::u32, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "MixerBn254"; + const EVENT: &'static str = "Withdraw"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of trees to their mixer metadata"] + pub fn mixers( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_mixer::types::MixerMetadata< + ::core::primitive::u128, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MixerBn254" , "Mixers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [30u8 , 216u8 , 0u8 , 53u8 , 203u8 , 108u8 , 202u8 , 45u8 , 173u8 , 173u8 , 108u8 , 254u8 , 29u8 , 23u8 , 97u8 , 163u8 , 102u8 , 196u8 , 204u8 , 14u8 , 30u8 , 68u8 , 217u8 , 162u8 , 175u8 , 88u8 , 138u8 , 153u8 , 228u8 , 74u8 , 125u8 , 11u8 ,]) + } + #[doc = " The map of trees to their mixer metadata"] + pub fn mixers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_mixer::types::MixerMetadata< + ::core::primitive::u128, + ::core::primitive::u32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MixerBn254", + "Mixers", + Vec::new(), + [ + 30u8, 216u8, 0u8, 53u8, 203u8, 108u8, 202u8, 45u8, + 173u8, 173u8, 108u8, 254u8, 29u8, 23u8, 97u8, + 163u8, 102u8, 196u8, 204u8, 14u8, 30u8, 68u8, + 217u8, 162u8, 175u8, 88u8, 138u8, 153u8, 228u8, + 74u8, 125u8, 11u8, + ], + ) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow< + runtime_types::webb_primitives::runtime::Element, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MixerBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MixerBn254", + "NullifierHashes", + Vec::new(), + [ + 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, + 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, + 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, + 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, + 185u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "MixerBn254", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[doc = " Native currency id"] + pub fn native_currency_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "MixerBn254", + "NativeCurrencyId", + [ + 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 v_anchor_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_vanchor::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_vanchor::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub max_edges: ::core::primitive::u32, + pub depth: ::core::primitive::u8, + pub asset: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transact { pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } + impl ::subxt::blocks::StaticExtrinsic for Transact { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "transact"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RegisterAndTransact { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } + impl ::subxt::blocks::StaticExtrinsic for RegisterAndTransact { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "register_and_transact"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMaxDepositAmount { + pub max_deposit_amount: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMaxDepositAmount { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "set_max_deposit_amount"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinWithdrawAmount { + pub min_withdraw_amount: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinWithdrawAmount { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "set_min_withdraw_amount"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + max_edges: ::core::primitive::u32, + depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "create", + types::Create { + max_edges, + depth, + asset, + }, + [ + 179u8, 67u8, 213u8, 88u8, 4u8, 208u8, 165u8, 229u8, + 106u8, 59u8, 181u8, 181u8, 67u8, 139u8, 48u8, + 227u8, 237u8, 190u8, 95u8, 118u8, 70u8, 177u8, + 106u8, 67u8, 253u8, 70u8, 125u8, 78u8, 22u8, 142u8, + 161u8, 100u8, + ], + ) + } + pub fn transact( + &self, + id: ::core::primitive::u32, + proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element >, + ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "transact", + types::Transact { + id, + proof_data, + ext_data, + }, + [ + 157u8, 31u8, 193u8, 175u8, 45u8, 95u8, 117u8, + 197u8, 158u8, 109u8, 20u8, 9u8, 148u8, 218u8, + 112u8, 129u8, 151u8, 106u8, 221u8, 47u8, 172u8, + 114u8, 172u8, 173u8, 2u8, 7u8, 145u8, 32u8, 157u8, + 61u8, 215u8, 176u8, + ], + ) + } + pub fn register_and_transact( + &self, + owner: ::subxt::utils::AccountId32, + public_key: ::std::vec::Vec<::core::primitive::u8>, + id: ::core::primitive::u32, + proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element >, + ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "register_and_transact", + types::RegisterAndTransact { + owner, + public_key, + id, + proof_data, + ext_data, + }, + [ + 21u8, 243u8, 134u8, 214u8, 148u8, 56u8, 53u8, 92u8, + 137u8, 39u8, 119u8, 189u8, 110u8, 72u8, 76u8, 84u8, + 233u8, 62u8, 147u8, 247u8, 172u8, 9u8, 69u8, 49u8, + 141u8, 145u8, 161u8, 32u8, 86u8, 13u8, 74u8, 119u8, + ], + ) + } + pub fn set_max_deposit_amount( + &self, + max_deposit_amount: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "set_max_deposit_amount", + types::SetMaxDepositAmount { + max_deposit_amount, + nonce, + }, + [ + 176u8, 129u8, 140u8, 194u8, 38u8, 99u8, 96u8, + 123u8, 223u8, 127u8, 142u8, 201u8, 168u8, 229u8, + 117u8, 84u8, 88u8, 187u8, 141u8, 17u8, 227u8, + 250u8, 61u8, 213u8, 138u8, 191u8, 79u8, 233u8, + 219u8, 157u8, 162u8, 131u8, + ], + ) + } + pub fn set_min_withdraw_amount( + &self, + min_withdraw_amount: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "set_min_withdraw_amount", + types::SetMinWithdrawAmount { + min_withdraw_amount, + nonce, + }, + [ + 57u8, 249u8, 24u8, 174u8, 12u8, 147u8, 47u8, 89u8, + 196u8, 217u8, 27u8, 19u8, 74u8, 241u8, 51u8, 27u8, + 209u8, 252u8, 129u8, 50u8, 7u8, 162u8, 115u8, 60u8, + 92u8, 168u8, 238u8, 168u8, 139u8, 240u8, 58u8, + 16u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vanchor::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct VAnchorCreation { + pub tree_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for VAnchorCreation { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "VAnchorCreation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Transaction has been made"] + pub struct Transaction { + pub transactor: ::subxt::utils::AccountId32, + pub tree_id: ::core::primitive::u32, + pub leafs: ::std::vec::Vec< + runtime_types::webb_primitives::runtime::Element, + >, + pub encrypted_output1: ::std::vec::Vec<::core::primitive::u8>, + pub encrypted_output2: ::std::vec::Vec<::core::primitive::u8>, + pub amount: ::core::primitive::i128, + } + impl ::subxt::events::StaticEvent for Transaction { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "Transaction"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Deposit hook has executed successfully"] + pub struct Deposit { + pub depositor: ::subxt::utils::AccountId32, + pub tree_id: ::core::primitive::u32, + pub leaf: runtime_types::webb_primitives::runtime::Element, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxDepositAmountChanged { + pub max_deposit_amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for MaxDepositAmountChanged { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "MaxDepositAmountChanged"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MinWithdrawAmountChanged { + pub min_withdraw_amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for MinWithdrawAmountChanged { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "MinWithdrawAmountChanged"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn max_deposit_amount( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "MaxDepositAmount", + vec![], + [ + 103u8, 143u8, 218u8, 145u8, 13u8, 227u8, 200u8, + 72u8, 147u8, 151u8, 21u8, 63u8, 38u8, 101u8, 23u8, + 45u8, 67u8, 250u8, 184u8, 206u8, 10u8, 184u8, 98u8, + 179u8, 120u8, 62u8, 92u8, 199u8, 30u8, 255u8, 26u8, + 84u8, + ], + ) + } + pub fn min_withdraw_amount( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "MinWithdrawAmount", + vec![], + [ + 217u8, 143u8, 57u8, 19u8, 253u8, 60u8, 103u8, + 182u8, 70u8, 55u8, 27u8, 66u8, 117u8, 86u8, 196u8, + 163u8, 41u8, 18u8, 117u8, 125u8, 232u8, 109u8, + 197u8, 177u8, 54u8, 157u8, 165u8, 251u8, 16u8, + 49u8, 113u8, 240u8, + ], + ) + } + #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("VAnchorBn254" , "VAnchors" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [36u8 , 134u8 , 67u8 , 39u8 , 166u8 , 66u8 , 25u8 , 61u8 , 47u8 , 227u8 , 59u8 , 137u8 , 206u8 , 140u8 , 252u8 , 38u8 , 69u8 , 243u8 , 65u8 , 15u8 , 127u8 , 65u8 , 200u8 , 12u8 , 60u8 , 140u8 , 19u8 , 168u8 , 135u8 , 135u8 , 38u8 , 219u8 ,]) + } + #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "VAnchors", + Vec::new(), + [ + 36u8, 134u8, 67u8, 39u8, 166u8, 66u8, 25u8, 61u8, + 47u8, 227u8, 59u8, 137u8, 206u8, 140u8, 252u8, + 38u8, 69u8, 243u8, 65u8, 15u8, 127u8, 65u8, 200u8, + 12u8, 60u8, 140u8, 19u8, 168u8, 135u8, 135u8, 38u8, + 219u8, + ], + ) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow< + runtime_types::webb_primitives::runtime::Element, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("VAnchorBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "NullifierHashes", + Vec::new(), + [ + 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, + 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, + 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, + 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, + 185u8, + ], + ) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "ProposalNonce", + vec![], + [ + 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, + 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, + 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, + 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "VAnchorBn254", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[doc = " Native currency id"] + pub fn native_currency_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "VAnchorBn254", + "NativeCurrencyId", + [ + 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 v_anchor_handler_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_vanchor_handler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_vanchor_handler::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteVanchorCreateProposal { + pub src_chain_id: ::core::primitive::u64, + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub max_edges: ::core::primitive::u32, + pub tree_depth: ::core::primitive::u8, + pub asset: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteVanchorCreateProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_vanchor_create_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteVanchorUpdateProposal { + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub merkle_root: + runtime_types::webb_primitives::runtime::Element, + pub src_resource_id: + runtime_types::webb_proposals::header::ResourceId, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteVanchorUpdateProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_vanchor_update_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetResourceProposal { + pub r_id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetResourceProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = "execute_set_resource_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetMaxDepositLimitProposal { + pub max_deposit_limit: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetMaxDepositLimitProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_set_max_deposit_limit_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetMinWithdrawalLimitProposal { + pub min_withdraw_limit: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetMinWithdrawalLimitProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_set_min_withdrawal_limit_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "This will be called by bridge when proposal to create a"] + #[doc = "vanchor has been successfully voted on."] + pub fn execute_vanchor_create_proposal( + &self, + src_chain_id: ::core::primitive::u64, + r_id: runtime_types::webb_proposals::header::ResourceId, + max_edges: ::core::primitive::u32, + tree_depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_vanchor_create_proposal", + types::ExecuteVanchorCreateProposal { + src_chain_id, + r_id, + max_edges, + tree_depth, + asset, + nonce, + }, + [ + 87u8, 197u8, 136u8, 226u8, 195u8, 230u8, 78u8, + 200u8, 62u8, 131u8, 194u8, 106u8, 230u8, 87u8, + 105u8, 141u8, 52u8, 10u8, 34u8, 132u8, 152u8, 12u8, + 182u8, 110u8, 124u8, 248u8, 42u8, 37u8, 184u8, + 160u8, 30u8, 239u8, + ], + ) + } + #[doc = "This will be called by bridge when proposal to add/update edge of a"] + #[doc = "vanchor has been successfully voted on."] + pub fn execute_vanchor_update_proposal( + &self, + r_id: runtime_types::webb_proposals::header::ResourceId, + merkle_root : runtime_types :: webb_primitives :: runtime :: Element, + src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_vanchor_update_proposal", + types::ExecuteVanchorUpdateProposal { + r_id, + merkle_root, + src_resource_id, + nonce, + }, + [ + 248u8, 213u8, 40u8, 228u8, 156u8, 188u8, 16u8, + 104u8, 13u8, 176u8, 140u8, 155u8, 185u8, 97u8, + 109u8, 27u8, 12u8, 209u8, 41u8, 174u8, 158u8, + 208u8, 85u8, 120u8, 128u8, 218u8, 147u8, 71u8, + 165u8, 153u8, 7u8, 249u8, + ], + ) + } + #[doc = "This will by called by bridge when proposal to set new resource for"] + #[doc = "handler has been successfully voted on."] + pub fn execute_set_resource_proposal( + &self, + r_id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_set_resource_proposal", + types::ExecuteSetResourceProposal { r_id }, + [ + 228u8, 152u8, 137u8, 216u8, 49u8, 178u8, 221u8, + 163u8, 89u8, 90u8, 63u8, 173u8, 170u8, 175u8, 30u8, + 31u8, 77u8, 198u8, 214u8, 169u8, 52u8, 13u8, 63u8, + 98u8, 218u8, 108u8, 82u8, 222u8, 224u8, 50u8, + 151u8, 247u8, + ], + ) + } + #[doc = "Execute set max deposit limit proposal."] + #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] + #[doc = "anchor system."] + pub fn execute_set_max_deposit_limit_proposal( + &self, + max_deposit_limit: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload< + types::ExecuteSetMaxDepositLimitProposal, + > { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_set_max_deposit_limit_proposal", + types::ExecuteSetMaxDepositLimitProposal { + max_deposit_limit, + nonce, + }, + [ + 60u8, 64u8, 168u8, 137u8, 52u8, 27u8, 152u8, 36u8, + 248u8, 102u8, 189u8, 30u8, 35u8, 149u8, 173u8, + 199u8, 22u8, 113u8, 146u8, 120u8, 59u8, 222u8, + 215u8, 146u8, 165u8, 220u8, 17u8, 107u8, 118u8, + 224u8, 13u8, 47u8, + ], + ) + } + #[doc = "Execute set min withdrawal limit proposal."] + #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] + #[doc = "variable anchor system."] + pub fn execute_set_min_withdrawal_limit_proposal( + &self, + min_withdraw_limit: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload< + types::ExecuteSetMinWithdrawalLimitProposal, + > { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_set_min_withdrawal_limit_proposal", + types::ExecuteSetMinWithdrawalLimitProposal { + min_withdraw_limit, + nonce, + }, + [ + 53u8, 181u8, 146u8, 2u8, 51u8, 158u8, 29u8, 5u8, + 70u8, 72u8, 54u8, 41u8, 190u8, 172u8, 173u8, 239u8, + 53u8, 244u8, 186u8, 76u8, 58u8, 162u8, 227u8, + 128u8, 174u8, 199u8, 121u8, 162u8, 88u8, 92u8, + 207u8, 128u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vanchor_handler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AnchorCreated; + impl ::subxt::events::StaticEvent for AnchorCreated { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "AnchorCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AnchorEdgeAdded; + impl ::subxt::events::StaticEvent for AnchorEdgeAdded { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "AnchorEdgeAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AnchorEdgeUpdated; + impl ::subxt::events::StaticEvent for AnchorEdgeUpdated { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "AnchorEdgeUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ResourceAnchored; + impl ::subxt::events::StaticEvent for ResourceAnchored { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "ResourceAnchored"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of trees to their anchor metadata"] + pub fn anchor_list( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("VAnchorHandlerBn254" , "AnchorList" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [208u8 , 135u8 , 255u8 , 171u8 , 144u8 , 24u8 , 220u8 , 50u8 , 12u8 , 31u8 , 90u8 , 255u8 , 252u8 , 78u8 , 107u8 , 239u8 , 162u8 , 141u8 , 248u8 , 201u8 , 149u8 , 98u8 , 234u8 , 116u8 , 212u8 , 184u8 , 249u8 , 242u8 , 41u8 , 40u8 , 66u8 , 72u8 ,]) + } + #[doc = " The map of trees to their anchor metadata"] + pub fn anchor_list_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VAnchorHandlerBn254", + "AnchorList", + Vec::new(), + [ + 208u8, 135u8, 255u8, 171u8, 144u8, 24u8, 220u8, + 50u8, 12u8, 31u8, 90u8, 255u8, 252u8, 78u8, 107u8, + 239u8, 162u8, 141u8, 248u8, 201u8, 149u8, 98u8, + 234u8, 116u8, 212u8, 184u8, 249u8, 242u8, 41u8, + 40u8, 66u8, 72u8, + ], + ) + } + } + } + } + pub mod signature_bridge { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_signature_bridge::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_signature_bridge::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMaintainer { pub message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for SetMaintainer { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "set_maintainer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetMaintainer { pub nonce : :: core :: primitive :: u32 , pub new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetMaintainer { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "force_set_maintainer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for SetResource { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "set_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveResource { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "remove_resource"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WhitelistChain { + pub id: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "whitelist_chain"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResourceWithSignature { pub src_id : :: core :: primitive :: u64 , pub proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for SetResourceWithSignature { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "set_resource_with_signature"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteProposal { pub src_id : :: core :: primitive :: u64 , pub proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ExecuteProposal { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "execute_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Sets the maintainer."] + pub fn set_maintainer( + &self, + message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "set_maintainer", + types::SetMaintainer { message, signature }, + [ + 132u8, 42u8, 94u8, 104u8, 168u8, 131u8, 130u8, + 157u8, 33u8, 175u8, 220u8, 71u8, 33u8, 117u8, + 255u8, 142u8, 5u8, 101u8, 176u8, 48u8, 222u8, + 220u8, 24u8, 87u8, 34u8, 29u8, 104u8, 35u8, 245u8, + 119u8, 109u8, 20u8, + ], + ) + } + pub fn force_set_maintainer( + &self, + nonce: ::core::primitive::u32, + new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "force_set_maintainer", + types::ForceSetMaintainer { + nonce, + new_maintainer, + }, + [ + 172u8, 54u8, 216u8, 12u8, 194u8, 151u8, 209u8, + 122u8, 232u8, 194u8, 137u8, 135u8, 126u8, 150u8, + 144u8, 41u8, 26u8, 244u8, 43u8, 49u8, 161u8, 209u8, + 85u8, 212u8, 86u8, 59u8, 57u8, 120u8, 157u8, 38u8, + 180u8, 254u8, + ], + ) + } + #[doc = "Stores a method name on chain under an associated resource ID."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) write"] + #[doc = "# "] + pub fn set_resource( + &self, + id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "set_resource", + types::SetResource { id }, + [ + 100u8, 124u8, 197u8, 183u8, 34u8, 42u8, 154u8, + 55u8, 12u8, 151u8, 135u8, 152u8, 211u8, 151u8, + 33u8, 14u8, 67u8, 222u8, 3u8, 109u8, 144u8, 235u8, + 253u8, 116u8, 76u8, 145u8, 90u8, 158u8, 138u8, + 33u8, 204u8, 170u8, + ], + ) + } + #[doc = "Removes a resource ID from the resource mapping."] + #[doc = ""] + #[doc = "After this call, bridge transfers with the associated resource ID"] + #[doc = "will be rejected."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) removal"] + #[doc = "# "] + pub fn remove_resource( + &self, + id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "remove_resource", + types::RemoveResource { id }, + [ + 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, + 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, + 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, + 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, + 172u8, 92u8, 67u8, + ], + ) + } + #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) lookup and insert"] + #[doc = "# "] + pub fn whitelist_chain( + &self, + id: ::core::primitive::u64, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "whitelist_chain", + types::WhitelistChain { id }, + [ + 230u8, 109u8, 92u8, 10u8, 127u8, 214u8, 167u8, + 56u8, 125u8, 37u8, 161u8, 108u8, 98u8, 250u8, 3u8, + 146u8, 224u8, 178u8, 139u8, 72u8, 21u8, 159u8, + 54u8, 225u8, 172u8, 88u8, 214u8, 162u8, 235u8, + 87u8, 125u8, 23u8, + ], + ) + } + #[doc = "@param origin"] + #[doc = "@param src_id"] + #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] + #[doc = "@param signature: a signature over the proposal_data"] + #[doc = ""] + #[doc = "We check:"] + #[doc = "1. That the signature is actually over the proposal data"] + #[doc = "2. Add ResourceId to the Storage"] + #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] + #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] + #[doc = "indeed this chain's id type"] + #[doc = ""] + #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] + #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] + #[doc = "the anchor-handler or token-wrapper-handler pallet."] + #[doc = ""] + #[doc = "There are a few TODOs left in the function."] + #[doc = ""] + #[doc = "In the set_resource_with_signature"] + #[doc = "# "] + #[doc = "- weight of proposed call, regardless of whether execution is performed"] + #[doc = "# "] + pub fn set_resource_with_signature( + &self, + src_id: ::core::primitive::u64, + proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "set_resource_with_signature", + types::SetResourceWithSignature { + src_id, + proposal_data, + signature, + }, + [ + 77u8, 91u8, 104u8, 22u8, 207u8, 86u8, 57u8, 238u8, + 168u8, 243u8, 218u8, 73u8, 192u8, 133u8, 163u8, + 164u8, 252u8, 145u8, 103u8, 1u8, 0u8, 128u8, 145u8, + 83u8, 213u8, 58u8, 228u8, 190u8, 46u8, 114u8, + 227u8, 86u8, + ], + ) + } + #[doc = "@param origin"] + #[doc = "@param src_id"] + #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] + #[doc = "@param signature: a signature over the proposal_data"] + #[doc = ""] + #[doc = "We check:"] + #[doc = "1. That the signature is actually over the proposal data"] + #[doc = "2. That the r_id parsed from the proposal data exists"] + #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] + #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] + #[doc = "indeed this chain's id type"] + #[doc = ""] + #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] + #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] + #[doc = "the anchor-handler or token-wrapper-handler pallet."] + #[doc = ""] + #[doc = "There are a few TODOs left in the function."] + #[doc = ""] + #[doc = "In the execute_proposal"] + #[doc = "# "] + #[doc = "- weight of proposed call, regardless of whether execution is performed"] + #[doc = "# "] + pub fn execute_proposal( + &self, + src_id: ::core::primitive::u64, + proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "execute_proposal", + types::ExecuteProposal { + src_id, + proposal_data, + signature, + }, + [ + 206u8, 23u8, 14u8, 145u8, 199u8, 21u8, 242u8, 83u8, + 4u8, 46u8, 238u8, 210u8, 121u8, 48u8, 75u8, 151u8, + 188u8, 20u8, 165u8, 177u8, 67u8, 34u8, 129u8, 92u8, + 155u8, 141u8, 199u8, 127u8, 227u8, 255u8, 237u8, + 128u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_signature_bridge::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Maintainer is set"] + pub struct MaintainerSet { + pub old_maintainer: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub new_maintainer: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + impl ::subxt::events::StaticEvent for MaintainerSet { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "MaintainerSet"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Chain now available for transfers (chain_id)"] + pub struct ChainWhitelisted { + pub chain_id: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ChainWhitelisted { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ChainWhitelisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Proposal has been approved"] + pub struct ProposalApproved { + pub chain_id: ::core::primitive::u64, + pub proposal_nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalApproved { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ProposalApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Execution of call succeeded"] + pub struct ProposalSucceeded { + pub chain_id: ::core::primitive::u64, + pub proposal_nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalSucceeded { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ProposalSucceeded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Execution of call failed"] + pub struct ProposalFailed { + pub chain_id: ::core::primitive::u64, + pub proposal_nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalFailed { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ProposalFailed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The parameter maintainer who can change the parameters"] + pub fn maintainer( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "Maintainer", + vec![], + [ + 104u8, 164u8, 76u8, 22u8, 55u8, 166u8, 230u8, 23u8, + 129u8, 166u8, 199u8, 31u8, 66u8, 142u8, 10u8, + 119u8, 72u8, 63u8, 10u8, 213u8, 69u8, 49u8, 243u8, + 128u8, 212u8, 125u8, 202u8, 208u8, 180u8, 62u8, + 84u8, 157u8, + ], + ) + } + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("SignatureBridge" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [46u8 , 115u8 , 113u8 , 107u8 , 117u8 , 64u8 , 44u8 , 249u8 , 225u8 , 85u8 , 228u8 , 126u8 , 121u8 , 101u8 , 13u8 , 244u8 , 174u8 , 210u8 , 21u8 , 34u8 , 248u8 , 203u8 , 38u8 , 35u8 , 113u8 , 149u8 , 100u8 , 157u8 , 8u8 , 100u8 , 113u8 , 68u8 ,]) + } + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "ChainNonces", + Vec::new(), + [ + 46u8, 115u8, 113u8, 107u8, 117u8, 64u8, 44u8, + 249u8, 225u8, 85u8, 228u8, 126u8, 121u8, 101u8, + 13u8, 244u8, 174u8, 210u8, 21u8, 34u8, 248u8, + 203u8, 38u8, 35u8, 113u8, 149u8, 100u8, 157u8, 8u8, + 100u8, 113u8, 68u8, + ], + ) + } + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("SignatureBridge" , "Resources" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [244u8 , 76u8 , 108u8 , 200u8 , 197u8 , 2u8 , 102u8 , 136u8 , 158u8 , 135u8 , 102u8 , 251u8 , 56u8 , 170u8 , 225u8 , 248u8 , 37u8 , 168u8 , 49u8 , 184u8 , 241u8 , 15u8 , 4u8 , 100u8 , 144u8 , 154u8 , 29u8 , 128u8 , 69u8 , 188u8 , 80u8 , 121u8 ,]) + } + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "Resources", + Vec::new(), + [ + 244u8, 76u8, 108u8, 200u8, 197u8, 2u8, 102u8, + 136u8, 158u8, 135u8, 102u8, 251u8, 56u8, 170u8, + 225u8, 248u8, 37u8, 168u8, 49u8, 184u8, 241u8, + 15u8, 4u8, 100u8, 144u8, 154u8, 29u8, 128u8, 69u8, + 188u8, 80u8, 121u8, + ], + ) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "ProposalNonce", + vec![], + [ + 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, + 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, + 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, + 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, + ], + ) + } + pub fn maintainer_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "MaintainerNonce", + vec![], + [ + 139u8, 246u8, 239u8, 180u8, 188u8, 73u8, 234u8, + 114u8, 211u8, 68u8, 84u8, 178u8, 142u8, 49u8, 24u8, + 160u8, 32u8, 180u8, 211u8, 16u8, 75u8, 91u8, 40u8, + 132u8, 120u8, 68u8, 221u8, 167u8, 138u8, 53u8, + 71u8, 250u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The identifier for this chain."] + #[doc = " This must be unique and must not collide with existing IDs within a"] + #[doc = " set of bridged chains."] + pub fn chain_identifier( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "ChainIdentifier", + [ + 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 chain type for this chain."] + #[doc = " This is either a standalone Substrate chain, relay chain, or parachain"] + pub fn chain_type( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 2usize]> + { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "ChainType", + [ + 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, + 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, + 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, + 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, + 240u8, 86u8, + ], + ) + } + pub fn proposal_lifetime( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "ProposalLifetime", + [ + 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 fn bridge_account_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "BridgeAccountId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + } + } + } + pub mod relayer_registry { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_relayer_registry::pallet::Error; + #[doc = "Identity pallet declaration."] + pub type Call = runtime_types::pallet_relayer_registry::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResource { pub resource_id : runtime_types :: webb_proposals :: header :: ResourceId , pub info : :: std :: boxed :: Box < runtime_types :: pallet_relayer_registry :: types :: ResourceInfo > , } + impl ::subxt::blocks::StaticExtrinsic for SetResource { + const PALLET: &'static str = "RelayerRegistry"; + const CALL: &'static str = "set_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClearResource { + pub resource_id: + runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for ClearResource { + const PALLET: &'static str = "RelayerRegistry"; + const CALL: &'static str = "clear_resource"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Set a resource's information and reserve the appropriate deposit."] + #[doc = ""] + #[doc = "If the resource already has resource information, the deposit is taken as part payment"] + #[doc = "for the new deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `info`: The resource information."] + #[doc = ""] + #[doc = "Emits `ResourceSet` if successful."] + pub fn set_resource( + &self, + resource_id : runtime_types :: webb_proposals :: header :: ResourceId, + info : runtime_types :: pallet_relayer_registry :: types :: ResourceInfo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RelayerRegistry", + "set_resource", + types::SetResource { + resource_id, + info: ::std::boxed::Box::new(info), + }, + [ + 166u8, 246u8, 237u8, 192u8, 22u8, 46u8, 194u8, 9u8, + 231u8, 182u8, 27u8, 204u8, 242u8, 15u8, 131u8, + 111u8, 87u8, 15u8, 90u8, 74u8, 105u8, 242u8, 40u8, + 250u8, 17u8, 14u8, 155u8, 76u8, 179u8, 0u8, 86u8, + 29u8, + ], + ) + } + #[doc = "Clear an account's resource record."] + #[doc = ""] + #[doc = "Payment: All reserved balances on the account are returned."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "resource."] + #[doc = ""] + #[doc = "Emits `ResourceCleared` if successful."] + pub fn clear_resource( + &self, + resource_id : runtime_types :: webb_proposals :: header :: ResourceId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "RelayerRegistry", + "clear_resource", + types::ClearResource { resource_id }, + [ + 92u8, 192u8, 248u8, 135u8, 120u8, 84u8, 22u8, + 226u8, 51u8, 182u8, 16u8, 88u8, 235u8, 113u8, + 231u8, 29u8, 194u8, 72u8, 78u8, 181u8, 35u8, 68u8, + 80u8, 100u8, 64u8, 164u8, 236u8, 19u8, 25u8, 255u8, + 121u8, 63u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_relayer_registry::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A resource was set or reset (which will remove all judgements)."] + pub struct ResourceSet { + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for ResourceSet { + const PALLET: &'static str = "RelayerRegistry"; + const EVENT: &'static str = "ResourceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A resource was cleared, and the given balance returned."] + pub struct ResourceCleared { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for ResourceCleared { + const PALLET: &'static str = "RelayerRegistry"; + const EVENT: &'static str = "ResourceCleared"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " A map that allows accounts to store metadata about each resource they are interested in."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn resource_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_relayer_registry :: types :: ResourceRecord < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("RelayerRegistry" , "ResourceOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [185u8 , 81u8 , 138u8 , 7u8 , 131u8 , 31u8 , 61u8 , 187u8 , 117u8 , 12u8 , 0u8 , 178u8 , 133u8 , 254u8 , 247u8 , 85u8 , 113u8 , 184u8 , 82u8 , 178u8 , 182u8 , 103u8 , 240u8 , 30u8 , 20u8 , 126u8 , 187u8 , 120u8 , 113u8 , 119u8 , 53u8 , 250u8 ,]) + } + #[doc = " A map that allows accounts to store metadata about each resource they are interested in."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn resource_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_relayer_registry :: types :: ResourceRecord < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "RelayerRegistry", + "ResourceOf", + Vec::new(), + [ + 185u8, 81u8, 138u8, 7u8, 131u8, 31u8, 61u8, 187u8, + 117u8, 12u8, 0u8, 178u8, 133u8, 254u8, 247u8, 85u8, + 113u8, 184u8, 82u8, 178u8, 182u8, 103u8, 240u8, + 30u8, 20u8, 126u8, 187u8, 120u8, 113u8, 119u8, + 53u8, 250u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The amount held on deposit for a registered identity"] + pub fn basic_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "RelayerRegistry", + "BasicDeposit", + [ + 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 additional field for a registered identity."] + pub fn field_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "RelayerRegistry", + "FieldDeposit", + [ + 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 number of additional fields that may be stored in an ID. Needed to bound the I/O"] + #[doc = " required to access an identity, but can be pretty high."] + pub fn max_additional_fields( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "RelayerRegistry", + "MaxAdditionalFields", + [ + 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 key_storage { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_key_storage::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_key_storage::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Register { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for Register { + const PALLET: &'static str = "KeyStorage"; + const CALL: &'static str = "register"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn register( + &self, + owner: ::subxt::utils::AccountId32, + public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "KeyStorage", + "register", + types::Register { owner, public_key }, + [ + 171u8, 208u8, 174u8, 130u8, 196u8, 84u8, 27u8, 8u8, + 186u8, 246u8, 169u8, 204u8, 151u8, 151u8, 172u8, + 47u8, 198u8, 250u8, 162u8, 161u8, 37u8, 144u8, + 193u8, 107u8, 125u8, 202u8, 8u8, 209u8, 244u8, + 108u8, 81u8, 62u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_key_storage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Public key registration"] + pub struct PublicKeyRegistration { + pub owner: ::subxt::utils::AccountId32, + pub public_key: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + impl ::subxt::events::StaticEvent for PublicKeyRegistration { + const PALLET: &'static str = "KeyStorage"; + const EVENT: &'static str = "PublicKeyRegistration"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of owners to public keys"] pub fn public_key_owners (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "KeyStorage", + "PublicKeyOwners", + vec![], + [ + 45u8, 68u8, 75u8, 191u8, 222u8, 164u8, 64u8, 224u8, + 76u8, 232u8, 244u8, 187u8, 33u8, 179u8, 192u8, + 168u8, 172u8, 102u8, 222u8, 81u8, 68u8, 213u8, + 182u8, 173u8, 161u8, 126u8, 247u8, 9u8, 226u8, + 119u8, 185u8, 18u8, + ], + ) + } + } + } + } + pub mod runtime_types { + use super::runtime_types; + pub mod finality_grandpa { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + } + pub mod frame_support { + use super::runtime_types; + pub mod dispatch { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DispatchClass { + #[codec(index = 0)] + Normal, + #[codec(index = 1)] + Operational, + #[codec(index = 2)] + Mandatory, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Pays { + #[codec(index = 0)] + Yes, + #[codec(index = 1)] + No, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Root, + #[codec(index = 1)] + Signed(_0), + #[codec(index = 2)] + None, + } + } + pub mod traits { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WrapperOpaque<_0>( + #[codec(compact)] pub ::core::primitive::u32, + pub _0, + ); + } + pub mod preimages { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Bounded<_0> { + # [codec (index = 0)] Legacy { hash : :: subxt :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } + } + pub mod tokens { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum BalanceStatus { + #[codec(index = 0)] + Free, + #[codec(index = 1)] + Reserved, + } } } - pub mod header { + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct Header<_0, _1> { - pub parent_hash: ::subxt::utils::H256, - #[codec(compact)] - pub number: _0, - pub state_root: ::subxt::utils::H256, - pub extrinsics_root: ::subxt::utils::H256, - pub digest: - runtime_types::sp_runtime::generic::digest::Digest, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckGenesis; } - pub mod unchecked_extrinsic { + pub mod check_mortality { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct UncheckedExtrinsic<_0, _1, _2, _3>( - pub ::std::vec::Vec<::core::primitive::u8>, - #[codec(skip)] - pub ::core::marker::PhantomData<(_0, _1, _2, _3)>, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckNonZeroSender; + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckNonce( + #[codec(compact)] pub ::core::primitive::u32, ); } - } - pub mod traits { - use super::runtime_types; + pub mod check_spec_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckSpecVersion; + } + pub mod check_tx_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckTxVersion; + } + pub mod check_weight { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckWeight; + } + } + pub mod limits { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`"] + #[doc = "# "] + remark { + remark: ::std::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."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] + #[doc = " expensive)."] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] + #[doc = "expensive. We will treat this as a full block."] + #[doc = "# "] + set_code { + code: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 3)] + #[doc = "Set the new runtime code without doing any checks of the given `code`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C)` where `C` length of `code`"] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] + #[doc = "block. # "] + set_code_without_checks { + code: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 4)] + #[doc = "Set some items of storage."] + set_storage { + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + }, + #[codec(index = 5)] + #[doc = "Kill some items from storage."] + kill_storage { + keys: ::std::vec::Vec< + ::std::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: ::std::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: ::std::vec::Vec<::core::primitive::u8>, + }, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct BlakeTwo256; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ArithmeticError { - #[codec(index = 0)] - Underflow, - #[codec(index = 1)] - Overflow, - #[codec(index = 2)] - DivisionByZero, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the 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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Event 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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - 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_runtime::ArithmeticError), - #[codec(index = 9)] - Transactional(runtime_types::sp_runtime::TransactionalError), - #[codec(index = 10)] - Exhausted, - #[codec(index = 11)] - Corruption, - #[codec(index = 12)] - Unavailable, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountInfo<_0, _1> { + pub nonce: _0, + pub consumers: _0, + pub providers: _0, + pub sufficients: _0, + pub data: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct ModuleError { - pub index: ::core::primitive::u8, - pub error: [::core::primitive::u8; 4usize], + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EventRecord<_0, _1> { + pub phase: runtime_types::frame_system::Phase, + pub event: _0, + pub topics: ::std::vec::Vec<_1>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum MultiSignature { - #[codec(index = 0)] - Ed25519(runtime_types::sp_core::ed25519::Signature), - #[codec(index = 1)] - Sr25519(runtime_types::sp_core::sr25519::Signature), - #[codec(index = 2)] - Ecdsa(runtime_types::sp_core::ecdsa::Signature), + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LastRuntimeUpgradeInfo { + #[codec(compact)] + pub spec_version: ::core::primitive::u32, + pub spec_name: ::std::string::String, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum TokenError { + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase { #[codec(index = 0)] - NoFunds, + ApplyExtrinsic(::core::primitive::u32), #[codec(index = 1)] - WouldDie, + Finalization, #[codec(index = 2)] - BelowMinimum, - #[codec(index = 3)] - CannotCreate, - #[codec(index = 4)] - UnknownAsset, - #[codec(index = 5)] - Frozen, - #[codec(index = 6)] - Unsupported, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum TransactionalError { - #[codec(index = 0)] - LimitReached, - #[codec(index = 1)] - NoLayer, - } - } - pub mod sp_session { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MembershipProof { - pub session: ::core::primitive::u32, - pub trie_nodes: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - pub validator_count: ::core::primitive::u32, + Initialization, } } - pub mod sp_staking { + pub mod orml_currencies { use super::runtime_types; - pub mod offence { + pub mod module { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct OffenceDetails<_0, _1> { - pub offender: _1, - pub reporters: ::std::vec::Vec<_0>, - } - } - } - pub mod sp_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RuntimeVersion { - pub spec_name: ::std::string::String, - pub impl_name: ::std::string::String, - pub authoring_version: ::core::primitive::u32, - pub spec_version: ::core::primitive::u32, - pub impl_version: ::core::primitive::u32, - pub apis: ::std::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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" )] - pub struct Weight { - #[codec(compact)] - pub ref_time: ::core::primitive::u64, - #[codec(compact)] - pub proof_size: ::core::primitive::u64, + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Transfer some balance to another account under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Transfer some native currency to another account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + transfer_native_currency { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "update amount of account `who` under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + update_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::i128, + }, } - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OldWeight(pub ::core::primitive::u64); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RuntimeDbWeight { - pub read: ::core::primitive::u64, - pub write: ::core::primitive::u64, - } - } - pub mod webb_primitives { - use super::runtime_types; - pub mod runtime { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct Element(pub [::core::primitive::u8; 32usize]); - } - pub mod types { - use super::runtime_types; - pub mod vanchor { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExtData<_0, _1, _2, _3> { - pub recipient: _0, - pub relayer: _0, - pub ext_amount: _1, - pub fee: _2, - pub refund: _2, - pub token: _3, - pub encrypted_output1: - ::std::vec::Vec<::core::primitive::u8>, - pub encrypted_output2: - ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProofData<_0> { - pub proof: ::std::vec::Vec<::core::primitive::u8>, - pub public_amount: _0, - pub roots: ::std::vec::Vec<_0>, - pub input_nullifiers: ::std::vec::Vec<_0>, - pub output_commitments: ::std::vec::Vec<_0>, - pub ext_data_hash: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VAnchorMetadata<_0, _1> { - pub creator: ::core::option::Option<_0>, - pub asset: _1, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" )] - pub struct DepositDetails<_0, _1> { - pub depositor: _0, - pub deposit: _1, + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Unable to convert the Amount type into Balance."] + AmountIntoBalanceFailed, + #[codec(index = 1)] + #[doc = "Balance is too low."] + BalanceTooLow, + #[codec(index = 2)] + #[doc = "Deposit result is not expected"] + DepositFailed, } } } - pub mod webb_proposals { + pub mod orml_tokens { use super::runtime_types; - pub mod header { + pub mod module { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct ResourceId(pub [::core::primitive::u8; 32usize]); + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] + #[doc = "It will decrease the total issuance of the system by the"] + #[doc = "`TransferFee`. If the sender's account is below the existential"] + #[doc = "deposit as a result of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Transfer all remaining balance to the given account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_"] + #[doc = "balances. This means that any locked, reserved, or existential"] + #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] + #[doc = "this function. To ensure that this function results in a killed"] + #[doc = "account, you might need to prepare the account by removing any"] + #[doc = "reference counters, storage deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] + #[doc = " operation should send all of the funds the account has, causing"] + #[doc = " the sender account to be killed (false), or transfer everything"] + #[doc = " except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true)."] + transfer_all { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + keep_alive: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] + #[doc = "will not kill the origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Exactly as `transfer`, except the origin must be root and the source"] + #[doc = "account may be specified."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The sender of the transfer."] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + force_transfer { + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] + #[doc = "will also decrease the total issuance of the system"] + #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] + #[doc = "existential deposit, it will reap the `AccountInfo`."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + new_free: ::core::primitive::u128, + #[codec(compact)] + new_reserved: ::core::primitive::u128, + }, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum TypedChainId { + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { #[codec(index = 0)] - None, + #[doc = "The balance is too low"] + BalanceTooLow, #[codec(index = 1)] - Evm(::core::primitive::u32), + #[doc = "Cannot convert Amount into Balance type"] + AmountIntoBalanceFailed, #[codec(index = 2)] - Substrate(::core::primitive::u32), + #[doc = "Failed because liquidity restrictions due to locking"] + LiquidityRestrictions, #[codec(index = 3)] - PolkadotParachain(::core::primitive::u32), + #[doc = "Failed because the maximum locks was exceeded"] + MaxLocksExceeded, #[codec(index = 4)] - KusamaParachain(::core::primitive::u32), + #[doc = "Transfer/payment would kill account"] + KeepAlive, #[codec(index = 5)] - RococoParachain(::core::primitive::u32), + #[doc = "Value too low to create account due to existential deposit"] + ExistentialDeposit, #[codec(index = 6)] - Cosmos(::core::primitive::u32), + #[doc = "Beneficiary account must pre-exist"] + DeadAccount, #[codec(index = 7)] - Solana(::core::primitive::u32), - #[codec(index = 8)] - Ink(::core::primitive::u32), - } - } - pub mod target_system { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubstrateTargetSystem { - pub pallet_index: ::core::primitive::u8, - pub tree_id: ::core::primitive::u32, + TooManyReserves, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum TargetSystem { - # [codec (index = 0)] ContractAddress ([:: core :: primitive :: u8 ; 20usize] ,) , # [codec (index = 1)] Substrate (runtime_types :: webb_proposals :: target_system :: SubstrateTargetSystem ,) , } - } - } - pub mod webb_standalone_runtime { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MaxAssetIdInPool; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MaxEdges; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NposSolution16 { - pub votes1: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes2: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ), - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes3: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 2usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes4: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 3usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes5: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 4usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes6: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 5usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes7: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 6usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes8: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 7usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes9: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 8usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes10: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 9usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes11: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 10usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes12: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 11usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes13: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 12usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes14: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 13usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes15: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 14usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes16: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 15usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum OriginCaller { - #[codec(index = 0)] - system( - runtime_types::frame_support::dispatch::RawOrigin< - ::subxt::utils::AccountId32, - >, - ), - #[codec(index = 13)] - Council( - runtime_types::pallet_collective::RawOrigin< - ::subxt::utils::AccountId32, - >, - ), - #[codec(index = 2)] - Void(runtime_types::sp_core::Void), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ProxyType { - #[codec(index = 0)] - Any, - #[codec(index = 1)] - NonTransfer, - #[codec(index = 2)] - CancelProxy, - #[codec(index = 3)] - Assets, - #[codec(index = 4)] - AssetOwner, - #[codec(index = 5)] - AssetManager, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below"] # [doc = "ExistentialDeposit, resulting in an outright loss."] DustLost { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some reserved balance was repatriated (moved from reserved to"] # [doc = "another account)."] ReserveRepatriated { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 6)] # [doc = "A balance was set by root."] BalanceSet { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "The total issuance of an currency has been set"] TotalIssuanceSet { currency_id : :: core :: primitive :: u32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] Withdrawn { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some balances were slashed (e.g. due to mis-behavior)"] Slashed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free_amount : :: core :: primitive :: u128 , reserved_amount : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Deposited some balance into an account"] Deposited { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Some funds are locked"] LockSet { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "Some locked funds were unlocked"] LockRemoved { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct Runtime; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RuntimeCall { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 2)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 3)] Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , # [codec (index = 4)] Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , # [codec (index = 5)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 9)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 10)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 11)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 12)] Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , # [codec (index = 13)] Council (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 14)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , # [codec (index = 15)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 16)] Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , # [codec (index = 17)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 18)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 19)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 20)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 21)] Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , # [codec (index = 22)] Assets (runtime_types :: pallet_assets :: pallet :: Call ,) , # [codec (index = 23)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 24)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 28)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 29)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 30)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 31)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 32)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Call ,) , # [codec (index = 33)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Call ,) , # [codec (index = 34)] Currencies (runtime_types :: orml_currencies :: module :: Call ,) , # [codec (index = 35)] Tokens (runtime_types :: orml_tokens :: module :: Call ,) , # [codec (index = 36)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Call ,) , # [codec (index = 37)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Call ,) , # [codec (index = 38)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Call ,) , # [codec (index = 39)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Call ,) , # [codec (index = 40)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Call ,) , # [codec (index = 41)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Call ,) , # [codec (index = 42)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Call ,) , # [codec (index = 43)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Call ,) , # [codec (index = 44)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Call ,) , # [codec (index = 45)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Call ,) , # [codec (index = 46)] RelayerRegistry (runtime_types :: pallet_relayer_registry :: pallet :: Call ,) , # [codec (index = 47)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Call ,) , } + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub frozen: _0, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum RuntimeEvent { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 5)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 8)] AssetTxPayment (runtime_types :: pallet_asset_tx_payment :: pallet :: Event ,) , # [codec (index = 9)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 10)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 11)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 12)] Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , # [codec (index = 13)] Council (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 14)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , # [codec (index = 15)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 16)] Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , # [codec (index = 17)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 18)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 19)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 20)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 21)] Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , # [codec (index = 22)] Assets (runtime_types :: pallet_assets :: pallet :: Event ,) , # [codec (index = 23)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 24)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 26)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 28)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 29)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 30)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 31)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 32)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Event ,) , # [codec (index = 33)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Event ,) , # [codec (index = 35)] Tokens (runtime_types :: orml_tokens :: module :: Event ,) , # [codec (index = 36)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Event ,) , # [codec (index = 37)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Event ,) , # [codec (index = 38)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Event ,) , # [codec (index = 39)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Event ,) , # [codec (index = 40)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Event ,) , # [codec (index = 41)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Event ,) , # [codec (index = 42)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Event ,) , # [codec (index = 43)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Event ,) , # [codec (index = 44)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Event ,) , # [codec (index = 45)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Event ,) , # [codec (index = 46)] RelayerRegistry (runtime_types :: pallet_relayer_registry :: pallet :: Event ,) , # [codec (index = 47)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Event ,) , } + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct SessionKeys { pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub babe : runtime_types :: sp_consensus_babe :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub authority_discovery : runtime_types :: sp_authority_discovery :: app :: Public , } - } - } - #[doc = r" The default error type returned when there is a runtime issue,"] - #[doc = r" exposed here for ease of use."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - pub fn constants() -> ConstantsApi { - ConstantsApi - } - pub fn storage() -> StorageApi { - StorageApi - } - pub fn tx() -> TransactionApi { - TransactionApi - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi - } - pub fn babe(&self) -> babe::constants::ConstantsApi { - babe::constants::ConstantsApi - } - pub fn authorship(&self) -> authorship::constants::ConstantsApi { - authorship::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 election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi - } - pub fn elections(&self) -> elections::constants::ConstantsApi { - elections::constants::ConstantsApi - } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi - } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi - } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi - } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi - } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi - } - pub fn proxy(&self) -> proxy::constants::ConstantsApi { - proxy::constants::ConstantsApi - } - pub fn assets(&self) -> assets::constants::ConstantsApi { - assets::constants::ConstantsApi - } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::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 bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn asset_registry( - &self, - ) -> asset_registry::constants::ConstantsApi { - asset_registry::constants::ConstantsApi - } - pub fn currencies(&self) -> currencies::constants::ConstantsApi { - currencies::constants::ConstantsApi - } - pub fn tokens(&self) -> tokens::constants::ConstantsApi { - tokens::constants::ConstantsApi - } - pub fn token_wrapper(&self) -> token_wrapper::constants::ConstantsApi { - token_wrapper::constants::ConstantsApi - } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::constants::ConstantsApi { - linkable_tree_bn254::constants::ConstantsApi - } - pub fn mixer_bn254(&self) -> mixer_bn254::constants::ConstantsApi { - mixer_bn254::constants::ConstantsApi - } - pub fn v_anchor_bn254( - &self, - ) -> v_anchor_bn254::constants::ConstantsApi { - v_anchor_bn254::constants::ConstantsApi - } - pub fn signature_bridge( - &self, - ) -> signature_bridge::constants::ConstantsApi { - signature_bridge::constants::ConstantsApi - } - pub fn relayer_registry( - &self, - ) -> relayer_registry::constants::ConstantsApi { - relayer_registry::constants::ConstantsApi - } - } - pub struct StorageApi; - impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { - system::storage::StorageApi - } - pub fn randomness_collective_flip( - &self, - ) -> randomness_collective_flip::storage::StorageApi { - randomness_collective_flip::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn babe(&self) -> babe::storage::StorageApi { - babe::storage::StorageApi - } - pub fn authorship(&self) -> authorship::storage::StorageApi { - authorship::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 asset_tx_payment( - &self, - ) -> asset_tx_payment::storage::StorageApi { - asset_tx_payment::storage::StorageApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi { - election_provider_multi_phase::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn democracy(&self) -> democracy::storage::StorageApi { - democracy::storage::StorageApi - } - pub fn council(&self) -> council::storage::StorageApi { - council::storage::StorageApi - } - pub fn elections(&self) -> elections::storage::StorageApi { - elections::storage::StorageApi - } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { - grandpa::storage::StorageApi - } - pub fn treasury(&self) -> treasury::storage::StorageApi { - treasury::storage::StorageApi - } - pub fn multisig(&self) -> multisig::storage::StorageApi { - multisig::storage::StorageApi - } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi - } - pub fn preimage(&self) -> preimage::storage::StorageApi { - preimage::storage::StorageApi - } - pub fn proxy(&self) -> proxy::storage::StorageApi { - proxy::storage::StorageApi - } - pub fn assets(&self) -> assets::storage::StorageApi { - assets::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } - pub fn offences(&self) -> offences::storage::StorageApi { - offences::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 bags_list(&self) -> bags_list::storage::StorageApi { - bags_list::storage::StorageApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } } - pub fn hasher_bn254(&self) -> hasher_bn254::storage::StorageApi { - hasher_bn254::storage::StorageApi + pub mod pallet_asset_registry { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Register a new asset."] # [doc = ""] # [doc = "Asset is identified by `name` and the name must not be used to"] # [doc = "register another asset."] # [doc = ""] # [doc = "New asset is given `NextAssetId` - sequential asset id"] # [doc = ""] # [doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] # [doc = "be retrieved by name too (Note: this approach is used in AMM"] # [doc = "implementation (xyk))"] # [doc = ""] # [doc = "Emits 'Registered` event when successful."] register { name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , existential_deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Update registered asset."] # [doc = ""] # [doc = "Updates also mapping between name and asset id if provided name is"] # [doc = "different than currently registered."] # [doc = ""] # [doc = "Emits `Updated` event when successful."] update { asset_id : :: core :: primitive :: u32 , bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } , # [codec (index = 2)] # [doc = "Set metadata for an asset."] # [doc = ""] # [doc = "- `asset_id`: Asset identifier."] # [doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] # [doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] # [doc = ""] # [doc = "Emits `MetadataSet` event when successful."] set_metadata { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Set asset native location."] # [doc = ""] # [doc = "Adds mapping between native location and local asset id and vice"] # [doc = "versa."] # [doc = ""] # [doc = "Mainly used in XCM."] # [doc = ""] # [doc = "Emits `LocationSet` event when successful."] set_location { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Add an asset to an existing pool."] add_asset_to_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Remove an asset from an existing pool."] delete_asset_from_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Asset Id is not available. This only happens when it reaches the MAX"] + #[doc = "value of given id type."] + NoIdAvailable, + #[codec(index = 1)] + #[doc = "Invalid asset name or symbol."] + AssetNotFound, + #[codec(index = 2)] + #[doc = "Invalid asset name or symbol."] + TooLong, + #[codec(index = 3)] + #[doc = "Asset ID is not registered in the asset-registry."] + AssetNotRegistered, + #[codec(index = 4)] + #[doc = "Asset is already registered."] + AssetAlreadyRegistered, + #[codec(index = 5)] + #[doc = "Incorrect number of assets provided to create shared asset."] + InvalidSharedAssetLen, + #[codec(index = 6)] + #[doc = "Asset exists in to pool"] + AssetExistsInPool, + #[codec(index = 7)] + #[doc = "Asset not found in pool"] + AssetNotFoundInPool, + #[codec(index = 8)] + #[doc = "Max number of assets in pool is reached"] + MaxAssetIdInPoolReached, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Asset was registered."] Registered { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } , # [codec (index = 1)] # [doc = "Asset was updated."] Updated { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } , # [codec (index = 2)] # [doc = "Metadata set for an asset."] MetadataSet { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Native location set for an asset."] LocationSet { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetDetails<_0, _1, _2, _3> { + pub name: _2, + pub asset_type: + runtime_types::pallet_asset_registry::types::AssetType< + _0, + _3, + >, + pub existential_deposit: _1, + pub locked: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetMetadata<_0> { + pub symbol: _0, + pub decimals: ::core::primitive::u8, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum AssetType<_0, _1> { + # [codec (index = 0)] Token , # [codec (index = 1)] PoolShare (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > ,) , __Ignore (:: core :: marker :: PhantomData < _1 >) , } + } } - pub fn asset_registry(&self) -> asset_registry::storage::StorageApi { - asset_registry::storage::StorageApi + pub mod pallet_asset_tx_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who` in an asset `asset_id`."] + AssetTxFeePaid { + who: ::subxt::utils::AccountId32, + actual_fee: ::core::primitive::u128, + tip: ::core::primitive::u128, + asset_id: + ::core::option::Option<::core::primitive::u32>, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargeAssetTxPayment { + #[codec(compact)] + pub tip: ::core::primitive::u128, + pub asset_id: ::core::option::Option<::core::primitive::u32>, + } } - pub fn tokens(&self) -> tokens::storage::StorageApi { - tokens::storage::StorageApi + pub mod pallet_assets { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Issue a new class of fungible assets from a public origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially and its owner is the origin."] + #[doc = ""] + #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] + #[doc = ""] + #[doc = "Funds of sender are reserved by `AssetDeposit`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset."] + #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] + #[doc = "member of the asset class's admin team."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `Created` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + create { + #[codec(compact)] + id: ::core::primitive::u32, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + min_balance: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Issue a new class of fungible assets from a privileged origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin`."] + #[doc = ""] + #[doc = "Unlike `create`, no funds are reserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset."] + #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] + #[doc = "over this asset, but may later change and configure the permissions using"] + #[doc = "`transfer_ownership` and `set_team`."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `ForceCreated` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + force_create { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + is_sufficient: ::core::primitive::bool, + #[codec(compact)] + min_balance: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Start the process of destroying a fungible asset class."] + #[doc = ""] + #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] + #[doc = "destruction of an asset class."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "The asset class must be frozen before calling `start_destroy`."] + start_destroy { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "Destroy all accounts associated with a given asset."] + #[doc = ""] + #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedAccounts` event."] + destroy_accounts { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] + #[doc = ""] + #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedApprovals` event."] + destroy_approvals { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "Complete destroying asset and unreserve currency."] + #[doc = ""] + #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] + #[doc = "hand."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each successful call emits the `Event::Destroyed` event."] + finish_destroy { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "Mint assets of a particular class."] + #[doc = ""] + #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount minted."] + #[doc = "- `beneficiary`: The account to be credited with the minted assets."] + #[doc = "- `amount`: The amount of the asset to be minted."] + #[doc = ""] + #[doc = "Emits `Issued` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] + mint { + #[codec(compact)] + id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 7)] + #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] + #[doc = ""] + #[doc = "Bails with `NoAccount` if the `who` is already dead."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount burned."] + #[doc = "- `who`: The account to be debited from."] + #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] + #[doc = ""] + #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] + #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] + burn { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "Move some assets from the sender account to another."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] + transfer { + #[codec(compact)] + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 9)] + #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] + transfer_keep_alive { + #[codec(compact)] + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 10)] + #[doc = "Move some assets from one account to another."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `source`: The account to be debited."] + #[doc = "- `dest`: The account to be credited."] + #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] + #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] + #[doc = "below the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] + #[doc = "`dest`."] + force_transfer { + #[codec(compact)] + id: ::core::primitive::u32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "Disallow further unprivileged transfers from an account."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + freeze { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 12)] + #[doc = "Allow unprivileged transfers from an account again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be unfrozen."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + thaw { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 13)] + #[doc = "Disallow further unprivileged transfers for the asset class."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + freeze_asset { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 14)] + #[doc = "Allow unprivileged transfers for the asset again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be thawed."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + thaw_asset { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 15)] + #[doc = "Change the Owner of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = ""] + #[doc = "Emits `OwnerChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + transfer_ownership { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 16)] + #[doc = "Change the Issuer, Admin and Freezer of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = ""] + #[doc = "Emits `TeamChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + set_team { + #[codec(compact)] + id: ::core::primitive::u32, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 17)] + #[doc = "Set the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Funds of sender are reserved according to the formula:"] + #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] + #[doc = "account any already reserved funds."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + set_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + }, + #[codec(index = 18)] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Any deposit is freed for the asset owner."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + clear_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 19)] + #[doc = "Force the metadata for an asset to some value."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is left alone."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] + force_set_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 20)] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is returned."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + force_clear_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 21)] + #[doc = "Alter the attributes of a given asset."] + #[doc = ""] + #[doc = "Origin must be `ForceOrigin`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] + #[doc = "value to account for the state bloat associated with its balance storage. If set to"] + #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] + #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] + #[doc = "growth)."] + #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] + #[doc = "instructions."] + #[doc = ""] + #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + force_asset_status { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + min_balance: ::core::primitive::u128, + is_sufficient: ::core::primitive::bool, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 22)] + #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] + #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] + #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] + #[doc = "meet the right value."] + #[doc = ""] + #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] + #[doc = "making this call."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account to delegate permission to transfer asset."] + #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] + #[doc = "already an approval in place, then this acts additively."] + #[doc = ""] + #[doc = "Emits `ApprovedTransfer` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + approve_transfer { + #[codec(compact)] + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 23)] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place between signer and"] + #[doc = "`delegate`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + cancel_approval { + #[codec(compact)] + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 24)] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] + #[doc = "account of the asset `id`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + force_cancel_approval { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 25)] + #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] + #[doc = "account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] + #[doc = "signer."] + #[doc = ""] + #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] + #[doc = "reserved by `approve_transfer` is unreserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] + #[doc = "from which the asset balance will be withdrawn."] + #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] + #[doc = "- `amount`: The amount of assets to transfer."] + #[doc = ""] + #[doc = "Emits `TransferredApproved` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + transfer_approved { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + destination: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 26)] + #[doc = "Create an asset account for non-provider assets."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] + touch { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 27)] + #[doc = "Return the deposit (if any) of an asset account."] + #[doc = ""] + #[doc = "The origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] + refund { + #[codec(compact)] + id: ::core::primitive::u32, + allow_burn: ::core::primitive::bool, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account balance must be greater than or equal to the transfer amount."] + BalanceLow, + #[codec(index = 1)] + #[doc = "The account to alter does not exist."] + NoAccount, + #[codec(index = 2)] + #[doc = "The signing account has no permission to do the operation."] + NoPermission, + #[codec(index = 3)] + #[doc = "The given asset ID is unknown."] + Unknown, + #[codec(index = 4)] + #[doc = "The origin account is frozen."] + Frozen, + #[codec(index = 5)] + #[doc = "The asset ID is already taken."] + InUse, + #[codec(index = 6)] + #[doc = "Invalid witness data given."] + BadWitness, + #[codec(index = 7)] + #[doc = "Minimum balance should be non-zero."] + MinBalanceZero, + #[codec(index = 8)] + #[doc = "Unable to increment the consumer reference counters on the account. Either no provider"] + #[doc = "reference exists to allow a non-zero balance of a non-self-sufficient asset, or the"] + #[doc = "maximum number of consumers has been reached."] + NoProvider, + #[codec(index = 9)] + #[doc = "Invalid metadata given."] + BadMetadata, + #[codec(index = 10)] + #[doc = "No approval exists that would allow the transfer."] + Unapproved, + #[codec(index = 11)] + #[doc = "The source account would not survive the transfer and it needs to stay alive."] + WouldDie, + #[codec(index = 12)] + #[doc = "The asset-account already exists."] + AlreadyExists, + #[codec(index = 13)] + #[doc = "The asset-account doesn't have an associated deposit."] + NoDeposit, + #[codec(index = 14)] + #[doc = "The operation would result in funds being burned."] + WouldBurn, + #[codec(index = 15)] + #[doc = "The asset is a live asset and is actively being used. Usually emit for operations such"] + #[doc = "as `start_destroy` which require the asset to be in a destroying state."] + LiveAsset, + #[codec(index = 16)] + #[doc = "The asset is not live, and likely being destroyed."] + AssetNotLive, + #[codec(index = 17)] + #[doc = "The asset status is not the expected status."] + IncorrectStatus, + #[codec(index = 18)] + #[doc = "The asset should be frozen before the given operation."] + NotFrozen, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Some asset class was created."] + Created { + asset_id: ::core::primitive::u32, + creator: ::subxt::utils::AccountId32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "Some assets were issued."] + Issued { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + total_supply: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Some assets were transferred."] + Transferred { + asset_id: ::core::primitive::u32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Some assets were destroyed."] + Burned { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + balance: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "The management team changed."] + TeamChanged { + asset_id: ::core::primitive::u32, + issuer: ::subxt::utils::AccountId32, + admin: ::subxt::utils::AccountId32, + freezer: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "The owner changed."] + OwnerChanged { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "Some account `who` was frozen."] + Frozen { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 7)] + #[doc = "Some account `who` was thawed."] + Thawed { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "Some asset `asset_id` was frozen."] + AssetFrozen { asset_id: ::core::primitive::u32 }, + #[codec(index = 9)] + #[doc = "Some asset `asset_id` was thawed."] + AssetThawed { asset_id: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "Accounts were destroyed for given asset."] + AccountsDestroyed { + asset_id: ::core::primitive::u32, + accounts_destroyed: ::core::primitive::u32, + accounts_remaining: ::core::primitive::u32, + }, + #[codec(index = 11)] + #[doc = "Approvals were destroyed for given asset."] + ApprovalsDestroyed { + asset_id: ::core::primitive::u32, + approvals_destroyed: ::core::primitive::u32, + approvals_remaining: ::core::primitive::u32, + }, + #[codec(index = 12)] + #[doc = "An asset class is in the process of being destroyed."] + DestructionStarted { asset_id: ::core::primitive::u32 }, + #[codec(index = 13)] + #[doc = "An asset class was destroyed."] + Destroyed { asset_id: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "Some asset class was force-created."] + ForceCreated { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 15)] + #[doc = "New metadata has been set for an asset."] + MetadataSet { + asset_id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 16)] + #[doc = "Metadata has been cleared for an asset."] + MetadataCleared { asset_id: ::core::primitive::u32 }, + #[codec(index = 17)] + #[doc = "(Additional) funds have been approved for transfer to a destination account."] + ApprovedTransfer { + asset_id: ::core::primitive::u32, + source: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "An approval for account `delegate` was cancelled by `owner`."] + ApprovalCancelled { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 19)] + #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] + #[doc = "the approved `delegate`."] + TransferredApproved { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + destination: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "An asset has had its attributes changed by the `Force` origin."] + AssetStatusChanged { asset_id: ::core::primitive::u32 }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Approval<_0, _1> { + pub amount: _0, + pub deposit: _0, + #[codec(skip)] + pub __subxt_unused_type_params: + ::core::marker::PhantomData<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetAccount<_0, _1, _2> { + pub balance: _0, + pub is_frozen: ::core::primitive::bool, + pub reason: + runtime_types::pallet_assets::types::ExistenceReason< + _0, + >, + pub extra: _2, + #[codec(skip)] + pub __subxt_unused_type_params: + ::core::marker::PhantomData<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetDetails<_0, _1, _2> { + pub owner: _1, + pub issuer: _1, + pub admin: _1, + pub freezer: _1, + pub supply: _0, + pub deposit: _0, + pub min_balance: _0, + pub is_sufficient: ::core::primitive::bool, + pub accounts: ::core::primitive::u32, + pub sufficients: ::core::primitive::u32, + pub approvals: ::core::primitive::u32, + pub status: + runtime_types::pallet_assets::types::AssetStatus, + #[codec(skip)] + pub __subxt_unused_type_params: + ::core::marker::PhantomData<_2>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetMetadata<_0, _1> { + pub deposit: _0, + pub name: _1, + pub symbol: _1, + pub decimals: ::core::primitive::u8, + pub is_frozen: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum AssetStatus { + #[codec(index = 0)] + Live, + #[codec(index = 1)] + Frozen, + #[codec(index = 2)] + Destroying, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ExistenceReason<_0> { + #[codec(index = 0)] + Consumer, + #[codec(index = 1)] + Sufficient, + #[codec(index = 2)] + DepositHeld(_0), + #[codec(index = 3)] + DepositRefunded, + } + } } - pub fn token_wrapper(&self) -> token_wrapper::storage::StorageApi { - token_wrapper::storage::StorageApi + pub mod pallet_authorship { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Provide a set of uncles."] + set_uncles { + new_uncles: ::std::vec::Vec< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "The uncle parent not in the chain."] + InvalidUncleParent, + #[codec(index = 1)] + #[doc = "Uncles already set in the block."] + UnclesAlreadySet, + #[codec(index = 2)] + #[doc = "Too many uncles."] + TooManyUncles, + #[codec(index = 3)] + #[doc = "The uncle is genesis."] + GenesisUncle, + #[codec(index = 4)] + #[doc = "The uncle is too high in chain."] + TooHighUncle, + #[codec(index = 5)] + #[doc = "The uncle is already included."] + UncleAlreadyIncluded, + #[codec(index = 6)] + #[doc = "The uncle isn't recent enough to be included."] + OldUncle, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum UncleEntryItem<_0, _1, _2> { + #[codec(index = 0)] + InclusionHeight(_0), + #[codec(index = 1)] + Uncle(_1, ::core::option::Option<_2>), + } } - pub fn token_wrapper_handler( - &self, - ) -> token_wrapper_handler::storage::StorageApi { - token_wrapper_handler::storage::StorageApi + pub mod pallet_babe { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , 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 : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 fn mixer_verifier_bn254( - &self, - ) -> mixer_verifier_bn254::storage::StorageApi { - mixer_verifier_bn254::storage::StorageApi + pub mod pallet_bags_list { + use super::runtime_types; + pub mod list { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Bag { + pub head: + ::core::option::Option<::subxt::utils::AccountId32>, + pub tail: + ::core::option::Option<::subxt::utils::AccountId32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ListError { + #[codec(index = 0)] + Duplicate, + #[codec(index = 1)] + NotHeavier, + #[codec(index = 2)] + NotInSameBag, + #[codec(index = 3)] + NodeNotFound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Node { + pub id: ::subxt::utils::AccountId32, + pub prev: + ::core::option::Option<::subxt::utils::AccountId32>, + pub next: + ::core::option::Option<::subxt::utils::AccountId32>, + pub bag_upper: ::core::primitive::u64, + pub score: ::core::primitive::u64, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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`."] + #[doc = ""] + #[doc = "Only works if"] + #[doc = "- both nodes are within the same bag,"] + #[doc = "- and `origin` has a greater `Score` than `lighter`."] + put_in_front_of { + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "A error in the list interface implementation."] + List(runtime_types::pallet_bags_list::list::ListError), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Moved an account from one bag to another."] + Rebagged { + who: ::subxt::utils::AccountId32, + from: ::core::primitive::u64, + to: ::core::primitive::u64, + }, + #[codec(index = 1)] + #[doc = "Updated the score of some account to the given amount."] + ScoreUpdated { + who: ::subxt::utils::AccountId32, + new_score: ::core::primitive::u64, + }, + } + } } - pub fn v_anchor_verifier( - &self, - ) -> v_anchor_verifier::storage::StorageApi { - v_anchor_verifier::storage::StorageApi + pub mod pallet_balances { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` 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."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] + #[doc = " types. See related functions below."] + #[doc = "- It contains a limited number of reads and writes internally and no complex"] + #[doc = " computation."] + #[doc = ""] + #[doc = "Related functions:"] + #[doc = ""] + #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] + #[doc = " - Transferring balances to accounts that did not exist before will cause"] + #[doc = " `T::OnNewAccount::on_new_account` to be called."] + #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] + #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] + #[doc = " that the transfer will not kill the origin account."] + #[doc = "---------------------------------"] + #[doc = "- Origin account is already in memory, so no DB operations for them."] + #[doc = "# "] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] + #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] + #[doc = "If the new free or reserved balance is below the existential deposit,"] + #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + new_free: ::core::primitive::u128, + #[codec(compact)] + new_reserved: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] + #[doc = "specified."] + #[doc = "# "] + #[doc = "- Same as transfer, but additional read and write because the source account is not"] + #[doc = " assumed to be in the overlay."] + #[doc = "# "] + force_transfer { + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] + #[doc = "origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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). # "] + #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] + #[doc = " #"] + transfer_all { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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"] + KeepAlive, + #[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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub misc_frozen: _0, + pub fee_frozen: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::Reasons, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } } - pub fn merkle_tree_bn254( - &self, - ) -> merkle_tree_bn254::storage::StorageApi { - merkle_tree_bn254::storage::StorageApi + pub mod pallet_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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: ::std::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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + approve_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Assign a curator to a funded bounty."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + propose_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + 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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + 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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + award_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + 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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + 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 = "# "] + #[doc = "- O(1)."] + #[doc = "# "] + extend_bounty_expiry { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "A bounty is claimed by beneficiary."] + BountyClaimed { + index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::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 }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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 fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::storage::StorageApi { - linkable_tree_bn254::storage::StorageApi + pub mod pallet_child_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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: ::std::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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::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::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A child-bounty is cancelled."] + Canceled { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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 fn mixer_bn254(&self) -> mixer_bn254::storage::StorageApi { - mixer_bn254::storage::StorageApi + pub mod pallet_collective { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "Requires root origin."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] + #[doc = " members"] + #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] + #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] + #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] + #[doc = "# "] + set_members { + new_members: + ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: + ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] + #[doc = " `proposal`"] + #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] + #[doc = "- 1 event"] + #[doc = "# "] + execute { + proposal: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] + #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] + #[doc = " - DB accesses influenced by `threshold`:"] + #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] + #[doc = " - OR proposal insertion (`threshold <= 2`)"] + #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] + #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] + #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] + #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] + #[doc = " - 1 event"] + #[doc = "# "] + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `Members` (codec `O(M)`)"] + #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] + #[doc = "- 1 event"] + #[doc = "# "] + vote { + proposal: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + }, + #[codec(index = 4)] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] + close_old_weight { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + #[codec(compact)] + proposal_weight_bound: + runtime_types::sp_weights::OldWeight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "# "] + #[doc = "Complexity: O(P) where P is the number of max proposals"] + #[doc = "DB Weight:"] + #[doc = "* Reads: Proposals"] + #[doc = "* Writes: Voting, Proposals, ProposalOf"] + #[doc = "# "] + disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 6)] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] + close { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + proposal_weight_bound: + runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account is not a member"] + NotMember, + #[codec(index = 1)] + #[doc = "Duplicate proposals not allowed"] + DuplicateProposal, + #[codec(index = 2)] + #[doc = "Proposal must exist"] + ProposalMissing, + #[codec(index = 3)] + #[doc = "Mismatched index"] + WrongIndex, + #[codec(index = 4)] + #[doc = "Duplicate vote ignored"] + DuplicateVote, + #[codec(index = 5)] + #[doc = "Members are already initialized!"] + AlreadyInitialized, + #[codec(index = 6)] + #[doc = "The close call was made too early, before the end of the voting."] + TooEarly, + #[codec(index = 7)] + #[doc = "There can only be a maximum of `MaxProposals` active proposals."] + TooManyProposals, + #[codec(index = 8)] + #[doc = "The given weight bound for the proposal was too low."] + WrongProposalWeight, + #[codec(index = 9)] + #[doc = "The given length bound for the proposal was too low."] + WrongProposalLength, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + Proposed { + account: ::subxt::utils::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::utils::H256, + threshold: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + Voted { + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "A motion was approved by the required threshold."] + Approved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + #[doc = "A motion was not approved by the required threshold."] + Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + Executed { + proposal_hash: ::subxt::utils::H256, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 5)] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + MemberExecuted { + proposal_hash: ::subxt::utils::H256, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 6)] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + Closed { + proposal_hash: ::subxt::utils::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Members(::core::primitive::u32, ::core::primitive::u32), + #[codec(index = 1)] + Member(_0), + #[codec(index = 2)] + _Phantom, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Votes<_0, _1> { + pub index: ::core::primitive::u32, + pub threshold: ::core::primitive::u32, + pub ayes: ::std::vec::Vec<_0>, + pub nays: ::std::vec::Vec<_0>, + pub end: _1, + } } - pub fn v_anchor_bn254(&self) -> v_anchor_bn254::storage::StorageApi { - v_anchor_bn254::storage::StorageApi + pub mod pallet_democracy { + use super::runtime_types; + pub mod conviction { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Conviction { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Locked1x, + #[codec(index = 2)] + Locked2x, + #[codec(index = 3)] + Locked3x, + #[codec(index = 4)] + Locked4x, + #[codec(index = 5)] + Locked5x, + #[codec(index = 6)] + Locked6x, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Propose a sensitive action to be taken."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender must"] # [doc = "have funds to cover the deposit."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the proposal preimage."] # [doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] # [doc = ""] # [doc = "Emits `Proposed`."] propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Signals agreement with a particular proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender"] # [doc = "must have funds to cover the deposit, equal to the original deposit."] # [doc = ""] # [doc = "- `proposal`: The index of the proposal to second."] second { # [codec (compact)] proposal : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] # [doc = "- `vote`: The vote configuration."] vote { # [codec (compact)] ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 3)] # [doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancellationOrigin`."] # [doc = ""] # [doc = "-`ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "Weight: `O(1)`."] emergency_cancel { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `ExternalOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] # [doc = "an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_majority { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] # [doc = "schedule an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_default { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] # [doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] # [doc = "but it is not a majority-carries referendum then it fails."] # [doc = ""] # [doc = "The dispatch of this call must be `FastTrackOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the current external proposal."] # [doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] # [doc = "\tMust be always greater than zero."] # [doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] # [doc = "- `delay`: The number of block after voting has ended in approval and this should be"] # [doc = " enacted. This doesn't have a minimum amount."] # [doc = ""] # [doc = "Emits `Started`."] # [doc = ""] # [doc = "Weight: `O(1)`"] fast_track { proposal_hash : :: subxt :: utils :: H256 , voting_period : :: core :: primitive :: u64 , delay : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "Veto and blacklist the external proposal hash."] # [doc = ""] # [doc = "The dispatch origin of this call must be `VetoOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] # [doc = ""] # [doc = "Emits `Vetoed`."] # [doc = ""] # [doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Remove a referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "- `ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "# Weight: `O(1)`."] cancel_referendum { # [codec (compact)] ref_index : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Delegate the voting power (with some given conviction) of the sending account."] # [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/consolidated"] # [doc = " through `reap_vote` or `unvote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [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 referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] delegate { to : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , balance : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Undelegate the voting power of the sending account."] # [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."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] undelegate , # [codec (index = 12)] # [doc = "Clears all public proposals."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "Weight: `O(1)`."] clear_public_proposals , # [codec (index = 13)] # [doc = "Unlock tokens that have an expired lock."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] unlock { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove a vote for a referendum."] # [doc = ""] # [doc = "If:"] # [doc = "- the referendum was cancelled, or"] # [doc = "- the referendum is ongoing, or"] # [doc = "- the referendum 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 referendum 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 referendum `index`."] # [doc = ""] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_vote { index : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Remove a vote for a referendum."] # [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 referendum was cancelled, because the voter lost the referendum 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"] # [doc = " referendum `index`."] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , index : :: core :: primitive :: u32 , } , # [codec (index = 16)] # [doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] # [doc = "proposed again."] # [doc = ""] # [doc = "If called on a queued public or external proposal, then this will result in it being"] # [doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] # [doc = "then it will be cancelled."] # [doc = ""] # [doc = "The dispatch origin of this call must be `BlacklistOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] # [doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] # [doc = "cancelled."] # [doc = ""] # [doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] # [doc = " reasonable value)."] blacklist { proposal_hash : :: subxt :: utils :: H256 , maybe_ref_index : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 17)] # [doc = "Remove a proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] # [doc = ""] # [doc = "- `prop_index`: The index of the proposal to cancel."] # [doc = ""] # [doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { # [codec (compact)] prop_index : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Value too low"] + ValueLow, + #[codec(index = 1)] + #[doc = "Proposal does not exist"] + ProposalMissing, + #[codec(index = 2)] + #[doc = "Cannot cancel the same proposal twice"] + AlreadyCanceled, + #[codec(index = 3)] + #[doc = "Proposal already made"] + DuplicateProposal, + #[codec(index = 4)] + #[doc = "Proposal still blacklisted"] + ProposalBlacklisted, + #[codec(index = 5)] + #[doc = "Next external proposal not simple majority"] + NotSimpleMajority, + #[codec(index = 6)] + #[doc = "Invalid hash"] + InvalidHash, + #[codec(index = 7)] + #[doc = "No external proposal"] + NoProposal, + #[codec(index = 8)] + #[doc = "Identity may not veto a proposal twice"] + AlreadyVetoed, + #[codec(index = 9)] + #[doc = "Vote given for invalid referendum"] + ReferendumInvalid, + #[codec(index = 10)] + #[doc = "No proposals waiting"] + NoneWaiting, + #[codec(index = 11)] + #[doc = "The given account did not vote on the referendum."] + NotVoter, + #[codec(index = 12)] + #[doc = "The actor has no permission to conduct the action."] + NoPermission, + #[codec(index = 13)] + #[doc = "The account is already delegating."] + AlreadyDelegating, + #[codec(index = 14)] + #[doc = "Too high a balance was provided that the account cannot afford."] + InsufficientFunds, + #[codec(index = 15)] + #[doc = "The account is not currently delegating."] + NotDelegating, + #[codec(index = 16)] + #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] + #[doc = "these are removed, either through `unvote` or `reap_vote`."] + VotesExist, + #[codec(index = 17)] + #[doc = "The instant referendum origin is currently disallowed."] + InstantNotAllowed, + #[codec(index = 18)] + #[doc = "Delegation to oneself makes no sense."] + Nonsense, + #[codec(index = 19)] + #[doc = "Invalid upper bound."] + WrongUpperBound, + #[codec(index = 20)] + #[doc = "Maximum number of votes reached."] + MaxVotesReached, + #[codec(index = 21)] + #[doc = "Maximum number of items reached."] + TooMany, + #[codec(index = 22)] + #[doc = "Voting period too low"] + VotingPeriodLow, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "A motion has been proposed by a public account."] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "An external proposal has been tabled."] ExternalTabled , # [codec (index = 3)] # [doc = "A referendum has begun."] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] # [doc = "A proposal has been approved by referendum."] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proposal has been rejected by referendum."] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A referendum has been cancelled."] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "An account has delegated their vote to another account."] Delegated { who : :: subxt :: utils :: AccountId32 , target : :: subxt :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An account has cancelled a previous delegation operation."] Undelegated { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An external proposal has been vetoed."] Vetoed { who : :: subxt :: utils :: AccountId32 , proposal_hash : :: subxt :: utils :: H256 , until : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 11)] # [doc = "An account has voted in a referendum"] Voted { voter : :: subxt :: utils :: AccountId32 , ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 12)] # [doc = "An account has secconded a proposal"] Seconded { seconder : :: subxt :: utils :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , # [codec (index = 13)] # [doc = "A proposal got canceled."] ProposalCanceled { prop_index : :: core :: primitive :: u32 , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Delegations<_0> { + pub votes: _0, + pub capital: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ReferendumInfo<_0, _1, _2> { + # [codec (index = 0)] Ongoing (runtime_types :: pallet_democracy :: types :: ReferendumStatus < _0 , _1 , _2 > ,) , # [codec (index = 1)] Finished { approved : :: core :: primitive :: bool , end : _0 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReferendumStatus < _0 , _1 , _2 > { pub end : _0 , pub proposal : _1 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , pub delay : _0 , pub tally : runtime_types :: pallet_democracy :: types :: Tally < _2 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Tally<_0> { + pub ayes: _0, + pub nays: _0, + pub turnout: _0, + } + } + pub mod vote { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum AccountVote<_0> { + #[codec(index = 0)] + Standard { + vote: runtime_types::pallet_democracy::vote::Vote, + balance: _0, + }, + #[codec(index = 1)] + Split { aye: _0, nay: _0 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PriorLock<_0, _1>(pub _0, pub _1); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Voting<_0, _1, _2> { + # [codec (index = 0)] Direct { votes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_democracy :: vote :: AccountVote < _0 > ,) > , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , # [codec (index = 1)] Delegating { balance : _0 , target : _1 , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , } + } + pub mod vote_threshold { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum VoteThreshold { + #[codec(index = 0)] + SuperMajorityApprove, + #[codec(index = 1)] + SuperMajorityAgainst, + #[codec(index = 2)] + SimpleMajority, + } + } } - pub fn v_anchor_handler_bn254( - &self, - ) -> v_anchor_handler_bn254::storage::StorageApi { - v_anchor_handler_bn254::storage::StorageApi + pub mod pallet_election_provider_multi_phase { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error of the pallet that can be returned in response to dispatches."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Submission was too early."] + PreDispatchEarlySubmission, + #[codec(index = 1)] + #[doc = "Wrong number of winners presented."] + PreDispatchWrongWinnerCount, + #[codec(index = 2)] + #[doc = "Submission was too weak, score-wise."] + PreDispatchWeakSubmission, + #[codec(index = 3)] + #[doc = "The queue was full, and the solution was not better than any of the existing ones."] + SignedQueueFull, + #[codec(index = 4)] + #[doc = "The origin failed to pay the deposit."] + SignedCannotPayDeposit, + #[codec(index = 5)] + #[doc = "Witness data to dispatchable is invalid."] + SignedInvalidWitness, + #[codec(index = 6)] + #[doc = "The signed submission consumes too much weight"] + SignedTooMuchWeight, + #[codec(index = 7)] + #[doc = "OCW submitted solution for wrong round"] + OcwCallWrongEra, + #[codec(index = 8)] + #[doc = "Snapshot metadata should exist but didn't."] + MissingSnapshotMetadata, + #[codec(index = 9)] + #[doc = "`Self::insert_submission` returned an invalid index."] + InvalidSubmissionIndex, + #[codec(index = 10)] + #[doc = "The call is not allowed at this point."] + CallNotAllowed, + #[codec(index = 11)] + #[doc = "The fallback failed"] + FallbackFailed, + #[codec(index = 12)] + #[doc = "Some bound not met"] + BoundNotMet, + #[codec(index = 13)] + #[doc = "Submitted solution has too many winners"] + TooManyWinners, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } + } + pub mod signed { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ElectionCompute { + #[codec(index = 0)] + OnChain, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned, + #[codec(index = 3)] + Fallback, + #[codec(index = 4)] + Emergency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase<_0> { + #[codec(index = 0)] + Off, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned((::core::primitive::bool, _0)), + #[codec(index = 3)] + Emergency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RawSolution<_0> { + pub solution: _0, + pub score: runtime_types::sp_npos_elections::ElectionScore, + pub round: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReadySolution { pub supports : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RoundSnapshot { + pub voters: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + )>, + pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SolutionOrSnapshotSize { + #[codec(compact)] + pub voters: ::core::primitive::u32, + #[codec(compact)] + pub targets: ::core::primitive::u32, + } } - pub fn signature_bridge( - &self, - ) -> signature_bridge::storage::StorageApi { - signature_bridge::storage::StorageApi + pub mod pallet_elections_phragmen { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] # [doc = "set the initial votes, or update already existing votes."] # [doc = ""] # [doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] # [doc = "reserved. The deposit is based on the number of votes and can be updated over time."] # [doc = ""] # [doc = "The `votes` should:"] # [doc = " - not be empty."] # [doc = " - be less than the number of possible candidates. Note that all current members and"] # [doc = " runners-up are also automatically candidates for the next round."] # [doc = ""] # [doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] # [doc = "lock and keep some for further operations."] # [doc = ""] # [doc = "# "] # [doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] # [doc = "# "] vote { votes : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Remove `origin` as a voter."] # [doc = ""] # [doc = "This removes the lock and returns the deposit."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter , # [codec (index = 2)] # [doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] # [doc = ""] # [doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] # [doc = "or leave the system while their deposit is slashed."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] # [doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] # [doc = ""] # [doc = "# "] # [doc = "The number of current candidates must be provided as witness data."] # [doc = "# "] submit_candidacy { # [codec (compact)] candidate_count : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] # [doc = "outcomes exist:"] # [doc = ""] # [doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] # [doc = " unreserved, returned and origin is removed as a candidate."] # [doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] # [doc = " origin is removed as a runner-up."] # [doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] # [doc = " removed as a member, consequently not being a candidate for the next round anymore."] # [doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] # [doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] # [doc = " next round."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed, and have one of the above roles."] # [doc = ""] # [doc = "# "] # [doc = "The type of renouncing must be provided as witness data."] # [doc = "# "] renounce_candidacy { renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing , } , # [codec (index = 4)] # [doc = "Remove a particular member from the set. This is effective immediately and the bond of"] # [doc = "the outgoing member is slashed."] # [doc = ""] # [doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] # [doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] # [doc = "started, else, nothing happens."] # [doc = ""] # [doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] # [doc = "it is returned."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "Note that this does not affect the designated block number of the next election."] # [doc = ""] # [doc = "# "] # [doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] # [doc = "will go into phragmen, we assume full block for now."] # [doc = "# "] remove_member { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , slash_bond : :: core :: primitive :: bool , rerun_election : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] # [doc = "deposit of the removed voters are returned."] # [doc = ""] # [doc = "This is an root function to be used only for cleaning the state."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "# "] # [doc = "The total number of voters and those that are defunct must be provided as witness data."] # [doc = "# "] clean_defunct_voters { num_voters : :: core :: primitive :: u32 , num_defunct : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Cannot vote when no candidates or members exist."] + UnableToVote, + #[codec(index = 1)] + #[doc = "Must vote for at least one candidate."] + NoVotes, + #[codec(index = 2)] + #[doc = "Cannot vote more than candidates."] + TooManyVotes, + #[codec(index = 3)] + #[doc = "Cannot vote more than maximum allowed."] + MaximumVotesExceeded, + #[codec(index = 4)] + #[doc = "Cannot vote with stake less than minimum balance."] + LowBalance, + #[codec(index = 5)] + #[doc = "Voter can not pay voting bond."] + UnableToPayBond, + #[codec(index = 6)] + #[doc = "Must be a voter."] + MustBeVoter, + #[codec(index = 7)] + #[doc = "Duplicated candidate submission."] + DuplicatedCandidate, + #[codec(index = 8)] + #[doc = "Too many candidates have been created."] + TooManyCandidates, + #[codec(index = 9)] + #[doc = "Member cannot re-submit candidacy."] + MemberSubmit, + #[codec(index = 10)] + #[doc = "Runner cannot re-submit candidacy."] + RunnerUpSubmit, + #[codec(index = 11)] + #[doc = "Candidate does not have enough funds."] + InsufficientCandidateFunds, + #[codec(index = 12)] + #[doc = "Not a member."] + NotMember, + #[codec(index = 13)] + #[doc = "The provided count of number of candidates is incorrect."] + InvalidWitnessData, + #[codec(index = 14)] + #[doc = "The provided count of number of votes is incorrect."] + InvalidVoteCount, + #[codec(index = 15)] + #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] + InvalidRenouncing, + #[codec(index = 16)] + #[doc = "Prediction regarding replacement after member removal is wrong."] + InvalidReplacement, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] + NewTerm { + new_members: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + }, + #[codec(index = 1)] + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] + EmptyTerm, + #[codec(index = 2)] + #[doc = "Internal error happened while trying to perform election."] + ElectionError, + #[codec(index = 3)] + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] + MemberKicked { member: ::subxt::utils::AccountId32 }, + #[codec(index = 4)] + #[doc = "Someone has renounced their candidacy."] + Renounced { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] + CandidateSlashed { + candidate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] + SeatHolderSlashed { + seat_holder: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Renouncing { + #[codec(index = 0)] + Member, + #[codec(index = 1)] + RunnerUp, + #[codec(index = 2)] + Candidate(#[codec(compact)] ::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SeatHolder<_0, _1> { + pub who: _0, + pub stake: _1, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Voter<_0, _1> { + pub votes: ::std::vec::Vec<_0>, + pub stake: _1, + pub deposit: _1, + } } - pub fn relayer_registry( - &self, - ) -> relayer_registry::storage::StorageApi { - relayer_registry::storage::StorageApi + pub mod pallet_grandpa { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , 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 :: u64 , best_finalized_block_number : :: core :: primitive :: u64 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New authority set has been applied."] + NewAuthorities { + authority_set: ::std::vec::Vec<( + runtime_types::sp_finality_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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , _0 ,) > , pub forced : :: core :: option :: Option < _0 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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 fn key_storage(&self) -> key_storage::storage::StorageApi { - key_storage::storage::StorageApi + pub mod pallet_hasher { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + HashingParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during hashing"] + HashError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi + pub mod pallet_identity { + use super::runtime_types; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Data { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Raw0([::core::primitive::u8; 0usize]), + #[codec(index = 2)] + Raw1([::core::primitive::u8; 1usize]), + #[codec(index = 3)] + Raw2([::core::primitive::u8; 2usize]), + #[codec(index = 4)] + Raw3([::core::primitive::u8; 3usize]), + #[codec(index = 5)] + Raw4([::core::primitive::u8; 4usize]), + #[codec(index = 6)] + Raw5([::core::primitive::u8; 5usize]), + #[codec(index = 7)] + Raw6([::core::primitive::u8; 6usize]), + #[codec(index = 8)] + Raw7([::core::primitive::u8; 7usize]), + #[codec(index = 9)] + Raw8([::core::primitive::u8; 8usize]), + #[codec(index = 10)] + Raw9([::core::primitive::u8; 9usize]), + #[codec(index = 11)] + Raw10([::core::primitive::u8; 10usize]), + #[codec(index = 12)] + Raw11([::core::primitive::u8; 11usize]), + #[codec(index = 13)] + Raw12([::core::primitive::u8; 12usize]), + #[codec(index = 14)] + Raw13([::core::primitive::u8; 13usize]), + #[codec(index = 15)] + Raw14([::core::primitive::u8; 14usize]), + #[codec(index = 16)] + Raw15([::core::primitive::u8; 15usize]), + #[codec(index = 17)] + Raw16([::core::primitive::u8; 16usize]), + #[codec(index = 18)] + Raw17([::core::primitive::u8; 17usize]), + #[codec(index = 19)] + Raw18([::core::primitive::u8; 18usize]), + #[codec(index = 20)] + Raw19([::core::primitive::u8; 19usize]), + #[codec(index = 21)] + Raw20([::core::primitive::u8; 20usize]), + #[codec(index = 22)] + Raw21([::core::primitive::u8; 21usize]), + #[codec(index = 23)] + Raw22([::core::primitive::u8; 22usize]), + #[codec(index = 24)] + Raw23([::core::primitive::u8; 23usize]), + #[codec(index = 25)] + Raw24([::core::primitive::u8; 24usize]), + #[codec(index = 26)] + Raw25([::core::primitive::u8; 25usize]), + #[codec(index = 27)] + Raw26([::core::primitive::u8; 26usize]), + #[codec(index = 28)] + Raw27([::core::primitive::u8; 27usize]), + #[codec(index = 29)] + Raw28([::core::primitive::u8; 28usize]), + #[codec(index = 30)] + Raw29([::core::primitive::u8; 29usize]), + #[codec(index = 31)] + Raw30([::core::primitive::u8; 30usize]), + #[codec(index = 32)] + Raw31([::core::primitive::u8; 31usize]), + #[codec(index = 33)] + Raw32([::core::primitive::u8; 32usize]), + #[codec(index = 34)] + BlakeTwo256([::core::primitive::u8; 32usize]), + #[codec(index = 35)] + Sha256([::core::primitive::u8; 32usize]), + #[codec(index = 36)] + Keccak256([::core::primitive::u8; 32usize]), + #[codec(index = 37)] + ShaThree256([::core::primitive::u8; 32usize]), + } + } } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi + pub mod pallet_im_online { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u64 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Non existent public key."] + InvalidKey, + #[codec(index = 1)] + #[doc = "Duplicated heartbeat."] + DuplicatedHeartbeat, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } + } + pub mod sr25519 { + use super::runtime_types; + pub mod app_sr25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public( + pub runtime_types::sp_core::sr25519::Public, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature( + pub runtime_types::sp_core::sr25519::Signature, + ); + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Heartbeat<_0> { + pub block_number: _0, + pub network_state: + runtime_types::sp_core::offchain::OpaqueNetworkState, + pub session_index: ::core::primitive::u32, + pub authority_index: ::core::primitive::u32, + pub validators_len: ::core::primitive::u32, + } } - pub fn babe(&self) -> babe::calls::TransactionApi { - babe::calls::TransactionApi + pub mod pallet_indices { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] + 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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One transfer operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Indices Accounts, System Account (recipient)"] + #[doc = " - Writes: Indices Accounts, System Account (recipient)"] + #[doc = "# "] + transfer { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] + 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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- Up to one reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Indices Accounts, System Account (original owner)"] + #[doc = " - Writes: Indices Accounts, System Account (original owner)"] + #[doc = "# "] + force_transfer { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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 = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- Up to one slash operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] + freeze { index: ::core::primitive::u32 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A account index was assigned."] + IndexAssigned { + who: ::subxt::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::utils::AccountId32, + }, + } + } } - pub fn authorship(&self) -> authorship::calls::TransactionApi { - authorship::calls::TransactionApi + pub mod pallet_key_storage { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] register { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + PubKeyOutOfBounds, + #[codec(index = 1)] + MaxPubkeyOwnersExceeded, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Public key registration"] PublicKeyRegistration { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + } } - pub fn indices(&self) -> indices::calls::TransactionApi { - indices::calls::TransactionApi + pub mod pallet_linkable_tree { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + create { + max_edges: ::core::primitive::u32, + depth: ::core::primitive::u8, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + UnknownRoot, + #[codec(index = 1)] + #[doc = "Invalid Merkle Roots"] + InvalidMerkleRoots, + #[codec(index = 2)] + #[doc = "Invalid neighbor root passed in withdrawal"] + #[doc = "(neighbor root is not in neighbor history)"] + InvalidNeighborWithdrawRoot, + #[codec(index = 3)] + #[doc = "Anchor is at maximum number of edges for the given tree"] + TooManyEdges, + #[codec(index = 4)] + #[doc = "Edge already exists"] + EdgeAlreadyExists, + #[codec(index = 5)] + #[doc = "Edge does not exist"] + EdgeDoesntExists, + #[codec(index = 6)] + #[doc = "Invalid latest leaf index"] + InvalidLatestLeafIndex, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New tree created"] + LinkableTreeCreation { tree_id: ::core::primitive::u32 }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct EdgeMetadata<_0, _1, _2> { + pub src_chain_id: _0, + pub root: _1, + pub latest_leaf_index: _2, + pub src_resource_id: + runtime_types::webb_proposals::header::ResourceId, + } + } } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi + pub mod pallet_mixer { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + create { + deposit_size: ::core::primitive::u128, + depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + }, + #[codec(index = 1)] + deposit { + tree_id: ::core::primitive::u32, + leaf: runtime_types::webb_primitives::runtime::Element, + }, + #[codec(index = 2)] + withdraw { + id: ::core::primitive::u32, + proof_bytes: ::std::vec::Vec<::core::primitive::u8>, + root: runtime_types::webb_primitives::runtime::Element, + nullifier_hash: + runtime_types::webb_primitives::runtime::Element, + recipient: ::subxt::utils::AccountId32, + relayer: ::subxt::utils::AccountId32, + fee: ::core::primitive::u128, + refund: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Invalid withdraw proof"] + InvalidWithdrawProof, + #[codec(index = 2)] + #[doc = "Invalid nullifier that is already used"] + #[doc = "(this error is returned when a nullifier is used twice)"] + AlreadyRevealedNullifier, + #[codec(index = 3)] + InvalidArbitraryData, + #[codec(index = 4)] + #[doc = "Invalid root"] + UnknownRoot, + #[codec(index = 5)] + #[doc = "No mixer found"] + NoMixerFound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New tree created"] + MixerCreation { tree_id: ::core::primitive::u32 }, + #[codec(index = 1)] + Deposit { + tree_id: ::core::primitive::u32, + leaf: runtime_types::webb_primitives::runtime::Element, + }, + #[codec(index = 2)] + Withdraw { + tree_id: ::core::primitive::u32, + recipient: ::subxt::utils::AccountId32, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MixerMetadata<_0, _1> { + pub deposit_size: _0, + pub asset: _1, + } + } } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi { - election_provider_multi_phase::calls::TransactionApi + pub mod pallet_mt { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] create { depth : :: core :: primitive :: u8 , } , # [codec (index = 1)] insert { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: webb_primitives :: runtime :: Element , } , # [codec (index = 2)] force_set_default_hashes { default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Invalid depth of the tree specified"] + InvalidTreeDepth, + #[codec(index = 2)] + #[doc = "Invalid leaf index, either taken or too large"] + InvalidLeafIndex, + #[codec(index = 3)] + #[doc = "Tree is full"] + ExceedsMaxLeaves, + #[codec(index = 4)] + #[doc = "Tree doesnt exist"] + TreeDoesntExist, + #[codec(index = 5)] + #[doc = "Invalid length for default hashes"] + ExceedsMaxDefaultHashes, + #[codec(index = 6)] + #[doc = "Invalid length for edges"] + ExceedsMaxEdges, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New tree created"] + TreeCreation { + tree_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "New leaf inserted"] + LeafInsertion { + tree_id: ::core::primitive::u32, + leaf_index: ::core::primitive::u32, + leaf: runtime_types::webb_primitives::runtime::Element, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TreeMetadata < _0 , _1 , _2 , _3 > { pub creator : :: core :: option :: Option < _0 > , pub paused : :: core :: primitive :: bool , pub leaf_count : _1 , pub max_leaves : _1 , pub depth : :: core :: primitive :: u8 , pub root : _2 , pub edge_nodes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _2 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } + } } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi + pub mod pallet_multisig { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "# "] + #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] + #[doc = "-------------------------------"] + #[doc = "- DB Weight: None"] + #[doc = "- Plus Call Weight"] + #[doc = "# "] + as_multi_threshold_1 { + other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + call: ::std::boxed::Box< + runtime_types::webb_standalone_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 = "# "] + #[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`."] + #[doc = "-------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Multisig Storage, [Caller Account]"] + #[doc = " - Writes: Multisig Storage, [Caller Account]"] + #[doc = "- Plus Call Weight"] + #[doc = "# "] + as_multi { + threshold: ::core::primitive::u16, + other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + >, + call: ::std::boxed::Box< + runtime_types::webb_standalone_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 = "# "] + #[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`."] + #[doc = "----------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Multisig Storage, [Caller Account]"] + #[doc = " - Write: Multisig Storage, [Caller Account]"] + #[doc = "# "] + approve_as_multi { + threshold: ::core::primitive::u16, + other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + >, + 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 = "# "] + #[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."] + #[doc = "----------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] + #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] + #[doc = "# "] + cancel_as_multi { + threshold: ::core::primitive::u16, + other_signatories: + ::std::vec::Vec<::subxt::utils::AccountId32>, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + call_hash: [::core::primitive::u8; 32usize], + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new multisig operation has begun."] + NewMultisig { + approving: ::subxt::utils::AccountId32, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + #[codec(index = 1)] + #[doc = "A multisig operation has been approved by someone."] + MultisigApproval { + approving: ::subxt::utils::AccountId32, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + #[codec(index = 2)] + #[doc = "A multisig operation has been executed."] + MultisigExecuted { + approving: ::subxt::utils::AccountId32, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + multisig: ::subxt::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::utils::AccountId32, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u64, + >, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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::sp_core::bounded::bounded_vec::BoundedVec< + _2, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Timepoint<_0> { + pub height: _0, + pub index: ::core::primitive::u32, + } } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi + pub mod pallet_nomination_pools { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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."] + 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 there 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\"."] + 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 state-toggler. This is"] + #[doc = " refereed to 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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 their 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 state-toggler."] + #[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."] + withdraw_unbonded { + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] + #[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` transferrable."] + create { + #[codec(compact)] + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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."] + nominate { + pool_id: ::core::primitive::u32, + validators: + ::std::vec::Vec<::subxt::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 state toggler, 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 state toggler, or the root role"] + #[doc = "of the pool."] + set_metadata { + pool_id: ::core::primitive::u32, + metadata: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 11)] + #[doc = "Update configurations for the nomination pools. The origin for this call must be"] + #[doc = "Root."] + #[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`]."] + 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, + >, + }, + #[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::utils::AccountId32, + >, + new_nominator: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_state_toggler: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 13)] + #[doc = "Chill 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, same as [`Pallet::nominate`]."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] + chill { pool_id: ::core::primitive::u32 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DefensiveError { + #[codec(index = 0)] + NotEnoughSpaceInUnbondPool, + #[codec(index = 1)] + PoolNotFound, + #[codec(index = 2)] + RewardPoolNotFound, + #[codec(index = 3)] + SubPoolsNotFound, + #[codec(index = 4)] + BondedStashKilledPrematurely, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Events of this pallet."] + pub enum Event { + #[codec(index = 0)] + #[doc = "A pool has been created."] + Created { + depositor: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A member has became bonded in a pool."] + Bonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + bonded: ::core::primitive::u128, + joined: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "A payout has been made to a member."] + PaidOut { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + payout: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] + #[doc = "requested to be unbonded."] + Unbonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + era: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] + Withdrawn { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "A pool has been destroyed."] + Destroyed { pool_id: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "The state of a pool has changed"] + StateChanged { + pool_id: ::core::primitive::u32, + new_state: + runtime_types::pallet_nomination_pools::PoolState, + }, + #[codec(index = 7)] + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] + MemberRemoved { + pool_id: ::core::primitive::u32, + member: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] + #[doc = "can never change."] + RolesUpdated { + root: + ::core::option::Option<::subxt::utils::AccountId32>, + state_toggler: + ::core::option::Option<::subxt::utils::AccountId32>, + nominator: + ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 9)] + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] + PoolSlashed { + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + #[codec(index = 10)] + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] + UnbondingPoolSlashed { + pool_id: ::core::primitive::u32, + era: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BondExtra<_0> { + #[codec(index = 0)] + FreeBalance(_0), + #[codec(index = 1)] + Rewards, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondedPoolInner { + pub points: ::core::primitive::u128, + pub state: runtime_types::pallet_nomination_pools::PoolState, + pub member_counter: ::core::primitive::u32, + pub roles: runtime_types::pallet_nomination_pools::PoolRoles< + ::subxt::utils::AccountId32, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolMember { pub pool_id : :: core :: primitive :: u32 , pub points : :: core :: primitive :: u128 , pub last_recorded_reward_counter : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub unbonding_eras : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolRoles<_0> { + pub depositor: _0, + pub root: ::core::option::Option<_0>, + pub nominator: ::core::option::Option<_0>, + pub state_toggler: ::core::option::Option<_0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PoolState { + #[codec(index = 0)] + Open, + #[codec(index = 1)] + Blocked, + #[codec(index = 2)] + Destroying, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RewardPool { + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub last_recorded_total_payouts: ::core::primitive::u128, + pub total_rewards_claimed: ::core::primitive::u128, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnbondPool { + pub points: ::core::primitive::u128, + pub balance: ::core::primitive::u128, + } } - pub fn democracy(&self) -> democracy::calls::TransactionApi { - democracy::calls::TransactionApi + pub mod pallet_offences { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Events 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: ::std::vec::Vec<::core::primitive::u8>, + }, + } + } } - pub fn council(&self) -> council::calls::TransactionApi { - council::calls::TransactionApi + pub mod pallet_preimage { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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: ::std::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::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::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::utils::H256 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A preimage has been noted."] + Noted { hash: ::subxt::utils::H256 }, + #[codec(index = 1)] + #[doc = "A preimage has been requested."] + Requested { hash: ::subxt::utils::H256 }, + #[codec(index = 2)] + #[doc = "A preimage has ben cleared."] + Cleared { hash: ::subxt::utils::H256 }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RequestStatus<_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>, + }, + } } - pub fn elections(&self) -> elections::calls::TransactionApi { - elections::calls::TransactionApi + pub mod pallet_proxy { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "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 { + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + force_proxy_type: ::core::option::Option< + runtime_types::webb_standalone_runtime::ProxyType, + >, + call: ::std::boxed::Box< + runtime_types::webb_standalone_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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + delay: ::core::primitive::u64, + }, + #[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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + delay: ::core::primitive::u64, + }, + #[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::webb_standalone_runtime::ProxyType, + delay: ::core::primitive::u64, + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + index: ::core::primitive::u16, + #[codec(compact)] + height: ::core::primitive::u64, + #[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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call_hash: ::subxt::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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call_hash: ::subxt::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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call_hash: ::subxt::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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + force_proxy_type: ::core::option::Option< + runtime_types::webb_standalone_runtime::ProxyType, + >, + call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::utils::AccountId32, + who: ::subxt::utils::AccountId32, + proxy_type: + runtime_types::webb_standalone_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::utils::AccountId32, + proxy: ::subxt::utils::AccountId32, + call_hash: ::subxt::utils::H256, + }, + #[codec(index = 3)] + #[doc = "A proxy was added."] + ProxyAdded { + delegator: ::subxt::utils::AccountId32, + delegatee: ::subxt::utils::AccountId32, + proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + delay: ::core::primitive::u64, + }, + #[codec(index = 4)] + #[doc = "A proxy was removed."] + ProxyRemoved { + delegator: ::subxt::utils::AccountId32, + delegatee: ::subxt::utils::AccountId32, + proxy_type: + runtime_types::webb_standalone_runtime::ProxyType, + delay: ::core::primitive::u64, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Announcement<_0, _1, _2> { + pub real: _0, + pub call_hash: _1, + pub height: _2, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProxyDefinition<_0, _1, _2> { + pub delegate: _0, + pub proxy_type: _1, + pub delay: _2, + } } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { - grandpa::calls::TransactionApi + pub mod pallet_relayer_registry { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Identity pallet declaration."] + pub enum Call { + # [codec (index = 0)] # [doc = "Set a resource's information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the resource already has resource information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The resource information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_resource { resource_id : runtime_types :: webb_proposals :: header :: ResourceId , info : :: std :: boxed :: Box < runtime_types :: pallet_relayer_registry :: types :: ResourceInfo > , } , # [codec (index = 1)] # [doc = "Clear an account's resource record."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "resource."] # [doc = ""] # [doc = "Emits `ResourceCleared` if successful."] clear_resource { resource_id : runtime_types :: webb_proposals :: header :: ResourceId , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account isn't found."] + NotFound, + #[codec(index = 1)] + #[doc = "Account isn't named."] + NotNamed, + #[codec(index = 2)] + #[doc = "Too many additional fields."] + TooManyFields, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A resource was set or reset (which will remove all judgements)."] + ResourceSet { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "A resource was cleared, and the given balance returned."] + ResourceCleared { + who: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ResourceInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub target_system : runtime_types :: webb_proposals :: target_system :: TargetSystem , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ResourceRecord < _0 > { pub deposit : _0 , pub info : runtime_types :: pallet_relayer_registry :: types :: ResourceInfo , } + } } - pub fn treasury(&self) -> treasury::calls::TransactionApi { - treasury::calls::TransactionApi + pub mod pallet_scheduler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Anonymously schedule a task."] + schedule { + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + }, + #[codec(index = 1)] + #[doc = "Cancel an anonymously scheduled task."] + cancel { + when: ::core::primitive::u64, + index: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Schedule a named task."] + schedule_named { + id: [::core::primitive::u8; 32usize], + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box< + runtime_types::webb_standalone_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."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`schedule`]."] + #[doc = "# "] + schedule_after { + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + }, + #[codec(index = 5)] + #[doc = "Schedule a named task after a delay."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`schedule_named`](Self::schedule_named)."] + #[doc = "# "] + schedule_named_after { + id: [::core::primitive::u8; 32usize], + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Events type."] + pub enum Event { + #[codec(index = 0)] + #[doc = "Scheduled some task."] + Scheduled { + when: ::core::primitive::u64, + index: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "Canceled some task."] + Canceled { + when: ::core::primitive::u64, + index: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Dispatched some task."] + Dispatched { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 3)] + #[doc = "The call for the provided hash was not found so the task has been aborted."] + CallUnavailable { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, + }, + #[codec(index = 4)] + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] + PeriodicFailed { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, + }, + #[codec(index = 5)] + #[doc = "The given task can never be executed since it is overweight."] + PermanentlyOverweight { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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, ::core::primitive::u32)>, + pub origin: _3, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, + } } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi + pub mod pallet_session { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "# "] + #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] + #[doc = " `T::Keys::key_ids()` which is fixed."] + #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] + #[doc = "- DbWrites: `origin account`, `NextKeys`"] + #[doc = "- DbReads per key id: `KeyOwner`"] + #[doc = "- DbWrites per key id: `KeyOwner`"] + #[doc = "# "] + set_keys { + keys: + runtime_types::webb_standalone_runtime::SessionKeys, + proof: ::std::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 = "# "] + #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] + #[doc = " of `T::Keys::key_ids()` which is fixed."] + #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] + #[doc = "- DbWrites: `NextKeys`, `origin account`"] + #[doc = "- DbWrites per key id: `KeyOwner`"] + #[doc = "# "] + purge_keys, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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 fn multisig(&self) -> multisig::calls::TransactionApi { - multisig::calls::TransactionApi + pub mod pallet_signature_bridge { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Sets the maintainer."] set_maintainer { message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] force_set_maintainer { nonce : :: core :: primitive :: u32 , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 4)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { id : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. Add ResourceId to the Storage"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the set_resource_with_signature"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] set_resource_with_signature { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 6)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. That the r_id parsed from the proposal data exists"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the execute_proposal"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] execute_proposal { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Provided chain Id is not valid"] + InvalidChainId, + #[codec(index = 2)] + #[doc = "Interactions with this chain is not permitted"] + ChainNotWhitelisted, + #[codec(index = 3)] + #[doc = "Chain has already been enabled"] + ChainAlreadyWhitelisted, + #[codec(index = 4)] + #[doc = "Resource ID provided isn't mapped to anything"] + ResourceDoesNotExist, + #[codec(index = 5)] + #[doc = "Resource ID provided is already mapped to anchor"] + ResourceAlreadyExists, + #[codec(index = 6)] + #[doc = "Provided signature is not from the active maintainer"] + SignatureInvalid, + #[codec(index = 7)] + #[doc = "Protected operation, must be performed by relayer"] + MustBeMaintainer, + #[codec(index = 8)] + #[doc = "A proposal with these parameters has already been submitted"] + ProposalAlreadyExists, + #[codec(index = 9)] + #[doc = "Call does not match parsed call from proposal data"] + CallNotConsistentWithProposalData, + #[codec(index = 10)] + #[doc = "Call does not match resource id according to resources mapping"] + CallDoesNotMatchResourceId, + #[codec(index = 11)] + #[doc = "Chain Id Type from the r_id does not match this chain"] + IncorrectExecutionChainIdType, + #[codec(index = 12)] + #[doc = "Invalid nonce"] + InvalidNonce, + #[codec(index = 13)] + #[doc = "Invalid proposal data"] + InvalidProposalData, + #[codec(index = 14)] + #[doc = "Invalid call - calls must be delegated to handler pallets"] + InvalidCall, + #[codec(index = 15)] + #[doc = "The max limit for string is exceeded"] + StringLimitExceeded, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Maintainer is set"] MaintainerSet { old_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Proposal has been approved"] ProposalApproved { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Execution of call succeeded"] ProposalSucceeded { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execution of call failed"] ProposalFailed { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , } + } } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { - scheduler::calls::TransactionApi + pub mod pallet_staking { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "# "] # [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_ and gets removed as dust."] # [doc = "------------------"] # [doc = "# "] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] # [doc = "# "] 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"] # [doc = "whatever 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 = "# "] # [doc = "Complexity O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] # [doc = "# "] 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 = "# "] # [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."] # [doc = "# "] nominate { targets : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "# "] 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] # [doc = "- Weight: O(1)"] # [doc = "- DB Weight:"] # [doc = " - Read: Ledger"] # [doc = " - Write: Payee"] # [doc = "# "] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "----------"] # [doc = "Weight: O(1)"] # [doc = "DB Weight:"] # [doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "# "] set_controller { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Weight: O(1)"] # [doc = "Write: Validator Count"] # [doc = "# "] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write: ForceEra"] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write ForceEra"] # [doc = "# "] 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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::SlashCancelOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "# "] # [doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] # [doc = "- Contains a limited number of reads and writes."] # [doc = "-----------"] # [doc = "N is the Number of payouts for the validator (including the validator)"] # [doc = "Weight:"] # [doc = "- Reward Destination Staked: O(N)"] # [doc = "- Reward Destination Controller (Creating): O(N)"] # [doc = ""] # [doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] # [doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] # [doc = "# "] payout_stakers { validator_stash : :: subxt :: 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 = "# "] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] # [doc = "- Storage changes: Can't increase storage, only decrease it."] # [doc = "# "] 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: utils :: AccountId32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 = "Incorrect previous history depth input provided."] + IncorrectHistoryDepth, + #[codec(index = 16)] + #[doc = "Incorrect number of slashing spans provided."] + IncorrectSlashingSpans, + #[codec(index = 17)] + #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] + BadState, + #[codec(index = 18)] + #[doc = "Too many nomination targets supplied."] + TooManyTargets, + #[codec(index = 19)] + #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] + BadTarget, + #[codec(index = 20)] + #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] + CannotChillOther, + #[codec(index = 21)] + #[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 = 22)] + #[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 = 23)] + #[doc = "Commission is too low. Must be at least `MinCommission`."] + CommissionTooLow, + #[codec(index = 24)] + #[doc = "Some bound is not met."] + BoundNotMet, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , } + } + } + pub mod slashing { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SlashingSpans { + pub span_index: ::core::primitive::u32, + pub last_start: ::core::primitive::u32, + pub last_nonzero_slash: ::core::primitive::u32, + pub prior: ::std::vec::Vec<::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SpanRecord<_0> { + pub slashed: _0, + pub paid_out: _0, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ActiveEraInfo { + pub index: ::core::primitive::u32, + pub start: ::core::option::Option<::core::primitive::u64>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EraRewardPoints<_0> { + pub total: ::core::primitive::u32, + pub individual: + ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Exposure<_0, _1> { + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub own: _1, + pub others: ::std::vec::Vec< + runtime_types::pallet_staking::IndividualExposure<_0, _1>, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Forcing { + #[codec(index = 0)] + NotForcing, + #[codec(index = 1)] + ForceNew, + #[codec(index = 2)] + ForceNone, + #[codec(index = 3)] + ForceAlways, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IndividualExposure<_0, _1> { + pub who: _0, + #[codec(compact)] + pub value: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Nominations { + pub targets: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + pub submitted_in: ::core::primitive::u32, + pub suppressed: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Releases { + #[codec(index = 0)] + V1_0_0Ancient, + #[codec(index = 1)] + V2_0_0, + #[codec(index = 2)] + V3_0_0, + #[codec(index = 3)] + V4_0_0, + #[codec(index = 4)] + V5_0_0, + #[codec(index = 5)] + V6_0_0, + #[codec(index = 6)] + V7_0_0, + #[codec(index = 7)] + V8_0_0, + #[codec(index = 8)] + V9_0_0, + #[codec(index = 9)] + V10_0_0, + #[codec(index = 10)] + V11_0_0, + #[codec(index = 11)] + V12_0_0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RewardDestination<_0> { + #[codec(index = 0)] + Staked, + #[codec(index = 1)] + Stash, + #[codec(index = 2)] + Controller, + #[codec(index = 3)] + Account(_0), + #[codec(index = 4)] + None, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StakingLedger { + pub stash: ::subxt::utils::AccountId32, + #[codec(compact)] + pub total: ::core::primitive::u128, + #[codec(compact)] + pub active: ::core::primitive::u128, + pub unlocking: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk< + ::core::primitive::u128, + >, + >, + pub claimed_rewards: + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnappliedSlash<_0, _1> { + pub validator: _0, + pub own: _1, + pub others: ::std::vec::Vec<(_0, _1)>, + pub reporters: ::std::vec::Vec<_0>, + pub payout: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnlockChunk<_0> { + #[codec(compact)] + pub value: _0, + #[codec(compact)] + pub era: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidatorPrefs { + #[codec(compact)] + pub commission: + runtime_types::sp_arithmetic::per_things::Perbill, + pub blocked: ::core::primitive::bool, + } } - pub fn preimage(&self) -> preimage::calls::TransactionApi { - preimage::calls::TransactionApi + pub mod pallet_sudo { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + 10,000."] + #[doc = "# "] + sudo { + call: ::std::boxed::Box< + runtime_types::webb_standalone_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_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- The weight of this call is defined by the caller."] + #[doc = "# "] + sudo_unchecked_weight { + call: ::std::boxed::Box< + runtime_types::webb_standalone_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."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB change."] + #[doc = "# "] + set_key { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + 10,000."] + #[doc = "# "] + sudo_as { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: ::std::boxed::Box< + runtime_types::webb_standalone_runtime::RuntimeCall, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the Sudo pallet"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Sender must be the Sudo account"] + RequireSudo, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A sudo just took place. \\[result\\]"] + Sudid { + sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 1)] + #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] + KeyChanged { + old_sudoer: + ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 2)] + #[doc = "A sudo just took place. \\[result\\]"] + SudoAsDone { + sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + } + } } - pub fn proxy(&self) -> proxy::calls::TransactionApi { - proxy::calls::TransactionApi + pub mod pallet_timestamp { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "`MinimumPeriod`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Inherent`."] + #[doc = ""] + #[doc = "# "] + #[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)`."] + #[doc = "# "] + set { + #[codec(compact)] + now: ::core::primitive::u64, + }, + } + } } - pub fn assets(&self) -> assets::calls::TransactionApi { - assets::calls::TransactionApi + pub mod pallet_token_wrapper { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + set_wrapping_fee { + fee: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 1)] + set_fee_recipient { + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 2)] + wrap { + from_asset_id: ::core::primitive::u32, + into_pool_share_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + unwrap { + from_pool_share_id: ::core::primitive::u32, + into_asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + rescue_tokens { + from_pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid transaction amount"] + InvalidAmount, + #[codec(index = 1)] + #[doc = "AssetId not found in selected pool share"] + UnregisteredAssetId, + #[codec(index = 2)] + #[doc = "Assets not found in selected pool"] + NotFoundInPool, + #[codec(index = 3)] + #[doc = "Insufficient Balance for an asset"] + InsufficientBalance, + #[codec(index = 4)] + NoWrappingFeePercentFound, + #[codec(index = 5)] + #[doc = "Invalid nonce"] + InvalidNonce, + #[codec(index = 6)] + #[doc = "Name exceeds maximum limit"] + NameExceedsMaximumLimit, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + WrappedToken { + pool_share_asset: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + UnwrappedToken { + pool_share_asset: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + UpdatedWrappingFeePercent { + into_pool_share_id: ::core::primitive::u32, + wrapping_fee_percent: ::core::primitive::u128, + }, + #[codec(index = 3)] + UpdatedFeeRecipient { + fee_recipient: ::subxt::utils::AccountId32, + pool_share_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + TokensRescued { + from_pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + } + } } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi + pub mod pallet_token_wrapper_handler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] + #[doc = "method. Ensures that only the bridge can call this function."] + execute_wrapping_fee_proposal { + wrapping_fee_percent: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 1)] + execute_add_token_to_pool_share { + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 2)] + execute_remove_token_from_pool_share { + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] + #[doc = "who will be receiving wrapping fee cost for given asset."] + #[doc = "Ensures that only the bridge can call this function."] + execute_set_fee_recipient_proposal { + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] + #[doc = "fee recipient to given recipient address from given asset."] + #[doc = "Ensures that only the bridge can call this function."] + execute_rescue_tokens_proposal { + pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Access violation."] + InvalidPermissions, + #[codec(index = 1)] + ResourceIsAlreadyAnchored, + #[codec(index = 2)] + TokenWrapperHandlerNotFound, + #[codec(index = 3)] + #[doc = "Storage overflowed."] + StorageOverflow, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + UpdatedWrappingFeePercent { + wrapping_fee_percent: ::core::primitive::u128, + }, + } + } } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::calls::TransactionApi + pub mod pallet_transaction_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::utils::AccountId32, + actual_fee: ::core::primitive::u128, + tip: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Releases { + #[codec(index = 0)] + V1Ancient, + #[codec(index = 1)] + V2, + } } - pub fn bounties(&self) -> bounties::calls::TransactionApi { - bounties::calls::TransactionApi + pub mod pallet_treasury { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] + #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] + #[doc = "proposal is awarded."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)"] + #[doc = "- DbReads: `ProposalCount`, `origin account`"] + #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] + #[doc = "# "] + propose_spend { + #[codec(compact)] + value: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "Reject a proposed spend. The original deposit will be slashed."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)"] + #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] + #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] + #[doc = "# "] + reject_proposal { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::ApproveOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)."] + #[doc = "- DbReads: `Proposals`, `Approvals`"] + #[doc = "- DbWrite: `Approvals`"] + #[doc = "# "] + approve_proposal { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + spend { + #[codec(compact)] + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 4)] + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = "- `proposal_id`: The index of a proposal"] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(A) where `A` is the number of approvals"] + #[doc = "- Db reads and writes: `Approvals`"] + #[doc = "# "] + #[doc = ""] + #[doc = "Errors:"] + #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] + #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] + #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + remove_approval { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the treasury 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 = "Too many approvals in the queue."] + TooManyApprovals, + #[codec(index = 3)] + #[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 = 4)] + #[doc = "Proposal has not been approved."] + ProposalNotApproved, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New proposal."] + Proposed { + proposal_index: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "We have ended a spend period and will now allocate funds."] + Spending { + budget_remaining: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Some funds have been allocated."] + Awarded { + proposal_index: ::core::primitive::u32, + award: ::core::primitive::u128, + account: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A proposal was rejected; funds were slashed."] + Rejected { + proposal_index: ::core::primitive::u32, + slashed: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "Some of our funds have been burnt."] + Burnt { + burnt_funds: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] + Rollover { + rollover_balance: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "Some funds have been deposited."] + Deposit { value: ::core::primitive::u128 }, + #[codec(index = 7)] + #[doc = "A new spend proposal has been approved."] + SpendApproved { + proposal_index: ::core::primitive::u32, + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Proposal<_0, _1> { + pub proposer: _0, + pub value: _1, + pub beneficiary: _0, + pub bond: _1, + } } - pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi { - child_bounties::calls::TransactionApi + pub mod pallet_utility { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] # [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 : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 : :: std :: boxed :: Box < runtime_types :: webb_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] batch_all { calls : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB write (event)."] # [doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] # [doc = "# "] dispatch_as { as_origin : :: std :: boxed :: Box < runtime_types :: webb_standalone_runtime :: OriginCaller > , call : :: std :: boxed :: Box < runtime_types :: webb_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] force_batch { calls : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 : :: std :: boxed :: Box < runtime_types :: webb_standalone_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Too many calls batched."] + TooManyCalls, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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 fn bags_list(&self) -> bags_list::calls::TransactionApi { - bags_list::calls::TransactionApi + pub mod pallet_vanchor { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] create { max_edges : :: core :: primitive :: u32 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] transact { id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 2)] register_and_transact { owner : :: subxt :: utils :: AccountId32 , public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 3)] set_max_deposit_amount { max_deposit_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] set_min_withdraw_amount { min_withdraw_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid transaction proof"] + InvalidTransactionProof, + #[codec(index = 1)] + #[doc = "Variable Anchor not found."] + NoVAnchorFound, + #[codec(index = 2)] + #[doc = "Invalid nullifier that is already used"] + #[doc = "(this error is returned when a nullifier is used twice)"] + AlreadyRevealedNullifier, + #[codec(index = 3)] + InvalidExtAmount, + #[codec(index = 4)] + InvalidDepositAmount, + #[codec(index = 5)] + InvalidWithdrawAmount, + #[codec(index = 6)] + InvalidExtData, + #[codec(index = 7)] + InvalidInputNullifiers, + #[codec(index = 8)] + InvalidFee, + #[codec(index = 9)] + InvalidPublicAmount, + #[codec(index = 10)] + #[doc = "Invalid nonce"] + InvalidNonce, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New tree created"] + VAnchorCreation { tree_id: ::core::primitive::u32 }, + #[codec(index = 1)] + #[doc = "Transaction has been made"] + Transaction { + transactor: ::subxt::utils::AccountId32, + tree_id: ::core::primitive::u32, + leafs: ::std::vec::Vec< + runtime_types::webb_primitives::runtime::Element, + >, + encrypted_output1: + ::std::vec::Vec<::core::primitive::u8>, + encrypted_output2: + ::std::vec::Vec<::core::primitive::u8>, + amount: ::core::primitive::i128, + }, + #[codec(index = 2)] + #[doc = "Deposit hook has executed successfully"] + Deposit { + depositor: ::subxt::utils::AccountId32, + tree_id: ::core::primitive::u32, + leaf: runtime_types::webb_primitives::runtime::Element, + }, + #[codec(index = 3)] + MaxDepositAmountChanged { + max_deposit_amount: ::core::primitive::u128, + }, + #[codec(index = 4)] + MinWithdrawAmountChanged { + min_withdraw_amount: ::core::primitive::u128, + }, + } + } } - pub fn nomination_pools( - &self, - ) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi + pub mod pallet_vanchor_handler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "This will be called by bridge when proposal to create a"] + #[doc = "vanchor has been successfully voted on."] + execute_vanchor_create_proposal { + src_chain_id: ::core::primitive::u64, + r_id: runtime_types::webb_proposals::header::ResourceId, + max_edges: ::core::primitive::u32, + tree_depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "This will be called by bridge when proposal to add/update edge of a"] + #[doc = "vanchor has been successfully voted on."] + execute_vanchor_update_proposal { + r_id: runtime_types::webb_proposals::header::ResourceId, + merkle_root: + runtime_types::webb_primitives::runtime::Element, + src_resource_id: + runtime_types::webb_proposals::header::ResourceId, + nonce: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "This will by called by bridge when proposal to set new resource for"] + #[doc = "handler has been successfully voted on."] + execute_set_resource_proposal { + r_id: runtime_types::webb_proposals::header::ResourceId, + }, + #[codec(index = 3)] + #[doc = "Execute set max deposit limit proposal."] + #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] + #[doc = "anchor system."] + execute_set_max_deposit_limit_proposal { + max_deposit_limit: ::core::primitive::u128, + nonce: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "Execute set min withdrawal limit proposal."] + #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] + #[doc = "variable anchor system."] + execute_set_min_withdrawal_limit_proposal { + min_withdraw_limit: ::core::primitive::u128, + nonce: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Access violation."] + InvalidPermissions, + #[codec(index = 1)] + ResourceIsAlreadyAnchored, + #[codec(index = 2)] + AnchorHandlerNotFound, + #[codec(index = 3)] + SourceChainIdNotFound, + #[codec(index = 4)] + #[doc = "Storage overflowed."] + StorageOverflow, + #[codec(index = 5)] + #[doc = "Invalid nonce"] + InvalidNonce, + #[codec(index = 6)] + #[doc = "Invalid resource ID"] + InvalidResourceId, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + AnchorCreated, + #[codec(index = 1)] + AnchorEdgeAdded, + #[codec(index = 2)] + AnchorEdgeUpdated, + #[codec(index = 3)] + ResourceAnchored, + } + } } - pub fn hasher_bn254(&self) -> hasher_bn254::calls::TransactionApi { - hasher_bn254::calls::TransactionApi + pub mod pallet_vanchor_verifier { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] force_set_parameters { configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + VerifyingParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during verification"] + VerifyError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } } - pub fn asset_registry(&self) -> asset_registry::calls::TransactionApi { - asset_registry::calls::TransactionApi + pub mod pallet_verifier { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + VerifyingParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during verification"] + VerifyError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } } - pub fn currencies(&self) -> currencies::calls::TransactionApi { - currencies::calls::TransactionApi + pub mod sp_arithmetic { + use super::runtime_types; + pub mod fixed_point { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FixedU128(pub ::core::primitive::u128); + } + pub mod per_things { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PerU16(pub ::core::primitive::u16); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Perbill(pub ::core::primitive::u32); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Percent(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Permill(pub ::core::primitive::u32); + } } - pub fn tokens(&self) -> tokens::calls::TransactionApi { - tokens::calls::TransactionApi + pub mod sp_authority_discovery { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + } } - pub fn token_wrapper(&self) -> token_wrapper::calls::TransactionApi { - token_wrapper::calls::TransactionApi + pub mod sp_consensus_babe { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + } + pub mod digests { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum NextConfigDescriptor { + #[codec(index = 1)] + V1 { + c: (::core::primitive::u64, ::core::primitive::u64), + allowed_slots: + runtime_types::sp_consensus_babe::AllowedSlots, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PrimaryPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_output: [::core::primitive::u8; 32usize], + pub vrf_proof: [::core::primitive::u8; 64usize], + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SecondaryPlainPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SecondaryVRFPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_output: [::core::primitive::u8; 32usize], + pub vrf_proof: [::core::primitive::u8; 64usize], + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AllowedSlots { + #[codec(index = 0)] + PrimarySlots, + #[codec(index = 1)] + PrimaryAndSecondaryPlainSlots, + #[codec(index = 2)] + PrimaryAndSecondaryVRFSlots, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BabeEpochConfiguration { + pub c: (::core::primitive::u64, ::core::primitive::u64), + pub allowed_slots: + runtime_types::sp_consensus_babe::AllowedSlots, + } } - pub fn token_wrapper_handler( - &self, - ) -> token_wrapper_handler::calls::TransactionApi { - token_wrapper_handler::calls::TransactionApi + pub mod sp_consensus_slots { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Slot(pub ::core::primitive::u64); } - pub fn mixer_verifier_bn254( - &self, - ) -> mixer_verifier_bn254::calls::TransactionApi { - mixer_verifier_bn254::calls::TransactionApi + pub mod sp_core { + use super::runtime_types; + pub mod bounded { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedBTreeMap<_0, _1>( + pub ::subxt::utils::KeyedVec<_0, _1>, + ); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } + pub mod crypto { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); + } + pub mod ecdsa { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 65usize]); + } + pub mod ed25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 64usize]); + } + pub mod offchain { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OpaqueMultiaddr( + pub ::std::vec::Vec<::core::primitive::u8>, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OpaqueNetworkState { + pub peer_id: runtime_types::sp_core::OpaquePeerId, + pub external_addresses: ::std::vec::Vec< + runtime_types::sp_core::offchain::OpaqueMultiaddr, + >, + } + } + pub mod sr25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 64usize]); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Void {} } - pub fn v_anchor_verifier( - &self, - ) -> v_anchor_verifier::calls::TransactionApi { - v_anchor_verifier::calls::TransactionApi + pub mod sp_finality_grandpa { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub runtime_types::sp_core::ed25519::Public); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature( + pub runtime_types::sp_core::ed25519::Signature, + ); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Equivocation<_0, _1> { + #[codec(index = 0)] + Prevote( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_finality_grandpa::app::Public, + runtime_types::finality_grandpa::Prevote<_0, _1>, + runtime_types::sp_finality_grandpa::app::Signature, + >, + ), + #[codec(index = 1)] + Precommit( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_finality_grandpa::app::Public, + runtime_types::finality_grandpa::Precommit<_0, _1>, + runtime_types::sp_finality_grandpa::app::Signature, + >, + ), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EquivocationProof<_0, _1> { + pub set_id: _1, + pub equivocation: + runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, + } } - pub fn merkle_tree_bn254( - &self, - ) -> merkle_tree_bn254::calls::TransactionApi { - merkle_tree_bn254::calls::TransactionApi + pub mod sp_npos_elections { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ElectionScore { + pub minimal_stake: ::core::primitive::u128, + pub sum_stake: ::core::primitive::u128, + pub sum_stake_squared: ::core::primitive::u128, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Support<_0> { + pub total: ::core::primitive::u128, + pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, + } } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::calls::TransactionApi { - linkable_tree_bn254::calls::TransactionApi + pub mod sp_runtime { + use super::runtime_types; + pub mod generic { + use super::runtime_types; + pub mod digest { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DigestItem { + #[codec(index = 6)] + PreRuntime( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 4)] + Consensus( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 5)] + Seal( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 0)] + Other(::std::vec::Vec<::core::primitive::u8>), + #[codec(index = 8)] + RuntimeEnvironmentUpdated, + } + } + pub mod era { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Header<_0, _1> { + pub parent_hash: ::subxt::utils::H256, + #[codec(compact)] + pub number: _0, + pub state_root: ::subxt::utils::H256, + pub extrinsics_root: ::subxt::utils::H256, + pub digest: + runtime_types::sp_runtime::generic::digest::Digest, + #[codec(skip)] + pub __subxt_unused_type_params: + ::core::marker::PhantomData<_1>, + } + } + pub mod unchecked_extrinsic { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UncheckedExtrinsic<_0, _1, _2, _3>( + pub ::std::vec::Vec<::core::primitive::u8>, + #[codec(skip)] + pub ::core::marker::PhantomData<(_0, _1, _2, _3)>, + ); + } + } + pub mod traits { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BlakeTwo256; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ArithmeticError { + #[codec(index = 0)] + Underflow, + #[codec(index = 1)] + Overflow, + #[codec(index = 2)] + DivisionByZero, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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_runtime::ArithmeticError), + #[codec(index = 9)] + Transactional(runtime_types::sp_runtime::TransactionalError), + #[codec(index = 10)] + Exhausted, + #[codec(index = 11)] + Corruption, + #[codec(index = 12)] + Unavailable, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ModuleError { + pub index: ::core::primitive::u8, + pub error: [::core::primitive::u8; 4usize], + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MultiSignature { + #[codec(index = 0)] + Ed25519(runtime_types::sp_core::ed25519::Signature), + #[codec(index = 1)] + Sr25519(runtime_types::sp_core::sr25519::Signature), + #[codec(index = 2)] + Ecdsa(runtime_types::sp_core::ecdsa::Signature), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TokenError { + #[codec(index = 0)] + NoFunds, + #[codec(index = 1)] + WouldDie, + #[codec(index = 2)] + BelowMinimum, + #[codec(index = 3)] + CannotCreate, + #[codec(index = 4)] + UnknownAsset, + #[codec(index = 5)] + Frozen, + #[codec(index = 6)] + Unsupported, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionalError { + #[codec(index = 0)] + LimitReached, + #[codec(index = 1)] + NoLayer, + } } - pub fn mixer_bn254(&self) -> mixer_bn254::calls::TransactionApi { - mixer_bn254::calls::TransactionApi + pub mod sp_session { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MembershipProof { + pub session: ::core::primitive::u32, + pub trie_nodes: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub validator_count: ::core::primitive::u32, + } } - pub fn v_anchor_bn254(&self) -> v_anchor_bn254::calls::TransactionApi { - v_anchor_bn254::calls::TransactionApi + pub mod sp_staking { + use super::runtime_types; + pub mod offence { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OffenceDetails<_0, _1> { + pub offender: _1, + pub reporters: ::std::vec::Vec<_0>, + } + } } - pub fn v_anchor_handler_bn254( - &self, - ) -> v_anchor_handler_bn254::calls::TransactionApi { - v_anchor_handler_bn254::calls::TransactionApi + pub mod sp_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeVersion { + pub spec_name: ::std::string::String, + pub impl_name: ::std::string::String, + pub authoring_version: ::core::primitive::u32, + pub spec_version: ::core::primitive::u32, + pub impl_version: ::core::primitive::u32, + pub apis: ::std::vec::Vec<( + [::core::primitive::u8; 8usize], + ::core::primitive::u32, + )>, + pub transaction_version: ::core::primitive::u32, + pub state_version: ::core::primitive::u8, + } } - pub fn signature_bridge( - &self, - ) -> signature_bridge::calls::TransactionApi { - signature_bridge::calls::TransactionApi + pub mod sp_weights { + use super::runtime_types; + pub mod weight_v2 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OldWeight(pub ::core::primitive::u64); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeDbWeight { + pub read: ::core::primitive::u64, + pub write: ::core::primitive::u64, + } } - pub fn relayer_registry( - &self, - ) -> relayer_registry::calls::TransactionApi { - relayer_registry::calls::TransactionApi + pub mod webb_primitives { + use super::runtime_types; + pub mod runtime { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Element(pub [::core::primitive::u8; 32usize]); + } + pub mod types { + use super::runtime_types; + pub mod vanchor { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExtData<_0, _1, _2, _3> { + pub recipient: _0, + pub relayer: _0, + pub ext_amount: _1, + pub fee: _2, + pub refund: _2, + pub token: _3, + pub encrypted_output1: + ::std::vec::Vec<::core::primitive::u8>, + pub encrypted_output2: + ::std::vec::Vec<::core::primitive::u8>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProofData<_0> { + pub proof: ::std::vec::Vec<::core::primitive::u8>, + pub public_amount: _0, + pub roots: ::std::vec::Vec<_0>, + pub input_nullifiers: ::std::vec::Vec<_0>, + pub output_commitments: ::std::vec::Vec<_0>, + pub ext_data_hash: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VAnchorMetadata<_0, _1> { + pub creator: ::core::option::Option<_0>, + pub asset: _1, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DepositDetails<_0, _1> { + pub depositor: _0, + pub deposit: _1, + } + } } - pub fn key_storage(&self) -> key_storage::calls::TransactionApi { - key_storage::calls::TransactionApi + pub mod webb_proposals { + use super::runtime_types; + pub mod header { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ResourceId(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum TypedChainId { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Evm(::core::primitive::u32), + #[codec(index = 2)] + Substrate(::core::primitive::u32), + #[codec(index = 3)] + PolkadotParachain(::core::primitive::u32), + #[codec(index = 4)] + KusamaParachain(::core::primitive::u32), + #[codec(index = 5)] + RococoParachain(::core::primitive::u32), + #[codec(index = 6)] + Cosmos(::core::primitive::u32), + #[codec(index = 7)] + Solana(::core::primitive::u32), + #[codec(index = 8)] + Ink(::core::primitive::u32), + } + } + pub mod target_system { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubstrateTargetSystem { + pub pallet_index: ::core::primitive::u8, + pub tree_id: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum TargetSystem { + # [codec (index = 0)] ContractAddress ([:: core :: primitive :: u8 ; 20usize] ,) , # [codec (index = 1)] Substrate (runtime_types :: webb_proposals :: target_system :: SubstrateTargetSystem ,) , } + } } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen< - T: ::subxt::Config, - C: ::subxt::client::OfflineClientT, - >( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 82u8, 210u8, 44u8, 130u8, 76u8, 71u8, 26u8, 121u8, 94u8, 139u8, - 165u8, 218u8, 226u8, 163u8, 245u8, 154u8, 181u8, 178u8, 218u8, - 91u8, 54u8, 153u8, 180u8, 204u8, 59u8, 124u8, 29u8, 27u8, - 138u8, 208u8, 171u8, 86u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) + pub mod webb_standalone_runtime { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxAssetIdInPool; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxEdges; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NposSolution16 { + pub votes1: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes2: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ), + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes3: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 2usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes4: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 3usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes5: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 4usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes6: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 5usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes7: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 6usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes8: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 7usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes9: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 8usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes10: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 9usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes11: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 10usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes12: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 11usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes13: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 12usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes14: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 13usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes15: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 14usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes16: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 15usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum OriginCaller { + #[codec(index = 0)] + system( + runtime_types::frame_support::dispatch::RawOrigin< + ::subxt::utils::AccountId32, + >, + ), + #[codec(index = 13)] + Council( + runtime_types::pallet_collective::RawOrigin< + ::subxt::utils::AccountId32, + >, + ), + #[codec(index = 2)] + Void(runtime_types::sp_core::Void), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ProxyType { + #[codec(index = 0)] + Any, + #[codec(index = 1)] + NonTransfer, + #[codec(index = 2)] + CancelProxy, + #[codec(index = 3)] + Assets, + #[codec(index = 4)] + AssetOwner, + #[codec(index = 5)] + AssetManager, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Runtime; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeCall { + # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 2)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 3)] Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , # [codec (index = 4)] Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , # [codec (index = 5)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 9)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 10)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 11)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 12)] Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , # [codec (index = 13)] Council (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 14)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , # [codec (index = 15)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 16)] Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , # [codec (index = 17)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 18)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 19)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 20)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 21)] Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , # [codec (index = 22)] Assets (runtime_types :: pallet_assets :: pallet :: Call ,) , # [codec (index = 23)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 24)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 28)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 29)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 30)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 31)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 32)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Call ,) , # [codec (index = 33)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Call ,) , # [codec (index = 34)] Currencies (runtime_types :: orml_currencies :: module :: Call ,) , # [codec (index = 35)] Tokens (runtime_types :: orml_tokens :: module :: Call ,) , # [codec (index = 36)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Call ,) , # [codec (index = 37)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Call ,) , # [codec (index = 38)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Call ,) , # [codec (index = 39)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Call ,) , # [codec (index = 40)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Call ,) , # [codec (index = 41)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Call ,) , # [codec (index = 42)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Call ,) , # [codec (index = 43)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Call ,) , # [codec (index = 44)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Call ,) , # [codec (index = 45)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Call ,) , # [codec (index = 46)] RelayerRegistry (runtime_types :: pallet_relayer_registry :: pallet :: Call ,) , # [codec (index = 47)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Call ,) , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeEvent { + # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 5)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 8)] AssetTxPayment (runtime_types :: pallet_asset_tx_payment :: pallet :: Event ,) , # [codec (index = 9)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 10)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 11)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 12)] Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , # [codec (index = 13)] Council (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 14)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , # [codec (index = 15)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 16)] Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , # [codec (index = 17)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 18)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 19)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 20)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 21)] Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , # [codec (index = 22)] Assets (runtime_types :: pallet_assets :: pallet :: Event ,) , # [codec (index = 23)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 24)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 26)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 28)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 29)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 30)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 31)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 32)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Event ,) , # [codec (index = 33)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Event ,) , # [codec (index = 35)] Tokens (runtime_types :: orml_tokens :: module :: Event ,) , # [codec (index = 36)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Event ,) , # [codec (index = 37)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Event ,) , # [codec (index = 38)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Event ,) , # [codec (index = 39)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Event ,) , # [codec (index = 40)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Event ,) , # [codec (index = 41)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Event ,) , # [codec (index = 42)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Event ,) , # [codec (index = 43)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Event ,) , # [codec (index = 44)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Event ,) , # [codec (index = 45)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Event ,) , # [codec (index = 46)] RelayerRegistry (runtime_types :: pallet_relayer_registry :: pallet :: Event ,) , # [codec (index = 47)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Event ,) , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SessionKeys { pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub babe : runtime_types :: sp_consensus_babe :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub authority_discovery : runtime_types :: sp_authority_discovery :: app :: Public , } } } } diff --git a/src/substrate/tangle_runtime.rs b/src/substrate/tangle_runtime.rs index b5bf6c5..2cf2312 100644 --- a/src/substrate/tangle_runtime.rs +++ b/src/substrate/tangle_runtime.rs @@ -1,7 +1,10 @@ #[allow(dead_code, unused_imports, non_camel_case_types)] #[allow(clippy::all)] pub mod api { - use super::api as root_mod; + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } pub static PALLETS: [&str; 51usize] = [ "System", "Timestamp", @@ -55,14 +58,21 @@ pub mod api { "Utility", "Eth2Client", ]; + #[doc = r" The error type returned when there is a runtime issue."] + pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Event { #[codec(index = 0)] System(system::Event), @@ -155,33601 +165,45255 @@ pub mod api { #[codec(index = 50)] Eth2Client(eth2_client::Event), } - pub mod system { + impl ::subxt::events::RootEvent for Event { + fn root_event( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Event::System(system::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Sudo" { + return Ok(Event::Sudo(sudo::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Balances" { + return Ok(Event::Balances( + balances::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TransactionPayment" { + return Ok(Event::TransactionPayment( + transaction_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Grandpa" { + return Ok(Event::Grandpa( + grandpa::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKG" { + return Ok(Event::DKG(dkg::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "DKGProposals" { + return Ok(Event::DKGProposals( + dkg_proposals::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKGProposalHandler" { + return Ok(Event::DKGProposalHandler( + dkg_proposal_handler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BridgeRegistry" { + return Ok(Event::BridgeRegistry( + bridge_registry::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Indices" { + return Ok(Event::Indices( + indices::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Democracy" { + return Ok(Event::Democracy( + democracy::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Council" { + return Ok(Event::Council( + council::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Vesting" { + return Ok(Event::Vesting( + vesting::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Claims" { + return Ok(Event::Claims(claims::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Elections" { + return Ok(Event::Elections( + elections::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ElectionProviderMultiPhase" { + return Ok(Event::ElectionProviderMultiPhase( + election_provider_multi_phase::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Event::Staking( + staking::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Session" { + return Ok(Event::Session( + session::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Treasury" { + return Ok(Event::Treasury( + treasury::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Bounties" { + return Ok(Event::Bounties( + bounties::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ChildBounties" { + return Ok(Event::ChildBounties( + child_bounties::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BagsList" { + return Ok(Event::BagsList( + bags_list::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "NominationPools" { + return Ok(Event::NominationPools( + nomination_pools::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Scheduler" { + return Ok(Event::Scheduler( + scheduler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Preimage" { + return Ok(Event::Preimage( + preimage::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Offences" { + return Ok(Event::Offences( + offences::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "HasherBn254" { + return Ok(Event::HasherBn254( + hasher_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "AssetRegistry" { + return Ok(Event::AssetRegistry( + asset_registry::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Tokens" { + return Ok(Event::Tokens(tokens::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "TokenWrapper" { + return Ok(Event::TokenWrapper( + token_wrapper::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerVerifierBn254" { + return Ok(Event::MixerVerifierBn254( + mixer_verifier_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MerkleTreeBn254" { + return Ok(Event::MerkleTreeBn254( + merkle_tree_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "LinkableTreeBn254" { + return Ok(Event::LinkableTreeBn254( + linkable_tree_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerBn254" { + return Ok(Event::MixerBn254( + mixer_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "SignatureBridge" { + return Ok(Event::SignatureBridge( + signature_bridge::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorBn254" { + return Ok(Event::VAnchorBn254( + v_anchor_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorHandlerBn254" { + return Ok(Event::VAnchorHandlerBn254( + v_anchor_handler_bn254::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TokenWrapperHandler" { + return Ok(Event::TokenWrapperHandler( + token_wrapper_handler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "KeyStorage" { + return Ok(Event::KeyStorage( + key_storage::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorVerifier" { + return Ok(Event::VAnchorVerifier( + v_anchor_verifier::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TransactionPause" { + return Ok(Event::TransactionPause( + transaction_pause::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ImOnline" { + return Ok(Event::ImOnline( + im_online::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Identity" { + return Ok(Event::Identity( + identity::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Utility" { + return Ok(Event::Utility( + utility::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Eth2Client" { + return Ok(Event::Eth2Client( + eth2_client::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Event enum", + pallet_name + )) + .into()) + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Call { + #[codec(index = 0)] + System(system::Call), + #[codec(index = 1)] + Timestamp(timestamp::Call), + #[codec(index = 2)] + Sudo(sudo::Call), + #[codec(index = 4)] + Balances(balances::Call), + #[codec(index = 8)] + Grandpa(grandpa::Call), + #[codec(index = 9)] + DKG(dkg::Call), + #[codec(index = 10)] + DKGProposals(dkg_proposals::Call), + #[codec(index = 11)] + DKGProposalHandler(dkg_proposal_handler::Call), + #[codec(index = 12)] + BridgeRegistry(bridge_registry::Call), + #[codec(index = 13)] + Indices(indices::Call), + #[codec(index = 14)] + Democracy(democracy::Call), + #[codec(index = 15)] + Council(council::Call), + #[codec(index = 16)] + Vesting(vesting::Call), + #[codec(index = 17)] + Claims(claims::Call), + #[codec(index = 18)] + Elections(elections::Call), + #[codec(index = 19)] + ElectionProviderMultiPhase(election_provider_multi_phase::Call), + #[codec(index = 20)] + Staking(staking::Call), + #[codec(index = 21)] + Session(session::Call), + #[codec(index = 23)] + Treasury(treasury::Call), + #[codec(index = 24)] + Bounties(bounties::Call), + #[codec(index = 25)] + ChildBounties(child_bounties::Call), + #[codec(index = 26)] + BagsList(bags_list::Call), + #[codec(index = 27)] + NominationPools(nomination_pools::Call), + #[codec(index = 28)] + Scheduler(scheduler::Call), + #[codec(index = 29)] + Preimage(preimage::Call), + #[codec(index = 31)] + HasherBn254(hasher_bn254::Call), + #[codec(index = 32)] + AssetRegistry(asset_registry::Call), + #[codec(index = 33)] + Currencies(currencies::Call), + #[codec(index = 34)] + Tokens(tokens::Call), + #[codec(index = 35)] + TokenWrapper(token_wrapper::Call), + #[codec(index = 36)] + MixerVerifierBn254(mixer_verifier_bn254::Call), + #[codec(index = 37)] + MerkleTreeBn254(merkle_tree_bn254::Call), + #[codec(index = 38)] + LinkableTreeBn254(linkable_tree_bn254::Call), + #[codec(index = 39)] + MixerBn254(mixer_bn254::Call), + #[codec(index = 40)] + SignatureBridge(signature_bridge::Call), + #[codec(index = 41)] + VAnchorBn254(v_anchor_bn254::Call), + #[codec(index = 42)] + VAnchorHandlerBn254(v_anchor_handler_bn254::Call), + #[codec(index = 43)] + TokenWrapperHandler(token_wrapper_handler::Call), + #[codec(index = 44)] + KeyStorage(key_storage::Call), + #[codec(index = 45)] + VAnchorVerifier(v_anchor_verifier::Call), + #[codec(index = 46)] + TransactionPause(transaction_pause::Call), + #[codec(index = 47)] + ImOnline(im_online::Call), + #[codec(index = 48)] + Identity(identity::Call), + #[codec(index = 49)] + Utility(utility::Call), + #[codec(index = 50)] + Eth2Client(eth2_client::Call), + } + impl ::subxt::blocks::RootExtrinsic for Call { + fn root_extrinsic( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Call::System(system::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Timestamp" { + return Ok(Call::Timestamp( + timestamp::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Sudo" { + return Ok(Call::Sudo(sudo::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Balances" { + return Ok(Call::Balances( + balances::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Grandpa" { + return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "DKG" { + return Ok(Call::DKG(dkg::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "DKGProposals" { + return Ok(Call::DKGProposals( + dkg_proposals::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "DKGProposalHandler" { + return Ok(Call::DKGProposalHandler( + dkg_proposal_handler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BridgeRegistry" { + return Ok(Call::BridgeRegistry( + bridge_registry::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Indices" { + return Ok(Call::Indices(indices::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Democracy" { + return Ok(Call::Democracy( + democracy::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Council" { + return Ok(Call::Council(council::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Vesting" { + return Ok(Call::Vesting(vesting::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Claims" { + return Ok(Call::Claims(claims::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Elections" { + return Ok(Call::Elections( + elections::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ElectionProviderMultiPhase" { + return Ok(Call::ElectionProviderMultiPhase( + election_provider_multi_phase::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Call::Staking(staking::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Session" { + return Ok(Call::Session(session::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Treasury" { + return Ok(Call::Treasury( + treasury::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Bounties" { + return Ok(Call::Bounties( + bounties::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ChildBounties" { + return Ok(Call::ChildBounties( + child_bounties::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BagsList" { + return Ok(Call::BagsList( + bags_list::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "NominationPools" { + return Ok(Call::NominationPools( + nomination_pools::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Scheduler" { + return Ok(Call::Scheduler( + scheduler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Preimage" { + return Ok(Call::Preimage( + preimage::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "HasherBn254" { + return Ok(Call::HasherBn254( + hasher_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "AssetRegistry" { + return Ok(Call::AssetRegistry( + asset_registry::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Currencies" { + return Ok(Call::Currencies( + currencies::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Tokens" { + return Ok(Call::Tokens(tokens::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "TokenWrapper" { + return Ok(Call::TokenWrapper( + token_wrapper::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerVerifierBn254" { + return Ok(Call::MixerVerifierBn254( + mixer_verifier_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MerkleTreeBn254" { + return Ok(Call::MerkleTreeBn254( + merkle_tree_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "LinkableTreeBn254" { + return Ok(Call::LinkableTreeBn254( + linkable_tree_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "MixerBn254" { + return Ok(Call::MixerBn254( + mixer_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "SignatureBridge" { + return Ok(Call::SignatureBridge( + signature_bridge::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorBn254" { + return Ok(Call::VAnchorBn254( + v_anchor_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorHandlerBn254" { + return Ok(Call::VAnchorHandlerBn254( + v_anchor_handler_bn254::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TokenWrapperHandler" { + return Ok(Call::TokenWrapperHandler( + token_wrapper_handler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "KeyStorage" { + return Ok(Call::KeyStorage( + key_storage::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "VAnchorVerifier" { + return Ok(Call::VAnchorVerifier( + v_anchor_verifier::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "TransactionPause" { + return Ok(Call::TransactionPause( + transaction_pause::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "ImOnline" { + return Ok(Call::ImOnline( + im_online::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Identity" { + return Ok(Call::Identity( + identity::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Utility" { + return Ok(Call::Utility(utility::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Eth2Client" { + return Ok(Call::Eth2Client( + eth2_client::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Call enum", + pallet_name + )) + .into()) + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Error { + #[codec(index = 0)] + System(system::Error), + #[codec(index = 2)] + Sudo(sudo::Error), + #[codec(index = 4)] + Balances(balances::Error), + #[codec(index = 8)] + Grandpa(grandpa::Error), + #[codec(index = 9)] + DKG(dkg::Error), + #[codec(index = 10)] + DKGProposals(dkg_proposals::Error), + #[codec(index = 11)] + DKGProposalHandler(dkg_proposal_handler::Error), + #[codec(index = 12)] + BridgeRegistry(bridge_registry::Error), + #[codec(index = 13)] + Indices(indices::Error), + #[codec(index = 14)] + Democracy(democracy::Error), + #[codec(index = 15)] + Council(council::Error), + #[codec(index = 16)] + Vesting(vesting::Error), + #[codec(index = 17)] + Claims(claims::Error), + #[codec(index = 18)] + Elections(elections::Error), + #[codec(index = 19)] + ElectionProviderMultiPhase(election_provider_multi_phase::Error), + #[codec(index = 20)] + Staking(staking::Error), + #[codec(index = 21)] + Session(session::Error), + #[codec(index = 23)] + Treasury(treasury::Error), + #[codec(index = 24)] + Bounties(bounties::Error), + #[codec(index = 25)] + ChildBounties(child_bounties::Error), + #[codec(index = 26)] + BagsList(bags_list::Error), + #[codec(index = 27)] + NominationPools(nomination_pools::Error), + #[codec(index = 28)] + Scheduler(scheduler::Error), + #[codec(index = 29)] + Preimage(preimage::Error), + #[codec(index = 31)] + HasherBn254(hasher_bn254::Error), + #[codec(index = 32)] + AssetRegistry(asset_registry::Error), + #[codec(index = 33)] + Currencies(currencies::Error), + #[codec(index = 34)] + Tokens(tokens::Error), + #[codec(index = 35)] + TokenWrapper(token_wrapper::Error), + #[codec(index = 36)] + MixerVerifierBn254(mixer_verifier_bn254::Error), + #[codec(index = 37)] + MerkleTreeBn254(merkle_tree_bn254::Error), + #[codec(index = 38)] + LinkableTreeBn254(linkable_tree_bn254::Error), + #[codec(index = 39)] + MixerBn254(mixer_bn254::Error), + #[codec(index = 40)] + SignatureBridge(signature_bridge::Error), + #[codec(index = 41)] + VAnchorBn254(v_anchor_bn254::Error), + #[codec(index = 42)] + VAnchorHandlerBn254(v_anchor_handler_bn254::Error), + #[codec(index = 43)] + TokenWrapperHandler(token_wrapper_handler::Error), + #[codec(index = 44)] + KeyStorage(key_storage::Error), + #[codec(index = 45)] + VAnchorVerifier(v_anchor_verifier::Error), + #[codec(index = 46)] + TransactionPause(transaction_pause::Error), + #[codec(index = 47)] + ImOnline(im_online::Error), + #[codec(index = 48)] + Identity(identity::Error), + #[codec(index = 49)] + Utility(utility::Error), + #[codec(index = 50)] + Eth2Client(eth2_client::Error), + } + impl ::subxt::error::RootError for Error { + fn root_error( + pallet_bytes: &[u8], + pallet_name: &str, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + let cursor = &mut &pallet_bytes[..]; + if pallet_name == "System" { + let variant_error = system::Error::decode_with_metadata( + cursor, 157u32, metadata, + )?; + return Ok(Error::System(variant_error)); + } + if pallet_name == "Sudo" { + let variant_error = sudo::Error::decode_with_metadata( + cursor, 410u32, metadata, + )?; + return Ok(Error::Sudo(variant_error)); + } + if pallet_name == "Balances" { + let variant_error = balances::Error::decode_with_metadata( + cursor, 419u32, metadata, + )?; + return Ok(Error::Balances(variant_error)); + } + if pallet_name == "Grandpa" { + let variant_error = grandpa::Error::decode_with_metadata( + cursor, 428u32, metadata, + )?; + return Ok(Error::Grandpa(variant_error)); + } + if pallet_name == "DKG" { + let variant_error = + dkg::Error::decode_with_metadata(cursor, 438u32, metadata)?; + return Ok(Error::DKG(variant_error)); + } + if pallet_name == "DKGProposals" { + let variant_error = dkg_proposals::Error::decode_with_metadata( + cursor, 450u32, metadata, + )?; + return Ok(Error::DKGProposals(variant_error)); + } + if pallet_name == "DKGProposalHandler" { + let variant_error = + dkg_proposal_handler::Error::decode_with_metadata( + cursor, 453u32, metadata, + )?; + return Ok(Error::DKGProposalHandler(variant_error)); + } + if pallet_name == "BridgeRegistry" { + let variant_error = + bridge_registry::Error::decode_with_metadata( + cursor, 456u32, metadata, + )?; + return Ok(Error::BridgeRegistry(variant_error)); + } + if pallet_name == "Indices" { + let variant_error = indices::Error::decode_with_metadata( + cursor, 458u32, metadata, + )?; + return Ok(Error::Indices(variant_error)); + } + if pallet_name == "Democracy" { + let variant_error = democracy::Error::decode_with_metadata( + cursor, 475u32, metadata, + )?; + return Ok(Error::Democracy(variant_error)); + } + if pallet_name == "Council" { + let variant_error = council::Error::decode_with_metadata( + cursor, 478u32, metadata, + )?; + return Ok(Error::Council(variant_error)); + } + if pallet_name == "Vesting" { + let variant_error = vesting::Error::decode_with_metadata( + cursor, 482u32, metadata, + )?; + return Ok(Error::Vesting(variant_error)); + } + if pallet_name == "Claims" { + let variant_error = claims::Error::decode_with_metadata( + cursor, 484u32, metadata, + )?; + return Ok(Error::Claims(variant_error)); + } + if pallet_name == "Elections" { + let variant_error = elections::Error::decode_with_metadata( + cursor, 488u32, metadata, + )?; + return Ok(Error::Elections(variant_error)); + } + if pallet_name == "ElectionProviderMultiPhase" { + let variant_error = + election_provider_multi_phase::Error::decode_with_metadata( + cursor, 499u32, metadata, + )?; + return Ok(Error::ElectionProviderMultiPhase(variant_error)); + } + if pallet_name == "Staking" { + let variant_error = staking::Error::decode_with_metadata( + cursor, 519u32, metadata, + )?; + return Ok(Error::Staking(variant_error)); + } + if pallet_name == "Session" { + let variant_error = session::Error::decode_with_metadata( + cursor, 524u32, metadata, + )?; + return Ok(Error::Session(variant_error)); + } + if pallet_name == "Treasury" { + let variant_error = treasury::Error::decode_with_metadata( + cursor, 528u32, metadata, + )?; + return Ok(Error::Treasury(variant_error)); + } + if pallet_name == "Bounties" { + let variant_error = bounties::Error::decode_with_metadata( + cursor, 532u32, metadata, + )?; + return Ok(Error::Bounties(variant_error)); + } + if pallet_name == "ChildBounties" { + let variant_error = + child_bounties::Error::decode_with_metadata( + cursor, 535u32, metadata, + )?; + return Ok(Error::ChildBounties(variant_error)); + } + if pallet_name == "BagsList" { + let variant_error = bags_list::Error::decode_with_metadata( + cursor, 539u32, metadata, + )?; + return Ok(Error::BagsList(variant_error)); + } + if pallet_name == "NominationPools" { + let variant_error = + nomination_pools::Error::decode_with_metadata( + cursor, 556u32, metadata, + )?; + return Ok(Error::NominationPools(variant_error)); + } + if pallet_name == "Scheduler" { + let variant_error = scheduler::Error::decode_with_metadata( + cursor, 562u32, metadata, + )?; + return Ok(Error::Scheduler(variant_error)); + } + if pallet_name == "Preimage" { + let variant_error = preimage::Error::decode_with_metadata( + cursor, 567u32, metadata, + )?; + return Ok(Error::Preimage(variant_error)); + } + if pallet_name == "HasherBn254" { + let variant_error = hasher_bn254::Error::decode_with_metadata( + cursor, 570u32, metadata, + )?; + return Ok(Error::HasherBn254(variant_error)); + } + if pallet_name == "AssetRegistry" { + let variant_error = + asset_registry::Error::decode_with_metadata( + cursor, 573u32, metadata, + )?; + return Ok(Error::AssetRegistry(variant_error)); + } + if pallet_name == "Currencies" { + let variant_error = currencies::Error::decode_with_metadata( + cursor, 574u32, metadata, + )?; + return Ok(Error::Currencies(variant_error)); + } + if pallet_name == "Tokens" { + let variant_error = tokens::Error::decode_with_metadata( + cursor, 582u32, metadata, + )?; + return Ok(Error::Tokens(variant_error)); + } + if pallet_name == "TokenWrapper" { + let variant_error = token_wrapper::Error::decode_with_metadata( + cursor, 583u32, metadata, + )?; + return Ok(Error::TokenWrapper(variant_error)); + } + if pallet_name == "MixerVerifierBn254" { + let variant_error = + mixer_verifier_bn254::Error::decode_with_metadata( + cursor, 584u32, metadata, + )?; + return Ok(Error::MixerVerifierBn254(variant_error)); + } + if pallet_name == "MerkleTreeBn254" { + let variant_error = + merkle_tree_bn254::Error::decode_with_metadata( + cursor, 589u32, metadata, + )?; + return Ok(Error::MerkleTreeBn254(variant_error)); + } + if pallet_name == "LinkableTreeBn254" { + let variant_error = + linkable_tree_bn254::Error::decode_with_metadata( + cursor, 593u32, metadata, + )?; + return Ok(Error::LinkableTreeBn254(variant_error)); + } + if pallet_name == "MixerBn254" { + let variant_error = mixer_bn254::Error::decode_with_metadata( + cursor, 596u32, metadata, + )?; + return Ok(Error::MixerBn254(variant_error)); + } + if pallet_name == "SignatureBridge" { + let variant_error = + signature_bridge::Error::decode_with_metadata( + cursor, 597u32, metadata, + )?; + return Ok(Error::SignatureBridge(variant_error)); + } + if pallet_name == "VAnchorBn254" { + let variant_error = + v_anchor_bn254::Error::decode_with_metadata( + cursor, 599u32, metadata, + )?; + return Ok(Error::VAnchorBn254(variant_error)); + } + if pallet_name == "VAnchorHandlerBn254" { + let variant_error = + v_anchor_handler_bn254::Error::decode_with_metadata( + cursor, 600u32, metadata, + )?; + return Ok(Error::VAnchorHandlerBn254(variant_error)); + } + if pallet_name == "TokenWrapperHandler" { + let variant_error = + token_wrapper_handler::Error::decode_with_metadata( + cursor, 601u32, metadata, + )?; + return Ok(Error::TokenWrapperHandler(variant_error)); + } + if pallet_name == "KeyStorage" { + let variant_error = key_storage::Error::decode_with_metadata( + cursor, 605u32, metadata, + )?; + return Ok(Error::KeyStorage(variant_error)); + } + if pallet_name == "VAnchorVerifier" { + let variant_error = + v_anchor_verifier::Error::decode_with_metadata( + cursor, 606u32, metadata, + )?; + return Ok(Error::VAnchorVerifier(variant_error)); + } + if pallet_name == "TransactionPause" { + let variant_error = + transaction_pause::Error::decode_with_metadata( + cursor, 607u32, metadata, + )?; + return Ok(Error::TransactionPause(variant_error)); + } + if pallet_name == "ImOnline" { + let variant_error = im_online::Error::decode_with_metadata( + cursor, 615u32, metadata, + )?; + return Ok(Error::ImOnline(variant_error)); + } + if pallet_name == "Identity" { + let variant_error = identity::Error::decode_with_metadata( + cursor, 626u32, metadata, + )?; + return Ok(Error::Identity(variant_error)); + } + if pallet_name == "Utility" { + let variant_error = utility::Error::decode_with_metadata( + cursor, 627u32, metadata, + )?; + return Ok(Error::Utility(variant_error)); + } + if pallet_name == "Eth2Client" { + let variant_error = eth2_client::Error::decode_with_metadata( + cursor, 631u32, metadata, + )?; + return Ok(Error::Eth2Client(variant_error)); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Error enum", + pallet_name + )) + .into()) + } + } + 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; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Remark { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetHeapPages { - pub pages: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetCode { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetCodeWithoutChecks { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetStorage { - pub items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillStorage { - pub keys: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillPrefix { - pub prefix: ::std::vec::Vec<::core::primitive::u8>, - pub subkeys: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemarkWithEvent { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - pub fn remark( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "remark", - Remark { remark }, - [ - 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, - 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, - 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, - 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, - 181u8, 129u8, 160u8, - ], - ) - } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub fn set_heap_pages( - &self, - pages: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_heap_pages", - SetHeapPages { pages }, - [ - 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, - 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, - 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, - 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, - 86u8, 87u8, - ], - ) - } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - pub fn set_code( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_code", - SetCode { code }, - [ - 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, - 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, - 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, - 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, - 14u8, 40u8, - ], - ) - } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - pub fn set_code_without_checks( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_code_without_checks", - SetCodeWithoutChecks { code }, - [ - 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, - 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, - 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, - 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, - 99u8, 216u8, - ], - ) - } - #[doc = "Set some items of storage."] - pub fn set_storage( - &self, - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "set_storage", - SetStorage { items }, - [ - 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, - 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, - 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, - 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, - 191u8, 22u8, 116u8, - ], - ) - } - #[doc = "Kill some items from storage."] - pub fn kill_storage( - &self, - keys: ::std::vec::Vec< - ::std::vec::Vec<::core::primitive::u8>, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "kill_storage", - KillStorage { keys }, - [ - 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, - 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, - 70u8, 19u8, 108u8, 209u8, 41u8, 228u8, 67u8, 130u8, - 230u8, 160u8, 207u8, 11u8, 180u8, 139u8, 242u8, - 41u8, 15u8, - ], - ) - } - #[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: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "System", - "kill_prefix", - KillPrefix { prefix, subkeys }, - [ - 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, - 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, - 115u8, 187u8, 218u8, 129u8, 34u8, 80u8, 4u8, 173u8, - 120u8, 92u8, 35u8, 237u8, 112u8, 201u8, 207u8, - 200u8, 48u8, - ], - ) - } - #[doc = "Make some on-chain remark and emit event."] - pub fn remark_with_event( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "System", - "remark_with_event", - RemarkWithEvent { remark }, - [ - 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, - 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, - 158u8, 14u8, 213u8, 56u8, 225u8, 136u8, 88u8, 26u8, - 114u8, 178u8, 43u8, 176u8, 43u8, 240u8, 84u8, - 116u8, 46u8, - ], - ) - } - } + use ::subxt::ext::codec::Encode; + pub struct RuntimeApi; + impl RuntimeApi {} + } + pub struct ConstantsApi; + impl ConstantsApi { + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi } - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An extrinsic completed successfully."] - pub struct ExtrinsicSuccess { - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicSuccess { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicSuccess"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An extrinsic failed."] - pub struct ExtrinsicFailed { - pub dispatch_error: runtime_types::sp_runtime::DispatchError, - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicFailed { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "`:code` was updated."] - pub struct CodeUpdated; - impl ::subxt::events::StaticEvent for CodeUpdated { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "CodeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new account was created."] - pub struct NewAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for NewAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "NewAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was reaped."] - pub struct KilledAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for KilledAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "KilledAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "On on-chain remark happened."] - pub struct Remarked { - pub sender: ::subxt::utils::AccountId32, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Remarked { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "Remarked"; - } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { + timestamp::constants::ConstantsApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The full account information for a particular account ID."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) - } - #[doc = " The full account information for a particular account ID."] pub fn account_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Account", - Vec::new(), - [ - 176u8, 187u8, 21u8, 220u8, 159u8, 204u8, 127u8, - 14u8, 21u8, 69u8, 77u8, 114u8, 230u8, 141u8, 107u8, - 79u8, 23u8, 16u8, 174u8, 243u8, 252u8, 42u8, 65u8, - 120u8, 229u8, 38u8, 210u8, 255u8, 22u8, 40u8, - 109u8, 223u8, - ], - ) - } - #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ExtrinsicCount", - vec![], - [ - 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, - 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, - 249u8, 8u8, 225u8, 28u8, 232u8, 4u8, 136u8, 41u8, - 151u8, 82u8, 189u8, 149u8, 49u8, 166u8, 139u8, 9u8, - 163u8, 231u8, - ], - ) - } - #[doc = " The current weight for the block."] pub fn block_weight (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: sp_weights :: weight_v2 :: Weight > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "BlockWeight", - vec![], - [ - 120u8, 67u8, 71u8, 163u8, 36u8, 202u8, 52u8, 106u8, - 143u8, 155u8, 144u8, 87u8, 142u8, 241u8, 232u8, - 183u8, 56u8, 235u8, 27u8, 237u8, 20u8, 202u8, 33u8, - 85u8, 189u8, 0u8, 28u8, 52u8, 198u8, 40u8, 219u8, - 54u8, - ], - ) - } - #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "AllExtrinsicsLen", - vec![], - [ - 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, - 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, - 32u8, 117u8, 96u8, 149u8, 53u8, 145u8, 219u8, 64u8, - 234u8, 18u8, 217u8, 200u8, 203u8, 141u8, 145u8, - 28u8, 134u8, 60u8, - ], - ) - } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [50u8 , 112u8 , 176u8 , 239u8 , 175u8 , 18u8 , 205u8 , 20u8 , 241u8 , 195u8 , 21u8 , 228u8 , 186u8 , 57u8 , 200u8 , 25u8 , 38u8 , 44u8 , 106u8 , 20u8 , 168u8 , 80u8 , 76u8 , 235u8 , 12u8 , 51u8 , 137u8 , 149u8 , 200u8 , 4u8 , 220u8 , 237u8 ,]) - } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "BlockHash", - Vec::new(), - [ - 50u8, 112u8, 176u8, 239u8, 175u8, 18u8, 205u8, - 20u8, 241u8, 195u8, 21u8, 228u8, 186u8, 57u8, - 200u8, 25u8, 38u8, 44u8, 106u8, 20u8, 168u8, 80u8, - 76u8, 235u8, 12u8, 51u8, 137u8, 149u8, 200u8, 4u8, - 220u8, 237u8, - ], - ) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ExtrinsicData", - Vec::new(), - [ - 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, - 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, - 31u8, 229u8, 168u8, 125u8, 98u8, 23u8, 241u8, 59u8, - 49u8, 86u8, 126u8, 9u8, 114u8, 163u8, 160u8, 62u8, - 50u8, 67u8, - ], - ) - } - #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Number", - vec![], - [ - 228u8, 96u8, 102u8, 190u8, 252u8, 130u8, 239u8, - 172u8, 126u8, 235u8, 246u8, 139u8, 208u8, 15u8, - 88u8, 245u8, 141u8, 232u8, 43u8, 204u8, 36u8, 87u8, - 211u8, 141u8, 187u8, 68u8, 236u8, 70u8, 193u8, - 235u8, 164u8, 191u8, - ], - ) - } - #[doc = " Hash of the previous block."] pub fn parent_hash (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ParentHash", - vec![], - [ - 232u8, 206u8, 177u8, 119u8, 38u8, 57u8, 233u8, - 50u8, 225u8, 49u8, 169u8, 176u8, 210u8, 51u8, - 231u8, 176u8, 234u8, 186u8, 188u8, 112u8, 15u8, - 152u8, 195u8, 232u8, 201u8, 97u8, 208u8, 249u8, - 9u8, 163u8, 69u8, 36u8, - ], - ) - } - #[doc = " Digest of the current block, also part of the block header."] pub fn digest (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_runtime :: generic :: digest :: Digest > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Digest", - vec![], - [ - 83u8, 141u8, 200u8, 132u8, 182u8, 55u8, 197u8, - 122u8, 13u8, 159u8, 31u8, 42u8, 60u8, 191u8, 89u8, - 221u8, 242u8, 47u8, 199u8, 213u8, 48u8, 216u8, - 131u8, 168u8, 245u8, 82u8, 56u8, 190u8, 62u8, 69u8, - 96u8, 37u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: tangle_standalone_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "Events", - vec![], - [ - 92u8, 164u8, 20u8, 48u8, 31u8, 118u8, 202u8, 241u8, - 241u8, 200u8, 138u8, 229u8, 7u8, 57u8, 86u8, 97u8, - 197u8, 165u8, 255u8, 62u8, 8u8, 85u8, 57u8, 150u8, - 121u8, 248u8, 34u8, 199u8, 145u8, 55u8, 246u8, - 135u8, - ], - ) - } - #[doc = " The number of events in the `Events` list."] pub fn event_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "EventCount", - vec![], - [ - 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, - 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, - 227u8, 9u8, 249u8, 25u8, 202u8, 185u8, 161u8, - 144u8, 167u8, 104u8, 127u8, 187u8, 38u8, 18u8, - 52u8, 61u8, 66u8, 112u8, - ], - ) - } - #[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 `(T::BlockNumber, 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 :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [205u8 , 90u8 , 142u8 , 190u8 , 176u8 , 37u8 , 94u8 , 82u8 , 98u8 , 1u8 , 129u8 , 63u8 , 246u8 , 101u8 , 130u8 , 58u8 , 216u8 , 16u8 , 139u8 , 196u8 , 154u8 , 111u8 , 110u8 , 178u8 , 24u8 , 44u8 , 183u8 , 176u8 , 232u8 , 82u8 , 223u8 , 38u8 ,]) - } - #[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 `(T::BlockNumber, 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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "EventTopics", - Vec::new(), - [ - 205u8, 90u8, 142u8, 190u8, 176u8, 37u8, 94u8, 82u8, - 98u8, 1u8, 129u8, 63u8, 246u8, 101u8, 130u8, 58u8, - 216u8, 16u8, 139u8, 196u8, 154u8, 111u8, 110u8, - 178u8, 24u8, 44u8, 183u8, 176u8, 232u8, 82u8, - 223u8, 38u8, - ], - ) - } - #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: LastRuntimeUpgradeInfo > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "LastRuntimeUpgrade", - vec![], - [ - 52u8, 37u8, 117u8, 111u8, 57u8, 130u8, 196u8, 14u8, - 99u8, 77u8, 91u8, 126u8, 178u8, 249u8, 78u8, 34u8, - 9u8, 194u8, 92u8, 105u8, 113u8, 81u8, 185u8, 127u8, - 245u8, 184u8, 60u8, 29u8, 234u8, 182u8, 96u8, - 196u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "UpgradedToU32RefCount", - vec![], - [ - 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, - 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, - 59u8, 222u8, 141u8, 32u8, 107u8, 3u8, 114u8, 83u8, - 250u8, 180u8, 233u8, 152u8, 54u8, 187u8, 99u8, - 131u8, 204u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "UpgradedToTripleRefCount", - vec![], - [ - 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, - 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, - 18u8, 51u8, 105u8, 14u8, 230u8, 103u8, 155u8, - 246u8, 99u8, 53u8, 207u8, 225u8, 128u8, 186u8, - 76u8, 40u8, 185u8, - ], - ) - } - #[doc = " The execution phase of the block."] pub fn execution_phase (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_system :: Phase > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "System", - "ExecutionPhase", - vec![], - [ - 230u8, 183u8, 221u8, 135u8, 226u8, 223u8, 55u8, - 104u8, 138u8, 224u8, 103u8, 156u8, 222u8, 99u8, - 203u8, 199u8, 164u8, 168u8, 193u8, 133u8, 201u8, - 155u8, 63u8, 95u8, 17u8, 206u8, 165u8, 123u8, - 161u8, 33u8, 172u8, 93u8, - ], - ) - } - } + pub fn balances(&self) -> balances::constants::ConstantsApi { + balances::constants::ConstantsApi } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockWeights, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "BlockWeights", - [ - 118u8, 253u8, 239u8, 217u8, 145u8, 115u8, 85u8, - 86u8, 172u8, 248u8, 139u8, 32u8, 158u8, 126u8, - 172u8, 188u8, 197u8, 105u8, 145u8, 235u8, 171u8, - 50u8, 31u8, 225u8, 167u8, 187u8, 241u8, 87u8, 6u8, - 17u8, 234u8, 185u8, - ], - ) - } - #[doc = " The maximum length of a block (in bytes)."] - pub fn block_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockLength, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "BlockLength", - [ - 116u8, 184u8, 225u8, 228u8, 207u8, 203u8, 4u8, - 220u8, 234u8, 198u8, 150u8, 108u8, 205u8, 87u8, - 194u8, 131u8, 229u8, 51u8, 140u8, 4u8, 47u8, 12u8, - 200u8, 144u8, 153u8, 62u8, 51u8, 39u8, 138u8, - 205u8, 203u8, 236u8, - ], - ) - } - #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] - pub fn block_hash_count( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::RuntimeDbWeight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "DbWeight", - [ - 124u8, 162u8, 190u8, 149u8, 49u8, 177u8, 162u8, - 231u8, 62u8, 167u8, 199u8, 181u8, 43u8, 232u8, - 185u8, 116u8, 195u8, 51u8, 233u8, 223u8, 20u8, - 129u8, 246u8, 13u8, 65u8, 180u8, 64u8, 9u8, 157u8, - 59u8, 245u8, 118u8, - ], - ) - } - #[doc = " Get the chain's current version."] - pub fn version( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_version::RuntimeVersion, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "System", - "Version", - [ - 93u8, 98u8, 57u8, 243u8, 229u8, 8u8, 234u8, 231u8, - 72u8, 230u8, 139u8, 47u8, 63u8, 181u8, 17u8, 2u8, - 220u8, 231u8, 104u8, 237u8, 185u8, 143u8, 165u8, - 253u8, 188u8, 76u8, 147u8, 12u8, 170u8, 26u8, 74u8, - 200u8, - ], - ) - } - #[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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 fn transaction_payment( + &self, + ) -> transaction_payment::constants::ConstantsApi { + transaction_payment::constants::ConstantsApi } - } - pub mod timestamp { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Set { - #[codec(compact)] - pub now: ::core::primitive::u64, - } - 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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[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)`."] - #[doc = "# "] - pub fn set( - &self, - now: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Timestamp", - "set", - Set { now }, - [ - 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, - 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, - 33u8, 187u8, 17u8, 166u8, 88u8, 127u8, 214u8, - 182u8, 51u8, 168u8, 88u8, 43u8, 101u8, 185u8, 8u8, - 1u8, 28u8, - ], - ) - } - } + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { + grandpa::constants::ConstantsApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current time for the current block."] pub fn now (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Timestamp", - "Now", - vec![], - [ - 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, - 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, - 39u8, 123u8, 106u8, 134u8, 202u8, 185u8, 83u8, - 85u8, 60u8, 41u8, 120u8, 96u8, 210u8, 34u8, 2u8, - 250u8, - ], - ) - } - #[doc = " Did the timestamp get updated in this block?"] pub fn did_update (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Timestamp", - "DidUpdate", - vec![], - [ - 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, - 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, - 16u8, 6u8, 39u8, 158u8, 167u8, 85u8, 27u8, 47u8, - 122u8, 73u8, 127u8, 26u8, 35u8, 168u8, 72u8, 204u8, - ], - ) - } - } + pub fn dkg(&self) -> dkg::constants::ConstantsApi { + dkg::constants::ConstantsApi } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] - #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] - #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] - #[doc = " double this period on default settings."] - pub fn minimum_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 fn dkg_proposals(&self) -> dkg_proposals::constants::ConstantsApi { + dkg_proposals::constants::ConstantsApi + } + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::constants::ConstantsApi { + dkg_proposal_handler::constants::ConstantsApi + } + pub fn bridge_registry( + &self, + ) -> bridge_registry::constants::ConstantsApi { + bridge_registry::constants::ConstantsApi + } + pub fn indices(&self) -> indices::constants::ConstantsApi { + indices::constants::ConstantsApi + } + pub fn democracy(&self) -> democracy::constants::ConstantsApi { + democracy::constants::ConstantsApi + } + pub fn vesting(&self) -> vesting::constants::ConstantsApi { + vesting::constants::ConstantsApi + } + pub fn claims(&self) -> claims::constants::ConstantsApi { + claims::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { + elections::constants::ConstantsApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::constants::ConstantsApi { + election_provider_multi_phase::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } + pub fn treasury(&self) -> treasury::constants::ConstantsApi { + treasury::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 bags_list(&self) -> bags_list::constants::ConstantsApi { + bags_list::constants::ConstantsApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { + scheduler::constants::ConstantsApi + } + pub fn asset_registry( + &self, + ) -> asset_registry::constants::ConstantsApi { + asset_registry::constants::ConstantsApi + } + pub fn currencies(&self) -> currencies::constants::ConstantsApi { + currencies::constants::ConstantsApi + } + pub fn tokens(&self) -> tokens::constants::ConstantsApi { + tokens::constants::ConstantsApi + } + pub fn token_wrapper(&self) -> token_wrapper::constants::ConstantsApi { + token_wrapper::constants::ConstantsApi + } + pub fn linkable_tree_bn254( + &self, + ) -> linkable_tree_bn254::constants::ConstantsApi { + linkable_tree_bn254::constants::ConstantsApi + } + pub fn mixer_bn254(&self) -> mixer_bn254::constants::ConstantsApi { + mixer_bn254::constants::ConstantsApi + } + pub fn signature_bridge( + &self, + ) -> signature_bridge::constants::ConstantsApi { + signature_bridge::constants::ConstantsApi + } + pub fn v_anchor_bn254( + &self, + ) -> v_anchor_bn254::constants::ConstantsApi { + v_anchor_bn254::constants::ConstantsApi + } + pub fn im_online(&self) -> im_online::constants::ConstantsApi { + im_online::constants::ConstantsApi + } + pub fn identity(&self) -> identity::constants::ConstantsApi { + identity::constants::ConstantsApi + } + pub fn utility(&self) -> utility::constants::ConstantsApi { + utility::constants::ConstantsApi + } + pub fn eth2_client(&self) -> eth2_client::constants::ConstantsApi { + eth2_client::constants::ConstantsApi } } - pub mod sudo { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Sudo { - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKey { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SudoAs { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - pub fn sudo( - &self, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "sudo", - Sudo { - call: ::std::boxed::Box::new(call), - }, - [ - 55u8, 185u8, 17u8, 21u8, 151u8, 47u8, 88u8, 171u8, - 73u8, 150u8, 57u8, 119u8, 80u8, 60u8, 198u8, 85u8, - 146u8, 7u8, 53u8, 2u8, 163u8, 38u8, 2u8, 235u8, - 2u8, 20u8, 162u8, 171u8, 4u8, 99u8, 25u8, 52u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] - pub fn sudo_unchecked_weight( - &self, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "sudo_unchecked_weight", - SudoUncheckedWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 74u8, 25u8, 22u8, 173u8, 247u8, 238u8, 206u8, 2u8, - 201u8, 195u8, 239u8, 89u8, 8u8, 163u8, 74u8, 142u8, - 23u8, 57u8, 219u8, 203u8, 216u8, 83u8, 231u8, 5u8, - 46u8, 112u8, 189u8, 175u8, 103u8, 194u8, 164u8, - 108u8, - ], - ) - } - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] - pub fn set_key( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "set_key", - SetKey { new }, - [ - 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, - 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, - 163u8, 41u8, 138u8, 7u8, 81u8, 98u8, 230u8, 182u8, - 23u8, 222u8, 240u8, 117u8, 173u8, 232u8, 192u8, - 55u8, 92u8, 208u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - pub fn sudo_as( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Sudo", - "sudo_as", - SudoAs { - who, - call: ::std::boxed::Box::new(call), - }, - [ - 169u8, 148u8, 83u8, 114u8, 40u8, 119u8, 113u8, - 47u8, 27u8, 247u8, 6u8, 170u8, 253u8, 24u8, 190u8, - 112u8, 80u8, 80u8, 28u8, 82u8, 55u8, 129u8, 148u8, - 90u8, 59u8, 207u8, 119u8, 22u8, 169u8, 36u8, 189u8, - 197u8, - ], - ) - } - } + pub struct StorageApi; + impl StorageApi { + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_sudo::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct Sudid { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Sudid { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "Sudid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - pub struct KeyChanged { - pub old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "KeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct SudoAsDone { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for SudoAsDone { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "SudoAsDone"; - } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The `AccountId` of the sudo key."] pub fn key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Sudo", - "Key", - vec![], - [ - 244u8, 73u8, 188u8, 136u8, 218u8, 163u8, 68u8, - 179u8, 122u8, 173u8, 34u8, 108u8, 137u8, 28u8, - 182u8, 16u8, 196u8, 92u8, 138u8, 34u8, 102u8, 80u8, - 199u8, 88u8, 107u8, 207u8, 36u8, 22u8, 168u8, - 167u8, 20u8, 142u8, - ], - ) - } - } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi } - } - pub mod randomness_collective_flip { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] - #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] - #[doc = " the oldest hash."] pub fn random_material (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "RandomnessCollectiveFlip", - "RandomMaterial", - vec![], - [ - 152u8, 126u8, 73u8, 88u8, 54u8, 147u8, 6u8, 19u8, - 214u8, 40u8, 159u8, 30u8, 236u8, 61u8, 240u8, 65u8, - 178u8, 94u8, 146u8, 152u8, 135u8, 252u8, 160u8, - 86u8, 123u8, 114u8, 251u8, 140u8, 98u8, 143u8, - 217u8, 242u8, - ], - ) - } - } + pub fn randomness_collective_flip( + &self, + ) -> randomness_collective_flip::storage::StorageApi { + randomness_collective_flip::storage::StorageApi } - } - pub mod balances { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub keep_alive: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub amount: ::core::primitive::u128, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "transfer", - Transfer { dest, value }, - [ - 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, - 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, - 66u8, 184u8, 27u8, 94u8, 176u8, 60u8, 233u8, 236u8, - 145u8, 218u8, 44u8, 138u8, 240u8, 224u8, 16u8, - 193u8, 220u8, 95u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "set_balance", - SetBalance { - who, - new_free, - new_reserved, - }, - [ - 174u8, 34u8, 80u8, 252u8, 193u8, 51u8, 228u8, - 236u8, 234u8, 16u8, 173u8, 214u8, 122u8, 21u8, - 254u8, 7u8, 49u8, 176u8, 18u8, 128u8, 122u8, 68u8, - 72u8, 181u8, 119u8, 90u8, 167u8, 46u8, 203u8, - 220u8, 109u8, 110u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "force_transfer", - ForceTransfer { - source, - dest, - value, - }, - [ - 56u8, 80u8, 186u8, 45u8, 134u8, 147u8, 200u8, 19u8, - 53u8, 221u8, 213u8, 32u8, 13u8, 51u8, 130u8, 42u8, - 244u8, 85u8, 50u8, 246u8, 189u8, 51u8, 93u8, 1u8, - 108u8, 142u8, 112u8, 245u8, 104u8, 255u8, 15u8, - 62u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "transfer_keep_alive", - TransferKeepAlive { dest, value }, - [ - 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, - 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, - 56u8, 217u8, 250u8, 21u8, 44u8, 239u8, 66u8, 79u8, - 99u8, 25u8, 106u8, 70u8, 226u8, 50u8, 255u8, 176u8, - 71u8, - ], - ) - } - #[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). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "transfer_all", - TransferAll { dest, keep_alive }, - [ - 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, - 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, - 53u8, 205u8, 112u8, 147u8, 88u8, 167u8, 197u8, - 32u8, 104u8, 117u8, 201u8, 168u8, 144u8, 230u8, - 120u8, 29u8, 122u8, 159u8, - ], - ) - } - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] - pub fn force_unreserve( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Balances", - "force_unreserve", - ForceUnreserve { who, amount }, - [ - 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, - 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, - 46u8, 108u8, 136u8, 167u8, 145u8, 103u8, 65u8, - 33u8, 168u8, 36u8, 214u8, 126u8, 237u8, 180u8, - 61u8, 108u8, 110u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_balances::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - pub struct Deposit { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Withdraw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Slashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total units issued in the system."] pub fn total_issuance (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "TotalIssuance", - vec![], - [ - 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, - 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, - 187u8, 44u8, 84u8, 25u8, 164u8, 235u8, 20u8, 86u8, - 242u8, 124u8, 23u8, 28u8, 140u8, 26u8, 73u8, 231u8, - 51u8, - ], - ) - } - #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "InactiveIssuance", - vec![], - [ - 74u8, 203u8, 111u8, 142u8, 225u8, 104u8, 173u8, - 51u8, 226u8, 12u8, 85u8, 135u8, 41u8, 206u8, 177u8, - 238u8, 94u8, 246u8, 184u8, 250u8, 140u8, 213u8, - 91u8, 118u8, 163u8, 111u8, 211u8, 46u8, 204u8, - 160u8, 154u8, 21u8, - ], - ) - } - #[doc = " The Balances pallet example of storing the balance of an account."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " You can also store the balance of an account in the `System` pallet."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = System"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] - #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] - #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_balances :: AccountData < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "Account", - Vec::new(), - [ - 246u8, 154u8, 253u8, 71u8, 192u8, 192u8, 192u8, - 236u8, 128u8, 80u8, 40u8, 252u8, 201u8, 43u8, 3u8, - 131u8, 19u8, 49u8, 141u8, 240u8, 172u8, 217u8, - 215u8, 109u8, 87u8, 135u8, 248u8, 57u8, 98u8, - 185u8, 22u8, 4u8, - ], - ) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "Locks", - Vec::new(), - [ - 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, - 244u8, 134u8, 195u8, 58u8, 255u8, 64u8, 153u8, - 212u8, 210u8, 232u8, 4u8, 122u8, 90u8, 212u8, - 136u8, 14u8, 127u8, 232u8, 8u8, 192u8, 40u8, 233u8, - 18u8, 250u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] pub fn reserves (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) - } - #[doc = " Named reserves on some account balances."] pub fn reserves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Balances", - "Reserves", - Vec::new(), - [ - 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, - 42u8, 250u8, 128u8, 167u8, 117u8, 44u8, 85u8, 96u8, - 105u8, 216u8, 16u8, 147u8, 74u8, 55u8, 183u8, 94u8, - 160u8, 177u8, 26u8, 187u8, 71u8, 197u8, 187u8, - 163u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount required to keep an account open."] - pub fn existential_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod transaction_payment { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_transaction_payment::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TransactionFeePaid { - const PALLET: &'static str = "TransactionPayment"; - const EVENT: &'static str = "TransactionFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn next_fee_multiplier (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TransactionPayment", - "NextFeeMultiplier", - vec![], - [ - 210u8, 0u8, 206u8, 165u8, 183u8, 10u8, 206u8, 52u8, - 14u8, 90u8, 218u8, 197u8, 189u8, 125u8, 113u8, - 216u8, 52u8, 161u8, 45u8, 24u8, 245u8, 237u8, - 121u8, 41u8, 106u8, 29u8, 45u8, 129u8, 250u8, - 203u8, 206u8, 180u8, - ], - ) - } pub fn storage_version (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_transaction_payment :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TransactionPayment", - "StorageVersion", - vec![], - [ - 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, - 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, - 166u8, 11u8, 34u8, 12u8, 12u8, 198u8, 58u8, 191u8, - 186u8, 221u8, 221u8, 119u8, 181u8, 253u8, 154u8, - 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] - #[doc = " `priority`"] - #[doc = ""] - #[doc = " This value is multipled 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetUncles { - pub new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Provide a set of uncles."] - pub fn set_uncles( - &self, - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Authorship", - "set_uncles", - SetUncles { new_uncles }, - [ - 181u8, 70u8, 222u8, 83u8, 154u8, 215u8, 200u8, - 64u8, 154u8, 228u8, 115u8, 247u8, 117u8, 89u8, - 229u8, 102u8, 128u8, 189u8, 90u8, 60u8, 223u8, - 19u8, 111u8, 172u8, 5u8, 223u8, 132u8, 37u8, 235u8, - 119u8, 42u8, 64u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Uncles"] pub fn uncles (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_authorship :: UncleEntryItem < :: core :: primitive :: u32 , :: subxt :: utils :: H256 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Authorship", - "Uncles", - vec![], - [ - 193u8, 226u8, 196u8, 151u8, 233u8, 82u8, 60u8, - 164u8, 27u8, 156u8, 231u8, 51u8, 79u8, 134u8, - 170u8, 166u8, 71u8, 120u8, 250u8, 255u8, 52u8, - 168u8, 74u8, 199u8, 122u8, 253u8, 248u8, 178u8, - 39u8, 233u8, 132u8, 67u8, - ], - ) - } - #[doc = " Author of current block."] pub fn author (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Authorship", - "Author", - vec![], - [ - 149u8, 42u8, 33u8, 147u8, 190u8, 207u8, 174u8, - 227u8, 190u8, 110u8, 25u8, 131u8, 5u8, 167u8, - 237u8, 188u8, 188u8, 33u8, 177u8, 126u8, 181u8, - 49u8, 126u8, 118u8, 46u8, 128u8, 154u8, 95u8, 15u8, - 91u8, 103u8, 113u8, - ], - ) - } - #[doc = " Whether uncles were already set in this block."] pub fn did_set_uncles (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Authorship", - "DidSetUncles", - vec![], - [ - 64u8, 3u8, 208u8, 187u8, 50u8, 45u8, 37u8, 88u8, - 163u8, 226u8, 37u8, 126u8, 232u8, 107u8, 156u8, - 187u8, 29u8, 15u8, 53u8, 46u8, 28u8, 73u8, 83u8, - 123u8, 14u8, 244u8, 243u8, 43u8, 245u8, 143u8, - 15u8, 115u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The number of blocks back we should accept uncles."] - #[doc = " This means that we will deal with uncle-parents that are"] - #[doc = " `UncleGenerations + 1` before `now`."] - pub fn uncle_generations( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Authorship", - "UncleGenerations", - [ - 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 aura { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Aura", - "Authorities", - vec![], - [ - 199u8, 89u8, 94u8, 48u8, 249u8, 35u8, 105u8, 90u8, - 15u8, 86u8, 218u8, 85u8, 22u8, 236u8, 228u8, 36u8, - 137u8, 64u8, 236u8, 171u8, 242u8, 217u8, 91u8, - 240u8, 205u8, 205u8, 226u8, 16u8, 147u8, 235u8, - 181u8, 41u8, - ], - ) - } - #[doc = " The current slot of this block."] - #[doc = ""] - #[doc = " This will be set in `on_initialize`."] pub fn current_slot (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_consensus_slots :: Slot > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Aura", - "CurrentSlot", - vec![], - [ - 139u8, 237u8, 185u8, 137u8, 251u8, 179u8, 69u8, - 167u8, 133u8, 168u8, 204u8, 64u8, 178u8, 123u8, - 92u8, 250u8, 119u8, 190u8, 208u8, 178u8, 208u8, - 176u8, 124u8, 187u8, 74u8, 165u8, 33u8, 78u8, - 161u8, 206u8, 8u8, 108u8, - ], - ) - } - } - } - } - pub mod grandpa { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NoteStalled { - pub delay: ::core::primitive::u32, - pub best_finalized_block_number: ::core::primitive::u32, - } - 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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Grandpa", - "report_equivocation", - ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 156u8, 162u8, 189u8, 89u8, 60u8, 156u8, 129u8, - 176u8, 62u8, 35u8, 214u8, 7u8, 68u8, 245u8, 130u8, - 117u8, 30u8, 3u8, 73u8, 218u8, 142u8, 82u8, 13u8, - 141u8, 124u8, 19u8, 53u8, 138u8, 70u8, 4u8, 40u8, - 32u8, - ], - ) - } - #[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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Grandpa", - "report_equivocation_unsigned", - ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 166u8, 26u8, 217u8, 185u8, 215u8, 37u8, 174u8, - 170u8, 137u8, 160u8, 151u8, 43u8, 246u8, 86u8, - 58u8, 18u8, 248u8, 73u8, 99u8, 161u8, 158u8, 93u8, - 212u8, 186u8, 224u8, 253u8, 234u8, 18u8, 151u8, - 111u8, 227u8, 249u8, - ], - ) - } - #[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: ::core::primitive::u32, - best_finalized_block_number: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Grandpa", - "note_stalled", - NoteStalled { - delay, - best_finalized_block_number, - }, - [ - 197u8, 236u8, 137u8, 32u8, 46u8, 200u8, 144u8, - 13u8, 89u8, 181u8, 235u8, 73u8, 167u8, 131u8, - 174u8, 93u8, 42u8, 136u8, 238u8, 59u8, 129u8, 60u8, - 83u8, 100u8, 5u8, 182u8, 99u8, 250u8, 145u8, 180u8, - 1u8, 199u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_grandpa::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New authority set has been applied."] - pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, - ::core::primitive::u64, - )>, - } - impl ::subxt::events::StaticEvent for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current authority set has been paused."] - pub struct Paused; - impl ::subxt::events::StaticEvent for Paused { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Paused"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current authority set has been resumed."] - pub struct Resumed; - impl ::subxt::events::StaticEvent for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " State of the current authority set."] pub fn state (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_grandpa :: StoredState < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "State", - vec![], - [ - 211u8, 149u8, 114u8, 217u8, 206u8, 194u8, 115u8, - 67u8, 12u8, 218u8, 246u8, 213u8, 208u8, 29u8, - 216u8, 104u8, 2u8, 39u8, 123u8, 172u8, 252u8, - 210u8, 52u8, 129u8, 147u8, 237u8, 244u8, 68u8, - 252u8, 169u8, 97u8, 148u8, - ], - ) - } - #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_grandpa :: StoredPendingChange < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "PendingChange", - vec![], - [ - 178u8, 24u8, 140u8, 7u8, 8u8, 196u8, 18u8, 58u8, - 3u8, 226u8, 181u8, 47u8, 155u8, 160u8, 70u8, 12u8, - 75u8, 189u8, 38u8, 255u8, 104u8, 141u8, 64u8, 34u8, - 134u8, 201u8, 102u8, 21u8, 75u8, 81u8, 218u8, 60u8, - ], - ) - } - #[doc = " next block number where we can force a change."] pub fn next_forced (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "NextForced", - vec![], - [ - 99u8, 43u8, 245u8, 201u8, 60u8, 9u8, 122u8, 99u8, - 188u8, 29u8, 67u8, 6u8, 193u8, 133u8, 179u8, 67u8, - 202u8, 208u8, 62u8, 179u8, 19u8, 169u8, 196u8, - 119u8, 107u8, 75u8, 100u8, 3u8, 121u8, 18u8, 80u8, - 156u8, - ], - ) - } - #[doc = " `true` if we are currently stalled."] pub fn stalled (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "Stalled", - vec![], - [ - 219u8, 8u8, 37u8, 78u8, 150u8, 55u8, 0u8, 57u8, - 201u8, 170u8, 186u8, 189u8, 56u8, 161u8, 44u8, - 15u8, 53u8, 178u8, 224u8, 208u8, 231u8, 109u8, - 14u8, 209u8, 57u8, 205u8, 237u8, 153u8, 231u8, - 156u8, 24u8, 185u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "CurrentSetId", - vec![], - [ - 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, - 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, - 197u8, 157u8, 163u8, 116u8, 36u8, 105u8, 52u8, - 149u8, 244u8, 108u8, 94u8, 109u8, 111u8, 244u8, - 137u8, 7u8, 108u8, - ], - ) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Grandpa", - "SetIdSession", - Vec::new(), - [ - 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, - 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, - 123u8, 133u8, 157u8, 15u8, 33u8, 234u8, 108u8, - 13u8, 88u8, 115u8, 254u8, 9u8, 145u8, 199u8, 102u8, - 47u8, 53u8, 134u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max Authorities in use"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod dkg { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetSignatureThreshold { - pub new_threshold: ::core::primitive::u16, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKeygenThreshold { - pub new_threshold: ::core::primitive::u16, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetRefreshDelay { - pub new_delay: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitPublicKey { - pub keys_and_signatures: - runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitNextPublicKey { - pub keys_and_signatures: - runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitPublicKeySignature { pub signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitMisbehaviourReports { pub reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unjail; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnjailKeygen { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnjailSigning { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceChangeAuthorities; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TriggerEmergencyKeygen; - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set the pending signature threshold for the session following the next session."] - #[doc = ""] - #[doc = "We cannot assume that the next DKG has not already completed keygen."] - #[doc = "After all, if we are in a new session the next DKG may have already completed."] - #[doc = "Therefore, when we update the thresholds we are updating a threshold"] - #[doc = "that will become the next threshold after the next session update."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `new_threshold` - The new signature threshold for the DKG."] - pub fn set_signature_threshold( - &self, - new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "set_signature_threshold", - SetSignatureThreshold { new_threshold }, - [ - 160u8, 195u8, 237u8, 69u8, 171u8, 13u8, 28u8, - 110u8, 245u8, 159u8, 172u8, 115u8, 125u8, 245u8, - 207u8, 23u8, 227u8, 200u8, 227u8, 120u8, 183u8, - 185u8, 240u8, 153u8, 127u8, 14u8, 106u8, 85u8, 4u8, - 55u8, 227u8, 65u8, - ], - ) - } - #[doc = "Set the pending keygen threshold for the session following the next session."] - #[doc = ""] - #[doc = "We cannot assume that the next DKG has not already completed keygen."] - #[doc = "After all, if we are in a new session the next DKG may have already completed."] - #[doc = "Therefore, when we update the thresholds we are updating a threshold"] - #[doc = "that will become the next threshold after the next session update."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `new_threshold` - The new keygen threshold for the DKG."] - pub fn set_keygen_threshold( - &self, - new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "set_keygen_threshold", - SetKeygenThreshold { new_threshold }, - [ - 181u8, 23u8, 76u8, 117u8, 56u8, 235u8, 59u8, 254u8, - 242u8, 114u8, 147u8, 247u8, 248u8, 168u8, 235u8, - 50u8, 128u8, 167u8, 99u8, 110u8, 2u8, 15u8, 26u8, - 110u8, 216u8, 7u8, 189u8, 46u8, 73u8, 229u8, 24u8, - 9u8, - ], - ) - } - #[doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] - #[doc = "proposal queue."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] - #[doc = " unsigned refresh proposal to the unsigned proposal queue."] - pub fn set_refresh_delay( - &self, - new_delay: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "set_refresh_delay", - SetRefreshDelay { new_delay }, - [ - 16u8, 74u8, 191u8, 229u8, 37u8, 51u8, 217u8, 83u8, - 211u8, 119u8, 177u8, 127u8, 207u8, 133u8, 218u8, - 245u8, 162u8, 21u8, 93u8, 42u8, 250u8, 63u8, 218u8, - 33u8, 217u8, 215u8, 61u8, 122u8, 28u8, 53u8, 157u8, - 108u8, - ], - ) - } - #[doc = "Submits and stores the active public key for the genesis session into the on-chain"] - #[doc = "storage. This is primarily used to separate the genesis public key submission from"] - #[doc = "non-genesis rounds."] - #[doc = ""] - #[doc = "Can only be submitted by the current authorities. It is also required that a"] - #[doc = "`SignatureThreshold` of submissions is reached in order to successfully"] - #[doc = "store the public key on-chain."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] - #[doc = " DKG public keys."] - pub fn submit_public_key( - &self, - keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "submit_public_key", - SubmitPublicKey { - keys_and_signatures, - }, - [ - 39u8, 55u8, 155u8, 151u8, 44u8, 91u8, 66u8, 109u8, - 115u8, 132u8, 68u8, 187u8, 202u8, 41u8, 234u8, - 114u8, 79u8, 78u8, 65u8, 245u8, 192u8, 38u8, 172u8, - 71u8, 54u8, 170u8, 53u8, 122u8, 58u8, 135u8, 234u8, - 49u8, - ], - ) - } - #[doc = "Submits and stores the next public key for the next session into the on-chain storage."] - #[doc = ""] - #[doc = "Can only be submitted by the next authorities. It is also required that a"] - #[doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] - #[doc = "store the public key on-chain."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] - #[doc = " DKG public keys."] - pub fn submit_next_public_key( - &self, - keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "submit_next_public_key", - SubmitNextPublicKey { - keys_and_signatures, - }, - [ - 248u8, 166u8, 238u8, 156u8, 241u8, 216u8, 68u8, - 78u8, 95u8, 106u8, 167u8, 238u8, 113u8, 117u8, - 109u8, 169u8, 253u8, 75u8, 154u8, 30u8, 170u8, - 94u8, 187u8, 192u8, 193u8, 34u8, 50u8, 66u8, 32u8, - 68u8, 81u8, 205u8, - ], - ) - } - #[doc = "Submits the public key signature for the key refresh/rotation process."] - #[doc = ""] - #[doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] - #[doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] - #[doc = "DKG's public key. Successful storage of this public key signature also removes"] - #[doc = "the unsigned `RefreshProposal` from the unsigned queue."] - #[doc = ""] - #[doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] - #[doc = "the keys are immediately refreshed and the authority set is immediately rotated"] - #[doc = "and incremented."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] - #[doc = " and nonce."] - pub fn submit_public_key_signature( - &self, - signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "submit_public_key_signature", - SubmitPublicKeySignature { signature_proposal }, - [ - 74u8, 197u8, 64u8, 71u8, 121u8, 35u8, 252u8, 67u8, - 136u8, 25u8, 110u8, 230u8, 219u8, 44u8, 146u8, - 203u8, 151u8, 165u8, 62u8, 83u8, 236u8, 75u8, - 220u8, 112u8, 160u8, 192u8, 220u8, 0u8, 203u8, - 34u8, 195u8, 76u8, - ], - ) - } - #[doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] - #[doc = "verified against the current or next authorities depending on the type of misbehaviour."] - #[doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] - #[doc = "- Signing: Verifies against the current authorities, since they are doing signing."] - #[doc = ""] - #[doc = "Verifies the reports against the respective thresholds and if enough reports are met"] - #[doc = "begins to jail and decrease the reputation of the offending authority."] - #[doc = ""] - #[doc = "The misbehaviour reputation update is:"] - #[doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] - #[doc = ""] - #[doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] - #[doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] - #[doc = "accordingly."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] - #[doc = " authority"] - pub fn submit_misbehaviour_reports( - &self, - reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "submit_misbehaviour_reports", - SubmitMisbehaviourReports { reports }, - [ - 217u8, 75u8, 94u8, 66u8, 26u8, 160u8, 229u8, 184u8, - 66u8, 97u8, 190u8, 21u8, 127u8, 165u8, 67u8, 85u8, - 246u8, 173u8, 133u8, 253u8, 173u8, 33u8, 61u8, - 229u8, 148u8, 101u8, 1u8, 210u8, 109u8, 116u8, - 251u8, 134u8, - ], - ) - } - #[doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] - #[doc = "This can only be called by the controller of the authority in jail. The"] - #[doc = "origin must map directly to the authority in jail."] - #[doc = ""] - #[doc = "The authority's jail sentence for either keygen or signing must be elapsed"] - #[doc = "for the authority to be removed from the jail."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - pub fn unjail(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "unjail", - Unjail {}, - [ - 209u8, 5u8, 90u8, 85u8, 167u8, 92u8, 85u8, 132u8, - 48u8, 27u8, 89u8, 149u8, 242u8, 209u8, 97u8, 87u8, - 13u8, 58u8, 124u8, 41u8, 155u8, 103u8, 62u8, 115u8, - 58u8, 143u8, 233u8, 105u8, 18u8, 198u8, 173u8, - 77u8, - ], - ) - } - #[doc = "Force removes an authority from keygen jail."] - #[doc = ""] - #[doc = "Can only be called by DKG"] - #[doc = "* `origin` - The account origin."] - #[doc = "* `authority` - The authority to be removed from the keygen jail."] - pub fn force_unjail_keygen( - &self, - authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "force_unjail_keygen", - ForceUnjailKeygen { authority }, - [ - 7u8, 2u8, 72u8, 189u8, 190u8, 208u8, 55u8, 117u8, - 205u8, 174u8, 223u8, 90u8, 12u8, 136u8, 64u8, - 212u8, 57u8, 31u8, 227u8, 103u8, 72u8, 157u8, - 156u8, 101u8, 66u8, 5u8, 149u8, 175u8, 3u8, 98u8, - 60u8, 44u8, - ], - ) - } - #[doc = "Force removes an authority from signing jail."] - #[doc = ""] - #[doc = "Can only be called by the root origin."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `authority` - The authority to be removed from the signing jail."] - pub fn force_unjail_signing( - &self, - authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "force_unjail_signing", - ForceUnjailSigning { authority }, - [ - 195u8, 160u8, 19u8, 141u8, 200u8, 170u8, 41u8, - 189u8, 18u8, 98u8, 112u8, 34u8, 55u8, 46u8, 101u8, - 216u8, 177u8, 135u8, 70u8, 24u8, 219u8, 153u8, - 167u8, 130u8, 110u8, 187u8, 146u8, 103u8, 3u8, - 253u8, 5u8, 185u8, - ], - ) - } - #[doc = "Forcefully rotate the DKG"] - #[doc = ""] - #[doc = "This forces the next authorities into the current authority spot and"] - #[doc = "automatically increments the authority ID. It uses `change_authorities`"] - #[doc = "to execute the rotation forcefully."] - pub fn force_change_authorities( - &self, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "force_change_authorities", - ForceChangeAuthorities {}, - [ - 98u8, 226u8, 238u8, 39u8, 98u8, 79u8, 85u8, 160u8, - 82u8, 3u8, 34u8, 195u8, 220u8, 178u8, 25u8, 110u8, - 12u8, 72u8, 165u8, 126u8, 207u8, 173u8, 210u8, - 74u8, 54u8, 106u8, 255u8, 243u8, 240u8, 22u8, - 161u8, 255u8, - ], - ) - } - #[doc = "Triggers an Emergency Keygen Porotocol."] - #[doc = ""] - #[doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] - #[doc = "storage, which will be picked up by the on chain worker and stored on chain."] - #[doc = ""] - #[doc = "Note that, this will clear the next public key and its signature, if any."] - pub fn trigger_emergency_keygen( - &self, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKG", - "trigger_emergency_keygen", - TriggerEmergencyKeygen {}, - [ - 169u8, 123u8, 131u8, 42u8, 202u8, 219u8, 162u8, - 1u8, 134u8, 223u8, 197u8, 245u8, 64u8, 51u8, 46u8, - 231u8, 155u8, 25u8, 6u8, 253u8, 170u8, 251u8, 15u8, - 156u8, 76u8, 127u8, 142u8, 218u8, 142u8, 65u8, - 197u8, 160u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_dkg_metadata::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current public key submitted"] - pub struct PublicKeySubmitted { - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for PublicKeySubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PublicKeySubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Next public key submitted"] - pub struct NextPublicKeySubmitted { - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for NextPublicKeySubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextPublicKeySubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Next public key signature submitted"] - pub struct NextPublicKeySignatureSubmitted { - pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NextPublicKeySignatureSubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextPublicKeySignatureSubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current Public Key Changed."] - pub struct PublicKeyChanged { - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for PublicKeyChanged { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PublicKeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Current Public Key Signature Changed."] - pub struct PublicKeySignatureChanged { - pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for PublicKeySignatureChanged { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PublicKeySignatureChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Misbehaviour reports submitted"] - pub struct MisbehaviourReportsSubmitted { - pub misbehaviour_type: - runtime_types::dkg_runtime_primitives::MisbehaviourType, - pub reporters: ::std::vec::Vec< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - pub offender: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::events::StaticEvent for MisbehaviourReportsSubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "MisbehaviourReportsSubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Refresh DKG Keys Finished (forcefully)."] - pub struct RefreshKeysFinished { - pub next_authority_set_id: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for RefreshKeysFinished { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "RefreshKeysFinished"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "NextKeygenThreshold updated"] - pub struct NextKeygenThresholdUpdated { - pub next_keygen_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for NextKeygenThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextKeygenThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "NextSignatureThreshold updated"] - pub struct NextSignatureThresholdUpdated { - pub next_signature_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for NextSignatureThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextSignatureThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "PendingKeygenThreshold updated"] - pub struct PendingKeygenThresholdUpdated { - pub pending_keygen_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for PendingKeygenThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PendingKeygenThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "PendingSignatureThreshold updated"] - pub struct PendingSignatureThresholdUpdated { - pub pending_signature_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for PendingSignatureThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PendingSignatureThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An Emergency Keygen Protocol was triggered."] - pub struct EmergencyKeygenTriggered; - impl ::subxt::events::StaticEvent for EmergencyKeygenTriggered { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "EmergencyKeygenTriggered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An authority has been jailed for misbehaviour"] - pub struct AuthorityJailed { - pub misbehaviour_type: - runtime_types::dkg_runtime_primitives::MisbehaviourType, - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::events::StaticEvent for AuthorityJailed { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "AuthorityJailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An authority has been unjailed"] - pub struct AuthorityUnJailed { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::events::StaticEvent for AuthorityUnJailed { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "AuthorityUnJailed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "UsedSignatures", - vec![], - [ - 46u8, 101u8, 56u8, 181u8, 166u8, 247u8, 210u8, - 177u8, 219u8, 97u8, 159u8, 183u8, 246u8, 101u8, - 210u8, 242u8, 165u8, 160u8, 106u8, 162u8, 44u8, - 46u8, 107u8, 151u8, 156u8, 220u8, 221u8, 229u8, - 178u8, 156u8, 73u8, 85u8, - ], - ) - } - #[doc = " Nonce value for next refresh proposal"] pub fn refresh_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "RefreshNonce", - vec![], - [ - 184u8, 107u8, 53u8, 61u8, 92u8, 121u8, 77u8, 93u8, - 141u8, 192u8, 238u8, 92u8, 15u8, 155u8, 1u8, 153u8, - 55u8, 64u8, 83u8, 144u8, 127u8, 250u8, 207u8, 14u8, - 62u8, 137u8, 151u8, 230u8, 86u8, 236u8, 27u8, - 175u8, - ], - ) - } - #[doc = " Session progress required to kickstart refresh process"] pub fn refresh_delay (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Permill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "RefreshDelay", - vec![], - [ - 79u8, 178u8, 57u8, 227u8, 1u8, 170u8, 0u8, 55u8, - 231u8, 155u8, 114u8, 9u8, 197u8, 101u8, 112u8, - 176u8, 169u8, 138u8, 67u8, 127u8, 127u8, 59u8, - 56u8, 99u8, 113u8, 242u8, 15u8, 43u8, 254u8, 79u8, - 9u8, 161u8, - ], - ) - } - #[doc = " Defines the block when next unsigned transaction will be accepted."] - #[doc = ""] - #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] - #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] - #[doc = " This storage entry defines when new transaction is going to be accepted."] pub fn next_unsigned_at (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextUnsignedAt", - vec![], - [ - 175u8, 176u8, 254u8, 20u8, 27u8, 31u8, 70u8, 46u8, - 201u8, 118u8, 22u8, 200u8, 95u8, 116u8, 223u8, - 63u8, 191u8, 85u8, 55u8, 21u8, 70u8, 24u8, 225u8, - 203u8, 66u8, 213u8, 94u8, 229u8, 234u8, 223u8, - 255u8, 28u8, - ], - ) - } - #[doc = " Check if there is a refresh in progress."] pub fn refresh_in_progress (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "RefreshInProgress", - vec![], - [ - 150u8, 114u8, 14u8, 254u8, 132u8, 254u8, 10u8, - 89u8, 109u8, 4u8, 182u8, 128u8, 114u8, 15u8, 82u8, - 35u8, 88u8, 86u8, 32u8, 82u8, 83u8, 175u8, 123u8, - 98u8, 120u8, 180u8, 167u8, 185u8, 57u8, 221u8, - 12u8, 62u8, - ], - ) - } - #[doc = " Should we start a new Keygen"] pub fn should_execute_new_keygen (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "ShouldExecuteNewKeygen", - vec![], - [ - 125u8, 105u8, 100u8, 215u8, 34u8, 62u8, 234u8, - 88u8, 98u8, 221u8, 122u8, 143u8, 214u8, 192u8, - 91u8, 77u8, 98u8, 63u8, 149u8, 118u8, 159u8, 158u8, - 163u8, 112u8, 198u8, 59u8, 106u8, 233u8, 239u8, - 216u8, 151u8, 18u8, - ], - ) - } - #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextDKGPublicKey", - vec![], - [ - 190u8, 8u8, 19u8, 247u8, 57u8, 79u8, 143u8, 79u8, - 251u8, 110u8, 255u8, 86u8, 175u8, 77u8, 78u8, - 173u8, 183u8, 5u8, 94u8, 97u8, 12u8, 101u8, 26u8, - 75u8, 223u8, 196u8, 22u8, 202u8, 152u8, 67u8, - 170u8, 22u8, - ], - ) - } - #[doc = " Signature of the DKG public key for the next session"] pub fn next_public_key_signature (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextPublicKeySignature", - vec![], - [ - 7u8, 23u8, 208u8, 171u8, 234u8, 66u8, 219u8, 107u8, - 109u8, 127u8, 166u8, 218u8, 179u8, 97u8, 137u8, - 57u8, 64u8, 48u8, 104u8, 56u8, 58u8, 93u8, 132u8, - 191u8, 206u8, 134u8, 129u8, 107u8, 223u8, 178u8, - 87u8, 25u8, - ], - ) - } - #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "DKGPublicKey", - vec![], - [ - 171u8, 148u8, 67u8, 160u8, 252u8, 26u8, 71u8, 2u8, - 13u8, 45u8, 214u8, 185u8, 187u8, 219u8, 153u8, - 108u8, 240u8, 150u8, 103u8, 59u8, 210u8, 211u8, - 218u8, 147u8, 49u8, 223u8, 194u8, 130u8, 69u8, - 131u8, 24u8, 81u8, - ], - ) - } - #[doc = " Signature of the current DKG public key"] pub fn dkg_public_key_signature (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "DKGPublicKeySignature", - vec![], - [ - 63u8, 104u8, 181u8, 61u8, 227u8, 143u8, 48u8, 34u8, - 38u8, 3u8, 149u8, 124u8, 90u8, 4u8, 39u8, 253u8, - 102u8, 169u8, 179u8, 87u8, 213u8, 132u8, 137u8, - 218u8, 216u8, 141u8, 189u8, 159u8, 141u8, 147u8, - 101u8, 102u8, - ], - ) - } - #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "PreviousPublicKey", - vec![], - [ - 211u8, 151u8, 16u8, 209u8, 65u8, 128u8, 48u8, - 209u8, 242u8, 91u8, 253u8, 156u8, 196u8, 190u8, - 249u8, 91u8, 59u8, 142u8, 75u8, 72u8, 104u8, 83u8, - 42u8, 176u8, 14u8, 147u8, 73u8, 73u8, 194u8, 203u8, - 143u8, 86u8, - ], - ) - } - #[doc = " Tracks current proposer set"] pub fn historical_rounds (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_metadata :: types :: RoundMetadata < runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "HistoricalRounds" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [69u8 , 172u8 , 38u8 , 240u8 , 139u8 , 118u8 , 160u8 , 111u8 , 95u8 , 143u8 , 196u8 , 94u8 , 149u8 , 125u8 , 176u8 , 142u8 , 53u8 , 141u8 , 70u8 , 132u8 , 71u8 , 23u8 , 174u8 , 221u8 , 72u8 , 69u8 , 14u8 , 191u8 , 225u8 , 43u8 , 67u8 , 79u8 ,]) - } - #[doc = " Tracks current proposer set"] pub fn historical_rounds_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_metadata :: types :: RoundMetadata < runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "HistoricalRounds", - Vec::new(), - [ - 69u8, 172u8, 38u8, 240u8, 139u8, 118u8, 160u8, - 111u8, 95u8, 143u8, 196u8, 94u8, 149u8, 125u8, - 176u8, 142u8, 53u8, 141u8, 70u8, 132u8, 71u8, 23u8, - 174u8, 221u8, 72u8, 69u8, 14u8, 191u8, 225u8, 43u8, - 67u8, 79u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] pub fn signature_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "SignatureThreshold", - vec![], - [ - 228u8, 213u8, 121u8, 182u8, 49u8, 44u8, 159u8, - 113u8, 209u8, 234u8, 107u8, 232u8, 192u8, 211u8, - 144u8, 183u8, 170u8, 37u8, 236u8, 48u8, 177u8, 7u8, - 62u8, 63u8, 39u8, 134u8, 158u8, 72u8, 52u8, 179u8, - 184u8, 217u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] pub fn keygen_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "KeygenThreshold", - vec![], - [ - 52u8, 253u8, 133u8, 19u8, 89u8, 89u8, 8u8, 246u8, - 87u8, 16u8, 72u8, 213u8, 230u8, 168u8, 223u8, 38u8, - 33u8, 83u8, 79u8, 28u8, 2u8, 92u8, 141u8, 197u8, - 73u8, 190u8, 6u8, 177u8, 240u8, 245u8, 119u8, 70u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] pub fn next_signature_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextSignatureThreshold", - vec![], - [ - 83u8, 91u8, 234u8, 198u8, 71u8, 140u8, 138u8, - 136u8, 26u8, 244u8, 93u8, 37u8, 141u8, 37u8, 91u8, - 236u8, 135u8, 137u8, 86u8, 35u8, 240u8, 136u8, - 144u8, 203u8, 230u8, 163u8, 66u8, 121u8, 18u8, - 128u8, 102u8, 124u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] pub fn next_keygen_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextKeygenThreshold", - vec![], - [ - 244u8, 125u8, 22u8, 245u8, 44u8, 192u8, 133u8, - 170u8, 115u8, 173u8, 56u8, 200u8, 83u8, 192u8, - 65u8, 213u8, 71u8, 28u8, 15u8, 200u8, 47u8, 103u8, - 215u8, 179u8, 6u8, 95u8, 214u8, 89u8, 223u8, 133u8, - 161u8, 191u8, - ], - ) - } - #[doc = " The pending signature threshold (i.e. the `t` in t-of-n)"] pub fn pending_signature_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "PendingSignatureThreshold", - vec![], - [ - 69u8, 20u8, 129u8, 76u8, 67u8, 68u8, 122u8, 151u8, - 39u8, 116u8, 35u8, 34u8, 96u8, 168u8, 39u8, 43u8, - 64u8, 185u8, 126u8, 145u8, 247u8, 150u8, 96u8, - 125u8, 109u8, 208u8, 254u8, 121u8, 227u8, 235u8, - 108u8, 169u8, - ], - ) - } - #[doc = " The pending signature threshold (i.e. the `n` in t-of-n)"] pub fn pending_keygen_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u16 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "PendingKeygenThreshold", - vec![], - [ - 80u8, 94u8, 41u8, 244u8, 115u8, 174u8, 75u8, 71u8, - 225u8, 122u8, 125u8, 141u8, 81u8, 69u8, 51u8, - 200u8, 129u8, 143u8, 14u8, 106u8, 228u8, 177u8, - 196u8, 167u8, 18u8, 70u8, 31u8, 137u8, 8u8, 233u8, - 249u8, 202u8, - ], - ) - } - #[doc = " The current authorities set"] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "Authorities", - vec![], - [ - 180u8, 103u8, 249u8, 204u8, 109u8, 0u8, 211u8, - 102u8, 59u8, 184u8, 31u8, 52u8, 140u8, 248u8, 10u8, - 127u8, 19u8, 50u8, 254u8, 116u8, 124u8, 5u8, 94u8, - 42u8, 9u8, 138u8, 159u8, 94u8, 26u8, 136u8, 236u8, - 141u8, - ], - ) - } - #[doc = " The current authority set id"] pub fn authority_set_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "AuthoritySetId", - vec![], - [ - 97u8, 57u8, 86u8, 112u8, 28u8, 206u8, 59u8, 216u8, - 109u8, 216u8, 119u8, 48u8, 31u8, 112u8, 189u8, - 19u8, 234u8, 38u8, 14u8, 212u8, 191u8, 203u8, 72u8, - 164u8, 131u8, 57u8, 77u8, 192u8, 182u8, 168u8, - 185u8, 114u8, - ], - ) - } - #[doc = " The next authority set id"] pub fn next_authority_set_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextAuthoritySetId", - vec![], - [ - 27u8, 226u8, 90u8, 171u8, 61u8, 158u8, 36u8, 48u8, - 88u8, 240u8, 189u8, 234u8, 176u8, 40u8, 78u8, - 239u8, 201u8, 189u8, 111u8, 160u8, 5u8, 232u8, - 196u8, 228u8, 19u8, 238u8, 185u8, 98u8, 73u8, - 207u8, 135u8, 20u8, - ], - ) - } - #[doc = " Authorities set scheduled to be used with the next session"] pub fn next_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextAuthorities", - vec![], - [ - 64u8, 174u8, 216u8, 177u8, 95u8, 133u8, 175u8, - 16u8, 171u8, 110u8, 7u8, 244u8, 111u8, 89u8, 57u8, - 46u8, 52u8, 28u8, 150u8, 117u8, 156u8, 47u8, 91u8, - 135u8, 196u8, 102u8, 46u8, 4u8, 224u8, 155u8, 83u8, - 36u8, - ], - ) - } - #[doc = " Accounts for the current authorities"] pub fn current_authorities_accounts (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "CurrentAuthoritiesAccounts", - vec![], - [ - 63u8, 248u8, 43u8, 115u8, 47u8, 190u8, 73u8, 201u8, - 191u8, 159u8, 118u8, 31u8, 140u8, 144u8, 242u8, - 207u8, 239u8, 39u8, 67u8, 163u8, 111u8, 104u8, - 173u8, 254u8, 214u8, 226u8, 133u8, 239u8, 31u8, - 134u8, 124u8, 245u8, - ], - ) - } - #[doc = " Authority account ids scheduled for the next session"] pub fn next_authorities_accounts (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextAuthoritiesAccounts", - vec![], - [ - 189u8, 126u8, 179u8, 166u8, 252u8, 67u8, 141u8, - 167u8, 7u8, 113u8, 103u8, 25u8, 152u8, 171u8, 26u8, - 0u8, 151u8, 68u8, 167u8, 156u8, 225u8, 66u8, 87u8, - 0u8, 119u8, 29u8, 226u8, 16u8, 176u8, 148u8, 153u8, - 158u8, - ], - ) - } - #[doc = " Authority account ids scheduled for the next session"] pub fn account_to_authority (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "AccountToAuthority" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [153u8 , 156u8 , 238u8 , 107u8 , 10u8 , 129u8 , 109u8 , 32u8 , 111u8 , 45u8 , 223u8 , 84u8 , 30u8 , 115u8 , 139u8 , 254u8 , 58u8 , 194u8 , 205u8 , 73u8 , 249u8 , 102u8 , 217u8 , 125u8 , 137u8 , 206u8 , 87u8 , 34u8 , 100u8 , 45u8 , 223u8 , 252u8 ,]) - } - #[doc = " Authority account ids scheduled for the next session"] pub fn account_to_authority_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "AccountToAuthority", - Vec::new(), - [ - 153u8, 156u8, 238u8, 107u8, 10u8, 129u8, 109u8, - 32u8, 111u8, 45u8, 223u8, 84u8, 30u8, 115u8, 139u8, - 254u8, 58u8, 194u8, 205u8, 73u8, 249u8, 102u8, - 217u8, 125u8, 137u8, 206u8, 87u8, 34u8, 100u8, - 45u8, 223u8, 252u8, - ], - ) - } - #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: MisbehaviourType > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > , _2 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "MisbehaviourReports" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow () , _2 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [2u8 , 14u8 , 23u8 , 57u8 , 168u8 , 205u8 , 55u8 , 220u8 , 203u8 , 236u8 , 126u8 , 46u8 , 31u8 , 215u8 , 25u8 , 163u8 , 138u8 , 62u8 , 188u8 , 146u8 , 131u8 , 165u8 , 100u8 , 50u8 , 66u8 , 94u8 , 236u8 , 25u8 , 147u8 , 11u8 , 231u8 , 182u8 ,]) - } - #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "MisbehaviourReports", - Vec::new(), - [ - 2u8, 14u8, 23u8, 57u8, 168u8, 205u8, 55u8, 220u8, - 203u8, 236u8, 126u8, 46u8, 31u8, 215u8, 25u8, - 163u8, 138u8, 62u8, 188u8, 146u8, 131u8, 165u8, - 100u8, 50u8, 66u8, 94u8, 236u8, 25u8, 147u8, 11u8, - 231u8, 182u8, - ], - ) - } - #[doc = " Tracks authority reputations"] pub fn authority_reputations (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "AuthorityReputations" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [232u8 , 88u8 , 120u8 , 58u8 , 141u8 , 39u8 , 76u8 , 249u8 , 250u8 , 154u8 , 173u8 , 127u8 , 163u8 , 70u8 , 186u8 , 193u8 , 210u8 , 43u8 , 225u8 , 11u8 , 254u8 , 208u8 , 46u8 , 87u8 , 66u8 , 21u8 , 111u8 , 228u8 , 54u8 , 200u8 , 46u8 , 2u8 ,]) - } - #[doc = " Tracks authority reputations"] pub fn authority_reputations_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "AuthorityReputations", - Vec::new(), - [ - 232u8, 88u8, 120u8, 58u8, 141u8, 39u8, 76u8, 249u8, - 250u8, 154u8, 173u8, 127u8, 163u8, 70u8, 186u8, - 193u8, 210u8, 43u8, 225u8, 11u8, 254u8, 208u8, - 46u8, 87u8, 66u8, 21u8, 111u8, 228u8, 54u8, 200u8, - 46u8, 2u8, - ], - ) - } - #[doc = " Tracks jailed authorities for keygen by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_keygen_authorities (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "JailedKeygenAuthorities" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [59u8 , 86u8 , 235u8 , 7u8 , 94u8 , 26u8 , 253u8 , 179u8 , 186u8 , 33u8 , 6u8 , 242u8 , 46u8 , 174u8 , 254u8 , 118u8 , 92u8 , 208u8 , 166u8 , 181u8 , 45u8 , 137u8 , 41u8 , 87u8 , 109u8 , 37u8 , 171u8 , 59u8 , 169u8 , 48u8 , 78u8 , 107u8 ,]) - } - #[doc = " Tracks jailed authorities for keygen by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_keygen_authorities_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "JailedKeygenAuthorities", - Vec::new(), - [ - 59u8, 86u8, 235u8, 7u8, 94u8, 26u8, 253u8, 179u8, - 186u8, 33u8, 6u8, 242u8, 46u8, 174u8, 254u8, 118u8, - 92u8, 208u8, 166u8, 181u8, 45u8, 137u8, 41u8, 87u8, - 109u8, 37u8, 171u8, 59u8, 169u8, 48u8, 78u8, 107u8, - ], - ) - } - #[doc = " Tracks jailed authorities for signing by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_signing_authorities (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKG" , "JailedSigningAuthorities" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [32u8 , 100u8 , 53u8 , 234u8 , 245u8 , 105u8 , 136u8 , 132u8 , 225u8 , 219u8 , 138u8 , 165u8 , 124u8 , 174u8 , 201u8 , 219u8 , 255u8 , 214u8 , 104u8 , 204u8 , 14u8 , 32u8 , 181u8 , 79u8 , 135u8 , 172u8 , 26u8 , 1u8 , 115u8 , 98u8 , 110u8 , 89u8 ,]) - } - #[doc = " Tracks jailed authorities for signing by mapping"] - #[doc = " to the block number when the authority was last jailed"] pub fn jailed_signing_authorities_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "JailedSigningAuthorities", - Vec::new(), - [ - 32u8, 100u8, 53u8, 234u8, 245u8, 105u8, 136u8, - 132u8, 225u8, 219u8, 138u8, 165u8, 124u8, 174u8, - 201u8, 219u8, 255u8, 214u8, 104u8, 204u8, 14u8, - 32u8, 181u8, 79u8, 135u8, 172u8, 26u8, 1u8, 115u8, - 98u8, 110u8, 89u8, - ], - ) - } - #[doc = " The current best authorities of the active keygen set"] pub fn best_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "BestAuthorities", - vec![], - [ - 229u8, 47u8, 85u8, 153u8, 16u8, 203u8, 19u8, 51u8, - 70u8, 158u8, 223u8, 231u8, 218u8, 68u8, 216u8, - 119u8, 55u8, 157u8, 50u8, 82u8, 242u8, 13u8, 185u8, - 188u8, 35u8, 85u8, 230u8, 213u8, 110u8, 27u8, 38u8, - 86u8, - ], - ) - } - #[doc = " The next best authorities of the active keygen set"] pub fn next_best_authorities (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "NextBestAuthorities", - vec![], - [ - 243u8, 43u8, 60u8, 70u8, 51u8, 232u8, 171u8, 95u8, - 25u8, 228u8, 57u8, 221u8, 51u8, 115u8, 111u8, 19u8, - 140u8, 179u8, 245u8, 243u8, 240u8, 145u8, 59u8, - 63u8, 75u8, 70u8, 105u8, 22u8, 195u8, 145u8, 47u8, - 68u8, - ], - ) - } - #[doc = " The last BlockNumber at which the session rotation happened"] pub fn last_session_rotation_block (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKG", - "LastSessionRotationBlock", - vec![], - [ - 221u8, 138u8, 110u8, 204u8, 255u8, 254u8, 229u8, - 185u8, 225u8, 170u8, 60u8, 234u8, 12u8, 6u8, 235u8, - 76u8, 245u8, 206u8, 254u8, 229u8, 239u8, 140u8, - 111u8, 58u8, 254u8, 131u8, 255u8, 112u8, 88u8, - 134u8, 241u8, 86u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Percentage session should have progressed for refresh to begin"] - pub fn refresh_delay( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "RefreshDelay", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Number of blocks of cooldown after unsigned transaction is included."] - #[doc = ""] - #[doc = " This ensures that we only accept unsigned transactions once, every `UnsignedInterval`"] - #[doc = " blocks."] - pub fn unsigned_interval( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "UnsignedInterval", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "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, - ], - ) - } - #[doc = " Session length helper allowing to query session length across runtime upgrades."] - pub fn session_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "SessionPeriod", - [ - 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 = " MaxLength for keys"] - pub fn max_key_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "MaxKeyLength", - [ - 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 = " MaxLength for signature"] - pub fn max_signature_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "MaxSignatureLength", - [ - 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 = " Max authorities to store"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "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 = " Max reporters to store"] - pub fn max_reporters( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKG", - "MaxReporters", - [ - 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 dkg_proposals { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetThreshold { - pub threshold: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - pub method: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WhitelistChain { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddProposer { - pub native_account: ::subxt::utils::AccountId32, - pub external_account: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveProposer { - pub v: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AcknowledgeProposal { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub prop: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RejectProposal { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub prop: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EvalVoteState { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub prop: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Sets the vote threshold for proposals."] - #[doc = ""] - #[doc = "This threshold is used to determine how many votes are required"] - #[doc = "before a proposal is executed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn set_threshold( - &self, - threshold: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "set_threshold", - SetThreshold { threshold }, - [ - 97u8, 156u8, 187u8, 176u8, 219u8, 218u8, 220u8, - 12u8, 153u8, 121u8, 167u8, 142u8, 88u8, 249u8, - 99u8, 44u8, 183u8, 26u8, 130u8, 71u8, 228u8, 33u8, - 233u8, 203u8, 93u8, 138u8, 130u8, 146u8, 242u8, - 169u8, 196u8, 225u8, - ], - ) - } - #[doc = "Stores a method name on chain under an associated resource ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) write"] - #[doc = "# "] - pub fn set_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - method: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "set_resource", - SetResource { id, method }, - [ - 72u8, 53u8, 0u8, 252u8, 156u8, 111u8, 215u8, 92u8, - 184u8, 69u8, 64u8, 26u8, 251u8, 229u8, 240u8, - 155u8, 243u8, 21u8, 7u8, 57u8, 14u8, 251u8, 44u8, - 55u8, 238u8, 91u8, 134u8, 175u8, 239u8, 76u8, - 181u8, 17u8, - ], - ) - } - #[doc = "Removes a resource ID from the resource mapping."] - #[doc = ""] - #[doc = "After this call, bridge transfers with the associated resource ID"] - #[doc = "will be rejected."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) removal"] - #[doc = "# "] - pub fn remove_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "remove_resource", - RemoveResource { id }, - [ - 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, - 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, - 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, - 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, - 172u8, 92u8, 67u8, - ], - ) - } - #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn whitelist_chain( - &self, - chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "whitelist_chain", - WhitelistChain { chain_id }, - [ - 143u8, 172u8, 215u8, 87u8, 23u8, 86u8, 95u8, 116u8, - 205u8, 140u8, 58u8, 104u8, 6u8, 162u8, 28u8, 115u8, - 64u8, 94u8, 184u8, 169u8, 225u8, 28u8, 180u8, 13u8, - 242u8, 35u8, 58u8, 114u8, 120u8, 220u8, 48u8, - 162u8, - ], - ) - } - #[doc = "Adds a new proposer to the proposer set."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn add_proposer( - &self, - native_account: ::subxt::utils::AccountId32, - external_account: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "add_proposer", - AddProposer { - native_account, - external_account, - }, - [ - 160u8, 92u8, 87u8, 9u8, 152u8, 22u8, 53u8, 235u8, - 151u8, 20u8, 251u8, 54u8, 150u8, 195u8, 177u8, - 181u8, 190u8, 9u8, 209u8, 246u8, 99u8, 150u8, 40u8, - 77u8, 191u8, 175u8, 100u8, 75u8, 5u8, 244u8, 184u8, - 122u8, - ], - ) - } - #[doc = "Removes an existing proposer from the set."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and removal"] - #[doc = "# "] - pub fn remove_proposer( - &self, - v: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "remove_proposer", - RemoveProposer { v }, - [ - 21u8, 136u8, 197u8, 105u8, 101u8, 203u8, 64u8, - 170u8, 57u8, 37u8, 253u8, 246u8, 124u8, 127u8, - 131u8, 73u8, 55u8, 218u8, 160u8, 22u8, 232u8, - 198u8, 208u8, 166u8, 73u8, 24u8, 234u8, 117u8, - 17u8, 232u8, 72u8, 234u8, - ], - ) - } - #[doc = "Commits a vote in favour of the provided proposal."] - #[doc = ""] - #[doc = "If a proposal with the given nonce and source chain ID does not"] - #[doc = "already exist, it will be created with an initial vote in favour"] - #[doc = "from the caller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn acknowledge_proposal( - &self, - nonce: runtime_types::webb_proposals::nonce::Nonce, - src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - r_id: runtime_types::webb_proposals::header::ResourceId, - prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "acknowledge_proposal", - AcknowledgeProposal { - nonce, - src_chain_id, - r_id, - prop, - }, - [ - 31u8, 67u8, 110u8, 145u8, 53u8, 100u8, 247u8, 82u8, - 251u8, 74u8, 218u8, 218u8, 114u8, 49u8, 142u8, - 28u8, 45u8, 206u8, 225u8, 148u8, 179u8, 20u8, 78u8, - 100u8, 101u8, 30u8, 25u8, 22u8, 193u8, 136u8, 55u8, - 252u8, - ], - ) - } - #[doc = "Commits a vote against a provided proposal."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Fixed, since execution of proposal should not be included"] - #[doc = "# "] - pub fn reject_proposal( - &self, - nonce: runtime_types::webb_proposals::nonce::Nonce, - src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - r_id: runtime_types::webb_proposals::header::ResourceId, - prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "reject_proposal", - RejectProposal { - nonce, - src_chain_id, - r_id, - prop, - }, - [ - 158u8, 156u8, 103u8, 19u8, 240u8, 48u8, 75u8, 64u8, - 66u8, 132u8, 161u8, 201u8, 1u8, 181u8, 33u8, 66u8, - 186u8, 204u8, 192u8, 195u8, 89u8, 14u8, 84u8, 63u8, - 8u8, 143u8, 173u8, 40u8, 35u8, 177u8, 154u8, 119u8, - ], - ) - } - #[doc = "Evaluate the state of a proposal given the current vote threshold."] - #[doc = ""] - #[doc = "A proposal with enough votes will be either executed or cancelled,"] - #[doc = "and the status will be updated accordingly."] - #[doc = ""] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn eval_vote_state( - &self, - nonce: runtime_types::webb_proposals::nonce::Nonce, - src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposals", - "eval_vote_state", - EvalVoteState { - nonce, - src_chain_id, - prop, - }, - [ - 36u8, 156u8, 102u8, 200u8, 249u8, 134u8, 246u8, - 192u8, 136u8, 39u8, 236u8, 150u8, 144u8, 115u8, - 123u8, 242u8, 11u8, 209u8, 99u8, 95u8, 113u8, - 151u8, 76u8, 200u8, 60u8, 237u8, 215u8, 96u8, 31u8, - 72u8, 140u8, 70u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_dkg_proposals::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Vote threshold has changed (new_threshold)"] - pub struct ProposerThresholdChanged { - pub new_threshold: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposerThresholdChanged { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposerThresholdChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Chain now available for transfers (chain_id)"] - pub struct ChainWhitelisted { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - impl ::subxt::events::StaticEvent for ChainWhitelisted { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ChainWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Proposer added to set"] - pub struct ProposerAdded { - pub proposer_id: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ProposerAdded { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposerAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Proposer removed from set"] - pub struct ProposerRemoved { - pub proposer_id: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ProposerRemoved { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposerRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Vote submitted in favour of proposal"] - pub struct VoteFor { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for VoteFor { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "VoteFor"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Vot submitted against proposal"] - pub struct VoteAgainst { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for VoteAgainst { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "VoteAgainst"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Voting successful for a proposal"] - pub struct ProposalApproved { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalApproved { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalApproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Voting rejected a proposal"] - pub struct ProposalRejected { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalRejected { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalRejected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Execution of call succeeded"] - pub struct ProposalSucceeded { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalSucceeded { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalSucceeded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Execution of call failed"] - pub struct ProposalFailed { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalFailed { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Proposers have been reset"] - pub struct AuthorityProposersReset { - pub proposers: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for AuthorityProposersReset { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "AuthorityProposersReset"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: nonce :: Nonce > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [153u8 , 41u8 , 103u8 , 222u8 , 96u8 , 64u8 , 161u8 , 162u8 , 39u8 , 95u8 , 154u8 , 67u8 , 167u8 , 127u8 , 163u8 , 149u8 , 38u8 , 175u8 , 245u8 , 223u8 , 182u8 , 86u8 , 163u8 , 10u8 , 143u8 , 190u8 , 137u8 , 192u8 , 227u8 , 12u8 , 135u8 , 227u8 ,]) - } - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: nonce :: Nonce > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "ChainNonces", - Vec::new(), - [ - 153u8, 41u8, 103u8, 222u8, 96u8, 64u8, 161u8, - 162u8, 39u8, 95u8, 154u8, 67u8, 167u8, 127u8, - 163u8, 149u8, 38u8, 175u8, 245u8, 223u8, 182u8, - 86u8, 163u8, 10u8, 143u8, 190u8, 137u8, 192u8, - 227u8, 12u8, 135u8, 227u8, - ], - ) - } - #[doc = " Number of votes required for a proposal to execute"] pub fn proposer_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "ProposerThreshold", - vec![], - [ - 129u8, 174u8, 171u8, 36u8, 172u8, 108u8, 139u8, - 176u8, 152u8, 127u8, 52u8, 68u8, 109u8, 238u8, - 50u8, 176u8, 49u8, 78u8, 240u8, 36u8, 94u8, 247u8, - 215u8, 82u8, 109u8, 10u8, 81u8, 156u8, 14u8, 247u8, - 39u8, 154u8, - ], - ) - } - #[doc = " Proposer Set Update Proposal Nonce"] pub fn proposer_set_update_proposal_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "ProposerSetUpdateProposalNonce", - vec![], - [ - 118u8, 52u8, 184u8, 159u8, 206u8, 28u8, 122u8, - 219u8, 168u8, 206u8, 143u8, 16u8, 128u8, 31u8, - 254u8, 40u8, 45u8, 92u8, 183u8, 46u8, 80u8, 19u8, - 131u8, 6u8, 26u8, 105u8, 81u8, 174u8, 10u8, 154u8, - 186u8, 157u8, - ], - ) - } - #[doc = " Tracks current proposer set"] pub fn proposers (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "Proposers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [163u8 , 252u8 , 227u8 , 131u8 , 254u8 , 6u8 , 64u8 , 191u8 , 158u8 , 117u8 , 69u8 , 137u8 , 184u8 , 85u8 , 112u8 , 252u8 , 137u8 , 30u8 , 24u8 , 87u8 , 55u8 , 82u8 , 22u8 , 241u8 , 124u8 , 222u8 , 155u8 , 60u8 , 123u8 , 5u8 , 191u8 , 79u8 ,]) - } - #[doc = " Tracks current proposer set"] pub fn proposers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "Proposers", - Vec::new(), - [ - 163u8, 252u8, 227u8, 131u8, 254u8, 6u8, 64u8, - 191u8, 158u8, 117u8, 69u8, 137u8, 184u8, 85u8, - 112u8, 252u8, 137u8, 30u8, 24u8, 87u8, 55u8, 82u8, - 22u8, 241u8, 124u8, 222u8, 155u8, 60u8, 123u8, 5u8, - 191u8, 79u8, - ], - ) - } - #[doc = " Tracks current proposer set external accounts"] - #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] pub fn external_proposer_accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "ExternalProposerAccounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [20u8 , 120u8 , 130u8 , 198u8 , 23u8 , 142u8 , 44u8 , 2u8 , 227u8 , 81u8 , 19u8 , 161u8 , 131u8 , 103u8 , 182u8 , 14u8 , 83u8 , 59u8 , 88u8 , 35u8 , 193u8 , 118u8 , 232u8 , 48u8 , 119u8 , 28u8 , 143u8 , 242u8 , 168u8 , 76u8 , 194u8 , 117u8 ,]) - } - #[doc = " Tracks current proposer set external accounts"] - #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] pub fn external_proposer_accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "ExternalProposerAccounts", - Vec::new(), - [ - 20u8, 120u8, 130u8, 198u8, 23u8, 142u8, 44u8, 2u8, - 227u8, 81u8, 19u8, 161u8, 131u8, 103u8, 182u8, - 14u8, 83u8, 59u8, 88u8, 35u8, 193u8, 118u8, 232u8, - 48u8, 119u8, 28u8, 143u8, 242u8, 168u8, 76u8, - 194u8, 117u8, - ], - ) - } - #[doc = " Tracks the authorities that are proposers so we can properly update the proposer set"] - #[doc = " across sessions and authority changes."] pub fn authority_proposers (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "AuthorityProposers", - vec![], - [ - 13u8, 39u8, 119u8, 156u8, 19u8, 173u8, 56u8, 139u8, - 217u8, 25u8, 136u8, 183u8, 232u8, 196u8, 58u8, - 202u8, 155u8, 60u8, 26u8, 153u8, 218u8, 72u8, - 108u8, 133u8, 30u8, 11u8, 9u8, 41u8, 145u8, 129u8, - 200u8, 248u8, - ], - ) - } - #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "ExternalAuthorityProposerAccounts", - vec![], - [ - 139u8, 28u8, 211u8, 94u8, 127u8, 243u8, 82u8, - 237u8, 70u8, 205u8, 243u8, 167u8, 161u8, 98u8, - 62u8, 122u8, 118u8, 152u8, 200u8, 230u8, 35u8, - 206u8, 120u8, 128u8, 44u8, 216u8, 113u8, 255u8, - 110u8, 75u8, 108u8, 1u8, - ], - ) - } - #[doc = " Number of proposers in set"] pub fn proposer_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "ProposerCount", - vec![], - [ - 150u8, 116u8, 125u8, 20u8, 135u8, 11u8, 47u8, - 155u8, 87u8, 113u8, 44u8, 139u8, 67u8, 74u8, 92u8, - 113u8, 173u8, 62u8, 207u8, 79u8, 125u8, 109u8, - 170u8, 166u8, 55u8, 85u8, 3u8, 32u8, 155u8, 45u8, - 236u8, 253u8, - ], - ) - } - #[doc = " All known proposals."] - #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] - #[doc = " unique."] pub fn votes (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_proposals :: types :: ProposalVotes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: MaxVotes > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [75u8 , 254u8 , 1u8 , 75u8 , 188u8 , 119u8 , 42u8 , 136u8 , 232u8 , 20u8 , 216u8 , 3u8 , 162u8 , 140u8 , 72u8 , 228u8 , 161u8 , 130u8 , 132u8 , 248u8 , 72u8 , 10u8 , 213u8 , 163u8 , 212u8 , 79u8 , 245u8 , 46u8 , 169u8 , 71u8 , 165u8 , 10u8 ,]) - } - #[doc = " All known proposals."] - #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] - #[doc = " unique."] pub fn votes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_dkg_proposals :: types :: ProposalVotes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: MaxVotes > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "Votes", - Vec::new(), - [ - 75u8, 254u8, 1u8, 75u8, 188u8, 119u8, 42u8, 136u8, - 232u8, 20u8, 216u8, 3u8, 162u8, 140u8, 72u8, 228u8, - 161u8, 130u8, 132u8, 248u8, 72u8, 10u8, 213u8, - 163u8, 212u8, 79u8, 245u8, 46u8, 169u8, 71u8, - 165u8, 10u8, - ], - ) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposals" , "Resources" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [137u8 , 242u8 , 218u8 , 244u8 , 20u8 , 237u8 , 53u8 , 254u8 , 119u8 , 30u8 , 2u8 , 81u8 , 72u8 , 214u8 , 164u8 , 126u8 , 73u8 , 252u8 , 191u8 , 64u8 , 154u8 , 248u8 , 124u8 , 6u8 , 200u8 , 218u8 , 221u8 , 35u8 , 15u8 , 129u8 , 65u8 , 182u8 ,]) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposals", - "Resources", - Vec::new(), - [ - 137u8, 242u8, 218u8, 244u8, 20u8, 237u8, 53u8, - 254u8, 119u8, 30u8, 2u8, 81u8, 72u8, 214u8, 164u8, - 126u8, 73u8, 252u8, 191u8, 64u8, 154u8, 248u8, - 124u8, 6u8, 200u8, 218u8, 221u8, 35u8, 15u8, 129u8, - 65u8, 182u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The identifier for this chain."] - #[doc = " This must be unique and must not collide with existing IDs within a"] - #[doc = " set of bridged chains."] - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::webb_proposals::header::TypedChainId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "ChainIdentifier", - [ - 80u8, 245u8, 165u8, 63u8, 83u8, 75u8, 120u8, 198u8, - 51u8, 48u8, 231u8, 27u8, 18u8, 145u8, 145u8, 198u8, - 211u8, 221u8, 19u8, 170u8, 68u8, 87u8, 79u8, 5u8, - 204u8, 71u8, 188u8, 140u8, 38u8, 17u8, 107u8, - 146u8, - ], - ) - } - pub fn proposal_lifetime( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "ProposalLifetime", - [ - 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 session period"] - pub fn period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "Period", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The max votes to store for for and against"] - pub fn max_votes( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "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 max resources that can be stored in storage"] - pub fn max_resources( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "MaxResources", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The max authority proposers that can be stored in storage"] - pub fn max_authority_proposers( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "MaxAuthorityProposers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The max external proposer accounts that can be stored in storage"] - pub fn max_external_proposer_accounts( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposals", - "MaxExternalProposerAccounts", - [ - 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 dkg_proposal_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitSignedProposals { - pub props: ::std::vec::Vec< - runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSubmitUnsignedProposal { - pub prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn submit_signed_proposals( - &self, - props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposalHandler", - "submit_signed_proposals", - SubmitSignedProposals { props }, - [ - 40u8, 38u8, 237u8, 6u8, 145u8, 127u8, 224u8, 153u8, - 97u8, 77u8, 26u8, 198u8, 143u8, 255u8, 229u8, - 178u8, 248u8, 154u8, 41u8, 154u8, 186u8, 56u8, - 74u8, 137u8, 120u8, 36u8, 89u8, 224u8, 224u8, - 189u8, 97u8, 99u8, - ], - ) - } - #[doc = "Force submit an unsigned proposal to the DKG"] - #[doc = ""] - #[doc = "There are certain proposals we'd like to be proposable only"] - #[doc = "through root actions. The currently supported proposals are"] - #[doc = "\t1. Updating"] - pub fn force_submit_unsigned_proposal( - &self, - prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "DKGProposalHandler", - "force_submit_unsigned_proposal", - ForceSubmitUnsignedProposal { prop }, - [ - 213u8, 166u8, 49u8, 2u8, 146u8, 30u8, 105u8, 213u8, - 119u8, 50u8, 83u8, 22u8, 234u8, 221u8, 92u8, 156u8, - 120u8, 5u8, 213u8, 174u8, 17u8, 129u8, 49u8, 196u8, - 36u8, 52u8, 59u8, 100u8, 21u8, 204u8, 79u8, 43u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_dkg_proposal_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] - pub struct InvalidProposalSignature { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub data: ::std::vec::Vec<::core::primitive::u8>, - pub invalid_signature: ::std::vec::Vec<::core::primitive::u8>, - pub expected_public_key: ::core::option::Option< - ::std::vec::Vec<::core::primitive::u8>, - >, - pub actual_public_key: ::core::option::Option< - ::std::vec::Vec<::core::primitive::u8>, - >, - } - impl ::subxt::events::StaticEvent for InvalidProposalSignature { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "InvalidProposalSignature"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] - pub struct ProposalAdded { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } - impl ::subxt::events::StaticEvent for ProposalAdded { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "ProposalAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] - pub struct ProposalRemoved { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub expired : :: core :: primitive :: bool , } - impl ::subxt::events::StaticEvent for ProposalRemoved { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "ProposalRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] - pub struct ProposalSigned { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } - impl ::subxt::events::StaticEvent for ProposalSigned { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "ProposalSigned"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposalHandler" , "UnsignedProposalQueue" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [180u8 , 168u8 , 253u8 , 235u8 , 22u8 , 205u8 , 104u8 , 231u8 , 206u8 , 162u8 , 69u8 , 53u8 , 120u8 , 242u8 , 94u8 , 192u8 , 63u8 , 147u8 , 54u8 , 66u8 , 54u8 , 195u8 , 19u8 , 252u8 , 129u8 , 118u8 , 114u8 , 37u8 , 231u8 , 137u8 , 66u8 , 228u8 ,]) - } - #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposalHandler", - "UnsignedProposalQueue", - Vec::new(), - [ - 180u8, 168u8, 253u8, 235u8, 22u8, 205u8, 104u8, - 231u8, 206u8, 162u8, 69u8, 53u8, 120u8, 242u8, - 94u8, 192u8, 63u8, 147u8, 54u8, 66u8, 54u8, 195u8, - 19u8, 252u8, 129u8, 118u8, 114u8, 37u8, 231u8, - 137u8, 66u8, 228u8, - ], - ) - } - #[doc = " Defines the block when next unsigned transaction will be accepted."] - #[doc = ""] - #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] - #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] - #[doc = " This storage entry defines when new transaction is going to be accepted."] pub fn next_unsigned_at (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposalHandler", - "NextUnsignedAt", - vec![], - [ - 175u8, 176u8, 254u8, 20u8, 27u8, 31u8, 70u8, 46u8, - 201u8, 118u8, 22u8, 200u8, 95u8, 116u8, 223u8, - 63u8, 191u8, 85u8, 55u8, 21u8, 70u8, 24u8, 225u8, - 203u8, 66u8, 213u8, 94u8, 229u8, 234u8, 223u8, - 255u8, 28u8, - ], - ) - } - #[doc = " All signed proposals."] pub fn signed_proposals (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("DKGProposalHandler" , "SignedProposals" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [40u8 , 252u8 , 222u8 , 220u8 , 87u8 , 195u8 , 206u8 , 177u8 , 252u8 , 151u8 , 163u8 , 130u8 , 212u8 , 57u8 , 250u8 , 155u8 , 16u8 , 65u8 , 94u8 , 201u8 , 52u8 , 174u8 , 75u8 , 9u8 , 185u8 , 240u8 , 218u8 , 241u8 , 208u8 , 36u8 , 17u8 , 196u8 ,]) - } - #[doc = " All signed proposals."] pub fn signed_proposals_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "DKGProposalHandler", - "SignedProposals", - Vec::new(), - [ - 40u8, 252u8, 222u8, 220u8, 87u8, 195u8, 206u8, - 177u8, 252u8, 151u8, 163u8, 130u8, 212u8, 57u8, - 250u8, 155u8, 16u8, 65u8, 94u8, 201u8, 52u8, 174u8, - 75u8, 9u8, 185u8, 240u8, 218u8, 241u8, 208u8, 36u8, - 17u8, 196u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max number of signed proposal submissions per batch;"] - pub fn max_submissions_per_batch( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposalHandler", - "MaxSubmissionsPerBatch", - [ - 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, - ], - ) - } - #[doc = " Max blocks to store an unsigned proposal"] - pub fn unsigned_proposal_expiry( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposalHandler", - "UnsignedProposalExpiry", - [ - 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 = " Max length of a proposal"] - pub fn max_proposal_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "DKGProposalHandler", - "MaxProposalLength", - [ - 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 bridge_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub bridge_index: ::core::primitive::u32, - pub info: - runtime_types::pallet_bridge_registry::types::BridgeInfo, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceResetIndices { - pub resource_ids: ::std::vec::Vec< - runtime_types::webb_proposals::header::ResourceId, - >, - pub bridge_index: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `ResourceSet` if successful."] - pub fn set_metadata( - &self, - bridge_index: ::core::primitive::u32, - info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "BridgeRegistry", - "set_metadata", - SetMetadata { bridge_index, info }, - [ - 72u8, 84u8, 159u8, 244u8, 136u8, 19u8, 190u8, - 187u8, 185u8, 86u8, 180u8, 197u8, 241u8, 97u8, - 235u8, 39u8, 114u8, 90u8, 112u8, 70u8, 93u8, 230u8, - 236u8, 25u8, 109u8, 152u8, 155u8, 107u8, 160u8, - 183u8, 137u8, 242u8, - ], - ) - } - pub fn force_reset_indices( - &self, - resource_ids: ::std::vec::Vec< - runtime_types::webb_proposals::header::ResourceId, - >, - bridge_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "BridgeRegistry", - "force_reset_indices", - ForceResetIndices { - resource_ids, - bridge_index, - }, - [ - 162u8, 5u8, 147u8, 58u8, 45u8, 163u8, 101u8, 251u8, - 103u8, 30u8, 134u8, 106u8, 142u8, 117u8, 183u8, - 108u8, 14u8, 208u8, 208u8, 82u8, 155u8, 61u8, 61u8, - 62u8, 81u8, 181u8, 88u8, 220u8, 122u8, 176u8, 50u8, - 29u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bridge_registry::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Storage for next bridge index"] pub fn next_bridge_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BridgeRegistry", - "NextBridgeIndex", - vec![], - [ - 47u8, 238u8, 32u8, 185u8, 116u8, 5u8, 125u8, 28u8, - 39u8, 110u8, 178u8, 155u8, 45u8, 72u8, 248u8, - 161u8, 75u8, 161u8, 207u8, 101u8, 55u8, 226u8, - 233u8, 233u8, 14u8, 62u8, 168u8, 20u8, 146u8, 8u8, - 152u8, 222u8, - ], - ) - } - #[doc = " Storage for map of all bridges"] pub fn bridges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BridgeRegistry" , "Bridges" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [1u8 , 112u8 , 75u8 , 147u8 , 69u8 , 209u8 , 218u8 , 149u8 , 213u8 , 112u8 , 94u8 , 202u8 , 240u8 , 100u8 , 216u8 , 77u8 , 14u8 , 111u8 , 54u8 , 86u8 , 79u8 , 109u8 , 31u8 , 34u8 , 31u8 , 24u8 , 30u8 , 64u8 , 29u8 , 29u8 , 64u8 , 3u8 ,]) - } - #[doc = " Storage for map of all bridges"] pub fn bridges_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BridgeRegistry", - "Bridges", - Vec::new(), - [ - 1u8, 112u8, 75u8, 147u8, 69u8, 209u8, 218u8, 149u8, - 213u8, 112u8, 94u8, 202u8, 240u8, 100u8, 216u8, - 77u8, 14u8, 111u8, 54u8, 86u8, 79u8, 109u8, 31u8, - 34u8, 31u8, 24u8, 30u8, 64u8, 29u8, 29u8, 64u8, - 3u8, - ], - ) - } - #[doc = " Mapping of resource to bridge index"] pub fn resource_to_bridge_index (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BridgeRegistry" , "ResourceToBridgeIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [130u8 , 216u8 , 179u8 , 142u8 , 98u8 , 4u8 , 178u8 , 25u8 , 179u8 , 57u8 , 140u8 , 220u8 , 202u8 , 186u8 , 74u8 , 115u8 , 145u8 , 63u8 , 69u8 , 239u8 , 102u8 , 91u8 , 1u8 , 43u8 , 46u8 , 165u8 , 18u8 , 191u8 , 7u8 , 97u8 , 84u8 , 111u8 ,]) - } - #[doc = " Mapping of resource to bridge index"] pub fn resource_to_bridge_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BridgeRegistry", - "ResourceToBridgeIndex", - Vec::new(), - [ - 130u8, 216u8, 179u8, 142u8, 98u8, 4u8, 178u8, 25u8, - 179u8, 57u8, 140u8, 220u8, 202u8, 186u8, 74u8, - 115u8, 145u8, 63u8, 69u8, 239u8, 102u8, 91u8, 1u8, - 43u8, 46u8, 165u8, 18u8, 191u8, 7u8, 97u8, 84u8, - 111u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of additional fields that may be stored in a bridge's metadata. Needed to"] - #[doc = " bound the I/O required to access an identity, but can be pretty high."] - pub fn max_additional_fields( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "BridgeRegistry", - "MaxAdditionalFields", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum number of resources that may be stored in a bridge. This is not to be confused"] - #[doc = " with the actual maximum supported by the bridge. Needed to bound the I/O"] - #[doc = " required to access a metadata object, but can be pretty high."] - pub fn max_resources( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "BridgeRegistry", - "MaxResources", - [ - 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 = " Max length of a proposal"] - pub fn max_proposal_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "BridgeRegistry", - "MaxProposalLength", - [ - 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 indices { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Claim { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Free { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Freeze { - pub index: ::core::primitive::u32, - } - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn claim( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "claim", - Claim { index }, - [ - 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, - 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, - 88u8, 196u8, 189u8, 244u8, 18u8, 233u8, 37u8, - 228u8, 248u8, 76u8, 175u8, 212u8, 233u8, 238u8, - 203u8, 162u8, 68u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] - pub fn transfer( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "transfer", - Transfer { new, index }, - [ - 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, - 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, - 154u8, 27u8, 34u8, 205u8, 188u8, 10u8, 169u8, - 203u8, 39u8, 2u8, 236u8, 181u8, 162u8, 115u8, - 254u8, 42u8, 28u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn free( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "free", - Free { index }, - [ - 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, - 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, - 74u8, 203u8, 235u8, 138u8, 255u8, 27u8, 163u8, - 71u8, 254u8, 217u8, 6u8, 208u8, 202u8, 204u8, - 238u8, 70u8, 126u8, 252u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] - pub fn force_transfer( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "force_transfer", - ForceTransfer { new, index, freeze }, - [ - 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, - 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, - 181u8, 172u8, 64u8, 37u8, 165u8, 121u8, 111u8, - 173u8, 224u8, 181u8, 79u8, 76u8, 134u8, 93u8, - 169u8, 65u8, 131u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn freeze( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Indices", - "freeze", - Freeze { index }, - [ - 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, - 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, - 246u8, 149u8, 31u8, 168u8, 186u8, 208u8, 90u8, - 40u8, 47u8, 100u8, 228u8, 188u8, 33u8, 79u8, 220u8, - 105u8, 209u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_indices::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A account index was assigned."] - pub struct IndexAssigned { - pub who: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexAssigned { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A account index has been freed up (unassigned)."] - pub struct IndexFreed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexFreed { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFreed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A account index has been frozen to its current account ID."] - pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IndexFrozen { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFrozen"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The lookup from index to account."] pub fn accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) - } - #[doc = " The lookup from index to account."] pub fn accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Indices", - "Accounts", - Vec::new(), - [ - 211u8, 169u8, 54u8, 254u8, 88u8, 57u8, 22u8, 223u8, - 108u8, 27u8, 38u8, 9u8, 202u8, 209u8, 111u8, 209u8, - 144u8, 13u8, 211u8, 114u8, 239u8, 127u8, 75u8, - 166u8, 234u8, 222u8, 225u8, 35u8, 160u8, 163u8, - 112u8, 242u8, - ], - ) - } - } - } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 democracy { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Propose { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Second { - #[codec(compact)] - pub proposal: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EmergencyCancel { - pub ref_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExternalPropose { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExternalProposeMajority { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExternalProposeDefault { - pub proposal: - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FastTrack { - pub proposal_hash: ::subxt::utils::H256, - pub voting_period: ::core::primitive::u32, - pub delay: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VetoExternal { - pub proposal_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Delegate { - pub to: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub conviction: - runtime_types::pallet_democracy::conviction::Conviction, - pub balance: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Undelegate; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClearPublicProposals; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unlock { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveVote { - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Blacklist { - pub proposal_hash: ::subxt::utils::H256, - pub maybe_ref_index: - ::core::option::Option<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] - pub fn propose( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "propose", - Propose { proposal, value }, - [ - 123u8, 3u8, 204u8, 140u8, 194u8, 195u8, 214u8, - 39u8, 167u8, 126u8, 45u8, 4u8, 219u8, 17u8, 143u8, - 185u8, 29u8, 224u8, 230u8, 68u8, 253u8, 15u8, - 170u8, 90u8, 232u8, 123u8, 46u8, 255u8, 168u8, - 39u8, 204u8, 63u8, - ], - ) - } - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] - pub fn second( - &self, - proposal: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "second", - Second { proposal }, - [ - 59u8, 240u8, 183u8, 218u8, 61u8, 93u8, 184u8, 67u8, - 10u8, 4u8, 138u8, 196u8, 168u8, 49u8, 42u8, 69u8, - 154u8, 42u8, 90u8, 112u8, 179u8, 69u8, 51u8, 148u8, - 159u8, 212u8, 221u8, 226u8, 132u8, 228u8, 51u8, - 83u8, - ], - ) - } - #[doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] - pub fn vote( - &self, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "vote", - Vote { ref_index, vote }, - [ - 138u8, 213u8, 229u8, 111u8, 1u8, 191u8, 73u8, 3u8, - 145u8, 28u8, 44u8, 88u8, 163u8, 188u8, 129u8, - 188u8, 64u8, 15u8, 64u8, 103u8, 250u8, 97u8, 234u8, - 188u8, 29u8, 205u8, 51u8, 6u8, 116u8, 58u8, 156u8, - 201u8, - ], - ) - } - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] - pub fn emergency_cancel( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "emergency_cancel", - EmergencyCancel { ref_index }, - [ - 139u8, 213u8, 133u8, 75u8, 34u8, 206u8, 124u8, - 245u8, 35u8, 237u8, 132u8, 92u8, 49u8, 167u8, - 117u8, 80u8, 188u8, 93u8, 198u8, 237u8, 132u8, - 77u8, 195u8, 65u8, 29u8, 37u8, 86u8, 74u8, 214u8, - 119u8, 71u8, 204u8, - ], - ) - } - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - pub fn external_propose( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "external_propose", - ExternalPropose { proposal }, - [ - 164u8, 193u8, 14u8, 122u8, 105u8, 232u8, 20u8, - 194u8, 99u8, 227u8, 36u8, 105u8, 218u8, 146u8, - 16u8, 208u8, 56u8, 62u8, 100u8, 65u8, 35u8, 33u8, - 51u8, 208u8, 17u8, 43u8, 223u8, 198u8, 202u8, 16u8, - 56u8, 75u8, - ], - ) - } - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn external_propose_majority( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "external_propose_majority", - ExternalProposeMajority { proposal }, - [ - 129u8, 124u8, 147u8, 253u8, 69u8, 115u8, 230u8, - 186u8, 155u8, 4u8, 220u8, 103u8, 28u8, 132u8, - 115u8, 153u8, 196u8, 88u8, 9u8, 130u8, 129u8, - 234u8, 75u8, 96u8, 202u8, 216u8, 145u8, 189u8, - 231u8, 101u8, 127u8, 11u8, - ], - ) - } - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn external_propose_default( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "external_propose_default", - ExternalProposeDefault { proposal }, - [ - 96u8, 15u8, 108u8, 208u8, 141u8, 247u8, 4u8, 73u8, - 2u8, 30u8, 231u8, 40u8, 184u8, 250u8, 42u8, 161u8, - 248u8, 45u8, 217u8, 50u8, 53u8, 13u8, 181u8, 214u8, - 136u8, 51u8, 93u8, 95u8, 165u8, 3u8, 83u8, 190u8, - ], - ) - } - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn fast_track( - &self, - proposal_hash: ::subxt::utils::H256, - voting_period: ::core::primitive::u32, - delay: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "fast_track", - FastTrack { - proposal_hash, - voting_period, - delay, - }, - [ - 125u8, 209u8, 107u8, 120u8, 93u8, 205u8, 129u8, - 147u8, 254u8, 126u8, 45u8, 126u8, 39u8, 0u8, 56u8, - 14u8, 233u8, 49u8, 245u8, 220u8, 156u8, 10u8, - 252u8, 31u8, 102u8, 90u8, 163u8, 236u8, 178u8, - 85u8, 13u8, 24u8, - ], - ) - } - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] - pub fn veto_external( - &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "veto_external", - VetoExternal { proposal_hash }, - [ - 209u8, 18u8, 18u8, 103u8, 186u8, 160u8, 214u8, - 124u8, 150u8, 207u8, 112u8, 90u8, 84u8, 197u8, - 95u8, 157u8, 165u8, 65u8, 109u8, 101u8, 75u8, - 201u8, 41u8, 149u8, 75u8, 154u8, 37u8, 178u8, - 239u8, 121u8, 124u8, 23u8, - ], - ) - } - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] - pub fn cancel_referendum( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "cancel_referendum", - CancelReferendum { ref_index }, - [ - 51u8, 25u8, 25u8, 251u8, 236u8, 115u8, 130u8, - 230u8, 72u8, 186u8, 119u8, 71u8, 165u8, 137u8, - 55u8, 167u8, 187u8, 128u8, 55u8, 8u8, 212u8, 139u8, - 245u8, 232u8, 103u8, 136u8, 229u8, 113u8, 125u8, - 36u8, 1u8, 149u8, - ], - ) - } - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[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/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[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 referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn delegate( - &self, - to: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - conviction : runtime_types :: pallet_democracy :: conviction :: Conviction, - balance: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "delegate", - Delegate { - to, - conviction, - balance, - }, - [ - 247u8, 226u8, 242u8, 221u8, 47u8, 161u8, 91u8, - 223u8, 6u8, 79u8, 238u8, 205u8, 41u8, 188u8, 140u8, - 56u8, 181u8, 248u8, 102u8, 10u8, 127u8, 166u8, - 90u8, 187u8, 13u8, 124u8, 209u8, 117u8, 16u8, - 209u8, 74u8, 29u8, - ], - ) - } - #[doc = "Undelegate the voting power of the sending account."] - #[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."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn undelegate( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "undelegate", - Undelegate {}, - [ - 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, - 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, - 155u8, 44u8, 245u8, 28u8, 220u8, 56u8, 134u8, 43u8, - 122u8, 248u8, 156u8, 191u8, 154u8, 4u8, 121u8, - 152u8, 153u8, - ], - ) - } - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] - pub fn clear_public_proposals( - &self, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "clear_public_proposals", - ClearPublicProposals {}, - [ - 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, - 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, - 12u8, 141u8, 243u8, 197u8, 46u8, 130u8, 215u8, - 196u8, 225u8, 88u8, 48u8, 199u8, 231u8, 249u8, - 195u8, 53u8, 184u8, 204u8, - ], - ) - } - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[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, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "unlock", - Unlock { target }, - [ - 227u8, 6u8, 154u8, 150u8, 253u8, 167u8, 142u8, 6u8, - 147u8, 24u8, 124u8, 51u8, 101u8, 185u8, 184u8, - 170u8, 6u8, 223u8, 29u8, 167u8, 73u8, 31u8, 179u8, - 60u8, 156u8, 244u8, 192u8, 233u8, 79u8, 99u8, - 248u8, 126u8, - ], - ) - } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum 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 referendum 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 referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_vote( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "remove_vote", - RemoveVote { index }, - [ - 148u8, 120u8, 14u8, 172u8, 81u8, 152u8, 159u8, - 178u8, 106u8, 244u8, 36u8, 98u8, 120u8, 189u8, - 213u8, 93u8, 119u8, 156u8, 112u8, 34u8, 241u8, - 72u8, 206u8, 113u8, 212u8, 161u8, 164u8, 126u8, - 122u8, 82u8, 160u8, 74u8, - ], - ) - } - #[doc = "Remove a vote for a referendum."] - #[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 referendum was cancelled, because the voter lost the referendum 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"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_other_vote( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "remove_other_vote", - RemoveOtherVote { target, index }, - [ - 251u8, 245u8, 79u8, 229u8, 3u8, 107u8, 66u8, 202u8, - 148u8, 31u8, 6u8, 236u8, 156u8, 202u8, 197u8, - 107u8, 100u8, 60u8, 255u8, 213u8, 222u8, 209u8, - 249u8, 61u8, 209u8, 215u8, 82u8, 73u8, 25u8, 73u8, - 161u8, 24u8, - ], - ) - } - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] - pub fn blacklist( - &self, - proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "blacklist", - Blacklist { - proposal_hash, - maybe_ref_index, - }, - [ - 48u8, 144u8, 81u8, 164u8, 54u8, 111u8, 197u8, - 134u8, 6u8, 98u8, 121u8, 179u8, 254u8, 191u8, - 204u8, 212u8, 84u8, 255u8, 86u8, 110u8, 225u8, - 130u8, 26u8, 65u8, 133u8, 56u8, 231u8, 15u8, 245u8, - 137u8, 146u8, 242u8, - ], - ) - } - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] - pub fn cancel_proposal( - &self, - prop_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Democracy", - "cancel_proposal", - CancelProposal { prop_index }, - [ - 179u8, 3u8, 198u8, 244u8, 241u8, 124u8, 205u8, - 58u8, 100u8, 80u8, 177u8, 254u8, 98u8, 220u8, - 189u8, 63u8, 229u8, 60u8, 157u8, 83u8, 142u8, 6u8, - 236u8, 183u8, 193u8, 235u8, 253u8, 126u8, 153u8, - 185u8, 74u8, 117u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_democracy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion has been proposed by a public account."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A public proposal has been tabled for referendum vote."] - pub struct Tabled { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Tabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Tabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An external proposal has been tabled."] - pub struct ExternalTabled; - impl ::subxt::events::StaticEvent for ExternalTabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ExternalTabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A referendum has begun."] - pub struct Started { pub ref_index : :: core :: primitive :: u32 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } - impl ::subxt::events::StaticEvent for Started { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Started"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal has been approved by referendum."] - pub struct Passed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Passed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Passed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal has been rejected by referendum."] - pub struct NotPassed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NotPassed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "NotPassed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Cancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has delegated their vote to another account."] - pub struct Delegated { - pub who: ::subxt::utils::AccountId32, - pub target: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Delegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has cancelled a previous delegation operation."] - pub struct Undelegated { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Undelegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An external proposal has been vetoed."] - pub struct Vetoed { - pub who: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub until: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Vetoed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Vetoed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal_hash has been blacklisted permanently."] - pub struct Blacklisted { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Blacklisted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Blacklisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has voted in a referendum"] - pub struct Voted { - pub voter: ::subxt::utils::AccountId32, - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has secconded a proposal"] - pub struct Seconded { - pub seconder: ::subxt::utils::AccountId32, - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Seconded { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Seconded"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal got canceled."] - pub struct ProposalCanceled { - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalCanceled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ProposalCanceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The number of (public) proposals that have been made so far."] pub fn public_prop_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "PublicPropCount", - vec![], - [ - 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, - 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, - 159u8, 9u8, 174u8, 74u8, 174u8, 218u8, 197u8, 23u8, - 235u8, 152u8, 226u8, 216u8, 4u8, 120u8, 121u8, - 27u8, 138u8, - ], - ) - } - #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: subxt :: utils :: AccountId32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "PublicProps", - vec![], - [ - 63u8, 172u8, 211u8, 85u8, 27u8, 14u8, 86u8, 49u8, - 133u8, 5u8, 132u8, 189u8, 138u8, 137u8, 219u8, - 37u8, 209u8, 49u8, 172u8, 86u8, 240u8, 235u8, 42u8, - 201u8, 203u8, 12u8, 122u8, 225u8, 0u8, 109u8, - 205u8, 103u8, - ], - ) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Democracy" , "DepositOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [9u8 , 219u8 , 11u8 , 58u8 , 17u8 , 194u8 , 248u8 , 154u8 , 135u8 , 119u8 , 123u8 , 235u8 , 252u8 , 176u8 , 190u8 , 162u8 , 236u8 , 45u8 , 237u8 , 125u8 , 98u8 , 176u8 , 184u8 , 160u8 , 8u8 , 181u8 , 213u8 , 65u8 , 14u8 , 84u8 , 200u8 , 64u8 ,]) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "DepositOf", - Vec::new(), - [ - 9u8, 219u8, 11u8, 58u8, 17u8, 194u8, 248u8, 154u8, - 135u8, 119u8, 123u8, 235u8, 252u8, 176u8, 190u8, - 162u8, 236u8, 45u8, 237u8, 125u8, 98u8, 176u8, - 184u8, 160u8, 8u8, 181u8, 213u8, 65u8, 14u8, 84u8, - 200u8, 64u8, - ], - ) - } - #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "ReferendumCount", - vec![], - [ - 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, - 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, - 119u8, 137u8, 11u8, 240u8, 160u8, 151u8, 248u8, - 229u8, 231u8, 89u8, 222u8, 18u8, 237u8, 144u8, - 78u8, 99u8, 58u8, - ], - ) - } - #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] - #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "LowestUnbaked", - vec![], - [ - 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, - 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, - 128u8, 27u8, 165u8, 164u8, 111u8, 22u8, 209u8, - 190u8, 103u8, 7u8, 116u8, 16u8, 160u8, 144u8, - 123u8, 64u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Democracy" , "ReferendumInfoOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [167u8 , 58u8 , 230u8 , 197u8 , 185u8 , 56u8 , 181u8 , 32u8 , 81u8 , 150u8 , 29u8 , 138u8 , 142u8 , 38u8 , 255u8 , 216u8 , 139u8 , 93u8 , 56u8 , 148u8 , 196u8 , 169u8 , 168u8 , 144u8 , 193u8 , 200u8 , 187u8 , 5u8 , 141u8 , 201u8 , 254u8 , 248u8 ,]) - } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "ReferendumInfoOf", - Vec::new(), - [ - 167u8, 58u8, 230u8, 197u8, 185u8, 56u8, 181u8, - 32u8, 81u8, 150u8, 29u8, 138u8, 142u8, 38u8, 255u8, - 216u8, 139u8, 93u8, 56u8, 148u8, 196u8, 169u8, - 168u8, 144u8, 193u8, 200u8, 187u8, 5u8, 141u8, - 201u8, 254u8, 248u8, - ], - ) - } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: vote :: Voting < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Democracy" , "VotingOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [125u8 , 121u8 , 167u8 , 170u8 , 18u8 , 194u8 , 183u8 , 38u8 , 176u8 , 48u8 , 30u8 , 88u8 , 233u8 , 196u8 , 33u8 , 119u8 , 160u8 , 201u8 , 29u8 , 183u8 , 88u8 , 67u8 , 219u8 , 137u8 , 6u8 , 195u8 , 11u8 , 63u8 , 162u8 , 181u8 , 82u8 , 243u8 ,]) - } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_democracy :: vote :: Voting < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "VotingOf", - Vec::new(), - [ - 125u8, 121u8, 167u8, 170u8, 18u8, 194u8, 183u8, - 38u8, 176u8, 48u8, 30u8, 88u8, 233u8, 196u8, 33u8, - 119u8, 160u8, 201u8, 29u8, 183u8, 88u8, 67u8, - 219u8, 137u8, 6u8, 195u8, 11u8, 63u8, 162u8, 181u8, - 82u8, 243u8, - ], - ) - } - #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] - #[doc = " proposal."] pub fn last_tabled_was_external (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "LastTabledWasExternal", - vec![], - [ - 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, - 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, - 222u8, 82u8, 31u8, 223u8, 144u8, 169u8, 17u8, 6u8, - 138u8, 36u8, 113u8, 155u8, 241u8, 106u8, 189u8, - 218u8, - ], - ) - } - #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] - #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] - #[doc = " - `LastTabledWasExternal` is `false`; or"] - #[doc = " - `PublicProps` is empty."] pub fn next_external (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "NextExternal", - vec![], - [ - 213u8, 36u8, 235u8, 75u8, 153u8, 33u8, 140u8, - 121u8, 191u8, 197u8, 17u8, 57u8, 234u8, 67u8, 81u8, - 55u8, 123u8, 179u8, 207u8, 124u8, 238u8, 147u8, - 243u8, 126u8, 200u8, 2u8, 16u8, 143u8, 165u8, - 143u8, 159u8, 93u8, - ], - ) - } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Blacklist", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 8u8, 227u8, 185u8, 179u8, 192u8, 92u8, 171u8, - 125u8, 237u8, 224u8, 109u8, 207u8, 44u8, 181u8, - 78u8, 17u8, 254u8, 183u8, 199u8, 241u8, 49u8, 90u8, - 101u8, 168u8, 46u8, 89u8, 253u8, 155u8, 38u8, - 183u8, 112u8, 35u8, - ], - ) - } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Blacklist", - Vec::new(), - [ - 8u8, 227u8, 185u8, 179u8, 192u8, 92u8, 171u8, - 125u8, 237u8, 224u8, 109u8, 207u8, 44u8, 181u8, - 78u8, 17u8, 254u8, 183u8, 199u8, 241u8, 49u8, 90u8, - 101u8, 168u8, 46u8, 89u8, 253u8, 155u8, 38u8, - 183u8, 112u8, 35u8, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Cancellations", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, - 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, - 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, - 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, - 177u8, 135u8, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Democracy", - "Cancellations", - Vec::new(), - [ - 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, - 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, - 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, - 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, - 177u8, 135u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The period between a proposal being approved and enacted."] - #[doc = ""] - #[doc = " It should generally be a little more than the unstake period to ensure that"] - #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] - #[doc = " where they are on the losing side of a vote."] - pub fn enactment_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "EnactmentPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How often (in blocks) new public referenda are launched."] - pub fn launch_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "LaunchPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How often (in blocks) to check for new votes."] - pub fn voting_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "VotingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum period of vote locking."] - #[doc = ""] - #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] - #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "VoteLockingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub fn minimum_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MinimumDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] - #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] - #[doc = " as an upgrade having happened recently."] - pub fn instant_allowed( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::bool, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "InstantAllowed", - [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, - 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, - 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, - 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, - 115u8, 102u8, 131u8, - ], - ) - } - #[doc = " Minimum voting period allowed for a fast-track referendum."] - pub fn fast_track_voting_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "FastTrackVotingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] - pub fn cooloff_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "CooloffPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of votes for an account."] - #[doc = ""] - #[doc = " Also used to compute weight, an overly big value can"] - #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] - pub fn max_votes( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxVotes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of public proposals that can exist at any time."] - pub fn max_proposals( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxProposals", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of deposits a public proposal may have at any time."] - pub fn max_deposits( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxDeposits", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of items which can be blacklisted."] - pub fn max_blacklisted( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Democracy", - "MaxBlacklisted", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod council { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub prime: ::core::option::Option<::subxt::utils::AccountId32>, - pub old_count: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Execute { - pub proposal: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote { - pub proposal: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CloseOldWeight { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Close { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub proposal_weight_bound: - runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "set_members", - SetMembers { - new_members, - prime, - old_count, - }, - [ - 196u8, 103u8, 123u8, 125u8, 226u8, 177u8, 126u8, - 37u8, 160u8, 114u8, 34u8, 136u8, 219u8, 84u8, - 199u8, 94u8, 242u8, 20u8, 126u8, 126u8, 166u8, - 190u8, 198u8, 33u8, 162u8, 113u8, 237u8, 222u8, - 90u8, 1u8, 2u8, 234u8, - ], - ) - } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn execute( - &self, - proposal : runtime_types :: tangle_standalone_runtime :: RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "execute", - Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 201u8, 159u8, 44u8, 4u8, 196u8, 254u8, 79u8, 172u8, - 169u8, 118u8, 192u8, 223u8, 144u8, 236u8, 101u8, - 140u8, 92u8, 128u8, 247u8, 136u8, 36u8, 254u8, - 68u8, 219u8, 64u8, 203u8, 164u8, 152u8, 6u8, 174u8, - 97u8, 237u8, - ], - ) - } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] - pub fn propose( - &self, - threshold: ::core::primitive::u32, - proposal : runtime_types :: tangle_standalone_runtime :: RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "propose", - Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 39u8, 115u8, 5u8, 9u8, 55u8, 170u8, 26u8, 97u8, - 239u8, 65u8, 242u8, 163u8, 5u8, 55u8, 196u8, 179u8, - 189u8, 8u8, 128u8, 225u8, 27u8, 32u8, 77u8, 63u8, - 201u8, 157u8, 138u8, 169u8, 12u8, 132u8, 216u8, - 251u8, - ], - ) - } - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn vote( - &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "vote", - Vote { - proposal, - index, - approve, - }, - [ - 108u8, 46u8, 180u8, 148u8, 145u8, 24u8, 173u8, - 56u8, 36u8, 100u8, 216u8, 43u8, 178u8, 202u8, 26u8, - 136u8, 93u8, 84u8, 80u8, 134u8, 14u8, 42u8, 248u8, - 205u8, 68u8, 92u8, 79u8, 11u8, 113u8, 115u8, 157u8, - 100u8, - ], - ) - } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close_old_weight( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Council", - "close_old_weight", - CloseOldWeight { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 133u8, 219u8, 90u8, 40u8, 102u8, 95u8, 4u8, 199u8, - 45u8, 234u8, 109u8, 17u8, 162u8, 63u8, 102u8, - 186u8, 95u8, 182u8, 13u8, 123u8, 227u8, 20u8, - 186u8, 207u8, 12u8, 47u8, 87u8, 252u8, 244u8, - 172u8, 60u8, 206u8, - ], - ) - } - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] - pub fn disapprove_proposal( - &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Council", - "disapprove_proposal", - DisapproveProposal { proposal_hash }, - [ - 25u8, 123u8, 1u8, 8u8, 74u8, 37u8, 3u8, 40u8, 97u8, - 37u8, 175u8, 224u8, 72u8, 155u8, 123u8, 109u8, - 104u8, 43u8, 91u8, 125u8, 199u8, 51u8, 17u8, 225u8, - 133u8, 38u8, 120u8, 76u8, 164u8, 5u8, 194u8, 201u8, - ], - ) - } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Council", - "close", - Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 191u8, 138u8, 89u8, 247u8, 97u8, 51u8, 45u8, 193u8, - 76u8, 16u8, 80u8, 225u8, 197u8, 83u8, 204u8, 133u8, - 169u8, 16u8, 86u8, 32u8, 125u8, 16u8, 116u8, 185u8, - 45u8, 20u8, 76u8, 148u8, 206u8, 163u8, 154u8, 30u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_collective::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - pub struct Proposed { - pub account: ::subxt::utils::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::utils::H256, - pub threshold: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - pub struct Voted { - pub account: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion was approved by the required threshold."] - pub struct Approved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion was not approved by the required threshold."] - pub struct Disapproved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Disapproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Executed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "MemberExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - pub struct Closed { - pub proposal_hash: ::subxt::utils::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Closed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The hashes of the active proposals."] pub fn proposals (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Proposals", - vec![], - [ - 10u8, 133u8, 82u8, 54u8, 193u8, 41u8, 253u8, 159u8, - 56u8, 96u8, 249u8, 148u8, 43u8, 57u8, 116u8, 43u8, - 222u8, 243u8, 237u8, 231u8, 238u8, 60u8, 26u8, - 225u8, 19u8, 203u8, 213u8, 220u8, 114u8, 217u8, - 100u8, 27u8, - ], - ) - } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "ProposalOf", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 191u8, 103u8, 232u8, 71u8, 110u8, 111u8, 132u8, - 210u8, 24u8, 43u8, 142u8, 58u8, 221u8, 82u8, 2u8, - 44u8, 88u8, 77u8, 248u8, 120u8, 170u8, 146u8, 78u8, - 199u8, 181u8, 118u8, 254u8, 7u8, 226u8, 15u8, - 156u8, 72u8, - ], - ) - } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "ProposalOf", - Vec::new(), - [ - 191u8, 103u8, 232u8, 71u8, 110u8, 111u8, 132u8, - 210u8, 24u8, 43u8, 142u8, 58u8, 221u8, 82u8, 2u8, - 44u8, 88u8, 77u8, 248u8, 120u8, 170u8, 146u8, 78u8, - 199u8, 181u8, 118u8, 254u8, 7u8, 226u8, 15u8, - 156u8, 72u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_collective :: Votes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Voting", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 89u8, 108u8, 65u8, 58u8, 60u8, 116u8, 54u8, 68u8, - 179u8, 73u8, 161u8, 168u8, 78u8, 213u8, 208u8, - 54u8, 244u8, 58u8, 70u8, 209u8, 170u8, 136u8, - 215u8, 3u8, 2u8, 105u8, 229u8, 217u8, 240u8, 230u8, - 107u8, 221u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_collective :: Votes < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Voting", - Vec::new(), - [ - 89u8, 108u8, 65u8, 58u8, 60u8, 116u8, 54u8, 68u8, - 179u8, 73u8, 161u8, 168u8, 78u8, 213u8, 208u8, - 54u8, 244u8, 58u8, 70u8, 209u8, 170u8, 136u8, - 215u8, 3u8, 2u8, 105u8, 229u8, 217u8, 240u8, 230u8, - 107u8, 221u8, - ], - ) - } - #[doc = " Proposals so far."] pub fn proposal_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "ProposalCount", - vec![], - [ - 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, - 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, - 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, - 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, - 127u8, 160u8, 34u8, 70u8, - ], - ) - } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Members", - vec![], - [ - 162u8, 72u8, 174u8, 204u8, 140u8, 105u8, 205u8, - 176u8, 197u8, 117u8, 206u8, 134u8, 157u8, 110u8, - 139u8, 54u8, 43u8, 233u8, 25u8, 51u8, 36u8, 238u8, - 94u8, 124u8, 221u8, 52u8, 237u8, 71u8, 125u8, 56u8, - 129u8, 222u8, - ], - ) - } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Council", - "Prime", - vec![], - [ - 108u8, 118u8, 54u8, 193u8, 207u8, 227u8, 119u8, - 97u8, 23u8, 239u8, 157u8, 69u8, 56u8, 142u8, 106u8, - 17u8, 215u8, 159u8, 48u8, 42u8, 185u8, 209u8, 49u8, - 159u8, 32u8, 168u8, 111u8, 158u8, 159u8, 217u8, - 244u8, 158u8, - ], - ) - } - } - } - } - pub mod vesting { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vest; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VestOther { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VestedTransfer { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceVestedTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MergeSchedules { - pub schedule1_index: ::core::primitive::u32, - pub schedule2_index: ::core::primitive::u32, - } - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- DbWeight: 2 Reads, 2 Writes"] - #[doc = " - Reads: Vesting Storage, Balances Locks, [Sender Account]"] - #[doc = " - Writes: Vesting Storage, Balances Locks, [Sender Account]"] - #[doc = "# "] - pub fn vest(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Vesting", - "vest", - Vest {}, - [ - 123u8, 54u8, 10u8, 208u8, 154u8, 24u8, 39u8, 166u8, - 64u8, 27u8, 74u8, 29u8, 243u8, 97u8, 155u8, 5u8, - 130u8, 155u8, 65u8, 181u8, 196u8, 125u8, 45u8, - 133u8, 25u8, 33u8, 3u8, 34u8, 21u8, 167u8, 172u8, - 54u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- DbWeight: 3 Reads, 3 Writes"] - #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account"] - #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account"] - #[doc = "# "] - pub fn vest_other( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Vesting", - "vest_other", - VestOther { target }, - [ - 243u8, 97u8, 222u8, 101u8, 143u8, 17u8, 184u8, - 191u8, 208u8, 162u8, 31u8, 121u8, 22u8, 88u8, 2u8, - 36u8, 9u8, 22u8, 27u8, 117u8, 236u8, 82u8, 83u8, - 218u8, 166u8, 154u8, 49u8, 141u8, 95u8, 127u8, - 63u8, 13u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- DbWeight: 3 Reads, 3 Writes"] - #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] - #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] - #[doc = "# "] - pub fn vested_transfer( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Vesting", - "vested_transfer", - VestedTransfer { target, schedule }, - [ - 157u8, 78u8, 209u8, 131u8, 29u8, 102u8, 180u8, - 61u8, 212u8, 154u8, 28u8, 3u8, 150u8, 236u8, 22u8, - 116u8, 8u8, 142u8, 174u8, 35u8, 37u8, 167u8, 5u8, - 200u8, 189u8, 227u8, 122u8, 55u8, 188u8, 213u8, - 59u8, 206u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- DbWeight: 4 Reads, 4 Writes"] - #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account, Source Account"] - #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account, Source Account"] - #[doc = "# "] - pub fn force_vested_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Vesting", - "force_vested_transfer", - ForceVestedTransfer { - source, - target, - schedule, - }, - [ - 181u8, 47u8, 44u8, 166u8, 243u8, 122u8, 51u8, 81u8, - 136u8, 192u8, 248u8, 150u8, 149u8, 49u8, 208u8, - 203u8, 156u8, 100u8, 56u8, 133u8, 22u8, 53u8, - 241u8, 237u8, 145u8, 210u8, 25u8, 48u8, 61u8, - 184u8, 112u8, 253u8, - ], - ) - } - #[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: ::core::primitive::u32, - schedule2_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Vesting", - "merge_schedules", - MergeSchedules { - schedule1_index, - schedule2_index, - }, - [ - 95u8, 255u8, 147u8, 12u8, 49u8, 25u8, 70u8, 112u8, - 55u8, 154u8, 183u8, 97u8, 56u8, 244u8, 148u8, 61u8, - 107u8, 163u8, 220u8, 31u8, 153u8, 25u8, 193u8, - 251u8, 131u8, 26u8, 166u8, 157u8, 75u8, 4u8, 110u8, - 125u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vesting::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub unvested: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for VestingUpdated { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An \\[account\\] has become fully vested."] - pub struct VestingCompleted { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for VestingCompleted { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingCompleted"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Information regarding the vesting of a given account."] pub fn vesting (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Vesting" , "Vesting" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [23u8 , 209u8 , 233u8 , 126u8 , 89u8 , 156u8 , 193u8 , 204u8 , 100u8 , 90u8 , 14u8 , 120u8 , 36u8 , 167u8 , 148u8 , 239u8 , 179u8 , 74u8 , 207u8 , 83u8 , 54u8 , 77u8 , 27u8 , 135u8 , 74u8 , 31u8 , 33u8 , 11u8 , 168u8 , 239u8 , 212u8 , 36u8 ,]) - } - #[doc = " Information regarding the vesting of a given account."] pub fn vesting_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Vesting", - "Vesting", - Vec::new(), - [ - 23u8, 209u8, 233u8, 126u8, 89u8, 156u8, 193u8, - 204u8, 100u8, 90u8, 14u8, 120u8, 36u8, 167u8, - 148u8, 239u8, 179u8, 74u8, 207u8, 83u8, 54u8, 77u8, - 27u8, 135u8, 74u8, 31u8, 33u8, 11u8, 168u8, 239u8, - 212u8, 36u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_vesting :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Vesting", - "StorageVersion", - vec![], - [ - 50u8, 143u8, 26u8, 88u8, 129u8, 31u8, 61u8, 118u8, - 19u8, 202u8, 119u8, 160u8, 34u8, 219u8, 60u8, 57u8, - 189u8, 66u8, 93u8, 239u8, 121u8, 114u8, 241u8, - 116u8, 0u8, 122u8, 232u8, 94u8, 189u8, 23u8, 45u8, - 191u8, - ], - ) - } - } - } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 claims { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Claim { - pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: - runtime_types::pallet_ecdsa_claims::EcdsaSignature, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MintClaim { - pub who: runtime_types::pallet_ecdsa_claims::EthereumAddress, - pub value: ::core::primitive::u128, - pub vesting_schedule: ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>, - pub statement: ::core::option::Option< - runtime_types::pallet_ecdsa_claims::StatementKind, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimAttest { - pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: - runtime_types::pallet_ecdsa_claims::EcdsaSignature, - pub statement: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Attest { - pub statement: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MoveClaim { - pub old: runtime_types::pallet_ecdsa_claims::EthereumAddress, - pub new: runtime_types::pallet_ecdsa_claims::EthereumAddress, - pub maybe_preclaim: - ::core::option::Option<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetExpiryConfig { - pub expiry_block: ::core::primitive::u32, - pub dest: ::subxt::utils::AccountId32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Make a claim to collect your WEBBs."] - #[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: ::subxt::utils::AccountId32, - ethereum_signature : runtime_types :: pallet_ecdsa_claims :: EcdsaSignature, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Claims", - "claim", - Claim { - dest, - ethereum_signature, - }, - [ - 33u8, 63u8, 71u8, 104u8, 200u8, 179u8, 248u8, 38u8, - 193u8, 198u8, 250u8, 49u8, 106u8, 26u8, 109u8, - 183u8, 33u8, 50u8, 217u8, 28u8, 50u8, 107u8, 249u8, - 80u8, 199u8, 10u8, 192u8, 1u8, 54u8, 41u8, 146u8, - 11u8, - ], - ) - } - #[doc = "Mint a new claim to collect WEBBs."] - #[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 WEBBs that will be claimed."] - #[doc = "- `vesting_schedule`: An optional vesting schedule for these WEBBs."] - #[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: runtime_types::pallet_ecdsa_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::pallet_ecdsa_claims::StatementKind, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Claims", - "mint_claim", - MintClaim { - who, - value, - vesting_schedule, - statement, - }, - [ - 213u8, 79u8, 204u8, 40u8, 104u8, 84u8, 82u8, 62u8, - 193u8, 93u8, 246u8, 21u8, 37u8, 244u8, 166u8, - 132u8, 208u8, 18u8, 86u8, 195u8, 156u8, 9u8, 220u8, - 120u8, 40u8, 183u8, 28u8, 103u8, 84u8, 163u8, - 153u8, 110u8, - ], - ) - } - #[doc = "Make a claim to collect your WEBBs 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: ::subxt::utils::AccountId32, - ethereum_signature : runtime_types :: pallet_ecdsa_claims :: EcdsaSignature, - statement: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Claims", - "claim_attest", - ClaimAttest { - dest, - ethereum_signature, - statement, - }, - [ - 255u8, 10u8, 87u8, 106u8, 101u8, 195u8, 249u8, - 25u8, 109u8, 82u8, 213u8, 95u8, 203u8, 145u8, - 224u8, 113u8, 92u8, 141u8, 31u8, 54u8, 218u8, 47u8, - 218u8, 239u8, 211u8, 206u8, 77u8, 176u8, 19u8, - 176u8, 175u8, 135u8, - ], - ) - } - #[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: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Claims", - "attest", - Attest { statement }, - [ - 8u8, 218u8, 97u8, 237u8, 185u8, 61u8, 55u8, 4u8, - 134u8, 18u8, 244u8, 226u8, 40u8, 97u8, 222u8, - 246u8, 221u8, 74u8, 253u8, 22u8, 52u8, 223u8, - 224u8, 83u8, 21u8, 218u8, 248u8, 100u8, 107u8, - 58u8, 247u8, 10u8, - ], - ) - } - pub fn move_claim( - &self, - old: runtime_types::pallet_ecdsa_claims::EthereumAddress, - new: runtime_types::pallet_ecdsa_claims::EthereumAddress, - maybe_preclaim: ::core::option::Option< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Claims", - "move_claim", - MoveClaim { - old, - new, - maybe_preclaim, - }, - [ - 63u8, 48u8, 217u8, 16u8, 161u8, 102u8, 165u8, - 241u8, 57u8, 185u8, 230u8, 161u8, 202u8, 11u8, - 223u8, 15u8, 57u8, 181u8, 34u8, 131u8, 235u8, - 168u8, 227u8, 152u8, 157u8, 4u8, 192u8, 243u8, - 194u8, 120u8, 130u8, 202u8, - ], - ) - } - #[doc = "Set the value for expiryconfig"] - #[doc = "Can only be called by ForceOrigin"] - pub fn force_set_expiry_config( - &self, - expiry_block: ::core::primitive::u32, - dest: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Claims", - "force_set_expiry_config", - ForceSetExpiryConfig { expiry_block, dest }, - [ - 96u8, 203u8, 156u8, 78u8, 251u8, 98u8, 253u8, - 234u8, 126u8, 118u8, 89u8, 155u8, 31u8, 231u8, - 118u8, 20u8, 13u8, 117u8, 151u8, 117u8, 8u8, 76u8, - 147u8, 83u8, 80u8, 149u8, 102u8, 199u8, 21u8, - 169u8, 167u8, 43u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_ecdsa_claims::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Someone claimed some WEBBs."] - pub struct Claimed { - pub who: ::subxt::utils::AccountId32, - pub ethereum_address: - runtime_types::pallet_ecdsa_claims::EthereumAddress, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "Claims"; - const EVENT: &'static str = "Claimed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn claims (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: pallet_ecdsa_claims :: EthereumAddress > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Claims", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 36u8, 247u8, 169u8, 171u8, 103u8, 176u8, 70u8, - 213u8, 255u8, 175u8, 97u8, 142u8, 231u8, 70u8, - 90u8, 213u8, 128u8, 67u8, 50u8, 37u8, 51u8, 184u8, - 72u8, 27u8, 193u8, 254u8, 12u8, 253u8, 91u8, 60u8, - 88u8, 182u8, - ], - ) - } pub fn claims_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Claims", - Vec::new(), - [ - 36u8, 247u8, 169u8, 171u8, 103u8, 176u8, 70u8, - 213u8, 255u8, 175u8, 97u8, 142u8, 231u8, 70u8, - 90u8, 213u8, 128u8, 67u8, 50u8, 37u8, 51u8, 184u8, - 72u8, 27u8, 193u8, 254u8, 12u8, 253u8, 91u8, 60u8, - 88u8, 182u8, - ], - ) - } pub fn total (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Total", - vec![], - [ - 162u8, 59u8, 237u8, 63u8, 23u8, 44u8, 74u8, 169u8, - 131u8, 166u8, 174u8, 61u8, 127u8, 165u8, 32u8, - 115u8, 73u8, 171u8, 36u8, 10u8, 6u8, 23u8, 19u8, - 202u8, 3u8, 189u8, 29u8, 169u8, 144u8, 187u8, - 235u8, 77u8, - ], - ) - } - #[doc = " Expiry block and account to deposit expired funds"] pub fn expiry_config (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , :: subxt :: utils :: AccountId32 ,) > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "ExpiryConfig", - vec![], - [ - 58u8, 108u8, 2u8, 128u8, 233u8, 203u8, 54u8, 247u8, - 224u8, 2u8, 87u8, 222u8, 114u8, 205u8, 76u8, 197u8, - 190u8, 58u8, 98u8, 47u8, 13u8, 6u8, 208u8, 27u8, - 65u8, 150u8, 251u8, 58u8, 114u8, 36u8, 26u8, 83u8, - ], - ) - } - #[doc = " Vesting schedule for a claim."] - #[doc = " First balance is the total amount that should be held for vesting."] - #[doc = " Second balance is how much should be unlocked per block."] - #[doc = " The block number is when the vesting should start."] pub fn vesting (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: pallet_ecdsa_claims :: EthereumAddress > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Vesting", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 112u8, 174u8, 151u8, 185u8, 225u8, 170u8, 63u8, - 147u8, 100u8, 23u8, 102u8, 148u8, 244u8, 47u8, - 87u8, 99u8, 28u8, 59u8, 48u8, 205u8, 43u8, 41u8, - 87u8, 225u8, 191u8, 164u8, 31u8, 208u8, 80u8, 53u8, - 25u8, 205u8, - ], - ) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Vesting", - Vec::new(), - [ - 112u8, 174u8, 151u8, 185u8, 225u8, 170u8, 63u8, - 147u8, 100u8, 23u8, 102u8, 148u8, 244u8, 47u8, - 87u8, 99u8, 28u8, 59u8, 48u8, 205u8, 43u8, 41u8, - 87u8, 225u8, 191u8, 164u8, 31u8, 208u8, 80u8, 53u8, - 25u8, 205u8, - ], - ) - } - #[doc = " The statement kind that must be signed, if any."] pub fn signing (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: pallet_ecdsa_claims :: EthereumAddress > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_ecdsa_claims :: StatementKind > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Signing", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 51u8, 184u8, 211u8, 207u8, 13u8, 194u8, 181u8, - 153u8, 25u8, 212u8, 106u8, 189u8, 149u8, 14u8, - 19u8, 61u8, 210u8, 109u8, 23u8, 168u8, 191u8, 74u8, - 112u8, 190u8, 242u8, 112u8, 183u8, 17u8, 30u8, - 125u8, 85u8, 107u8, - ], - ) - } - #[doc = " The statement kind that must be signed, if any."] pub fn signing_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_ecdsa_claims :: StatementKind > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Signing", - Vec::new(), - [ - 51u8, 184u8, 211u8, 207u8, 13u8, 194u8, 181u8, - 153u8, 25u8, 212u8, 106u8, 189u8, 149u8, 14u8, - 19u8, 61u8, 210u8, 109u8, 23u8, 168u8, 191u8, 74u8, - 112u8, 190u8, 242u8, 112u8, 183u8, 17u8, 30u8, - 125u8, 85u8, 107u8, - ], - ) - } - #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] pub fn preclaims (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_ecdsa_claims :: EthereumAddress > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Preclaims", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 149u8, 61u8, 170u8, 170u8, 60u8, 212u8, 29u8, - 214u8, 141u8, 136u8, 207u8, 248u8, 51u8, 135u8, - 242u8, 105u8, 121u8, 91u8, 186u8, 30u8, 0u8, 173u8, - 154u8, 133u8, 20u8, 244u8, 58u8, 184u8, 133u8, - 214u8, 67u8, 95u8, - ], - ) - } - #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] pub fn preclaims_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_ecdsa_claims :: EthereumAddress > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Claims", - "Preclaims", - Vec::new(), - [ - 149u8, 61u8, 170u8, 170u8, 60u8, 212u8, 29u8, - 214u8, 141u8, 136u8, 207u8, 248u8, 51u8, 135u8, - 242u8, 105u8, 121u8, 91u8, 186u8, 30u8, 0u8, 173u8, - 154u8, 133u8, 20u8, 244u8, 58u8, 184u8, 133u8, - 214u8, 67u8, 95u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn prefix( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::core::primitive::u8>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Claims", - "Prefix", - [ - 106u8, 50u8, 57u8, 116u8, 43u8, 202u8, 37u8, 248u8, - 102u8, 22u8, 62u8, 22u8, 242u8, 54u8, 152u8, 168u8, - 107u8, 64u8, 72u8, 172u8, 124u8, 40u8, 42u8, 110u8, - 104u8, 145u8, 31u8, 144u8, 242u8, 189u8, 145u8, - 208u8, - ], - ) - } - } - } - } - pub mod elections { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveVoter; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitCandidacy { - #[codec(compact)] - pub candidate_count: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RenounceCandidacy { - pub renouncing: - runtime_types::pallet_elections_phragmen::Renouncing, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub slash_bond: ::core::primitive::bool, - pub rerun_election: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CleanDefunctVoters { - pub num_voters: ::core::primitive::u32, - pub num_defunct: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] - #[doc = ""] - #[doc = "# "] - #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] - #[doc = "# "] - pub fn vote( - &self, - votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "vote", - Vote { votes, value }, - [ - 71u8, 90u8, 175u8, 225u8, 51u8, 202u8, 197u8, - 252u8, 183u8, 92u8, 239u8, 83u8, 112u8, 144u8, - 128u8, 211u8, 109u8, 33u8, 252u8, 6u8, 156u8, 15u8, - 91u8, 88u8, 70u8, 19u8, 32u8, 29u8, 224u8, 255u8, - 26u8, 145u8, - ], - ) - } - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] - pub fn remove_voter( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "remove_voter", - RemoveVoter {}, - [ - 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, - 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, - 161u8, 53u8, 155u8, 130u8, 50u8, 88u8, 149u8, - 255u8, 12u8, 17u8, 85u8, 95u8, 69u8, 153u8, 130u8, - 221u8, 1u8, - ], - ) - } - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "# "] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "# "] - pub fn submit_candidacy( - &self, - candidate_count: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "submit_candidacy", - SubmitCandidacy { candidate_count }, - [ - 228u8, 63u8, 217u8, 99u8, 128u8, 104u8, 175u8, - 10u8, 30u8, 35u8, 47u8, 14u8, 254u8, 122u8, 146u8, - 239u8, 61u8, 145u8, 82u8, 7u8, 181u8, 98u8, 238u8, - 208u8, 23u8, 84u8, 48u8, 255u8, 177u8, 255u8, 84u8, - 83u8, - ], - ) - } - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = ""] - #[doc = "# "] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = "# "] - pub fn renounce_candidacy( - &self, - renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "renounce_candidacy", - RenounceCandidacy { renouncing }, - [ - 70u8, 72u8, 208u8, 36u8, 80u8, 245u8, 224u8, 75u8, - 60u8, 142u8, 19u8, 49u8, 142u8, 90u8, 14u8, 69u8, - 15u8, 61u8, 170u8, 235u8, 16u8, 252u8, 86u8, 200u8, - 120u8, 127u8, 36u8, 42u8, 143u8, 130u8, 217u8, - 128u8, - ], - ) - } - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "# "] - #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] - #[doc = "will go into phragmen, we assume full block for now."] - #[doc = "# "] - pub fn remove_member( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - slash_bond: ::core::primitive::bool, - rerun_election: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "remove_member", - RemoveMember { - who, - slash_bond, - rerun_election, - }, - [ - 178u8, 90u8, 236u8, 184u8, 2u8, 67u8, 51u8, 162u8, - 83u8, 131u8, 242u8, 137u8, 17u8, 243u8, 209u8, - 110u8, 26u8, 238u8, 178u8, 136u8, 84u8, 74u8, - 216u8, 173u8, 221u8, 82u8, 179u8, 218u8, 162u8, - 159u8, 185u8, 59u8, - ], - ) - } - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "# "] - #[doc = "The total number of voters and those that are defunct must be provided as witness data."] - #[doc = "# "] - pub fn clean_defunct_voters( - &self, - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Elections", - "clean_defunct_voters", - CleanDefunctVoters { - num_voters, - num_defunct, - }, - [ - 198u8, 162u8, 30u8, 249u8, 191u8, 38u8, 141u8, - 123u8, 230u8, 90u8, 213u8, 103u8, 168u8, 28u8, 5u8, - 215u8, 213u8, 152u8, 46u8, 189u8, 238u8, 209u8, - 209u8, 142u8, 159u8, 222u8, 161u8, 26u8, 161u8, - 250u8, 9u8, 100u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_elections_phragmen::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - pub struct NewTerm { - pub new_members: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - } - impl ::subxt::events::StaticEvent for NewTerm { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "NewTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - pub struct EmptyTerm; - impl ::subxt::events::StaticEvent for EmptyTerm { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "EmptyTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Internal error happened while trying to perform election."] - pub struct ElectionError; - impl ::subxt::events::StaticEvent for ElectionError { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "ElectionError"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - pub struct MemberKicked { - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberKicked { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "MemberKicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Someone has renounced their candidacy."] - pub struct Renounced { - pub candidate: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Renounced { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "Renounced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - pub struct CandidateSlashed { - pub candidate: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for CandidateSlashed { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "CandidateSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - pub struct SeatHolderSlashed { - pub seat_holder: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "SeatHolderSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current elected members."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] pub fn members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_elections_phragmen :: SeatHolder < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "Members", - vec![], - [ - 2u8, 182u8, 43u8, 180u8, 87u8, 185u8, 26u8, 79u8, - 196u8, 55u8, 28u8, 26u8, 174u8, 133u8, 158u8, - 221u8, 101u8, 161u8, 83u8, 9u8, 221u8, 175u8, - 221u8, 220u8, 81u8, 80u8, 1u8, 236u8, 74u8, 121u8, - 10u8, 82u8, - ], - ) - } - #[doc = " The current reserved runners-up."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] - #[doc = " last (i.e. _best_) runner-up will be replaced."] pub fn runners_up (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_elections_phragmen :: SeatHolder < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "RunnersUp", - vec![], - [ - 248u8, 81u8, 190u8, 53u8, 121u8, 49u8, 55u8, 69u8, - 116u8, 177u8, 46u8, 30u8, 131u8, 14u8, 32u8, 198u8, - 10u8, 132u8, 73u8, 117u8, 2u8, 146u8, 188u8, 146u8, - 214u8, 227u8, 97u8, 77u8, 7u8, 131u8, 208u8, 209u8, - ], - ) - } - #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] - #[doc = " and is always implicitly assumed to be a candidate."] - #[doc = ""] - #[doc = " Second element is the deposit."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] pub fn candidates (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "Candidates", - vec![], - [ - 224u8, 107u8, 141u8, 11u8, 54u8, 86u8, 117u8, 45u8, - 195u8, 252u8, 152u8, 21u8, 165u8, 23u8, 198u8, - 117u8, 5u8, 216u8, 183u8, 163u8, 243u8, 56u8, 11u8, - 102u8, 85u8, 107u8, 219u8, 250u8, 45u8, 80u8, - 108u8, 127u8, - ], - ) - } - #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "ElectionRounds", - vec![], - [ - 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, - 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, - 143u8, 104u8, 253u8, 86u8, 228u8, 68u8, 19u8, - 184u8, 166u8, 214u8, 58u8, 103u8, 176u8, 160u8, - 240u8, 249u8, 117u8, 115u8, - ], - ) - } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_elections_phragmen :: Voter < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Elections" , "Voting" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [9u8 , 135u8 , 76u8 , 194u8 , 240u8 , 182u8 , 111u8 , 207u8 , 102u8 , 37u8 , 126u8 , 36u8 , 84u8 , 112u8 , 26u8 , 216u8 , 175u8 , 5u8 , 14u8 , 189u8 , 83u8 , 185u8 , 136u8 , 39u8 , 171u8 , 221u8 , 147u8 , 20u8 , 168u8 , 126u8 , 111u8 , 137u8 ,]) - } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_elections_phragmen :: Voter < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Elections", - "Voting", - Vec::new(), - [ - 9u8, 135u8, 76u8, 194u8, 240u8, 182u8, 111u8, - 207u8, 102u8, 37u8, 126u8, 36u8, 84u8, 112u8, 26u8, - 216u8, 175u8, 5u8, 14u8, 189u8, 83u8, 185u8, 136u8, - 39u8, 171u8, 221u8, 147u8, 20u8, 168u8, 126u8, - 111u8, 137u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Identifier for the elections-phragmen pallet's lock"] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - [::core::primitive::u8; 8usize], - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "PalletId", - [ - 224u8, 197u8, 247u8, 125u8, 62u8, 180u8, 69u8, - 91u8, 226u8, 36u8, 82u8, 148u8, 70u8, 147u8, 209u8, - 40u8, 210u8, 229u8, 181u8, 191u8, 170u8, 205u8, - 138u8, 97u8, 127u8, 59u8, 124u8, 244u8, 252u8, - 30u8, 213u8, 179u8, - ], - ) - } - #[doc = " How much should be locked up in order to submit one's candidacy."] - pub fn candidacy_bond( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "CandidacyBond", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Base deposit associated with voting."] - #[doc = ""] - #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] - #[doc = " creating a gigantic number of votes."] - pub fn voting_bond_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "VotingBondBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] - pub fn voting_bond_factor( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "VotingBondFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Number of members to elect."] - pub fn desired_members( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "DesiredMembers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of runners_up to keep."] - pub fn desired_runners_up( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "DesiredRunnersUp", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How long each seat is kept. This defines the next block number at which an election"] - #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] - #[doc = " be in passive mode."] - pub fn term_duration( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "TermDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of candidates in a phragmen election."] - #[doc = ""] - #[doc = " Warning: The election happens onchain, and this value will determine"] - #[doc = " the size of the election. When this limit is reached no more"] - #[doc = " candidates are accepted in the election."] - pub fn max_candidates( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "MaxCandidates", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of voters to allow in a phragmen election."] - #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain."] - #[doc = " When the limit is reached the new voters are ignored."] - pub fn max_voters( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Elections", - "MaxVoters", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod election_provider_multi_phase { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct GovernanceFallback { - pub maybe_max_voters: - ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: - ::core::option::Option<::core::primitive::u32>, - } - 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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "submit_unsigned", - SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, - }, - [ - 100u8, 240u8, 31u8, 34u8, 93u8, 98u8, 93u8, 57u8, - 41u8, 197u8, 97u8, 58u8, 242u8, 10u8, 69u8, 250u8, - 185u8, 169u8, 21u8, 8u8, 202u8, 61u8, 36u8, 25u8, - 4u8, 148u8, 82u8, 56u8, 242u8, 18u8, 27u8, 219u8, - ], - ) - } - #[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: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "set_minimum_untrusted_score", - SetMinimumUntrustedScore { maybe_next_score }, - [ - 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, - 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, - 144u8, 74u8, 106u8, 15u8, 62u8, 196u8, 247u8, 49u8, - 20u8, 48u8, 3u8, 105u8, 85u8, 46u8, 76u8, 4u8, - 67u8, 81u8, - ], - ) - } - #[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: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "set_emergency_election_result", - SetEmergencyElectionResult { supports }, - [ - 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, - 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, - 54u8, 63u8, 251u8, 51u8, 214u8, 204u8, 55u8, 112u8, - 46u8, 228u8, 255u8, 250u8, 151u8, 5u8, 44u8, 133u8, - ], - ) - } - #[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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "submit", - Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - }, - [ - 220u8, 167u8, 40u8, 47u8, 253u8, 244u8, 72u8, - 124u8, 30u8, 123u8, 127u8, 227u8, 2u8, 66u8, 119u8, - 64u8, 211u8, 200u8, 210u8, 98u8, 248u8, 132u8, - 68u8, 25u8, 34u8, 182u8, 230u8, 225u8, 241u8, 58u8, - 193u8, 134u8, - ], - ) - } - #[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: ::core::option::Option< - ::core::primitive::u32, - >, - maybe_max_targets: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ElectionProviderMultiPhase", - "governance_fallback", - GovernanceFallback { - maybe_max_voters, - maybe_max_targets, - }, - [ - 206u8, 247u8, 76u8, 85u8, 7u8, 24u8, 231u8, 226u8, - 192u8, 143u8, 43u8, 67u8, 91u8, 202u8, 88u8, 176u8, - 130u8, 1u8, 83u8, 229u8, 227u8, 200u8, 179u8, 4u8, - 113u8, 60u8, 99u8, 190u8, 53u8, 226u8, 142u8, - 182u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A solution was stored with the given compute."] - #[doc = ""] - #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] - #[doc = "solution is unsigned, this means that it has also been processed."] - #[doc = ""] - #[doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] - pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub prev_ejected : :: core :: primitive :: bool , } - impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The election has been finalized, with the given computation and score."] - pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } - impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An election failed."] - #[doc = ""] - #[doc = "Not much can be said about which computes failed in the process."] - pub struct ElectionFailed; - impl ::subxt::events::StaticEvent for ElectionFailed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has been rewarded for their signed submission being finalized."] - pub struct Rewarded { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has been slashed for submitting an invalid signed submission."] - pub struct Slashed { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The signed phase of the given round has started."] - pub struct SignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The unsigned phase of the given round has started."] - pub struct UnsignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for UnsignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; - } - } - pub mod storage { - use super::runtime_types; - 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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "Round", - vec![], - [ - 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, - 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, - 34u8, 44u8, 166u8, 188u8, 199u8, 210u8, 21u8, 19u8, - 70u8, 96u8, 139u8, 8u8, 53u8, 82u8, 165u8, 239u8, - ], - ) - } - #[doc = " Current phase."] pub fn current_phase (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "CurrentPhase", - vec![], - [ - 236u8, 101u8, 8u8, 52u8, 68u8, 240u8, 74u8, 159u8, - 181u8, 53u8, 153u8, 101u8, 228u8, 81u8, 96u8, - 161u8, 34u8, 67u8, 35u8, 28u8, 121u8, 44u8, 229u8, - 45u8, 196u8, 87u8, 73u8, 125u8, 216u8, 245u8, - 255u8, 15u8, - ], - ) - } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "QueuedSolution", - vec![], - [ - 11u8, 152u8, 13u8, 167u8, 204u8, 209u8, 171u8, - 249u8, 59u8, 250u8, 58u8, 152u8, 164u8, 121u8, - 146u8, 112u8, 241u8, 16u8, 159u8, 251u8, 209u8, - 251u8, 114u8, 29u8, 188u8, 30u8, 84u8, 71u8, 136u8, - 173u8, 145u8, 236u8, - ], - ) - } - #[doc = " Snapshot data of the round."] - #[doc = ""] - #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "Snapshot", - vec![], - [ - 239u8, 56u8, 191u8, 77u8, 150u8, 224u8, 248u8, - 88u8, 132u8, 224u8, 164u8, 83u8, 253u8, 36u8, 46u8, - 156u8, 72u8, 152u8, 36u8, 206u8, 72u8, 27u8, 226u8, - 87u8, 146u8, 220u8, 93u8, 178u8, 26u8, 115u8, - 232u8, 71u8, - ], - ) - } - #[doc = " Desired number of targets to elect for this round."] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn desired_targets (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "DesiredTargets", - vec![], - [ - 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, - 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, - 90u8, 140u8, 31u8, 210u8, 2u8, 116u8, 220u8, 231u8, - 115u8, 112u8, 118u8, 118u8, 68u8, 34u8, 151u8, - 165u8, - ], - ) - } - #[doc = " The metadata of the [`RoundSnapshot`]"] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SnapshotMetadata", - vec![], - [ - 135u8, 122u8, 60u8, 75u8, 194u8, 240u8, 187u8, - 96u8, 240u8, 203u8, 192u8, 22u8, 117u8, 148u8, - 118u8, 24u8, 240u8, 213u8, 94u8, 22u8, 194u8, 47u8, - 181u8, 245u8, 77u8, 149u8, 11u8, 251u8, 117u8, - 220u8, 205u8, 78u8, - ], - ) - } - #[doc = " The next index to be assigned to an incoming signed submission."] - #[doc = ""] - #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] - #[doc = " submission for the duration of the election. On election finalization, the next index is"] - #[doc = " reset to 0."] - #[doc = ""] - #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] - #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] - #[doc = " because iteration is slow. Instead, we store the value here."] pub fn signed_submission_next_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SignedSubmissionNextIndex", - vec![], - [ - 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, - 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, - 59u8, 42u8, 238u8, 115u8, 8u8, 6u8, 137u8, 45u8, - 2u8, 123u8, 187u8, 53u8, 215u8, 19u8, 129u8, 54u8, - 22u8, - ], - ) - } - #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] - #[doc = " value in `SignedSubmissions`."] - #[doc = ""] - #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] - #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] - #[doc = " them one at a time instead of reading and decoding all of them at once."] pub fn signed_submission_indices (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SignedSubmissionIndices", - vec![], - [ - 228u8, 166u8, 94u8, 248u8, 71u8, 26u8, 125u8, 81u8, - 32u8, 22u8, 46u8, 185u8, 209u8, 123u8, 46u8, 17u8, - 152u8, 149u8, 222u8, 125u8, 112u8, 230u8, 29u8, - 177u8, 162u8, 214u8, 66u8, 38u8, 170u8, 121u8, - 129u8, 100u8, - ], - ) - } - #[doc = " Unchecked, signed solutions."] - #[doc = ""] - #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] - #[doc = " allowing us to keep only a single one in memory at a time."] - #[doc = ""] - #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "SignedSubmissionsMap", - Vec::new(), - [ - 84u8, 65u8, 205u8, 191u8, 143u8, 246u8, 239u8, - 27u8, 243u8, 54u8, 250u8, 8u8, 125u8, 32u8, 241u8, - 141u8, 210u8, 225u8, 56u8, 101u8, 241u8, 52u8, - 157u8, 29u8, 13u8, 155u8, 73u8, 132u8, 118u8, 53u8, - 2u8, 135u8, - ], - ) - } - #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] - #[doc = " feasible."] - #[doc = ""] - #[doc = " Can be set via `set_minimum_untrusted_score`."] pub fn minimum_untrusted_score (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_npos_elections :: ElectionScore > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ElectionProviderMultiPhase", - "MinimumUntrustedScore", - vec![], - [ - 77u8, 235u8, 181u8, 45u8, 230u8, 12u8, 0u8, 179u8, - 152u8, 38u8, 74u8, 199u8, 47u8, 84u8, 85u8, 55u8, - 171u8, 226u8, 217u8, 125u8, 17u8, 194u8, 95u8, - 157u8, 73u8, 245u8, 75u8, 130u8, 248u8, 7u8, 53u8, - 226u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "UnsignedPhase", - [ - 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 = " Duration of the signed phase."] - pub fn signed_phase( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedPhase", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Signed phase."] - pub fn better_signed_threshold( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "BetterSignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Unsigned phase."] - pub fn better_unsigned_threshold( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "BetterUnsignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The repeat threshold of the offchain worker."] - #[doc = ""] - #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] - #[doc = " to submit the worker's solution."] - pub fn offchain_repeat( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "OffchainRepeat", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] - pub fn miner_tx_priority( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MinerTxPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - #[doc = " Maximum number of signed submissions that can be queued."] - #[doc = ""] - #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] - #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] - #[doc = " update this value during an election, you _must_ ensure that"] - #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] - #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub fn signed_max_submissions( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedMaxSubmissions", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum weight of a signed solution."] - #[doc = ""] - #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] - #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] - #[doc = " this value."] - pub fn signed_max_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] - pub fn signed_max_refunds( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedMaxRefunds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Base reward for a signed solution"] - pub fn signed_reward_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 = " Base deposit for a signed solution."] - pub fn signed_deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "SignedDepositByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 electing voters to put in the snapshot. At the moment, snapshots"] - #[doc = " are only over a single block, but once multi-block elections are introduced they will"] - #[doc = " take place over multiple blocks."] - pub fn max_electing_voters( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MaxElectingVoters", - [ - 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 electable targets to put in the snapshot."] - pub fn max_electable_targets( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MaxElectableTargets", - [ - 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, - ], - ) - } - #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] - #[doc = " implementation."] - #[doc = ""] - #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MaxWinners", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MinerMaxLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_weight( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "ElectionProviderMultiPhase", - "MinerMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - pub fn miner_max_votes_per_voter( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 mod staking { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bond { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Chill; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNoEras; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNewEra; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceNewEraAlways; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetStakingConfigs { - pub min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, - } - 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 = "# "] - #[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_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] - pub fn bond( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "bond", - Bond { - controller, - value, - payee, - }, - [ - 140u8, 13u8, 108u8, 181u8, 212u8, 177u8, 190u8, - 212u8, 163u8, 40u8, 120u8, 232u8, 126u8, 213u8, - 6u8, 181u8, 99u8, 252u8, 58u8, 54u8, 139u8, 64u8, - 67u8, 76u8, 53u8, 226u8, 11u8, 133u8, 235u8, 159u8, - 103u8, 210u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn bond_extra( - &self, - max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "bond_extra", - BondExtra { max_additional }, - [ - 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, - 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, - 252u8, 15u8, 19u8, 128u8, 11u8, 187u8, 4u8, 151u8, - 103u8, 143u8, 24u8, 33u8, 149u8, 82u8, 35u8, 192u8, - ], - ) - } - #[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: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "unbond", - Unbond { value }, - [ - 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, - 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, - 114u8, 230u8, 240u8, 146u8, 14u8, 109u8, 185u8, - 151u8, 148u8, 44u8, 147u8, 182u8, 192u8, 253u8, - 51u8, 87u8, - ], - ) - } - #[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"] - #[doc = "whatever 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 = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] - #[doc = "# "] - pub fn withdraw_unbonded( - &self, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "withdraw_unbonded", - WithdrawUnbonded { num_slashing_spans }, - [ - 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, - 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, - 165u8, 192u8, 149u8, 249u8, 158u8, 159u8, 194u8, - 224u8, 118u8, 134u8, 204u8, 157u8, 72u8, 136u8, - 19u8, 193u8, 183u8, 84u8, - ], - ) - } - #[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: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "validate", - Validate { prefs }, - [ - 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, - 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, - 106u8, 200u8, 172u8, 108u8, 145u8, 194u8, 146u8, - 61u8, 145u8, 233u8, 168u8, 2u8, 26u8, 145u8, 101u8, - 114u8, 157u8, - ], - ) - } - #[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 = "# "] - #[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."] - #[doc = "# "] - pub fn nominate( - &self, - targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "nominate", - Nominate { targets }, - [ - 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, - 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, - 129u8, 156u8, 190u8, 83u8, 178u8, 170u8, 116u8, - 27u8, 8u8, 244u8, 56u8, 73u8, 164u8, 223u8, 199u8, - 115u8, 168u8, 83u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] - pub fn chill(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "chill", - Chill {}, - [ - 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, - 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, - 166u8, 230u8, 56u8, 16u8, 222u8, 31u8, 153u8, - 120u8, 62u8, 153u8, 67u8, 220u8, 239u8, 11u8, - 234u8, 127u8, 122u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] - pub fn set_payee( - &self, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_payee", - SetPayee { payee }, - [ - 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, - 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, - 245u8, 14u8, 171u8, 108u8, 195u8, 250u8, 133u8, - 0u8, 75u8, 192u8, 159u8, 84u8, 220u8, 242u8, 133u8, - 60u8, 62u8, - ], - ) - } - #[doc = "(Re-)set the controller of a stash."] - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] - pub fn set_controller( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_controller", - SetController { controller }, - [ - 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, - 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, - 117u8, 192u8, 143u8, 166u8, 38u8, 235u8, 75u8, - 161u8, 177u8, 229u8, 229u8, 82u8, 95u8, 39u8, 40u8, - 116u8, 9u8, 204u8, - ], - ) - } - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] - pub fn set_validator_count( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_validator_count", - SetValidatorCount { new }, - [ - 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, - 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, - 187u8, 194u8, 91u8, 15u8, 36u8, 215u8, 36u8, 160u8, - 108u8, 251u8, 60u8, 240u8, 202u8, 249u8, 235u8, - 28u8, 94u8, - ], - ) - } - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] - pub fn increase_validator_count( - &self, - additional: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "increase_validator_count", - IncreaseValidatorCount { additional }, - [ - 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, - 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, - 60u8, 158u8, 8u8, 78u8, 175u8, 219u8, 46u8, 51u8, - 222u8, 193u8, 193u8, 201u8, 78u8, 90u8, 58u8, 86u8, - 196u8, 17u8, - ], - ) - } - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] - pub fn scale_validator_count( - &self, - factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "scale_validator_count", - ScaleValidatorCount { factor }, - [ - 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, - 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, - 219u8, 167u8, 149u8, 112u8, 49u8, 139u8, 74u8, - 81u8, 172u8, 72u8, 253u8, 224u8, 56u8, 194u8, - 185u8, 90u8, 87u8, 125u8, - ], - ) - } - #[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 = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] - pub fn force_no_eras( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_no_eras", - ForceNoEras {}, - [ - 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, - 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, - 91u8, 120u8, 75u8, 24u8, 125u8, 53u8, 9u8, 28u8, - 242u8, 87u8, 245u8, 55u8, 40u8, 103u8, 151u8, - 178u8, - ], - ) - } - #[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 = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] - pub fn force_new_era( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_new_era", - ForceNewEra {}, - [ - 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, - 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, - 126u8, 73u8, 136u8, 162u8, 158u8, 174u8, 201u8, - 213u8, 230u8, 215u8, 44u8, 200u8, 32u8, 75u8, 27u8, - 23u8, 254u8, - ], - ) - } - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn set_invulnerables( - &self, - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_invulnerables", - SetInvulnerables { invulnerables }, - [ - 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, - 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, - 27u8, 76u8, 18u8, 203u8, 206u8, 9u8, 8u8, 81u8, - 35u8, 224u8, 22u8, 133u8, 58u8, 99u8, 103u8, 39u8, - ], - ) - } - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn force_unstake( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_unstake", - ForceUnstake { - stash, - num_slashing_spans, - }, - [ - 94u8, 247u8, 238u8, 47u8, 250u8, 6u8, 96u8, 175u8, - 173u8, 123u8, 161u8, 187u8, 162u8, 214u8, 176u8, - 233u8, 33u8, 33u8, 167u8, 239u8, 40u8, 223u8, 19u8, - 131u8, 230u8, 39u8, 175u8, 200u8, 36u8, 182u8, - 76u8, 207u8, - ], - ) - } - #[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::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_new_era_always", - ForceNewEraAlways {}, - [ - 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, - 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, - 117u8, 147u8, 225u8, 118u8, 34u8, 177u8, 197u8, - 158u8, 8u8, 82u8, 202u8, 108u8, 208u8, 26u8, 64u8, - 33u8, 74u8, 43u8, - ], - ) - } - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::SlashCancelOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] - pub fn cancel_deferred_slash( - &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "cancel_deferred_slash", - CancelDeferredSlash { era, slash_indices }, - [ - 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, - 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, - 106u8, 101u8, 19u8, 88u8, 146u8, 210u8, 171u8, - 44u8, 37u8, 50u8, 65u8, 178u8, 37u8, 223u8, 239u8, - 197u8, 116u8, 168u8, - ], - ) - } - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[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 = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] - pub fn payout_stakers( - &self, - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "payout_stakers", - PayoutStakers { - validator_stash, - era, - }, - [ - 184u8, 194u8, 33u8, 118u8, 7u8, 203u8, 89u8, 119u8, - 214u8, 76u8, 178u8, 20u8, 82u8, 111u8, 57u8, 132u8, - 212u8, 43u8, 232u8, 91u8, 252u8, 49u8, 42u8, 115u8, - 1u8, 181u8, 154u8, 207u8, 144u8, 206u8, 205u8, - 33u8, - ], - ) - } - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] - pub fn rebond( - &self, - value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "rebond", - Rebond { value }, - [ - 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, - 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, - 253u8, 196u8, 30u8, 234u8, 49u8, 102u8, 68u8, - 145u8, 96u8, 148u8, 219u8, 162u8, 17u8, 177u8, - 184u8, 34u8, 113u8, - ], - ) - } - #[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 = ""] - #[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."] - pub fn reap_stash( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "reap_stash", - ReapStash { - stash, - num_slashing_spans, - }, - [ - 34u8, 168u8, 120u8, 161u8, 95u8, 199u8, 106u8, - 233u8, 61u8, 240u8, 166u8, 31u8, 183u8, 165u8, - 158u8, 179u8, 32u8, 130u8, 27u8, 164u8, 112u8, - 44u8, 14u8, 125u8, 227u8, 87u8, 70u8, 203u8, 194u8, - 24u8, 212u8, 177u8, - ], - ) - } - #[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: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "kick", - Kick { who }, - [ - 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, - 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, - 115u8, 243u8, 166u8, 120u8, 121u8, 70u8, 227u8, - 240u8, 205u8, 240u8, 211u8, 202u8, 251u8, 232u8, - 209u8, 12u8, - ], - ) - } - #[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 : 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 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "set_staking_configs", - SetStakingConfigs { - min_nominator_bond, - min_validator_bond, - max_nominator_count, - max_validator_count, - chill_threshold, - min_commission, - }, - [ - 176u8, 168u8, 155u8, 176u8, 27u8, 79u8, 223u8, - 92u8, 88u8, 93u8, 223u8, 69u8, 179u8, 250u8, 138u8, - 138u8, 87u8, 220u8, 36u8, 3u8, 126u8, 213u8, 16u8, - 68u8, 3u8, 16u8, 218u8, 151u8, 98u8, 169u8, 217u8, - 75u8, - ], - ) - } - #[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, - controller: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "chill_other", - ChillOther { controller }, - [ - 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, - 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, - 220u8, 166u8, 170u8, 135u8, 176u8, 68u8, 228u8, - 14u8, 67u8, 42u8, 52u8, 140u8, 231u8, 62u8, 167u8, - 80u8, 173u8, - ], - ) - } - #[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: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Staking", - "force_apply_min_commission", - ForceApplyMinCommission { validator_stash }, - [ - 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, - 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, - 78u8, 123u8, 229u8, 135u8, 129u8, 241u8, 119u8, - 106u8, 41u8, 182u8, 121u8, 181u8, 242u8, 175u8, - 74u8, 207u8, 64u8, 106u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - pub validator_payout: ::core::primitive::u128, - pub remainder: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for EraPaid { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "EraPaid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The nominator has been rewarded by this amount."] - pub struct Rewarded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A staker (validator or nominator) has been slashed by the given amount."] - pub struct Slashed { - pub staker: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, - pub slash_era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "SlashReported"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An old slashing report from a prior era was discarded because it could"] - #[doc = "not be processed."] - pub struct OldSlashingReportDiscarded { - pub session_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "OldSlashingReportDiscarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new set of stakers was elected."] - pub struct StakersElected; - impl ::subxt::events::StaticEvent for StakersElected { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakersElected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has unbonded this amount."] - pub struct Unbonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] - #[doc = "from the unlocking queue."] - pub struct Withdrawn { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A nominator has been kicked from a validator."] - pub struct Kicked { - pub nominator: ::subxt::utils::AccountId32, - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Kicked { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Kicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The election failed. No new era is planned."] - pub struct StakingElectionFailed; - impl ::subxt::events::StaticEvent for StakingElectionFailed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakingElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account has stopped participating as either a validator or nominator."] - pub struct Chilled { - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Chilled { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Chilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The stakers' rewards are getting paid."] - pub struct PayoutStarted { - pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for PayoutStarted { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "PayoutStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A validator has set their preferences."] - pub struct ValidatorPrefsSet { - pub stash: ::subxt::utils::AccountId32, - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ValidatorPrefsSet"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The ideal number of active validators."] pub fn validator_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ValidatorCount", - vec![], - [ - 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, - 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, - 184u8, 207u8, 6u8, 0u8, 126u8, 221u8, 67u8, 125u8, - 218u8, 188u8, 245u8, 156u8, 188u8, 34u8, 85u8, - 208u8, 197u8, - ], - ) - } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinimumValidatorCount", - vec![], - [ - 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, - 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, - 175u8, 1u8, 234u8, 162u8, 91u8, 252u8, 127u8, 68u8, - 243u8, 241u8, 13u8, 107u8, 214u8, 70u8, 87u8, - 249u8, - ], - ) - } - #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] - #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] - #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Invulnerables", - vec![], - [ - 77u8, 78u8, 63u8, 199u8, 150u8, 167u8, 135u8, - 130u8, 192u8, 51u8, 202u8, 119u8, 68u8, 49u8, - 241u8, 68u8, 82u8, 90u8, 226u8, 201u8, 96u8, 170u8, - 21u8, 173u8, 236u8, 116u8, 148u8, 8u8, 174u8, 92u8, - 7u8, 11u8, - ], - ) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] pub fn bonded (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] pub fn bonded_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Bonded", - Vec::new(), - [ - 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, - 77u8, 15u8, 118u8, 193u8, 155u8, 97u8, 229u8, 36u8, - 119u8, 128u8, 224u8, 162u8, 21u8, 46u8, 199u8, - 221u8, 15u8, 74u8, 59u8, 70u8, 77u8, 218u8, 73u8, - 165u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinNominatorBond", - vec![], - [ - 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, - 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, - 127u8, 223u8, 58u8, 134u8, 81u8, 165u8, 200u8, - 142u8, 196u8, 158u8, 26u8, 38u8, 165u8, 19u8, 91u8, - 251u8, 119u8, 84u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinValidatorBond", - vec![], - [ - 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, - 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, - 66u8, 182u8, 92u8, 20u8, 22u8, 109u8, 155u8, 174u8, - 87u8, 118u8, 242u8, 216u8, 193u8, 154u8, 4u8, 5u8, - 66u8, 56u8, - ], - ) - } - #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinimumActiveStake", - vec![], - [ - 172u8, 190u8, 228u8, 47u8, 47u8, 192u8, 182u8, - 59u8, 9u8, 18u8, 103u8, 46u8, 175u8, 54u8, 17u8, - 79u8, 89u8, 107u8, 255u8, 200u8, 182u8, 107u8, - 89u8, 157u8, 55u8, 16u8, 77u8, 46u8, 154u8, 169u8, - 103u8, 151u8, - ], - ) - } - #[doc = " The minimum amount of commission that validators can set."] - #[doc = ""] - #[doc = " If set to `0`, no limit exists."] pub fn min_commission (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Perbill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MinCommission", - vec![], - [ - 61u8, 101u8, 69u8, 27u8, 220u8, 179u8, 5u8, 71u8, - 66u8, 227u8, 84u8, 98u8, 18u8, 141u8, 183u8, 49u8, - 98u8, 46u8, 123u8, 114u8, 198u8, 85u8, 15u8, 175u8, - 243u8, 239u8, 133u8, 129u8, 146u8, 174u8, 254u8, - 158u8, - ], - ) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: StakingLedger > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: StakingLedger > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Ledger", - Vec::new(), - [ - 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, - 33u8, 189u8, 124u8, 120u8, 177u8, 70u8, 27u8, - 242u8, 188u8, 184u8, 204u8, 188u8, 242u8, 140u8, - 128u8, 230u8, 85u8, 99u8, 181u8, 173u8, 67u8, - 252u8, 37u8, 236u8, - ], - ) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] pub fn payee (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] pub fn payee_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Payee", - Vec::new(), - [ - 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, - 187u8, 163u8, 20u8, 230u8, 153u8, 13u8, 189u8, - 232u8, 119u8, 118u8, 107u8, 17u8, 102u8, 245u8, - 36u8, 42u8, 232u8, 137u8, 177u8, 165u8, 169u8, - 246u8, 199u8, 57u8, - ], - ) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] pub fn validators (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] pub fn validators_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Validators", - Vec::new(), - [ - 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, - 43u8, 24u8, 149u8, 164u8, 208u8, 60u8, 144u8, 29u8, - 251u8, 195u8, 236u8, 196u8, 108u8, 58u8, 80u8, - 115u8, 246u8, 66u8, 226u8, 241u8, 201u8, 172u8, - 229u8, 152u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CounterForValidators", - vec![], - [ - 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, - 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, - 112u8, 85u8, 49u8, 78u8, 88u8, 11u8, 8u8, 48u8, - 118u8, 34u8, 62u8, 159u8, 239u8, 122u8, 90u8, 45u8, - ], - ) - } - #[doc = " The maximum validator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MaxValidatorsCount", - vec![], - [ - 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, - 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, - 62u8, 131u8, 112u8, 64u8, 26u8, 133u8, 7u8, 130u8, - 1u8, 71u8, 158u8, 14u8, 55u8, 169u8, 239u8, 223u8, - 245u8, - ], - ) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] pub fn nominators (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Nominations > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] pub fn nominators_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Nominations > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "Nominators", - Vec::new(), - [ - 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, - 254u8, 19u8, 152u8, 85u8, 164u8, 171u8, 206u8, - 129u8, 184u8, 45u8, 221u8, 181u8, 229u8, 133u8, - 200u8, 231u8, 16u8, 146u8, 247u8, 21u8, 77u8, - 122u8, 165u8, 134u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CounterForNominators", - vec![], - [ - 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, - 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, - 40u8, 117u8, 215u8, 46u8, 82u8, 117u8, 225u8, 1u8, - 9u8, 208u8, 83u8, 63u8, 39u8, 187u8, 207u8, 191u8, - ], - ) - } - #[doc = " The maximum nominator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "MaxNominatorsCount", - vec![], - [ - 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, - 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, - 32u8, 119u8, 3u8, 73u8, 86u8, 49u8, 104u8, 17u8, - 186u8, 98u8, 221u8, 175u8, 109u8, 254u8, 207u8, - 245u8, 125u8, 179u8, - ], - ) - } - #[doc = " The current era index."] - #[doc = ""] - #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] - #[doc = " set, it might be active or not."] pub fn current_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CurrentEra", - vec![], - [ - 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, - 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, - 7u8, 10u8, 117u8, 71u8, 240u8, 74u8, 86u8, 36u8, - 198u8, 37u8, 153u8, 93u8, 196u8, 22u8, 192u8, - 243u8, - ], - ) - } - #[doc = " The active era information, it holds index and start."] - #[doc = ""] - #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] - #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ActiveEraInfo > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ActiveEra", - vec![], - [ - 15u8, 112u8, 251u8, 183u8, 108u8, 61u8, 28u8, 71u8, - 44u8, 150u8, 162u8, 4u8, 143u8, 121u8, 11u8, 37u8, - 83u8, 29u8, 193u8, 21u8, 210u8, 116u8, 190u8, - 236u8, 213u8, 235u8, 49u8, 97u8, 189u8, 142u8, - 251u8, 124u8, - ], - ) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasStartSessionIndex", - Vec::new(), - [ - 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, - 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, - 100u8, 163u8, 91u8, 32u8, 246u8, 122u8, 78u8, - 149u8, 214u8, 103u8, 249u8, 119u8, 20u8, 101u8, - 116u8, 110u8, 185u8, - ], - ) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasStakers", - Vec::new(), - [ - 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, - 15u8, 139u8, 210u8, 128u8, 65u8, 92u8, 253u8, 43u8, - 35u8, 139u8, 171u8, 73u8, 185u8, 32u8, 78u8, 20u8, - 197u8, 154u8, 90u8, 233u8, 231u8, 23u8, 22u8, - 187u8, 156u8, - ], - ) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasStakersClipped", - Vec::new(), - [ - 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, - 153u8, 26u8, 55u8, 71u8, 119u8, 174u8, 48u8, 158u8, - 45u8, 214u8, 26u8, 136u8, 215u8, 46u8, 161u8, - 185u8, 17u8, 174u8, 204u8, 206u8, 246u8, 49u8, - 87u8, 134u8, 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 `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: ValidatorPrefs > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasValidatorPrefs", - Vec::new(), - [ - 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, - 129u8, 62u8, 4u8, 56u8, 234u8, 114u8, 141u8, 136u8, - 127u8, 224u8, 142u8, 89u8, 150u8, 33u8, 31u8, 50u8, - 140u8, 108u8, 124u8, 77u8, 188u8, 102u8, 230u8, - 174u8, - ], - ) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasValidatorReward", - Vec::new(), - [ - 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, - 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, - 179u8, 84u8, 161u8, 223u8, 255u8, 254u8, 107u8, - 52u8, 89u8, 98u8, 169u8, 136u8, 241u8, 104u8, 3u8, - 244u8, 161u8, - ], - ) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: EraRewardPoints < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: EraRewardPoints < :: subxt :: utils :: AccountId32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasRewardPoints", - Vec::new(), - [ - 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, - 88u8, 65u8, 24u8, 255u8, 120u8, 178u8, 23u8, 232u8, - 15u8, 64u8, 206u8, 0u8, 170u8, 40u8, 18u8, 149u8, - 45u8, 90u8, 179u8, 127u8, 52u8, 59u8, 37u8, 192u8, - ], - ) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ErasTotalStake", - Vec::new(), - [ - 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, - 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, - 239u8, 1u8, 110u8, 53u8, 11u8, 247u8, 235u8, 142u8, - 234u8, 22u8, 43u8, 24u8, 36u8, 37u8, 43u8, 170u8, - 40u8, - ], - ) - } - #[doc = " Mode of era forcing."] pub fn force_era (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Forcing > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ForceEra", - vec![], - [ - 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, - 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, - 131u8, 214u8, 136u8, 68u8, 156u8, 140u8, 194u8, - 69u8, 151u8, 115u8, 177u8, 92u8, 147u8, 29u8, 40u8, - 41u8, 31u8, - ], - ) - } - #[doc = " The percentage of the slash that is distributed to reporters."] - #[doc = ""] - #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Perbill > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "SlashRewardFraction", - vec![], - [ - 167u8, 79u8, 143u8, 202u8, 199u8, 100u8, 129u8, - 162u8, 23u8, 165u8, 106u8, 170u8, 244u8, 86u8, - 144u8, 242u8, 65u8, 207u8, 115u8, 224u8, 231u8, - 155u8, 55u8, 139u8, 101u8, 129u8, 242u8, 196u8, - 130u8, 50u8, 3u8, 117u8, - ], - ) - } - #[doc = " The amount of currency given to reporters of a slash event which was"] - #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CanceledSlashPayout", - vec![], - [ - 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, - 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, - 156u8, 83u8, 14u8, 91u8, 15u8, 200u8, 170u8, 3u8, - 127u8, 141u8, 139u8, 151u8, 98u8, 74u8, 96u8, - 238u8, 29u8, - ], - ) - } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) - } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "UnappliedSlashes", - Vec::new(), - [ - 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, - 47u8, 125u8, 57u8, 0u8, 133u8, 176u8, 130u8, 2u8, - 175u8, 180u8, 167u8, 203u8, 230u8, 82u8, 198u8, - 183u8, 55u8, 82u8, 221u8, 248u8, 100u8, 173u8, - 206u8, 151u8, - ], - ) - } - #[doc = " A mapping from still-bonded eras to the first session index of that era."] - #[doc = ""] - #[doc = " Must contains information for eras for the range:"] - #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "BondedEras", - vec![], - [ - 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, - 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, - 89u8, 206u8, 2u8, 155u8, 222u8, 154u8, 116u8, - 124u8, 4u8, 119u8, 155u8, 94u8, 248u8, 30u8, 171u8, - 51u8, 78u8, 106u8, - ], - ) - } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] pub fn validator_slash_in_era (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: core :: primitive :: u128 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: core :: primitive :: u128 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ValidatorSlashInEra", - Vec::new(), - [ - 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, - 251u8, 196u8, 85u8, 29u8, 27u8, 151u8, 98u8, 122u8, - 189u8, 147u8, 205u8, 40u8, 202u8, 194u8, 158u8, - 96u8, 138u8, 16u8, 116u8, 71u8, 140u8, 163u8, - 121u8, 197u8, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "NominatorSlashInEra", - Vec::new(), - [ - 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, - 12u8, 53u8, 101u8, 80u8, 96u8, 166u8, 71u8, 239u8, - 23u8, 153u8, 19u8, 152u8, 38u8, 138u8, 136u8, - 221u8, 200u8, 18u8, 165u8, 26u8, 228u8, 195u8, - 199u8, 62u8, 4u8, - ], - ) - } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SlashingSpans > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) - } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SlashingSpans > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "SlashingSpans", - Vec::new(), - [ - 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, - 255u8, 204u8, 44u8, 5u8, 66u8, 36u8, 227u8, 252u8, - 86u8, 159u8, 186u8, 152u8, 196u8, 21u8, 74u8, - 201u8, 133u8, 93u8, 142u8, 191u8, 20u8, 27u8, - 218u8, 157u8, - ], - ) - } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] pub fn span_slash (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SpanRecord < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: slashing :: SpanRecord < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "SpanSlash", - Vec::new(), - [ - 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, - 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, - 116u8, 210u8, 225u8, 230u8, 224u8, 163u8, 103u8, - 157u8, 100u8, 29u8, 86u8, 167u8, 84u8, 217u8, - 109u8, 200u8, - ], - ) - } - #[doc = " The last planned session scheduled by the session pallet."] - #[doc = ""] - #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "CurrentPlannedSession", - vec![], - [ - 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, - 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, - 190u8, 53u8, 241u8, 11u8, 185u8, 163u8, 227u8, - 10u8, 77u8, 210u8, 64u8, 156u8, 218u8, 105u8, 16u8, - 1u8, 57u8, - ], - ) - } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] - #[doc = " disabled."] - #[doc = ""] - #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] - #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] - #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] - #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] - #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] pub fn offending_validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: bool ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "OffendingValidators", - vec![], - [ - 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, - 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, - 82u8, 182u8, 104u8, 167u8, 103u8, 187u8, 168u8, - 86u8, 16u8, 51u8, 235u8, 51u8, 119u8, 38u8, 154u8, - 42u8, 113u8, - ], - ) - } - #[doc = " True if network has been upgraded to this version."] - #[doc = " Storage version of the pallet."] - #[doc = ""] - #[doc = " This is set to v7.0.0 for new networks."] pub fn storage_version (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_staking :: Releases > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "StorageVersion", - vec![], - [ - 70u8, 24u8, 179u8, 189u8, 168u8, 164u8, 175u8, - 150u8, 215u8, 43u8, 18u8, 110u8, 180u8, 137u8, - 237u8, 187u8, 185u8, 50u8, 31u8, 57u8, 16u8, 110u8, - 6u8, 170u8, 19u8, 7u8, 160u8, 134u8, 232u8, 227u8, - 151u8, 116u8, - ], - ) - } - #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] - #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] - #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_arithmetic :: per_things :: Percent > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Staking", - "ChillThreshold", - vec![], - [ - 174u8, 165u8, 249u8, 105u8, 24u8, 151u8, 115u8, - 166u8, 199u8, 251u8, 28u8, 5u8, 50u8, 95u8, 144u8, - 110u8, 220u8, 76u8, 14u8, 23u8, 179u8, 41u8, 11u8, - 248u8, 28u8, 154u8, 159u8, 255u8, 156u8, 109u8, - 98u8, 92u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "MaxNominations", - [ - 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 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`,"] - #[doc = " `StakingLedger.claimed_rewards`."] - #[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.claimed_rewards`. Setting this value lower than"] - #[doc = " the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a migration."] - #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "HistoryDepth", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of sessions per era."] - pub fn sessions_per_era( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "SessionsPerEra", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "BondingDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that slashes are deferred by, after computation."] - #[doc = ""] - #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] - #[doc = " should be applied immediately, without opportunity for intervention."] - pub fn slash_defer_duration( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 number of nominators rewarded for each validator."] - #[doc = ""] - #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] - #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub fn max_nominator_rewarded_per_validator( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Staking", - "MaxNominatorRewardedPerValidator", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] - #[doc = " have. Effectively determines how many unique eras a staker may be"] - #[doc = " unbonding in."] - #[doc = ""] - #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] - #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] - #[doc = " lower than the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] - #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] - #[doc = " this effect."] - pub fn max_unlocking_chunks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 session { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetKeys { pub keys : runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys , pub proof : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PurgeKeys; - 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 = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - pub fn set_keys( - &self, - keys : runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Session", - "set_keys", - SetKeys { keys, proof }, - [ - 96u8, 118u8, 0u8, 203u8, 157u8, 82u8, 2u8, 238u8, - 94u8, 39u8, 248u8, 255u8, 155u8, 43u8, 191u8, 64u8, - 200u8, 223u8, 108u8, 198u8, 114u8, 0u8, 53u8, 15u8, - 203u8, 47u8, 205u8, 234u8, 131u8, 177u8, 139u8, - 185u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - pub fn purge_keys( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Session", - "purge_keys", - PurgeKeys {}, - [ - 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, - 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, - 44u8, 91u8, 31u8, 145u8, 23u8, 213u8, 64u8, 71u8, - 242u8, 207u8, 239u8, 231u8, 37u8, 61u8, 63u8, - 190u8, 35u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_session::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NewSession { - const PALLET: &'static str = "Session"; - const EVENT: &'static str = "NewSession"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current set of validators."] pub fn validators (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "Validators", - vec![], - [ - 144u8, 235u8, 200u8, 43u8, 151u8, 57u8, 147u8, - 172u8, 201u8, 202u8, 242u8, 96u8, 57u8, 76u8, - 124u8, 77u8, 42u8, 113u8, 218u8, 220u8, 230u8, - 32u8, 151u8, 152u8, 172u8, 106u8, 60u8, 227u8, - 122u8, 118u8, 137u8, 68u8, - ], - ) - } - #[doc = " Current index of the session."] pub fn current_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "CurrentIndex", - vec![], - [ - 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, - 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, - 181u8, 191u8, 143u8, 252u8, 227u8, 80u8, 159u8, - 66u8, 194u8, 67u8, 113u8, 74u8, 111u8, 91u8, 218u8, - 187u8, 130u8, 40u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "QueuedChanged", - vec![], - [ - 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, - 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, - 202u8, 152u8, 42u8, 50u8, 113u8, 200u8, 247u8, - 59u8, 213u8, 77u8, 195u8, 1u8, 150u8, 220u8, 18u8, - 245u8, 46u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "QueuedKeys", - vec![], - [ - 6u8, 142u8, 45u8, 83u8, 248u8, 49u8, 224u8, 50u8, - 60u8, 233u8, 70u8, 144u8, 29u8, 121u8, 17u8, 65u8, - 76u8, 193u8, 222u8, 91u8, 128u8, 19u8, 85u8, 65u8, - 58u8, 89u8, 159u8, 156u8, 138u8, 76u8, 181u8, - 188u8, - ], - ) - } - #[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 :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "DisabledValidators", - vec![], - [ - 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, - 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, - 31u8, 20u8, 242u8, 73u8, 104u8, 11u8, 110u8, 214u8, - 34u8, 52u8, 217u8, 106u8, 33u8, 174u8, 174u8, - 198u8, 84u8, - ], - ) - } - #[doc = " The next session keys for a validator."] pub fn next_keys (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [227u8 , 242u8 , 225u8 , 78u8 , 154u8 , 151u8 , 147u8 , 206u8 , 94u8 , 82u8 , 85u8 , 255u8 , 86u8 , 111u8 , 54u8 , 199u8 , 116u8 , 193u8 , 170u8 , 217u8 , 87u8 , 169u8 , 81u8 , 99u8 , 247u8 , 214u8 , 241u8 , 221u8 , 116u8 , 133u8 , 146u8 , 117u8 ,]) - } - #[doc = " The next session keys for a validator."] pub fn next_keys_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "NextKeys", - Vec::new(), - [ - 227u8, 242u8, 225u8, 78u8, 154u8, 151u8, 147u8, - 206u8, 94u8, 82u8, 85u8, 255u8, 86u8, 111u8, 54u8, - 199u8, 116u8, 193u8, 170u8, 217u8, 87u8, 169u8, - 81u8, 99u8, 247u8, 214u8, 241u8, 221u8, 116u8, - 133u8, 146u8, 117u8, - ], - ) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: crypto :: KeyTypeId > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Session", - "KeyOwner", - Vec::new(), - [ - 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, - 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, - 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, 0u8, - 148u8, 203u8, 144u8, 149u8, 64u8, 135u8, 254u8, - 242u8, 215u8, - ], - ) - } - } - } - } - pub mod historical { - use super::root_mod; - use super::runtime_types; - } - pub mod treasury { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeSpend { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Spend { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveApproval { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] - pub fn propose_spend( - &self, - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "propose_spend", - ProposeSpend { value, beneficiary }, - [ - 124u8, 32u8, 83u8, 127u8, 240u8, 169u8, 3u8, 190u8, - 235u8, 163u8, 23u8, 29u8, 88u8, 242u8, 238u8, - 187u8, 136u8, 75u8, 193u8, 192u8, 239u8, 2u8, 54u8, - 238u8, 147u8, 42u8, 91u8, 14u8, 244u8, 175u8, 41u8, - 14u8, - ], - ) - } - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] - pub fn reject_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "reject_proposal", - RejectProposal { proposal_id }, - [ - 106u8, 223u8, 97u8, 22u8, 111u8, 208u8, 128u8, - 26u8, 198u8, 140u8, 118u8, 126u8, 187u8, 51u8, - 193u8, 50u8, 193u8, 68u8, 143u8, 144u8, 34u8, - 132u8, 44u8, 244u8, 105u8, 186u8, 223u8, 234u8, - 17u8, 145u8, 209u8, 145u8, - ], - ) - } - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] - pub fn approve_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "approve_proposal", - ApproveProposal { proposal_id }, - [ - 164u8, 229u8, 172u8, 98u8, 129u8, 62u8, 84u8, - 128u8, 47u8, 108u8, 33u8, 120u8, 89u8, 79u8, 57u8, - 121u8, 4u8, 197u8, 170u8, 153u8, 156u8, 17u8, 59u8, - 164u8, 123u8, 227u8, 175u8, 195u8, 220u8, 160u8, - 60u8, 186u8, - ], - ) - } - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] - pub fn spend( - &self, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "spend", - Spend { - amount, - beneficiary, - }, - [ - 208u8, 79u8, 96u8, 218u8, 205u8, 209u8, 165u8, - 119u8, 92u8, 208u8, 54u8, 168u8, 83u8, 190u8, 98u8, - 97u8, 6u8, 2u8, 35u8, 249u8, 18u8, 88u8, 193u8, - 51u8, 130u8, 33u8, 28u8, 99u8, 49u8, 194u8, 34u8, - 77u8, - ], - ) - } - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] - pub fn remove_approval( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Treasury", - "remove_approval", - RemoveApproval { proposal_id }, - [ - 133u8, 126u8, 181u8, 47u8, 196u8, 243u8, 7u8, 46u8, - 25u8, 251u8, 154u8, 125u8, 217u8, 77u8, 54u8, - 245u8, 240u8, 180u8, 97u8, 34u8, 186u8, 53u8, - 225u8, 144u8, 155u8, 107u8, 172u8, 54u8, 250u8, - 184u8, 178u8, 86u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_treasury::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New proposal."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "We have ended a spend period and will now allocate funds."] - pub struct Spending { - pub budget_remaining: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Spending { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Spending"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some funds have been allocated."] - pub struct Awarded { - pub proposal_index: ::core::primitive::u32, - pub award: ::core::primitive::u128, - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Awarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A proposal was rejected; funds were slashed."] - pub struct Rejected { - pub proposal_index: ::core::primitive::u32, - pub slashed: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some of our funds have been burnt."] - pub struct Burnt { - pub burnt_funds: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Burnt { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Burnt"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - pub struct Rollover { - pub rollover_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rollover { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rollover"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some funds have been deposited."] - pub struct Deposit { - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new spend proposal has been approved."] - pub struct SpendApproved { - pub proposal_index: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for SpendApproved { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "SpendApproved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of proposals that have been made."] pub fn proposal_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "ProposalCount", - vec![], - [ - 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, - 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, - 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, - 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, - 127u8, 160u8, 34u8, 70u8, - ], - ) - } - #[doc = " Proposals that have been made."] pub fn proposals (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_treasury :: Proposal < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Treasury" , "Proposals" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [62u8 , 223u8 , 55u8 , 209u8 , 151u8 , 134u8 , 122u8 , 65u8 , 207u8 , 38u8 , 113u8 , 213u8 , 237u8 , 48u8 , 129u8 , 32u8 , 91u8 , 228u8 , 108u8 , 91u8 , 37u8 , 49u8 , 94u8 , 4u8 , 75u8 , 122u8 , 25u8 , 34u8 , 198u8 , 224u8 , 246u8 , 160u8 ,]) - } - #[doc = " Proposals that have been made."] pub fn proposals_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_treasury :: Proposal < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "Proposals", - Vec::new(), - [ - 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, - 65u8, 207u8, 38u8, 113u8, 213u8, 237u8, 48u8, - 129u8, 32u8, 91u8, 228u8, 108u8, 91u8, 37u8, 49u8, - 94u8, 4u8, 75u8, 122u8, 25u8, 34u8, 198u8, 224u8, - 246u8, 160u8, - ], - ) - } - #[doc = " The amount which has been reported as inactive to Currency."] pub fn inactive (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "Inactive", - vec![], - [ - 240u8, 100u8, 242u8, 40u8, 169u8, 252u8, 255u8, - 248u8, 66u8, 157u8, 165u8, 206u8, 229u8, 145u8, - 80u8, 73u8, 237u8, 44u8, 72u8, 76u8, 101u8, 215u8, - 87u8, 33u8, 252u8, 224u8, 54u8, 138u8, 79u8, 99u8, - 225u8, 34u8, - ], - ) - } - #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Treasury", - "Approvals", - vec![], - [ - 202u8, 106u8, 189u8, 40u8, 127u8, 172u8, 108u8, - 50u8, 193u8, 4u8, 248u8, 226u8, 176u8, 101u8, - 212u8, 222u8, 64u8, 206u8, 244u8, 175u8, 111u8, - 106u8, 86u8, 96u8, 19u8, 109u8, 218u8, 152u8, 30u8, - 59u8, 96u8, 1u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] - #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub fn proposal_bond( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "ProposalBond", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_minimum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "ProposalBondMinimum", - [ - 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 amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "ProposalBondMaximum", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Period between successive spends."] - pub fn spend_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "Burn", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Treasury", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod bounties { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeBounty { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ApproveBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnassignCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AcceptCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AwardBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CloseBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExtendBountyExpiry { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - 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: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "propose_bounty", - ProposeBounty { value, description }, - [ - 99u8, 160u8, 94u8, 74u8, 105u8, 161u8, 123u8, - 239u8, 241u8, 117u8, 97u8, 99u8, 84u8, 101u8, 87u8, - 3u8, 88u8, 175u8, 75u8, 59u8, 114u8, 87u8, 18u8, - 113u8, 126u8, 26u8, 42u8, 104u8, 201u8, 128u8, - 102u8, 219u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn approve_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "approve_bounty", - ApproveBounty { bounty_id }, - [ - 82u8, 228u8, 232u8, 103u8, 198u8, 173u8, 190u8, - 148u8, 159u8, 86u8, 48u8, 4u8, 32u8, 169u8, 1u8, - 129u8, 96u8, 145u8, 235u8, 68u8, 48u8, 34u8, 5u8, - 1u8, 76u8, 26u8, 100u8, 228u8, 92u8, 198u8, 183u8, - 173u8, - ], - ) - } - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn propose_curator( - &self, - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "propose_curator", - ProposeCurator { - bounty_id, - curator, - fee, - }, - [ - 85u8, 186u8, 206u8, 137u8, 98u8, 87u8, 202u8, 71u8, - 89u8, 241u8, 56u8, 212u8, 89u8, 215u8, 65u8, 97u8, - 202u8, 139u8, 78u8, 66u8, 92u8, 177u8, 163u8, - 111u8, 212u8, 244u8, 41u8, 153u8, 104u8, 129u8, - 112u8, 237u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn unassign_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "unassign_curator", - UnassignCurator { bounty_id }, - [ - 218u8, 241u8, 247u8, 89u8, 95u8, 120u8, 93u8, 18u8, - 85u8, 114u8, 158u8, 254u8, 68u8, 77u8, 230u8, - 186u8, 230u8, 201u8, 63u8, 223u8, 28u8, 173u8, - 244u8, 82u8, 113u8, 177u8, 99u8, 27u8, 207u8, - 247u8, 207u8, 213u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn accept_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "accept_curator", - AcceptCurator { bounty_id }, - [ - 106u8, 96u8, 22u8, 67u8, 52u8, 109u8, 180u8, 225u8, - 122u8, 253u8, 209u8, 214u8, 132u8, 131u8, 247u8, - 131u8, 162u8, 51u8, 144u8, 30u8, 12u8, 126u8, 50u8, - 152u8, 229u8, 119u8, 54u8, 116u8, 112u8, 235u8, - 34u8, 166u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn award_bounty( - &self, - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "award_bounty", - AwardBounty { - bounty_id, - beneficiary, - }, - [ - 7u8, 205u8, 73u8, 45u8, 57u8, 8u8, 24u8, 135u8, - 89u8, 157u8, 35u8, 176u8, 224u8, 106u8, 167u8, - 232u8, 230u8, 153u8, 239u8, 45u8, 210u8, 61u8, - 17u8, 106u8, 220u8, 131u8, 105u8, 136u8, 232u8, - 194u8, 243u8, 48u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn claim_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "claim_bounty", - ClaimBounty { bounty_id }, - [ - 102u8, 95u8, 8u8, 89u8, 4u8, 126u8, 189u8, 28u8, - 241u8, 16u8, 125u8, 218u8, 42u8, 92u8, 177u8, 91u8, - 8u8, 235u8, 33u8, 48u8, 64u8, 115u8, 177u8, 95u8, - 242u8, 97u8, 181u8, 50u8, 68u8, 37u8, 59u8, 85u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn close_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "close_bounty", - CloseBounty { bounty_id }, - [ - 64u8, 113u8, 151u8, 228u8, 90u8, 55u8, 251u8, 63u8, - 27u8, 211u8, 119u8, 229u8, 137u8, 137u8, 183u8, - 240u8, 241u8, 146u8, 69u8, 169u8, 124u8, 220u8, - 236u8, 111u8, 98u8, 188u8, 100u8, 52u8, 127u8, - 245u8, 244u8, 92u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn extend_bounty_expiry( - &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Bounties", - "extend_bounty_expiry", - ExtendBountyExpiry { bounty_id, remark }, - [ - 97u8, 69u8, 157u8, 39u8, 59u8, 72u8, 79u8, 88u8, - 104u8, 119u8, 91u8, 26u8, 73u8, 216u8, 174u8, 95u8, - 254u8, 214u8, 63u8, 138u8, 100u8, 112u8, 185u8, - 81u8, 159u8, 247u8, 221u8, 60u8, 87u8, 40u8, 80u8, - 202u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bounties::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New bounty proposal."] - pub struct BountyProposed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyProposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty proposal was rejected; funds were slashed."] - pub struct BountyRejected { - pub index: ::core::primitive::u32, - pub bond: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BountyRejected { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyRejected"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty proposal is funded and became active."] - pub struct BountyBecameActive { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyBecameActive { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyBecameActive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty is awarded to a beneficiary."] - pub struct BountyAwarded { - pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for BountyAwarded { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyAwarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty is claimed by beneficiary."] - pub struct BountyClaimed { - pub index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for BountyClaimed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyClaimed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty is cancelled."] - pub struct BountyCanceled { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyCanceled { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyCanceled"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A bounty expiry is extended."] - pub struct BountyExtended { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyExtended { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyExtended"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of bounty proposals that have been made."] pub fn bounty_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "BountyCount", - vec![], - [ - 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, - 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, - 178u8, 202u8, 193u8, 41u8, 83u8, 115u8, 253u8, - 182u8, 123u8, 92u8, 138u8, 12u8, 31u8, 31u8, 213u8, - 23u8, 118u8, - ], - ) - } - #[doc = " Bounties that have been made."] pub fn bounties (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bounties :: Bounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Bounties" , "Bounties" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [111u8 , 149u8 , 33u8 , 54u8 , 172u8 , 143u8 , 41u8 , 231u8 , 184u8 , 255u8 , 238u8 , 206u8 , 87u8 , 142u8 , 84u8 , 10u8 , 236u8 , 141u8 , 190u8 , 193u8 , 72u8 , 170u8 , 19u8 , 110u8 , 135u8 , 136u8 , 220u8 , 11u8 , 99u8 , 126u8 , 225u8 , 208u8 ,]) - } - #[doc = " Bounties that have been made."] pub fn bounties_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bounties :: Bounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "Bounties", - Vec::new(), - [ - 111u8, 149u8, 33u8, 54u8, 172u8, 143u8, 41u8, - 231u8, 184u8, 255u8, 238u8, 206u8, 87u8, 142u8, - 84u8, 10u8, 236u8, 141u8, 190u8, 193u8, 72u8, - 170u8, 19u8, 110u8, 135u8, 136u8, 220u8, 11u8, - 99u8, 126u8, 225u8, 208u8, - ], - ) - } - #[doc = " The description of each bounty."] pub fn bounty_descriptions (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Bounties" , "BountyDescriptions" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [252u8 , 0u8 , 9u8 , 225u8 , 13u8 , 135u8 , 7u8 , 121u8 , 154u8 , 155u8 , 116u8 , 83u8 , 160u8 , 37u8 , 72u8 , 11u8 , 72u8 , 0u8 , 248u8 , 73u8 , 158u8 , 84u8 , 125u8 , 221u8 , 176u8 , 231u8 , 100u8 , 239u8 , 111u8 , 22u8 , 29u8 , 13u8 ,]) - } - #[doc = " The description of each bounty."] pub fn bounty_descriptions_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "BountyDescriptions", - Vec::new(), - [ - 252u8, 0u8, 9u8, 225u8, 13u8, 135u8, 7u8, 121u8, - 154u8, 155u8, 116u8, 83u8, 160u8, 37u8, 72u8, 11u8, - 72u8, 0u8, 248u8, 73u8, 158u8, 84u8, 125u8, 221u8, - 176u8, 231u8, 100u8, 239u8, 111u8, 22u8, 29u8, - 13u8, - ], - ) - } - #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Bounties", - "BountyApprovals", - vec![], - [ - 64u8, 93u8, 54u8, 94u8, 122u8, 9u8, 246u8, 86u8, - 234u8, 30u8, 125u8, 132u8, 49u8, 128u8, 1u8, 219u8, - 241u8, 13u8, 217u8, 186u8, 48u8, 21u8, 5u8, 227u8, - 71u8, 157u8, 128u8, 226u8, 214u8, 49u8, 249u8, - 183u8, - ], - ) - } - } - } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "CuratorDepositMultiplier", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_max( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "CuratorDepositMax", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_min( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Bounties", - "CuratorDepositMin", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Minimum value for a bounty."] - pub fn bounty_value_minimum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AcceptCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnassignCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - 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: ::core::primitive::u32, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "add_child_bounty", - AddChildBounty { - parent_bounty_id, - value, - description, - }, - [ - 210u8, 156u8, 242u8, 121u8, 28u8, 214u8, 212u8, - 203u8, 46u8, 45u8, 110u8, 25u8, 33u8, 138u8, 136u8, - 71u8, 23u8, 102u8, 203u8, 122u8, 77u8, 162u8, - 112u8, 133u8, 43u8, 73u8, 201u8, 176u8, 102u8, - 68u8, 188u8, 8u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "propose_curator", - ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }, - [ - 147u8, 32u8, 161u8, 72u8, 92u8, 246u8, 250u8, - 138u8, 98u8, 84u8, 229u8, 228u8, 217u8, 128u8, - 168u8, 20u8, 73u8, 113u8, 55u8, 207u8, 117u8, 52u8, - 9u8, 139u8, 223u8, 149u8, 48u8, 1u8, 8u8, 82u8, - 133u8, 112u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "accept_curator", - AcceptCurator { - parent_bounty_id, - child_bounty_id, - }, - [ - 112u8, 175u8, 238u8, 54u8, 132u8, 20u8, 206u8, - 59u8, 220u8, 228u8, 207u8, 222u8, 132u8, 240u8, - 188u8, 0u8, 210u8, 225u8, 234u8, 142u8, 232u8, - 53u8, 64u8, 89u8, 220u8, 29u8, 28u8, 123u8, 125u8, - 207u8, 10u8, 52u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "unassign_curator", - UnassignCurator { - parent_bounty_id, - child_bounty_id, - }, - [ - 228u8, 189u8, 46u8, 75u8, 121u8, 161u8, 150u8, - 87u8, 207u8, 86u8, 192u8, 50u8, 52u8, 61u8, 49u8, - 88u8, 178u8, 182u8, 89u8, 72u8, 203u8, 45u8, 41u8, - 26u8, 149u8, 114u8, 154u8, 169u8, 118u8, 128u8, - 13u8, 211u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "award_child_bounty", - AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }, - [ - 214u8, 25u8, 53u8, 19u8, 146u8, 11u8, 223u8, 173u8, - 22u8, 235u8, 27u8, 57u8, 90u8, 171u8, 161u8, 45u8, - 102u8, 37u8, 171u8, 110u8, 215u8, 151u8, 46u8, - 136u8, 93u8, 7u8, 254u8, 112u8, 47u8, 42u8, 144u8, - 140u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "claim_child_bounty", - ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 134u8, 243u8, 151u8, 228u8, 38u8, 174u8, 96u8, - 140u8, 104u8, 124u8, 166u8, 206u8, 126u8, 211u8, - 17u8, 100u8, 172u8, 5u8, 234u8, 171u8, 125u8, 2u8, - 191u8, 163u8, 72u8, 29u8, 163u8, 107u8, 65u8, 92u8, - 41u8, 45u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "ChildBounties", - "close_child_bounty", - CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 40u8, 0u8, 235u8, 75u8, 36u8, 196u8, 29u8, 26u8, - 30u8, 172u8, 240u8, 44u8, 129u8, 243u8, 55u8, - 211u8, 96u8, 159u8, 72u8, 96u8, 142u8, 68u8, 41u8, - 238u8, 157u8, 167u8, 90u8, 141u8, 213u8, 249u8, - 222u8, 22u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_child_bounties::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is added."] - pub struct Added { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Added { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Added"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is awarded to a beneficiary."] - pub struct Awarded { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is claimed by beneficiary."] - pub struct Claimed { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A child-bounty is cancelled."] - pub struct Canceled { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of total child bounties."] pub fn child_bounty_count (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildBountyCount", - vec![], - [ - 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, - 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, - 117u8, 160u8, 214u8, 167u8, 7u8, 109u8, 143u8, - 158u8, 1u8, 200u8, 205u8, 17u8, 93u8, 89u8, 26u8, - 30u8, 95u8, - ], - ) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ParentChildBounties" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [127u8 , 161u8 , 181u8 , 79u8 , 235u8 , 196u8 , 252u8 , 162u8 , 39u8 , 15u8 , 251u8 , 49u8 , 125u8 , 80u8 , 101u8 , 24u8 , 234u8 , 88u8 , 212u8 , 126u8 , 63u8 , 63u8 , 19u8 , 75u8 , 137u8 , 125u8 , 38u8 , 250u8 , 77u8 , 49u8 , 76u8 , 188u8 ,]) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ParentChildBounties", - Vec::new(), - [ - 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, - 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, - 24u8, 234u8, 88u8, 212u8, 126u8, 63u8, 63u8, 19u8, - 75u8, 137u8, 125u8, 38u8, 250u8, 77u8, 49u8, 76u8, - 188u8, - ], - ) - } - #[doc = " Child bounties that have been added."] pub fn child_bounties (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_child_bounties :: ChildBounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ChildBounties" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [66u8 , 132u8 , 251u8 , 223u8 , 216u8 , 52u8 , 162u8 , 150u8 , 229u8 , 239u8 , 219u8 , 182u8 , 211u8 , 228u8 , 181u8 , 46u8 , 243u8 , 151u8 , 111u8 , 235u8 , 105u8 , 40u8 , 39u8 , 10u8 , 245u8 , 113u8 , 78u8 , 116u8 , 219u8 , 186u8 , 165u8 , 91u8 ,]) - } - #[doc = " Child bounties that have been added."] pub fn child_bounties_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_child_bounties :: ChildBounty < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildBounties", - Vec::new(), - [ - 66u8, 132u8, 251u8, 223u8, 216u8, 52u8, 162u8, - 150u8, 229u8, 239u8, 219u8, 182u8, 211u8, 228u8, - 181u8, 46u8, 243u8, 151u8, 111u8, 235u8, 105u8, - 40u8, 39u8, 10u8, 245u8, 113u8, 78u8, 116u8, 219u8, - 186u8, 165u8, 91u8, - ], - ) - } - #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ChildBountyDescriptions" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [193u8 , 200u8 , 40u8 , 30u8 , 14u8 , 71u8 , 90u8 , 42u8 , 58u8 , 253u8 , 225u8 , 158u8 , 172u8 , 10u8 , 45u8 , 238u8 , 36u8 , 144u8 , 184u8 , 153u8 , 11u8 , 157u8 , 125u8 , 220u8 , 175u8 , 31u8 , 28u8 , 93u8 , 207u8 , 212u8 , 141u8 , 74u8 ,]) - } - #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildBountyDescriptions", - Vec::new(), - [ - 193u8, 200u8, 40u8, 30u8, 14u8, 71u8, 90u8, 42u8, - 58u8, 253u8, 225u8, 158u8, 172u8, 10u8, 45u8, - 238u8, 36u8, 144u8, 184u8, 153u8, 11u8, 157u8, - 125u8, 220u8, 175u8, 31u8, 28u8, 93u8, 207u8, - 212u8, 141u8, 74u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ChildBounties" , "ChildrenCuratorFees" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [174u8 , 128u8 , 86u8 , 179u8 , 133u8 , 76u8 , 98u8 , 169u8 , 234u8 , 166u8 , 249u8 , 214u8 , 172u8 , 171u8 , 8u8 , 161u8 , 105u8 , 69u8 , 148u8 , 151u8 , 35u8 , 174u8 , 118u8 , 139u8 , 101u8 , 56u8 , 85u8 , 211u8 , 121u8 , 168u8 , 0u8 , 216u8 ,]) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ChildBounties", - "ChildrenCuratorFees", - Vec::new(), - [ - 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, - 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, - 8u8, 161u8, 105u8, 69u8, 148u8, 151u8, 35u8, 174u8, - 118u8, 139u8, 101u8, 56u8, 85u8, 211u8, 121u8, - 168u8, 0u8, 216u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of child bounties that can be added to a parent bounty."] - pub fn max_active_child_bounty_count( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ChildBounties", - "MaxActiveChildBountyCount", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Minimum value for a child-bounty."] - pub fn child_bounty_value_minimum( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 bags_list { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "BagsList", - "rebag", - Rebag { dislocated }, - [ - 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, - 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, - 116u8, 237u8, 55u8, 151u8, 71u8, 119u8, 42u8, 48u8, - 10u8, 66u8, 167u8, 208u8, 184u8, 228u8, 146u8, - 181u8, 84u8, 70u8, - ], - ) - } - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "BagsList", - "put_in_front_of", - PutInFrontOf { lighter }, - [ - 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, - 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, - 148u8, 76u8, 246u8, 71u8, 246u8, 205u8, 82u8, 32u8, - 186u8, 33u8, 5u8, 183u8, 127u8, 153u8, 232u8, 80u8, - 164u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bags_list::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Moved an account from one bag to another."] - pub struct Rebagged { - pub who: ::subxt::utils::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Rebagged { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "Rebagged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Updated the score of some account to the given amount."] - pub struct ScoreUpdated { - pub who: ::subxt::utils::AccountId32, - pub new_score: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ScoreUpdated { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "ScoreUpdated"; - } - } - pub mod storage { - use super::runtime_types; - 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 (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Node > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) - } - #[doc = " A single node, within some bag."] - #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Node > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BagsList", - "ListNodes", - Vec::new(), - [ - 176u8, 186u8, 93u8, 51u8, 100u8, 184u8, 240u8, - 29u8, 70u8, 3u8, 117u8, 47u8, 23u8, 66u8, 231u8, - 234u8, 53u8, 8u8, 234u8, 175u8, 181u8, 8u8, 161u8, - 154u8, 48u8, 178u8, 147u8, 227u8, 122u8, 115u8, - 57u8, 97u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BagsList", - "CounterForListNodes", - vec![], - [ - 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, - 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, - 210u8, 131u8, 87u8, 0u8, 241u8, 230u8, 160u8, - 142u8, 128u8, 153u8, 83u8, 36u8, 88u8, 247u8, 70u8, - 130u8, - ], - ) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Bag > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_bags_list :: list :: Bag > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "BagsList", - "ListBags", - Vec::new(), - [ - 38u8, 86u8, 63u8, 92u8, 85u8, 59u8, 225u8, 244u8, - 14u8, 155u8, 76u8, 249u8, 153u8, 140u8, 179u8, 7u8, - 96u8, 170u8, 236u8, 179u8, 4u8, 18u8, 232u8, 146u8, - 216u8, 51u8, 135u8, 116u8, 196u8, 117u8, 143u8, - 153u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The list of thresholds separating the various bags."] - #[doc = ""] - #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] - #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] - #[doc = " is less than or equal to its upper threshold."] - #[doc = ""] - #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] - #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] - #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] - #[doc = ""] - #[doc = " # Expressing the constant"] - #[doc = ""] - #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] - #[doc = " permitted."] - #[doc = ""] - #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] - #[doc = " specified within the bag. For any two threshold lists, if one ends with"] - #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] - #[doc = " lists will behave identically."] - #[doc = ""] - #[doc = " # Calculation"] - #[doc = ""] - #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] - #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] - #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] - #[doc = ""] - #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] - #[doc = ""] - #[doc = " # Examples"] - #[doc = ""] - #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] - #[doc = " iteration is strictly in insertion order."] - #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is equal to 2."] - #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] - #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] - #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] - #[doc = ""] - #[doc = " # Migration"] - #[doc = ""] - #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] - #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub fn bag_thresholds( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::core::primitive::u64>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "BagsList", - "BagThresholds", - [ - 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, - 172u8, 112u8, 234u8, 25u8, 175u8, 178u8, 19u8, - 251u8, 73u8, 91u8, 192u8, 227u8, 81u8, 249u8, 45u8, - 126u8, 116u8, 7u8, 37u8, 9u8, 200u8, 167u8, 182u8, - 12u8, 131u8, - ], - ) - } - } - } - } - pub mod nomination_pools { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Join { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondExtra { - pub extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClaimPayout; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unbond { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithdrawUnbonded { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub num_slashing_spans: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub pool_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: runtime_types::pallet_nomination_pools::PoolState, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetConfigs { - pub min_join_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub min_create_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub max_pools: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members_per_pool: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Chill { - pub pool_id: ::core::primitive::u32, - } - 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: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "join", - Join { amount, pool_id }, - [ - 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, - 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, - 197u8, 20u8, 75u8, 226u8, 29u8, 118u8, 208u8, 60u8, - 192u8, 247u8, 222u8, 100u8, 69u8, 80u8, 172u8, - 13u8, 69u8, 250u8, - ], - ) - } - #[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."] - pub fn bond_extra( - &self, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "bond_extra", - BondExtra { extra }, - [ - 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, - 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, - 197u8, 34u8, 21u8, 188u8, 248u8, 191u8, 11u8, 10u8, - 236u8, 161u8, 168u8, 37u8, 38u8, 238u8, 61u8, - 183u8, 86u8, 55u8, - ], - ) - } - #[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 there 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\"."] - pub fn claim_payout( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "claim_payout", - ClaimPayout {}, - [ - 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, - 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, - 221u8, 218u8, 1u8, 222u8, 5u8, 236u8, 32u8, 88u8, - 0u8, 198u8, 72u8, 196u8, 181u8, 104u8, 16u8, 212u8, - 29u8, - ], - ) - } - #[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 state-toggler. This is"] - #[doc = " refereed to 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "unbond", - Unbond { - member_account, - unbonding_points, - }, - [ - 139u8, 71u8, 78u8, 184u8, 141u8, 89u8, 179u8, - 123u8, 153u8, 30u8, 116u8, 186u8, 148u8, 49u8, - 48u8, 98u8, 33u8, 21u8, 29u8, 106u8, 180u8, 212u8, - 37u8, 251u8, 237u8, 21u8, 255u8, 13u8, 236u8, 73u8, - 250u8, 57u8, - ], - ) - } - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their 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: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "pool_withdraw_unbonded", - PoolWithdrawUnbonded { - pool_id, - num_slashing_spans, - }, - [ - 152u8, 245u8, 131u8, 247u8, 106u8, 214u8, 154u8, - 8u8, 7u8, 210u8, 149u8, 218u8, 118u8, 46u8, 242u8, - 182u8, 191u8, 119u8, 28u8, 199u8, 36u8, 49u8, - 219u8, 123u8, 58u8, 203u8, 211u8, 226u8, 217u8, - 36u8, 56u8, 0u8, - ], - ) - } - #[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 state-toggler."] - #[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."] - pub fn withdraw_unbonded( - &self, - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "withdraw_unbonded", - WithdrawUnbonded { - member_account, - num_slashing_spans, - }, - [ - 192u8, 183u8, 121u8, 87u8, 176u8, 70u8, 91u8, - 226u8, 156u8, 79u8, 87u8, 34u8, 227u8, 84u8, 22u8, - 235u8, 3u8, 181u8, 166u8, 194u8, 147u8, 72u8, 27u8, - 221u8, 57u8, 14u8, 44u8, 70u8, 253u8, 236u8, 44u8, - 84u8, - ], - ) - } - #[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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - pub fn create( - &self, - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "create", - Create { - amount, - root, - nominator, - state_toggler, - }, - [ - 73u8, 99u8, 205u8, 59u8, 21u8, 182u8, 163u8, 158u8, - 99u8, 182u8, 182u8, 63u8, 212u8, 84u8, 48u8, 244u8, - 95u8, 153u8, 86u8, 104u8, 92u8, 93u8, 191u8, 79u8, - 163u8, 123u8, 20u8, 121u8, 241u8, 194u8, 79u8, - 112u8, - ], - ) - } - #[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: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "create_with_pool_id", - CreateWithPoolId { - amount, - root, - nominator, - state_toggler, - pool_id, - }, - [ - 113u8, 67u8, 242u8, 175u8, 174u8, 4u8, 116u8, 44u8, - 157u8, 35u8, 13u8, 23u8, 55u8, 80u8, 255u8, 103u8, - 196u8, 247u8, 105u8, 152u8, 108u8, 145u8, 180u8, - 169u8, 252u8, 159u8, 175u8, 241u8, 122u8, 136u8, - 252u8, 95u8, - ], - ) - } - #[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."] - pub fn nominate( - &self, - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "nominate", - Nominate { - pool_id, - validators, - }, - [ - 10u8, 235u8, 64u8, 157u8, 36u8, 249u8, 186u8, 27u8, - 79u8, 172u8, 25u8, 3u8, 203u8, 19u8, 192u8, 182u8, - 36u8, 103u8, 13u8, 20u8, 89u8, 140u8, 159u8, 4u8, - 132u8, 242u8, 192u8, 146u8, 55u8, 251u8, 216u8, - 255u8, - ], - ) - } - #[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 state toggler, 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: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "set_state", - SetState { pool_id, state }, - [ - 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, - 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, - 151u8, 25u8, 194u8, 192u8, 187u8, 39u8, 170u8, - 212u8, 125u8, 75u8, 250u8, 248u8, 175u8, 159u8, - 161u8, 151u8, 162u8, - ], - ) - } - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] - #[doc = "of the pool."] - pub fn set_metadata( - &self, - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "set_metadata", - SetMetadata { pool_id, metadata }, - [ - 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, - 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, - 1u8, 6u8, 26u8, 168u8, 7u8, 8u8, 115u8, 158u8, - 151u8, 30u8, 211u8, 52u8, 177u8, 234u8, 87u8, - 125u8, 127u8, - ], - ) - } - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - pub fn set_configs( - &self, - 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 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "set_configs", - SetConfigs { - min_join_bond, - min_create_bond, - max_pools, - max_members, - max_members_per_pool, - }, - [ - 143u8, 196u8, 211u8, 30u8, 71u8, 15u8, 150u8, - 243u8, 7u8, 178u8, 179u8, 168u8, 40u8, 116u8, - 220u8, 140u8, 18u8, 206u8, 6u8, 189u8, 190u8, 37u8, - 68u8, 41u8, 45u8, 233u8, 247u8, 172u8, 185u8, 34u8, - 243u8, 187u8, - ], - ) - } - #[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: ::core::primitive::u32, - new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - new_state_toggler : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "update_roles", - UpdateRoles { - pool_id, - new_root, - new_nominator, - new_state_toggler, - }, - [ - 247u8, 95u8, 234u8, 56u8, 181u8, 229u8, 158u8, - 97u8, 69u8, 165u8, 38u8, 17u8, 27u8, 209u8, 204u8, - 250u8, 91u8, 193u8, 35u8, 93u8, 215u8, 131u8, - 148u8, 73u8, 67u8, 188u8, 92u8, 32u8, 34u8, 37u8, - 113u8, 93u8, - ], - ) - } - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - pub fn chill( - &self, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "NominationPools", - "chill", - Chill { pool_id }, - [ - 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, - 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, - 240u8, 172u8, 229u8, 132u8, 64u8, 175u8, 87u8, - 217u8, 27u8, 11u8, 124u8, 1u8, 140u8, 40u8, 191u8, - 187u8, 36u8, - ], - ) - } - } - } - #[doc = "Events of this pallet."] - pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A pool has been created."] - pub struct Created { - pub depositor: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A member has became bonded in a pool."] - pub struct Bonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub bonded: ::core::primitive::u128, - pub joined: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A payout has been made to a member."] - pub struct PaidOut { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PaidOut { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PaidOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - pub era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A pool has been destroyed."] - pub struct Destroyed { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The state of a pool has changed"] - pub struct StateChanged { - pub pool_id: ::core::primitive::u32, - pub new_state: - runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::events::StaticEvent for StateChanged { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "StateChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "MemberRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::option::Option<::subxt::utils::AccountId32>, - pub state_toggler: - ::core::option::Option<::subxt::utils::AccountId32>, - pub nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for RolesUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "RolesUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - pub struct PoolSlashed { - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - pub struct UnbondingPoolSlashed { - pub pool_id: ::core::primitive::u32, - pub era: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "UnbondingPoolSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MinJoinBond", - vec![], - [ - 125u8, 239u8, 45u8, 225u8, 74u8, 129u8, 247u8, - 184u8, 205u8, 58u8, 45u8, 186u8, 126u8, 170u8, - 112u8, 120u8, 23u8, 190u8, 247u8, 97u8, 131u8, - 126u8, 215u8, 44u8, 147u8, 122u8, 132u8, 212u8, - 217u8, 84u8, 240u8, 91u8, - ], - ) - } - #[doc = " Minimum bond required to create a pool."] - #[doc = ""] - #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] - #[doc = " indication of \"skin in the game\"."] - #[doc = ""] - #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] - #[doc = " while all other accounts leave."] pub fn min_create_bond (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MinCreateBond", - vec![], - [ - 31u8, 208u8, 240u8, 158u8, 23u8, 218u8, 212u8, - 138u8, 92u8, 210u8, 207u8, 170u8, 32u8, 60u8, 5u8, - 21u8, 84u8, 162u8, 1u8, 111u8, 181u8, 243u8, 24u8, - 148u8, 193u8, 253u8, 248u8, 190u8, 16u8, 222u8, - 219u8, 67u8, - ], - ) - } - #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] - #[doc = " pools can exist."] pub fn max_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MaxPools", - vec![], - [ - 216u8, 111u8, 68u8, 103u8, 33u8, 50u8, 109u8, 3u8, - 176u8, 195u8, 23u8, 73u8, 112u8, 138u8, 9u8, 194u8, - 233u8, 73u8, 68u8, 215u8, 162u8, 255u8, 217u8, - 173u8, 141u8, 27u8, 72u8, 199u8, 7u8, 240u8, 25u8, - 34u8, - ], - ) - } - #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] - #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MaxPoolMembers", - vec![], - [ - 82u8, 217u8, 26u8, 234u8, 223u8, 241u8, 66u8, - 182u8, 43u8, 233u8, 59u8, 242u8, 202u8, 254u8, - 69u8, 50u8, 254u8, 196u8, 166u8, 89u8, 120u8, 87u8, - 76u8, 148u8, 31u8, 197u8, 49u8, 88u8, 206u8, 41u8, - 242u8, 62u8, - ], - ) - } - #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] - #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "MaxPoolMembersPerPool", - vec![], - [ - 93u8, 241u8, 16u8, 169u8, 138u8, 199u8, 128u8, - 149u8, 65u8, 30u8, 55u8, 11u8, 41u8, 252u8, 83u8, - 250u8, 9u8, 33u8, 152u8, 239u8, 195u8, 147u8, 16u8, - 248u8, 180u8, 153u8, 88u8, 231u8, 248u8, 169u8, - 186u8, 48u8, - ], - ) - } - #[doc = " Active members."] pub fn pool_members (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: PoolMember > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) - } - #[doc = " Active members."] pub fn pool_members_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: PoolMember > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "PoolMembers", - Vec::new(), - [ - 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, - 144u8, 5u8, 108u8, 70u8, 30u8, 177u8, 232u8, 253u8, - 237u8, 211u8, 91u8, 63u8, 62u8, 155u8, 151u8, - 153u8, 165u8, 206u8, 53u8, 111u8, 31u8, 60u8, - 120u8, 100u8, 249u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForPoolMembers", - vec![], - [ - 114u8, 126u8, 27u8, 138u8, 119u8, 44u8, 45u8, - 129u8, 84u8, 107u8, 171u8, 206u8, 117u8, 141u8, - 20u8, 75u8, 229u8, 237u8, 31u8, 229u8, 124u8, - 190u8, 27u8, 124u8, 63u8, 59u8, 167u8, 42u8, 62u8, - 212u8, 160u8, 2u8, - ], - ) - } - #[doc = " Storage for bonded pools."] pub fn bonded_pools (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: BondedPoolInner > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) - } - #[doc = " Storage for bonded pools."] pub fn bonded_pools_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: BondedPoolInner > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "BondedPools", - Vec::new(), - [ - 34u8, 51u8, 86u8, 95u8, 237u8, 118u8, 40u8, 212u8, - 128u8, 227u8, 113u8, 6u8, 116u8, 28u8, 96u8, 223u8, - 63u8, 249u8, 33u8, 152u8, 61u8, 7u8, 205u8, 220u8, - 221u8, 174u8, 207u8, 39u8, 53u8, 176u8, 13u8, 74u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForBondedPools", - vec![], - [ - 134u8, 94u8, 199u8, 73u8, 174u8, 253u8, 66u8, - 242u8, 233u8, 244u8, 140u8, 170u8, 242u8, 40u8, - 41u8, 185u8, 183u8, 151u8, 58u8, 111u8, 221u8, - 225u8, 81u8, 71u8, 169u8, 219u8, 223u8, 135u8, 8u8, - 171u8, 180u8, 236u8, - ], - ) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: RewardPool > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: RewardPool > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "RewardPools", - Vec::new(), - [ - 139u8, 123u8, 46u8, 107u8, 9u8, 83u8, 141u8, 12u8, - 188u8, 225u8, 170u8, 215u8, 154u8, 21u8, 100u8, - 95u8, 237u8, 245u8, 46u8, 216u8, 199u8, 184u8, - 187u8, 155u8, 8u8, 16u8, 34u8, 177u8, 153u8, 65u8, - 109u8, 198u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForRewardPools", - vec![], - [ - 209u8, 139u8, 212u8, 116u8, 210u8, 178u8, 213u8, - 38u8, 75u8, 23u8, 188u8, 57u8, 253u8, 213u8, 95u8, - 118u8, 182u8, 250u8, 45u8, 205u8, 17u8, 175u8, - 17u8, 201u8, 234u8, 14u8, 98u8, 49u8, 143u8, 135u8, - 201u8, 81u8, - ], - ) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: SubPools > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_nomination_pools :: SubPools > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "SubPoolsStorage", - Vec::new(), - [ - 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, - 134u8, 224u8, 196u8, 94u8, 201u8, 229u8, 29u8, - 155u8, 211u8, 163u8, 150u8, 157u8, 34u8, 68u8, - 238u8, 55u8, 4u8, 222u8, 96u8, 186u8, 29u8, 205u8, - 237u8, 80u8, 42u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForSubPoolsStorage", - vec![], - [ - 212u8, 145u8, 212u8, 226u8, 234u8, 31u8, 26u8, - 240u8, 107u8, 91u8, 171u8, 120u8, 41u8, 195u8, - 16u8, 86u8, 55u8, 127u8, 103u8, 93u8, 128u8, 48u8, - 69u8, 104u8, 168u8, 236u8, 81u8, 54u8, 2u8, 184u8, - 215u8, 51u8, - ], - ) - } - #[doc = " Metadata for the pool."] pub fn metadata (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) - } - #[doc = " Metadata for the pool."] pub fn metadata_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "Metadata", - Vec::new(), - [ - 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, - 62u8, 97u8, 163u8, 161u8, 215u8, 171u8, 225u8, - 49u8, 18u8, 37u8, 200u8, 143u8, 254u8, 136u8, 26u8, - 54u8, 187u8, 39u8, 3u8, 216u8, 24u8, 188u8, 25u8, - 243u8, 251u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForMetadata", - vec![], - [ - 190u8, 232u8, 77u8, 134u8, 245u8, 89u8, 160u8, - 187u8, 163u8, 68u8, 188u8, 204u8, 31u8, 145u8, - 219u8, 165u8, 213u8, 1u8, 167u8, 90u8, 175u8, - 218u8, 147u8, 144u8, 158u8, 226u8, 23u8, 233u8, - 55u8, 168u8, 161u8, 237u8, - ], - ) - } - #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "LastPoolId", - vec![], - [ - 50u8, 254u8, 218u8, 41u8, 213u8, 184u8, 170u8, - 166u8, 31u8, 29u8, 196u8, 57u8, 215u8, 20u8, 40u8, - 40u8, 19u8, 22u8, 9u8, 184u8, 11u8, 21u8, 21u8, - 125u8, 97u8, 38u8, 219u8, 209u8, 2u8, 238u8, 247u8, - 51u8, - ], - ) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "ReversePoolIdLookup", - Vec::new(), - [ - 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, - 236u8, 159u8, 36u8, 237u8, 120u8, 128u8, 6u8, - 191u8, 41u8, 159u8, 94u8, 178u8, 174u8, 235u8, - 221u8, 173u8, 44u8, 81u8, 211u8, 255u8, 231u8, - 81u8, 16u8, 87u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "NominationPools", - "CounterForReversePoolIdLookup", - vec![], - [ - 148u8, 83u8, 81u8, 33u8, 188u8, 72u8, 148u8, 208u8, - 245u8, 178u8, 52u8, 245u8, 229u8, 140u8, 100u8, - 152u8, 8u8, 217u8, 161u8, 80u8, 226u8, 42u8, 15u8, - 252u8, 90u8, 197u8, 120u8, 114u8, 144u8, 90u8, - 199u8, 123u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The nomination pool's pallet id."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "NominationPools", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] - #[doc = ""] - #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] - #[doc = " ratio becomes disproportional."] - #[doc = ""] - #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] - #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] - #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] - #[doc = " the chain, in the absolute worse case."] - #[doc = ""] - #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] - #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] - pub fn max_points_to_balance( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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, - ], - ) - } - } - } - } - pub mod scheduler { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Schedule { - pub when: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Cancel { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScheduleNamed { - pub id: [::core::primitive::u8; 32usize], - pub when: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelNamed { - pub id: [::core::primitive::u8; 32usize], - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScheduleAfter { - pub after: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ScheduleNamedAfter { - pub id: [::core::primitive::u8; 32usize], - pub after: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Anonymously schedule a task."] - pub fn schedule( - &self, - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule", - Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 69u8, 220u8, 249u8, 192u8, 118u8, 70u8, 52u8, 55u8, - 144u8, 136u8, 46u8, 246u8, 101u8, 0u8, 122u8, 84u8, - 53u8, 139u8, 207u8, 46u8, 200u8, 143u8, 118u8, - 46u8, 10u8, 155u8, 180u8, 114u8, 115u8, 136u8, - 157u8, 104u8, - ], - ) - } - #[doc = "Cancel an anonymously scheduled task."] - pub fn cancel( - &self, - when: ::core::primitive::u32, - index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "cancel", - Cancel { when, index }, - [ - 81u8, 251u8, 234u8, 17u8, 214u8, 75u8, 19u8, 59u8, - 19u8, 30u8, 89u8, 74u8, 6u8, 216u8, 238u8, 165u8, - 7u8, 19u8, 153u8, 253u8, 161u8, 103u8, 178u8, - 227u8, 152u8, 180u8, 80u8, 156u8, 82u8, 126u8, - 132u8, 120u8, - ], - ) - } - #[doc = "Schedule a named task."] - pub fn schedule_named( - &self, - 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: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule_named", - ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 21u8, 163u8, 253u8, 251u8, 127u8, 229u8, 46u8, - 147u8, 83u8, 212u8, 27u8, 218u8, 17u8, 128u8, - 110u8, 107u8, 184u8, 226u8, 51u8, 52u8, 135u8, - 43u8, 227u8, 93u8, 103u8, 68u8, 195u8, 144u8, - 239u8, 20u8, 55u8, 166u8, - ], - ) - } - #[doc = "Cancel a named scheduled task."] - pub fn cancel_named( - &self, - id: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "cancel_named", - CancelNamed { id }, - [ - 51u8, 3u8, 140u8, 50u8, 214u8, 211u8, 50u8, 4u8, - 19u8, 43u8, 230u8, 114u8, 18u8, 108u8, 138u8, 67u8, - 99u8, 24u8, 255u8, 11u8, 246u8, 37u8, 192u8, 207u8, - 90u8, 157u8, 171u8, 93u8, 233u8, 189u8, 64u8, - 180u8, - ], - ) - } - #[doc = "Anonymously schedule a task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] - pub fn schedule_after( - &self, - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule_after", - ScheduleAfter { - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 145u8, 172u8, 139u8, 242u8, 9u8, 147u8, 127u8, - 165u8, 55u8, 17u8, 201u8, 144u8, 31u8, 237u8, - 200u8, 120u8, 251u8, 188u8, 85u8, 238u8, 233u8, - 63u8, 85u8, 222u8, 137u8, 9u8, 53u8, 21u8, 255u8, - 243u8, 150u8, 54u8, - ], - ) - } - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] - pub fn schedule_named_after( - &self, - 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: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Scheduler", - "schedule_named_after", - ScheduleNamedAfter { - id, - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 2u8, 54u8, 169u8, 106u8, 76u8, 237u8, 134u8, 253u8, - 32u8, 132u8, 110u8, 249u8, 147u8, 183u8, 227u8, - 77u8, 211u8, 91u8, 212u8, 196u8, 210u8, 252u8, - 225u8, 82u8, 209u8, 133u8, 17u8, 206u8, 55u8, 39u8, - 17u8, 23u8, - ], - ) - } - } - } - #[doc = "Events type."] - pub type Event = runtime_types::pallet_scheduler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Scheduled some task."] - pub struct Scheduled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Canceled some task."] - pub struct Canceled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Dispatched some task."] - pub struct Dispatched { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - pub struct CallUnavailable { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for CallUnavailable { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "CallUnavailable"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - pub struct PeriodicFailed { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PeriodicFailed { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PeriodicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The given task can never be executed since it is overweight."] - pub struct PermanentlyOverweight { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PermanentlyOverweight"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn incomplete_since (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Scheduler", - "IncompleteSince", - vec![], - [ - 149u8, 66u8, 239u8, 67u8, 235u8, 219u8, 101u8, - 182u8, 145u8, 56u8, 252u8, 150u8, 253u8, 221u8, - 125u8, 57u8, 38u8, 152u8, 153u8, 31u8, 92u8, 238u8, - 66u8, 246u8, 104u8, 163u8, 94u8, 73u8, 222u8, - 168u8, 193u8, 227u8, - ], - ) - } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Scheduler" , "Agenda" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [77u8 , 74u8 , 230u8 , 122u8 , 183u8 , 192u8 , 24u8 , 80u8 , 140u8 , 147u8 , 26u8 , 72u8 , 134u8 , 148u8 , 90u8 , 69u8 , 72u8 , 100u8 , 81u8 , 179u8 , 236u8 , 142u8 , 37u8 , 210u8 , 106u8 , 225u8 , 12u8 , 76u8 , 127u8 , 140u8 , 178u8 , 86u8 ,]) - } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Scheduler", - "Agenda", - Vec::new(), - [ - 77u8, 74u8, 230u8, 122u8, 183u8, 192u8, 24u8, 80u8, - 140u8, 147u8, 26u8, 72u8, 134u8, 148u8, 90u8, 69u8, - 72u8, 100u8, 81u8, 179u8, 236u8, 142u8, 37u8, - 210u8, 106u8, 225u8, 12u8, 76u8, 127u8, 140u8, - 178u8, 86u8, - ], - ) - } - #[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 :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 32usize] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Scheduler" , "Lookup" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [82u8 , 20u8 , 178u8 , 101u8 , 108u8 , 198u8 , 71u8 , 99u8 , 16u8 , 175u8 , 15u8 , 187u8 , 229u8 , 243u8 , 140u8 , 200u8 , 99u8 , 77u8 , 248u8 , 178u8 , 45u8 , 121u8 , 193u8 , 67u8 , 165u8 , 43u8 , 234u8 , 211u8 , 158u8 , 250u8 , 103u8 , 243u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Scheduler", - "Lookup", - Vec::new(), - [ - 82u8, 20u8, 178u8, 101u8, 108u8, 198u8, 71u8, 99u8, - 16u8, 175u8, 15u8, 187u8, 229u8, 243u8, 140u8, - 200u8, 99u8, 77u8, 248u8, 178u8, 45u8, 121u8, - 193u8, 67u8, 165u8, 43u8, 234u8, 211u8, 158u8, - 250u8, 103u8, 243u8, - ], - ) - } - } - } - 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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Scheduler", - "MaximumWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum number of scheduled calls in the queue for a single block."] - pub fn max_scheduled_per_block( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NotePreimage { - pub bytes: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnnotePreimage { - pub hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RequestPreimage { - pub hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnrequestPreimage { - pub hash: ::subxt::utils::H256, - } - 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: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "note_preimage", - NotePreimage { bytes }, - [ - 77u8, 48u8, 104u8, 3u8, 254u8, 65u8, 106u8, 95u8, - 204u8, 89u8, 149u8, 29u8, 144u8, 188u8, 99u8, 23u8, - 146u8, 142u8, 35u8, 17u8, 125u8, 130u8, 31u8, - 206u8, 106u8, 83u8, 163u8, 192u8, 81u8, 23u8, - 232u8, 230u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "unnote_preimage", - UnnotePreimage { hash }, - [ - 211u8, 204u8, 205u8, 58u8, 33u8, 179u8, 68u8, 74u8, - 149u8, 138u8, 213u8, 45u8, 140u8, 27u8, 106u8, - 81u8, 68u8, 212u8, 147u8, 116u8, 27u8, 130u8, 84u8, - 34u8, 231u8, 197u8, 135u8, 8u8, 19u8, 242u8, 207u8, - 17u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "request_preimage", - RequestPreimage { hash }, - [ - 195u8, 26u8, 146u8, 255u8, 79u8, 43u8, 73u8, 60u8, - 115u8, 78u8, 99u8, 197u8, 137u8, 95u8, 139u8, - 141u8, 79u8, 213u8, 170u8, 169u8, 127u8, 30u8, - 236u8, 65u8, 38u8, 16u8, 118u8, 228u8, 141u8, 83u8, - 162u8, 233u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Preimage", - "unrequest_preimage", - UnrequestPreimage { hash }, - [ - 143u8, 225u8, 239u8, 44u8, 237u8, 83u8, 18u8, - 105u8, 101u8, 68u8, 111u8, 116u8, 66u8, 212u8, - 63u8, 190u8, 38u8, 32u8, 105u8, 152u8, 69u8, 177u8, - 193u8, 15u8, 60u8, 26u8, 95u8, 130u8, 11u8, 113u8, - 187u8, 108u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_preimage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A preimage has been noted."] - pub struct Noted { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Noted { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Noted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A preimage has been requested."] - pub struct Requested { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Requested { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Requested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A preimage has ben cleared."] - pub struct Cleared { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Cleared { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Cleared"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The request status of a given hash."] pub fn status_for (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "StatusFor", - vec![::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, - 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, - 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, - 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, - 56u8, - ], - ) - } - #[doc = " The request status of a given hash."] pub fn status_for_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "StatusFor", - Vec::new(), - [ - 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, - 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, - 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, - 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, - 56u8, - ], - ) - } pub fn preimage_for (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "PreimageFor", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Identity, - )], - [ - 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, - 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, - 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, - 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, - 124u8, - ], - ) - } pub fn preimage_for_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Preimage", - "PreimageFor", - Vec::new(), - [ - 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, - 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, - 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, - 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, - 124u8, - ], - ) - } - } - } - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - #[doc = "Events type."] - pub type Event = runtime_types::pallet_offences::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: [::core::primitive::u8; 16usize], - pub timeslot: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_staking :: offence :: OffenceDetails < :: subxt :: utils :: AccountId32 , (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Offences" , "Reports" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [144u8 , 30u8 , 66u8 , 199u8 , 102u8 , 236u8 , 175u8 , 201u8 , 206u8 , 170u8 , 55u8 , 162u8 , 137u8 , 120u8 , 220u8 , 213u8 , 57u8 , 252u8 , 0u8 , 88u8 , 210u8 , 68u8 , 5u8 , 25u8 , 77u8 , 114u8 , 204u8 , 23u8 , 190u8 , 32u8 , 211u8 , 30u8 ,]) - } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_staking :: offence :: OffenceDetails < :: subxt :: utils :: AccountId32 , (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Offences", - "Reports", - Vec::new(), - [ - 144u8, 30u8, 66u8, 199u8, 102u8, 236u8, 175u8, - 201u8, 206u8, 170u8, 55u8, 162u8, 137u8, 120u8, - 220u8, 213u8, 57u8, 252u8, 0u8, 88u8, 210u8, 68u8, - 5u8, 25u8, 77u8, 114u8, 204u8, 23u8, 190u8, 32u8, - 211u8, 30u8, - ], - ) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index (& self , _0 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 16usize] > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Offences" , "ConcurrentReportsIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [106u8 , 21u8 , 104u8 , 5u8 , 4u8 , 66u8 , 28u8 , 70u8 , 161u8 , 195u8 , 238u8 , 28u8 , 69u8 , 241u8 , 221u8 , 113u8 , 140u8 , 103u8 , 181u8 , 143u8 , 60u8 , 177u8 , 13u8 , 129u8 , 224u8 , 149u8 , 77u8 , 32u8 , 75u8 , 74u8 , 101u8 , 65u8 ,]) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: subxt :: utils :: H256 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Offences", - "ConcurrentReportsIndex", - Vec::new(), - [ - 106u8, 21u8, 104u8, 5u8, 4u8, 66u8, 28u8, 70u8, - 161u8, 195u8, 238u8, 28u8, 69u8, 241u8, 221u8, - 113u8, 140u8, 103u8, 181u8, 143u8, 60u8, 177u8, - 13u8, 129u8, 224u8, 149u8, 77u8, 32u8, 75u8, 74u8, - 101u8, 65u8, - ], - ) - } - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] pub fn reports_by_kind_index (& self , _0 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8 ; 16usize] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Offences" , "ReportsByKindIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [162u8 , 66u8 , 131u8 , 48u8 , 250u8 , 237u8 , 179u8 , 214u8 , 36u8 , 137u8 , 226u8 , 136u8 , 120u8 , 61u8 , 215u8 , 43u8 , 164u8 , 50u8 , 91u8 , 164u8 , 20u8 , 96u8 , 189u8 , 100u8 , 242u8 , 106u8 , 21u8 , 136u8 , 98u8 , 215u8 , 180u8 , 145u8 ,]) - } - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] pub fn reports_by_kind_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Offences", - "ReportsByKindIndex", - Vec::new(), - [ - 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, - 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, - 215u8, 43u8, 164u8, 50u8, 91u8, 164u8, 20u8, 96u8, - 189u8, 100u8, 242u8, 106u8, 21u8, 136u8, 98u8, - 215u8, 180u8, 145u8, - ], - ) - } - } - } - } - pub mod hasher_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetParameters { - pub parameters: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "HasherBn254", - "force_set_parameters", - ForceSetParameters { parameters }, - [ - 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, - 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, - 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, - 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, - 75u8, 166u8, 90u8, 127u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_hasher::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] pub fn parameters (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "HasherBn254", - "Parameters", - vec![], - [ - 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, - 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, - 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, - 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, - 110u8, 163u8, 192u8, - ], - ) - } - } - } - } - pub mod asset_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Register { pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , pub existential_deposit : :: core :: primitive :: u128 , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Update { pub asset_id : :: core :: primitive :: u32 , pub bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , pub existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMetadata { - pub asset_id: ::core::primitive::u32, - pub symbol: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub decimals: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetLocation { - pub asset_id: ::core::primitive::u32, - pub location: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddAssetToPool { - pub pool: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub asset_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DeleteAssetFromPool { - pub pool: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub asset_id: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Register a new asset."] - #[doc = ""] - #[doc = "Asset is identified by `name` and the name must not be used to"] - #[doc = "register another asset."] - #[doc = ""] - #[doc = "New asset is given `NextAssetId` - sequential asset id"] - #[doc = ""] - #[doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] - #[doc = "be retrieved by name too (Note: this approach is used in AMM"] - #[doc = "implementation (xyk))"] - #[doc = ""] - #[doc = "Emits 'Registered` event when successful."] - pub fn register( - &self, - name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool >, - existential_deposit: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "register", - Register { - name, - asset_type, - existential_deposit, - }, - [ - 252u8, 45u8, 222u8, 83u8, 254u8, 164u8, 199u8, - 163u8, 77u8, 255u8, 2u8, 143u8, 50u8, 226u8, 47u8, - 91u8, 89u8, 75u8, 143u8, 234u8, 96u8, 83u8, 255u8, - 78u8, 146u8, 32u8, 217u8, 112u8, 52u8, 190u8, - 107u8, 187u8, - ], - ) - } - #[doc = "Update registered asset."] - #[doc = ""] - #[doc = "Updates also mapping between name and asset id if provided name is"] - #[doc = "different than currently registered."] - #[doc = ""] - #[doc = "Emits `Updated` event when successful."] - pub fn update( - &self, - asset_id: ::core::primitive::u32, - bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool >, - existential_deposit: ::core::option::Option< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "update", - Update { - asset_id, - bounded_name, - asset_type, - existential_deposit, - }, - [ - 71u8, 166u8, 66u8, 176u8, 128u8, 130u8, 47u8, - 243u8, 184u8, 119u8, 22u8, 2u8, 97u8, 59u8, 228u8, - 103u8, 144u8, 189u8, 83u8, 74u8, 190u8, 103u8, - 139u8, 217u8, 184u8, 92u8, 157u8, 83u8, 185u8, - 83u8, 34u8, 186u8, - ], - ) - } - #[doc = "Set metadata for an asset."] - #[doc = ""] - #[doc = "- `asset_id`: Asset identifier."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet` event when successful."] - pub fn set_metadata( - &self, - asset_id: ::core::primitive::u32, - symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - decimals: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "set_metadata", - SetMetadata { - asset_id, - symbol, - decimals, - }, - [ - 9u8, 120u8, 57u8, 240u8, 115u8, 83u8, 59u8, 131u8, - 253u8, 150u8, 149u8, 66u8, 75u8, 74u8, 35u8, 97u8, - 62u8, 134u8, 103u8, 15u8, 121u8, 202u8, 35u8, - 240u8, 138u8, 20u8, 146u8, 174u8, 99u8, 252u8, - 110u8, 194u8, - ], - ) - } - #[doc = "Set asset native location."] - #[doc = ""] - #[doc = "Adds mapping between native location and local asset id and vice"] - #[doc = "versa."] - #[doc = ""] - #[doc = "Mainly used in XCM."] - #[doc = ""] - #[doc = "Emits `LocationSet` event when successful."] - pub fn set_location( - &self, - asset_id: ::core::primitive::u32, - location: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "set_location", - SetLocation { asset_id, location }, - [ - 235u8, 57u8, 17u8, 193u8, 114u8, 60u8, 211u8, - 237u8, 163u8, 80u8, 178u8, 91u8, 195u8, 168u8, - 220u8, 77u8, 64u8, 129u8, 242u8, 37u8, 36u8, 166u8, - 28u8, 157u8, 222u8, 9u8, 197u8, 128u8, 175u8, - 118u8, 131u8, 237u8, - ], - ) - } - #[doc = "Add an asset to an existing pool."] - pub fn add_asset_to_pool( - &self, - pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "add_asset_to_pool", - AddAssetToPool { pool, asset_id }, - [ - 150u8, 36u8, 8u8, 105u8, 253u8, 91u8, 165u8, 163u8, - 178u8, 235u8, 110u8, 227u8, 183u8, 8u8, 126u8, - 217u8, 243u8, 37u8, 13u8, 66u8, 72u8, 239u8, 2u8, - 178u8, 152u8, 26u8, 39u8, 131u8, 225u8, 10u8, - 123u8, 134u8, - ], - ) - } - #[doc = "Remove an asset from an existing pool."] - pub fn delete_asset_from_pool( - &self, - pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "AssetRegistry", - "delete_asset_from_pool", - DeleteAssetFromPool { pool, asset_id }, - [ - 41u8, 72u8, 157u8, 129u8, 82u8, 30u8, 47u8, 66u8, - 180u8, 182u8, 0u8, 171u8, 251u8, 195u8, 72u8, - 181u8, 1u8, 45u8, 233u8, 220u8, 7u8, 45u8, 43u8, - 68u8, 164u8, 107u8, 196u8, 34u8, 225u8, 174u8, - 22u8, 102u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_asset_registry::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Asset was registered."] - pub struct Registered { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } - impl ::subxt::events::StaticEvent for Registered { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "Registered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Asset was updated."] - pub struct Updated { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } - impl ::subxt::events::StaticEvent for Updated { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "Updated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Metadata set for an asset."] - pub struct MetadataSet { - pub asset_id: ::core::primitive::u32, - pub symbol: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub decimals: ::core::primitive::u8, - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Native location set for an asset."] - pub struct LocationSet { - pub asset_id: ::core::primitive::u32, - pub location: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for LocationSet { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "LocationSet"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of an asset."] pub fn assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "Assets" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [182u8 , 114u8 , 167u8 , 11u8 , 64u8 , 250u8 , 48u8 , 87u8 , 231u8 , 111u8 , 138u8 , 236u8 , 205u8 , 82u8 , 37u8 , 218u8 , 41u8 , 136u8 , 38u8 , 62u8 , 215u8 , 152u8 , 76u8 , 17u8 , 209u8 , 60u8 , 196u8 , 247u8 , 99u8 , 45u8 , 32u8 , 224u8 ,]) - } - #[doc = " Details of an asset."] pub fn assets_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "Assets", - Vec::new(), - [ - 182u8, 114u8, 167u8, 11u8, 64u8, 250u8, 48u8, 87u8, - 231u8, 111u8, 138u8, 236u8, 205u8, 82u8, 37u8, - 218u8, 41u8, 136u8, 38u8, 62u8, 215u8, 152u8, 76u8, - 17u8, 209u8, 60u8, 196u8, 247u8, 99u8, 45u8, 32u8, - 224u8, - ], - ) - } - #[doc = " Next available asset id. This is sequential id assigned for each new"] - #[doc = " registered asset."] pub fn next_asset_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "NextAssetId", - vec![], - [ - 130u8, 214u8, 178u8, 195u8, 222u8, 57u8, 89u8, - 143u8, 138u8, 218u8, 234u8, 251u8, 36u8, 221u8, - 51u8, 213u8, 130u8, 249u8, 153u8, 24u8, 245u8, - 51u8, 126u8, 71u8, 51u8, 148u8, 167u8, 143u8, 33u8, - 15u8, 44u8, 115u8, - ], - ) - } - #[doc = " Mapping between asset name and asset id."] pub fn asset_ids (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "AssetIds" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [142u8 , 138u8 , 84u8 , 162u8 , 209u8 , 97u8 , 173u8 , 83u8 , 185u8 , 226u8 , 233u8 , 40u8 , 74u8 , 97u8 , 166u8 , 13u8 , 199u8 , 229u8 , 235u8 , 15u8 , 6u8 , 196u8 , 7u8 , 35u8 , 87u8 , 202u8 , 4u8 , 101u8 , 212u8 , 84u8 , 250u8 , 251u8 ,]) - } - #[doc = " Mapping between asset name and asset id."] pub fn asset_ids_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "AssetIds", - Vec::new(), - [ - 142u8, 138u8, 84u8, 162u8, 209u8, 97u8, 173u8, - 83u8, 185u8, 226u8, 233u8, 40u8, 74u8, 97u8, 166u8, - 13u8, 199u8, 229u8, 235u8, 15u8, 6u8, 196u8, 7u8, - 35u8, 87u8, 202u8, 4u8, 101u8, 212u8, 84u8, 250u8, - 251u8, - ], - ) - } - #[doc = " Native location of an asset."] pub fn asset_locations (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "AssetLocations" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [146u8 , 222u8 , 59u8 , 210u8 , 64u8 , 240u8 , 139u8 , 32u8 , 171u8 , 75u8 , 247u8 , 43u8 , 179u8 , 108u8 , 20u8 , 64u8 , 24u8 , 154u8 , 133u8 , 154u8 , 208u8 , 98u8 , 241u8 , 62u8 , 158u8 , 126u8 , 19u8 , 188u8 , 237u8 , 70u8 , 178u8 , 197u8 ,]) - } - #[doc = " Native location of an asset."] pub fn asset_locations_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "AssetLocations", - Vec::new(), - [ - 146u8, 222u8, 59u8, 210u8, 64u8, 240u8, 139u8, - 32u8, 171u8, 75u8, 247u8, 43u8, 179u8, 108u8, 20u8, - 64u8, 24u8, 154u8, 133u8, 154u8, 208u8, 98u8, - 241u8, 62u8, 158u8, 126u8, 19u8, 188u8, 237u8, - 70u8, 178u8, 197u8, - ], - ) - } - #[doc = " Local asset for native location."] pub fn location_assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "LocationAssets" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [82u8 , 140u8 , 248u8 , 178u8 , 200u8 , 49u8 , 11u8 , 121u8 , 43u8 , 2u8 , 125u8 , 44u8 , 253u8 , 10u8 , 29u8 , 242u8 , 56u8 , 45u8 , 249u8 , 223u8 , 136u8 , 40u8 , 155u8 , 201u8 , 99u8 , 166u8 , 243u8 , 79u8 , 47u8 , 93u8 , 211u8 , 241u8 ,]) - } - #[doc = " Local asset for native location."] pub fn location_assets_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "LocationAssets", - Vec::new(), - [ - 82u8, 140u8, 248u8, 178u8, 200u8, 49u8, 11u8, - 121u8, 43u8, 2u8, 125u8, 44u8, 253u8, 10u8, 29u8, - 242u8, 56u8, 45u8, 249u8, 223u8, 136u8, 40u8, - 155u8, 201u8, 99u8, 166u8, 243u8, 79u8, 47u8, 93u8, - 211u8, 241u8, - ], - ) - } - #[doc = " Metadata of an asset."] pub fn asset_metadata_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("AssetRegistry" , "AssetMetadataMap" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [44u8 , 143u8 , 207u8 , 24u8 , 27u8 , 113u8 , 207u8 , 155u8 , 211u8 , 232u8 , 91u8 , 255u8 , 153u8 , 141u8 , 196u8 , 195u8 , 124u8 , 164u8 , 72u8 , 41u8 , 185u8 , 232u8 , 190u8 , 195u8 , 205u8 , 146u8 , 56u8 , 154u8 , 1u8 , 113u8 , 54u8 , 86u8 ,]) - } - #[doc = " Metadata of an asset."] pub fn asset_metadata_map_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "AssetRegistry", - "AssetMetadataMap", - Vec::new(), - [ - 44u8, 143u8, 207u8, 24u8, 27u8, 113u8, 207u8, - 155u8, 211u8, 232u8, 91u8, 255u8, 153u8, 141u8, - 196u8, 195u8, 124u8, 164u8, 72u8, 41u8, 185u8, - 232u8, 190u8, 195u8, 205u8, 146u8, 56u8, 154u8, - 1u8, 113u8, 54u8, 86u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Native Asset Id"] - pub fn native_asset_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "AssetRegistry", - "NativeAssetId", - [ - 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 currencies { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferNativeCurrency { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - pub amount: ::core::primitive::i128, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some balance to another account under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Currencies", - "transfer", - Transfer { - dest, - currency_id, - amount, - }, - [ - 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, - 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, - 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, - 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, - 176u8, 62u8, - ], - ) - } - #[doc = "Transfer some native currency to another account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - pub fn transfer_native_currency( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Currencies", - "transfer_native_currency", - TransferNativeCurrency { dest, amount }, - [ - 212u8, 113u8, 64u8, 214u8, 137u8, 16u8, 101u8, - 17u8, 123u8, 43u8, 143u8, 69u8, 53u8, 22u8, 227u8, - 62u8, 117u8, 160u8, 162u8, 73u8, 195u8, 177u8, - 99u8, 75u8, 48u8, 237u8, 145u8, 164u8, 72u8, 47u8, - 215u8, 117u8, - ], - ) - } - #[doc = "update amount of account `who` under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - pub fn update_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::i128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Currencies", - "update_balance", - UpdateBalance { - who, - currency_id, - amount, - }, - [ - 10u8, 79u8, 233u8, 250u8, 126u8, 190u8, 236u8, - 106u8, 73u8, 243u8, 163u8, 187u8, 206u8, 132u8, - 241u8, 254u8, 76u8, 0u8, 38u8, 159u8, 147u8, 102u8, - 126u8, 6u8, 36u8, 129u8, 235u8, 240u8, 233u8, - 100u8, 81u8, 8u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn get_native_currency_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Currencies", - "GetNativeCurrencyId", - [ - 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 tokens { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - pub keep_alive: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "It will decrease the total issuance of the system by the"] - #[doc = "`TransferFee`. If the sender's account is below the existential"] - #[doc = "deposit as a result of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "transfer", - Transfer { - dest, - currency_id, - amount, - }, - [ - 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, - 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, - 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, - 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, - 176u8, 62u8, - ], - ) - } - #[doc = "Transfer all remaining balance to the given account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_"] - #[doc = "balances. This means that any locked, reserved, or existential"] - #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] - #[doc = "this function. To ensure that this function results in a killed"] - #[doc = "account, you might need to prepare the account by removing any"] - #[doc = "reference counters, storage deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] - #[doc = " operation should send all of the funds the account has, causing"] - #[doc = " the sender account to be killed (false), or transfer everything"] - #[doc = " except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "transfer_all", - TransferAll { - dest, - currency_id, - keep_alive, - }, - [ - 83u8, 119u8, 29u8, 13u8, 126u8, 23u8, 51u8, 229u8, - 26u8, 65u8, 104u8, 86u8, 68u8, 42u8, 83u8, 171u8, - 177u8, 241u8, 88u8, 235u8, 122u8, 180u8, 216u8, - 118u8, 52u8, 210u8, 95u8, 234u8, 9u8, 188u8, 122u8, - 34u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] - #[doc = "will not kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "transfer_keep_alive", - TransferKeepAlive { - dest, - currency_id, - amount, - }, - [ - 76u8, 132u8, 171u8, 42u8, 174u8, 55u8, 166u8, - 171u8, 22u8, 191u8, 234u8, 185u8, 156u8, 22u8, - 210u8, 10u8, 104u8, 253u8, 183u8, 231u8, 42u8, - 95u8, 204u8, 28u8, 177u8, 5u8, 147u8, 51u8, 160u8, - 132u8, 194u8, 74u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source"] - #[doc = "account may be specified."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The sender of the transfer."] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "force_transfer", - ForceTransfer { - source, - dest, - currency_id, - amount, - }, - [ - 196u8, 35u8, 25u8, 247u8, 46u8, 2u8, 11u8, 188u8, - 120u8, 147u8, 123u8, 147u8, 174u8, 111u8, 237u8, - 23u8, 25u8, 50u8, 34u8, 69u8, 189u8, 211u8, 235u8, - 61u8, 183u8, 42u8, 110u8, 62u8, 44u8, 20u8, 43u8, - 214u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] - #[doc = "will also decrease the total issuance of the system"] - #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] - #[doc = "existential deposit, it will reap the `AccountInfo`."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Tokens", - "set_balance", - SetBalance { - who, - currency_id, - new_free, - new_reserved, - }, - [ - 155u8, 189u8, 114u8, 37u8, 193u8, 38u8, 48u8, 39u8, - 149u8, 224u8, 232u8, 189u8, 205u8, 248u8, 215u8, - 97u8, 50u8, 171u8, 118u8, 214u8, 47u8, 13u8, 104u8, - 3u8, 77u8, 34u8, 37u8, 135u8, 56u8, 94u8, 17u8, - 213u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::orml_tokens::module::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "An account was removed whose balance was non-zero but below"] - #[doc = "ExistentialDeposit, resulting in an outright loss."] - pub struct DustLost { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub currency_id: ::core::primitive::u32, - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some reserved balance was repatriated (moved from reserved to"] - #[doc = "another account)."] - pub struct ReserveRepatriated { pub currency_id : :: core :: primitive :: u32 , pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "The total issuance of an currency has been set"] - pub struct TotalIssuanceSet { - pub currency_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TotalIssuanceSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "TotalIssuanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] - pub struct Withdrawn { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some balances were slashed (e.g. due to mis-behavior)"] - pub struct Slashed { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub free_amount: ::core::primitive::u128, - pub reserved_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Deposited some balance into an account"] - pub struct Deposited { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposited { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Deposited"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some funds are locked"] - pub struct LockSet { - pub lock_id: [::core::primitive::u8; 8usize], - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for LockSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "LockSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Some locked funds were unlocked"] - pub struct LockRemoved { - pub lock_id: [::core::primitive::u8; 8usize], - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for LockRemoved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "LockRemoved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total issuance of a token type."] pub fn total_issuance (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "TotalIssuance" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [98u8 , 233u8 , 210u8 , 150u8 , 87u8 , 41u8 , 162u8 , 54u8 , 32u8 , 221u8 , 211u8 , 10u8 , 170u8 , 237u8 , 65u8 , 73u8 , 46u8 , 4u8 , 5u8 , 209u8 , 170u8 , 13u8 , 231u8 , 113u8 , 196u8 , 133u8 , 38u8 , 213u8 , 225u8 , 160u8 , 31u8 , 122u8 ,]) - } - #[doc = " The total issuance of a token type."] pub fn total_issuance_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "TotalIssuance", - Vec::new(), - [ - 98u8, 233u8, 210u8, 150u8, 87u8, 41u8, 162u8, 54u8, - 32u8, 221u8, 211u8, 10u8, 170u8, 237u8, 65u8, 73u8, - 46u8, 4u8, 5u8, 209u8, 170u8, 13u8, 231u8, 113u8, - 196u8, 133u8, 38u8, 213u8, 225u8, 160u8, 31u8, - 122u8, - ], - ) - } - #[doc = " Any liquidity locks of a token type under an account."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: BalanceLock < :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "Locks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [69u8 , 159u8 , 129u8 , 252u8 , 160u8 , 61u8 , 216u8 , 240u8 , 79u8 , 172u8 , 194u8 , 168u8 , 1u8 , 214u8 , 69u8 , 208u8 , 56u8 , 220u8 , 176u8 , 5u8 , 196u8 , 19u8 , 70u8 , 60u8 , 229u8 , 79u8 , 223u8 , 11u8 , 253u8 , 150u8 , 5u8 , 99u8 ,]) - } - #[doc = " Any liquidity locks of a token type under an account."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: BalanceLock < :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "Locks", - Vec::new(), - [ - 69u8, 159u8, 129u8, 252u8, 160u8, 61u8, 216u8, - 240u8, 79u8, 172u8, 194u8, 168u8, 1u8, 214u8, 69u8, - 208u8, 56u8, 220u8, 176u8, 5u8, 196u8, 19u8, 70u8, - 60u8, 229u8, 79u8, 223u8, 11u8, 253u8, 150u8, 5u8, - 99u8, - ], - ) - } - #[doc = " The balance of a token type under an account."] - #[doc = ""] - #[doc = " NOTE: If the total is ever zero, decrease account ref account."] - #[doc = ""] - #[doc = " NOTE: This is only used in the case that this module is used to store"] - #[doc = " balances."] pub fn accounts (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: orml_tokens :: AccountData < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "Accounts" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [136u8 , 147u8 , 98u8 , 221u8 , 153u8 , 10u8 , 206u8 , 218u8 , 153u8 , 159u8 , 62u8 , 152u8 , 110u8 , 198u8 , 125u8 , 15u8 , 127u8 , 21u8 , 31u8 , 191u8 , 241u8 , 167u8 , 124u8 , 77u8 , 138u8 , 133u8 , 204u8 , 30u8 , 180u8 , 253u8 , 126u8 , 214u8 ,]) - } - #[doc = " The balance of a token type under an account."] - #[doc = ""] - #[doc = " NOTE: If the total is ever zero, decrease account ref account."] - #[doc = ""] - #[doc = " NOTE: This is only used in the case that this module is used to store"] - #[doc = " balances."] pub fn accounts_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: orml_tokens :: AccountData < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "Accounts", - Vec::new(), - [ - 136u8, 147u8, 98u8, 221u8, 153u8, 10u8, 206u8, - 218u8, 153u8, 159u8, 62u8, 152u8, 110u8, 198u8, - 125u8, 15u8, 127u8, 21u8, 31u8, 191u8, 241u8, - 167u8, 124u8, 77u8, 138u8, 133u8, 204u8, 30u8, - 180u8, 253u8, 126u8, 214u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] pub fn reserves (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Tokens" , "Reserves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [103u8 , 137u8 , 30u8 , 231u8 , 144u8 , 86u8 , 36u8 , 246u8 , 38u8 , 138u8 , 76u8 , 9u8 , 82u8 , 232u8 , 100u8 , 7u8 , 48u8 , 111u8 , 249u8 , 59u8 , 57u8 , 60u8 , 5u8 , 70u8 , 144u8 , 190u8 , 122u8 , 205u8 , 36u8 , 237u8 , 57u8 , 254u8 ,]) - } - #[doc = " Named reserves on some account balances."] pub fn reserves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: orml_tokens :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u128 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Tokens", - "Reserves", - Vec::new(), - [ - 103u8, 137u8, 30u8, 231u8, 144u8, 86u8, 36u8, - 246u8, 38u8, 138u8, 76u8, 9u8, 82u8, 232u8, 100u8, - 7u8, 48u8, 111u8, 249u8, 59u8, 57u8, 60u8, 5u8, - 70u8, 144u8, 190u8, 122u8, 205u8, 36u8, 237u8, - 57u8, 254u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Tokens", - "MaxLocks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Tokens", - "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, - ], - ) - } - } - } - } - pub mod token_wrapper { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetWrappingFee { - pub fee: ::core::primitive::u128, - pub into_pool_share_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetFeeRecipient { - pub pool_share_id: ::core::primitive::u32, - pub fee_recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Wrap { - pub from_asset_id: ::core::primitive::u32, - pub into_pool_share_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Unwrap { - pub from_pool_share_id: ::core::primitive::u32, - pub into_asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RescueTokens { - pub from_pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn set_wrapping_fee( - &self, - fee: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "set_wrapping_fee", - SetWrappingFee { - fee, - into_pool_share_id, - nonce, - }, - [ - 60u8, 135u8, 246u8, 184u8, 70u8, 22u8, 245u8, 60u8, - 190u8, 224u8, 114u8, 168u8, 238u8, 146u8, 49u8, - 213u8, 85u8, 107u8, 221u8, 241u8, 218u8, 121u8, - 170u8, 227u8, 254u8, 146u8, 84u8, 21u8, 249u8, - 65u8, 1u8, 73u8, - ], - ) - } - pub fn set_fee_recipient( - &self, - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "set_fee_recipient", - SetFeeRecipient { - pool_share_id, - fee_recipient, - nonce, - }, - [ - 4u8, 219u8, 75u8, 151u8, 219u8, 115u8, 91u8, 35u8, - 73u8, 226u8, 132u8, 46u8, 137u8, 243u8, 186u8, - 25u8, 49u8, 233u8, 67u8, 218u8, 187u8, 182u8, 52u8, - 11u8, 139u8, 91u8, 69u8, 112u8, 141u8, 80u8, 141u8, - 210u8, - ], - ) - } - pub fn wrap( - &self, - from_asset_id: ::core::primitive::u32, - into_pool_share_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "wrap", - Wrap { - from_asset_id, - into_pool_share_id, - amount, - recipient, - }, - [ - 151u8, 42u8, 129u8, 19u8, 51u8, 10u8, 96u8, 207u8, - 223u8, 91u8, 43u8, 25u8, 221u8, 146u8, 64u8, 244u8, - 239u8, 74u8, 177u8, 62u8, 28u8, 41u8, 125u8, 63u8, - 191u8, 218u8, 188u8, 23u8, 196u8, 98u8, 201u8, - 82u8, - ], - ) - } - pub fn unwrap( - &self, - from_pool_share_id: ::core::primitive::u32, - into_asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "unwrap", - Unwrap { - from_pool_share_id, - into_asset_id, - amount, - recipient, - }, - [ - 3u8, 113u8, 42u8, 230u8, 32u8, 79u8, 31u8, 174u8, - 5u8, 72u8, 213u8, 19u8, 44u8, 117u8, 75u8, 170u8, - 14u8, 1u8, 18u8, 30u8, 32u8, 142u8, 2u8, 3u8, - 218u8, 244u8, 201u8, 16u8, 192u8, 142u8, 194u8, - 6u8, - ], - ) - } - pub fn rescue_tokens( - &self, - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapper", - "rescue_tokens", - RescueTokens { - from_pool_share_id, - asset_id, - amount, - recipient, - nonce, - }, - [ - 253u8, 87u8, 167u8, 31u8, 39u8, 125u8, 110u8, 56u8, - 163u8, 190u8, 120u8, 179u8, 145u8, 82u8, 214u8, - 146u8, 61u8, 70u8, 48u8, 19u8, 156u8, 21u8, 176u8, - 146u8, 195u8, 127u8, 118u8, 61u8, 170u8, 119u8, - 187u8, 106u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_token_wrapper::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WrappedToken { - pub pool_share_asset: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for WrappedToken { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "WrappedToken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnwrappedToken { - pub pool_share_asset: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for UnwrappedToken { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UnwrappedToken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdatedWrappingFeePercent { - pub into_pool_share_id: ::core::primitive::u32, - pub wrapping_fee_percent: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UpdatedWrappingFeePercent"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdatedFeeRecipient { - pub fee_recipient: ::subxt::utils::AccountId32, - pub pool_share_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for UpdatedFeeRecipient { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UpdatedFeeRecipient"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TokensRescued { - pub from_pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TokensRescued { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "TokensRescued"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Percentage of amount to be used as wrapping fee"] pub fn wrapping_fee_percent (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TokenWrapper" , "WrappingFeePercent" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [31u8 , 126u8 , 185u8 , 195u8 , 250u8 , 224u8 , 247u8 , 225u8 , 251u8 , 232u8 , 118u8 , 36u8 , 104u8 , 42u8 , 118u8 , 184u8 , 232u8 , 148u8 , 238u8 , 142u8 , 123u8 , 71u8 , 37u8 , 218u8 , 200u8 , 216u8 , 84u8 , 184u8 , 4u8 , 56u8 , 13u8 , 94u8 ,]) - } - #[doc = " Percentage of amount to be used as wrapping fee"] pub fn wrapping_fee_percent_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TokenWrapper", - "WrappingFeePercent", - Vec::new(), - [ - 31u8, 126u8, 185u8, 195u8, 250u8, 224u8, 247u8, - 225u8, 251u8, 232u8, 118u8, 36u8, 104u8, 42u8, - 118u8, 184u8, 232u8, 148u8, 238u8, 142u8, 123u8, - 71u8, 37u8, 218u8, 200u8, 216u8, 84u8, 184u8, 4u8, - 56u8, 13u8, 94u8, - ], - ) - } - #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] pub fn fee_recipient (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TokenWrapper" , "FeeRecipient" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [79u8 , 99u8 , 123u8 , 161u8 , 162u8 , 129u8 , 150u8 , 254u8 , 231u8 , 49u8 , 234u8 , 102u8 , 25u8 , 234u8 , 86u8 , 145u8 , 97u8 , 30u8 , 37u8 , 85u8 , 223u8 , 139u8 , 16u8 , 16u8 , 12u8 , 70u8 , 12u8 , 113u8 , 95u8 , 141u8 , 134u8 , 142u8 ,]) - } - #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] pub fn fee_recipient_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TokenWrapper", - "FeeRecipient", - Vec::new(), - [ - 79u8, 99u8, 123u8, 161u8, 162u8, 129u8, 150u8, - 254u8, 231u8, 49u8, 234u8, 102u8, 25u8, 234u8, - 86u8, 145u8, 97u8, 30u8, 37u8, 85u8, 223u8, 139u8, - 16u8, 16u8, 12u8, 70u8, 12u8, 113u8, 95u8, 141u8, - 134u8, 142u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TokenWrapper" , "ProposalNonce" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [255u8 , 130u8 , 216u8 , 75u8 , 22u8 , 132u8 , 182u8 , 54u8 , 158u8 , 158u8 , 6u8 , 185u8 , 86u8 , 163u8 , 142u8 , 247u8 , 135u8 , 96u8 , 187u8 , 53u8 , 18u8 , 142u8 , 28u8 , 247u8 , 190u8 , 42u8 , 246u8 , 180u8 , 25u8 , 163u8 , 134u8 , 228u8 ,]) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TokenWrapper", - "ProposalNonce", - Vec::new(), - [ - 255u8, 130u8, 216u8, 75u8, 22u8, 132u8, 182u8, - 54u8, 158u8, 158u8, 6u8, 185u8, 86u8, 163u8, 142u8, - 247u8, 135u8, 96u8, 187u8, 53u8, 18u8, 142u8, 28u8, - 247u8, 190u8, 42u8, 246u8, 180u8, 25u8, 163u8, - 134u8, 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "TokenWrapper", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - pub fn treasury_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "TokenWrapper", - "TreasuryId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - pub fn wrapping_fee_divider( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "TokenWrapper", - "WrappingFeeDivider", - [ - 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 mixer_verifier_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetParameters { - pub parameters: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "MixerVerifierBn254", - "force_set_parameters", - ForceSetParameters { parameters }, - [ - 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, - 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, - 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, - 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, - 75u8, 166u8, 90u8, 127u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_verifier::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] pub fn parameters (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MixerVerifierBn254", - "Parameters", - vec![], - [ - 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, - 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, - 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, - 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, - 110u8, 163u8, 192u8, - ], - ) - } - } - } - } - pub mod merkle_tree_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub depth: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Insert { pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetDefaultHashes { pub default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - depth: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MerkleTreeBn254", - "create", - Create { depth }, - [ - 101u8, 141u8, 101u8, 131u8, 97u8, 194u8, 160u8, - 159u8, 181u8, 29u8, 158u8, 167u8, 174u8, 21u8, 2u8, - 191u8, 254u8, 131u8, 228u8, 162u8, 70u8, 187u8, - 140u8, 95u8, 113u8, 138u8, 81u8, 219u8, 109u8, - 176u8, 131u8, 58u8, - ], - ) - } - pub fn insert( - &self, - tree_id: ::core::primitive::u32, - leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MerkleTreeBn254", - "insert", - Insert { tree_id, leaf }, - [ - 151u8, 86u8, 79u8, 4u8, 158u8, 170u8, 235u8, 236u8, - 161u8, 51u8, 108u8, 207u8, 113u8, 70u8, 64u8, 5u8, - 94u8, 5u8, 147u8, 87u8, 250u8, 27u8, 111u8, 46u8, - 141u8, 67u8, 223u8, 254u8, 177u8, 171u8, 111u8, - 103u8, - ], - ) - } - pub fn force_set_default_hashes( - &self, - default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "MerkleTreeBn254", - "force_set_default_hashes", - ForceSetDefaultHashes { default_hashes }, - [ - 39u8, 13u8, 28u8, 236u8, 30u8, 33u8, 206u8, 43u8, - 40u8, 220u8, 116u8, 91u8, 123u8, 161u8, 227u8, - 42u8, 155u8, 46u8, 27u8, 13u8, 101u8, 23u8, 103u8, - 151u8, 216u8, 71u8, 97u8, 160u8, 209u8, 76u8, 71u8, - 74u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_mt::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct TreeCreation { - pub tree_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TreeCreation { - const PALLET: &'static str = "MerkleTreeBn254"; - const EVENT: &'static str = "TreeCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New leaf inserted"] - pub struct LeafInsertion { pub tree_id : :: core :: primitive :: u32 , pub leaf_index : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } - impl ::subxt::events::StaticEvent for LeafInsertion { - const PALLET: &'static str = "MerkleTreeBn254"; - const EVENT: &'static str = "LeafInsertion"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] pub fn deposit (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: types :: DepositDetails < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "Deposit", - vec![], - [ - 175u8, 238u8, 72u8, 65u8, 101u8, 152u8, 252u8, - 101u8, 127u8, 181u8, 93u8, 29u8, 16u8, 241u8, - 243u8, 226u8, 128u8, 149u8, 202u8, 94u8, 15u8, - 35u8, 11u8, 240u8, 16u8, 177u8, 120u8, 193u8, - 213u8, 236u8, 151u8, 36u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_tree_id (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "NextTreeId", - vec![], - [ - 173u8, 89u8, 80u8, 58u8, 200u8, 64u8, 201u8, 3u8, - 169u8, 139u8, 75u8, 117u8, 56u8, 52u8, 163u8, 25u8, - 83u8, 189u8, 66u8, 245u8, 249u8, 30u8, 211u8, - 225u8, 16u8, 47u8, 232u8, 148u8, 75u8, 156u8, - 233u8, 74u8, - ], - ) - } - #[doc = " The map of trees to their metadata"] pub fn trees (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mt :: types :: TreeMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxEdges > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "Trees" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [64u8 , 52u8 , 2u8 , 9u8 , 150u8 , 70u8 , 94u8 , 245u8 , 245u8 , 212u8 , 230u8 , 204u8 , 106u8 , 58u8 , 79u8 , 64u8 , 17u8 , 36u8 , 212u8 , 85u8 , 67u8 , 39u8 , 90u8 , 194u8 , 193u8 , 110u8 , 85u8 , 133u8 , 224u8 , 193u8 , 13u8 , 46u8 ,]) - } - #[doc = " The map of trees to their metadata"] pub fn trees_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mt :: types :: TreeMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxEdges > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "Trees", - Vec::new(), - [ - 64u8, 52u8, 2u8, 9u8, 150u8, 70u8, 94u8, 245u8, - 245u8, 212u8, 230u8, 204u8, 106u8, 58u8, 79u8, - 64u8, 17u8, 36u8, 212u8, 85u8, 67u8, 39u8, 90u8, - 194u8, 193u8, 110u8, 85u8, 133u8, 224u8, 193u8, - 13u8, 46u8, - ], - ) - } - #[doc = " The default hashes for this tree pallet"] pub fn default_hashes (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "DefaultHashes", - vec![], - [ - 5u8, 167u8, 42u8, 194u8, 16u8, 7u8, 44u8, 239u8, - 119u8, 4u8, 126u8, 229u8, 53u8, 70u8, 117u8, 18u8, - 91u8, 186u8, 181u8, 55u8, 188u8, 230u8, 11u8, - 196u8, 247u8, 30u8, 98u8, 58u8, 193u8, 76u8, 9u8, - 212u8, - ], - ) - } - #[doc = " The map of (tree_id, index) to the leaf commitment"] pub fn leaves (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "Leaves" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [254u8 , 175u8 , 119u8 , 127u8 , 20u8 , 24u8 , 100u8 , 16u8 , 25u8 , 49u8 , 82u8 , 151u8 , 73u8 , 145u8 , 127u8 , 130u8 , 154u8 , 198u8 , 137u8 , 37u8 , 202u8 , 114u8 , 151u8 , 31u8 , 246u8 , 162u8 , 210u8 , 127u8 , 139u8 , 44u8 , 35u8 , 13u8 ,]) - } - #[doc = " The map of (tree_id, index) to the leaf commitment"] pub fn leaves_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "Leaves", - Vec::new(), - [ - 254u8, 175u8, 119u8, 127u8, 20u8, 24u8, 100u8, - 16u8, 25u8, 49u8, 82u8, 151u8, 73u8, 145u8, 127u8, - 130u8, 154u8, 198u8, 137u8, 37u8, 202u8, 114u8, - 151u8, 31u8, 246u8, 162u8, 210u8, 127u8, 139u8, - 44u8, 35u8, 13u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_root_index (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "NextRootIndex", - vec![], - [ - 175u8, 70u8, 212u8, 119u8, 231u8, 181u8, 88u8, - 15u8, 186u8, 22u8, 1u8, 117u8, 56u8, 178u8, 191u8, - 154u8, 150u8, 203u8, 131u8, 128u8, 22u8, 141u8, - 171u8, 148u8, 160u8, 177u8, 38u8, 48u8, 76u8, - 198u8, 224u8, 126u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_leaf_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "NextLeafIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [50u8 , 243u8 , 135u8 , 181u8 , 149u8 , 69u8 , 42u8 , 31u8 , 72u8 , 206u8 , 86u8 , 230u8 , 207u8 , 247u8 , 60u8 , 27u8 , 91u8 , 95u8 , 103u8 , 48u8 , 101u8 , 252u8 , 136u8 , 220u8 , 56u8 , 246u8 , 184u8 , 208u8 , 140u8 , 82u8 , 250u8 , 22u8 ,]) - } - #[doc = " The next tree identifier up for grabs"] pub fn next_leaf_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "NextLeafIndex", - Vec::new(), - [ - 50u8, 243u8, 135u8, 181u8, 149u8, 69u8, 42u8, 31u8, - 72u8, 206u8, 86u8, 230u8, 207u8, 247u8, 60u8, 27u8, - 91u8, 95u8, 103u8, 48u8, 101u8, 252u8, 136u8, - 220u8, 56u8, 246u8, 184u8, 208u8, 140u8, 82u8, - 250u8, 22u8, - ], - ) - } - #[doc = " Map of root history from tree id to root index to root values"] pub fn cached_roots (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MerkleTreeBn254" , "CachedRoots" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [60u8 , 183u8 , 112u8 , 98u8 , 129u8 , 52u8 , 122u8 , 187u8 , 82u8 , 235u8 , 222u8 , 75u8 , 72u8 , 150u8 , 53u8 , 69u8 , 76u8 , 144u8 , 11u8 , 131u8 , 140u8 , 152u8 , 243u8 , 122u8 , 168u8 , 92u8 , 219u8 , 42u8 , 229u8 , 208u8 , 78u8 , 105u8 ,]) - } - #[doc = " Map of root history from tree id to root index to root values"] pub fn cached_roots_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MerkleTreeBn254", - "CachedRoots", - Vec::new(), - [ - 60u8, 183u8, 112u8, 98u8, 129u8, 52u8, 122u8, - 187u8, 82u8, 235u8, 222u8, 75u8, 72u8, 150u8, 53u8, - 69u8, 76u8, 144u8, 11u8, 131u8, 140u8, 152u8, - 243u8, 122u8, 168u8, 92u8, 219u8, 42u8, 229u8, - 208u8, 78u8, 105u8, - ], - ) - } - } - } - } - pub mod linkable_tree_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub max_edges: ::core::primitive::u32, - pub depth: ::core::primitive::u8, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "LinkableTreeBn254", - "create", - Create { max_edges, depth }, - [ - 95u8, 217u8, 213u8, 178u8, 133u8, 233u8, 101u8, - 67u8, 62u8, 233u8, 188u8, 150u8, 111u8, 88u8, 0u8, - 241u8, 215u8, 208u8, 245u8, 191u8, 52u8, 162u8, - 79u8, 231u8, 228u8, 232u8, 49u8, 103u8, 178u8, - 96u8, 176u8, 206u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_linkable_tree::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct LinkableTreeCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for LinkableTreeCreation { - const PALLET: &'static str = "LinkableTreeBn254"; - const EVENT: &'static str = "LinkableTreeCreation"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to the maximum number of anchor edges they can have"] pub fn max_edges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "MaxEdges" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [198u8 , 254u8 , 155u8 , 234u8 , 177u8 , 109u8 , 109u8 , 57u8 , 207u8 , 37u8 , 12u8 , 234u8 , 187u8 , 187u8 , 77u8 , 227u8 , 100u8 , 135u8 , 111u8 , 195u8 , 194u8 , 104u8 , 52u8 , 186u8 , 10u8 , 128u8 , 248u8 , 88u8 , 87u8 , 154u8 , 229u8 , 90u8 ,]) - } - #[doc = " The map of trees to the maximum number of anchor edges they can have"] pub fn max_edges_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "MaxEdges", - Vec::new(), - [ - 198u8, 254u8, 155u8, 234u8, 177u8, 109u8, 109u8, - 57u8, 207u8, 37u8, 12u8, 234u8, 187u8, 187u8, 77u8, - 227u8, 100u8, 135u8, 111u8, 195u8, 194u8, 104u8, - 52u8, 186u8, 10u8, 128u8, 248u8, 88u8, 87u8, 154u8, - 229u8, 90u8, - ], - ) - } - #[doc = " The map of trees and chain ids to their edge metadata"] pub fn edge_list (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_linkable_tree :: types :: EdgeMetadata < :: core :: primitive :: u64 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "EdgeList" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [129u8 , 93u8 , 177u8 , 204u8 , 167u8 , 37u8 , 32u8 , 189u8 , 47u8 , 99u8 , 19u8 , 161u8 , 55u8 , 2u8 , 224u8 , 1u8 , 223u8 , 145u8 , 51u8 , 138u8 , 243u8 , 185u8 , 255u8 , 32u8 , 6u8 , 123u8 , 244u8 , 248u8 , 133u8 , 189u8 , 97u8 , 159u8 ,]) - } - #[doc = " The map of trees and chain ids to their edge metadata"] pub fn edge_list_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_linkable_tree :: types :: EdgeMetadata < :: core :: primitive :: u64 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: core :: primitive :: u32 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "EdgeList", - Vec::new(), - [ - 129u8, 93u8, 177u8, 204u8, 167u8, 37u8, 32u8, - 189u8, 47u8, 99u8, 19u8, 161u8, 55u8, 2u8, 224u8, - 1u8, 223u8, 145u8, 51u8, 138u8, 243u8, 185u8, - 255u8, 32u8, 6u8, 123u8, 244u8, 248u8, 133u8, - 189u8, 97u8, 159u8, - ], - ) - } - #[doc = " A helper map for denoting whether an tree is bridged to given chain"] pub fn linkable_tree_has_edge (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "LinkableTreeHasEdge" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [159u8 , 137u8 , 120u8 , 239u8 , 119u8 , 134u8 , 14u8 , 74u8 , 253u8 , 30u8 , 22u8 , 29u8 , 177u8 , 255u8 , 4u8 , 81u8 , 86u8 , 20u8 , 141u8 , 192u8 , 23u8 , 16u8 , 200u8 , 87u8 , 93u8 , 252u8 , 91u8 , 240u8 , 162u8 , 163u8 , 146u8 , 163u8 ,]) - } - #[doc = " A helper map for denoting whether an tree is bridged to given chain"] pub fn linkable_tree_has_edge_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "LinkableTreeHasEdge", - Vec::new(), - [ - 159u8, 137u8, 120u8, 239u8, 119u8, 134u8, 14u8, - 74u8, 253u8, 30u8, 22u8, 29u8, 177u8, 255u8, 4u8, - 81u8, 86u8, 20u8, 141u8, 192u8, 23u8, 16u8, 200u8, - 87u8, 93u8, 252u8, 91u8, 240u8, 162u8, 163u8, - 146u8, 163u8, - ], - ) - } - #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] pub fn neighbor_roots (& self , _0 : impl :: std :: borrow :: Borrow < (:: core :: primitive :: u32 , :: core :: primitive :: u64 ,) > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "NeighborRoots" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [240u8 , 198u8 , 38u8 , 115u8 , 71u8 , 53u8 , 46u8 , 249u8 , 243u8 , 197u8 , 50u8 , 11u8 , 181u8 , 11u8 , 183u8 , 61u8 , 213u8 , 66u8 , 191u8 , 220u8 , 225u8 , 203u8 , 3u8 , 190u8 , 131u8 , 47u8 , 66u8 , 12u8 , 68u8 , 201u8 , 181u8 , 99u8 ,]) - } - #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] pub fn neighbor_roots_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "NeighborRoots", - Vec::new(), - [ - 240u8, 198u8, 38u8, 115u8, 71u8, 53u8, 46u8, 249u8, - 243u8, 197u8, 50u8, 11u8, 181u8, 11u8, 183u8, 61u8, - 213u8, 66u8, 191u8, 220u8, 225u8, 203u8, 3u8, - 190u8, 131u8, 47u8, 66u8, 12u8, 68u8, 201u8, 181u8, - 99u8, - ], - ) - } - #[doc = " The next neighbor root index to store the merkle root update record"] pub fn current_neighbor_root_index (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("LinkableTreeBn254" , "CurrentNeighborRootIndex" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [114u8 , 40u8 , 99u8 , 72u8 , 241u8 , 89u8 , 253u8 , 122u8 , 226u8 , 181u8 , 168u8 , 58u8 , 70u8 , 0u8 , 110u8 , 141u8 , 58u8 , 12u8 , 177u8 , 129u8 , 103u8 , 45u8 , 160u8 , 139u8 , 99u8 , 198u8 , 181u8 , 154u8 , 78u8 , 62u8 , 201u8 , 227u8 ,]) - } - #[doc = " The next neighbor root index to store the merkle root update record"] pub fn current_neighbor_root_index_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "LinkableTreeBn254", - "CurrentNeighborRootIndex", - Vec::new(), - [ - 114u8, 40u8, 99u8, 72u8, 241u8, 89u8, 253u8, 122u8, - 226u8, 181u8, 168u8, 58u8, 70u8, 0u8, 110u8, 141u8, - 58u8, 12u8, 177u8, 129u8, 103u8, 45u8, 160u8, - 139u8, 99u8, 198u8, 181u8, 154u8, 78u8, 62u8, - 201u8, 227u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " ChainID type for this chain"] - pub fn chain_type( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - [::core::primitive::u8; 2usize], - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "LinkableTreeBn254", - "ChainType", - [ - 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, - 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, - 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, - 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, - 240u8, 86u8, - ], - ) - } - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "LinkableTreeBn254", - "ChainIdentifier", - [ - 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 pruning length for neighbor root histories"] - pub fn history_length( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "LinkableTreeBn254", - "HistoryLength", - [ - 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 mixer_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub deposit_size: ::core::primitive::u128, - pub depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Deposit { pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Withdraw { pub id : :: core :: primitive :: u32 , pub proof_bytes : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , pub nullifier_hash : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , pub recipient : :: subxt :: utils :: AccountId32 , pub relayer : :: subxt :: utils :: AccountId32 , pub fee : :: core :: primitive :: u128 , pub refund : :: core :: primitive :: u128 , } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - deposit_size: ::core::primitive::u128, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MixerBn254", - "create", - Create { - deposit_size, - depth, - asset, - }, - [ - 53u8, 217u8, 41u8, 250u8, 195u8, 125u8, 121u8, - 239u8, 62u8, 136u8, 254u8, 202u8, 250u8, 97u8, - 183u8, 23u8, 85u8, 249u8, 212u8, 217u8, 218u8, - 162u8, 212u8, 89u8, 76u8, 95u8, 239u8, 34u8, 76u8, - 231u8, 27u8, 151u8, - ], - ) - } - pub fn deposit( - &self, - tree_id: ::core::primitive::u32, - leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MixerBn254", - "deposit", - Deposit { tree_id, leaf }, - [ - 104u8, 199u8, 158u8, 83u8, 100u8, 27u8, 207u8, - 32u8, 124u8, 162u8, 5u8, 227u8, 125u8, 197u8, - 251u8, 180u8, 199u8, 250u8, 95u8, 69u8, 174u8, - 124u8, 66u8, 95u8, 122u8, 84u8, 231u8, 8u8, 205u8, - 71u8, 23u8, 224u8, - ], - ) - } - pub fn withdraw( - &self, - id: ::core::primitive::u32, - proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, - nullifier_hash : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, - recipient: ::subxt::utils::AccountId32, - relayer: ::subxt::utils::AccountId32, - fee: ::core::primitive::u128, - refund: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "MixerBn254", - "withdraw", - Withdraw { - id, - proof_bytes, - root, - nullifier_hash, - recipient, - relayer, - fee, - refund, - }, - [ - 30u8, 228u8, 205u8, 113u8, 251u8, 11u8, 150u8, - 32u8, 63u8, 227u8, 217u8, 126u8, 154u8, 250u8, - 95u8, 192u8, 203u8, 107u8, 241u8, 221u8, 251u8, - 83u8, 70u8, 84u8, 69u8, 190u8, 222u8, 57u8, 29u8, - 183u8, 17u8, 68u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_mixer::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct MixerCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for MixerCreation { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "MixerCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Deposit { pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Withdraw { - pub tree_id: ::core::primitive::u32, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "Withdraw"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to their mixer metadata"] pub fn mixers (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mixer :: types :: MixerMetadata < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MixerBn254" , "Mixers" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [30u8 , 216u8 , 0u8 , 53u8 , 203u8 , 108u8 , 202u8 , 45u8 , 173u8 , 173u8 , 108u8 , 254u8 , 29u8 , 23u8 , 97u8 , 163u8 , 102u8 , 196u8 , 204u8 , 14u8 , 30u8 , 68u8 , 217u8 , 162u8 , 175u8 , 88u8 , 138u8 , 153u8 , 228u8 , 74u8 , 125u8 , 11u8 ,]) - } - #[doc = " The map of trees to their mixer metadata"] pub fn mixers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_mixer :: types :: MixerMetadata < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MixerBn254", - "Mixers", - Vec::new(), - [ - 30u8, 216u8, 0u8, 53u8, 203u8, 108u8, 202u8, 45u8, - 173u8, 173u8, 108u8, 254u8, 29u8, 23u8, 97u8, - 163u8, 102u8, 196u8, 204u8, 14u8, 30u8, 68u8, - 217u8, 162u8, 175u8, 88u8, 138u8, 153u8, 228u8, - 74u8, 125u8, 11u8, - ], - ) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("MixerBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "MixerBn254", - "NullifierHashes", - Vec::new(), - [ - 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, - 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, - 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, - 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, - 185u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "MixerBn254", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " Native currency id"] - pub fn native_currency_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "MixerBn254", - "NativeCurrencyId", - [ - 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 signature_bridge { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMaintainer { - pub message: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub signature: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetMaintainer { - pub new_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WhitelistChain { - pub id: ::core::primitive::u64, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetResourceWithSignature { - pub src_id: ::core::primitive::u64, - pub proposal_data: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub signature: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteProposal { - pub src_id: ::core::primitive::u64, - pub proposal_data: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub signature: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Sets the maintainer."] - pub fn set_maintainer( - &self, - message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "set_maintainer", - SetMaintainer { message, signature }, - [ - 132u8, 42u8, 94u8, 104u8, 168u8, 131u8, 130u8, - 157u8, 33u8, 175u8, 220u8, 71u8, 33u8, 117u8, - 255u8, 142u8, 5u8, 101u8, 176u8, 48u8, 222u8, - 220u8, 24u8, 87u8, 34u8, 29u8, 104u8, 35u8, 245u8, - 119u8, 109u8, 20u8, - ], - ) - } - pub fn force_set_maintainer( - &self, - new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "force_set_maintainer", - ForceSetMaintainer { new_maintainer }, - [ - 48u8, 168u8, 9u8, 22u8, 245u8, 245u8, 6u8, 130u8, - 126u8, 74u8, 12u8, 96u8, 7u8, 212u8, 91u8, 127u8, - 237u8, 185u8, 189u8, 215u8, 21u8, 26u8, 96u8, 4u8, - 44u8, 187u8, 41u8, 26u8, 219u8, 56u8, 70u8, 17u8, - ], - ) - } - #[doc = "Stores a method name on chain under an associated resource ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) write"] - #[doc = "# "] - pub fn set_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "set_resource", - SetResource { id }, - [ - 100u8, 124u8, 197u8, 183u8, 34u8, 42u8, 154u8, - 55u8, 12u8, 151u8, 135u8, 152u8, 211u8, 151u8, - 33u8, 14u8, 67u8, 222u8, 3u8, 109u8, 144u8, 235u8, - 253u8, 116u8, 76u8, 145u8, 90u8, 158u8, 138u8, - 33u8, 204u8, 170u8, - ], - ) - } - #[doc = "Removes a resource ID from the resource mapping."] - #[doc = ""] - #[doc = "After this call, bridge transfers with the associated resource ID"] - #[doc = "will be rejected."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) removal"] - #[doc = "# "] - pub fn remove_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "remove_resource", - RemoveResource { id }, - [ - 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, - 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, - 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, - 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, - 172u8, 92u8, 67u8, - ], - ) - } - #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn whitelist_chain( - &self, - id: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "whitelist_chain", - WhitelistChain { id }, - [ - 230u8, 109u8, 92u8, 10u8, 127u8, 214u8, 167u8, - 56u8, 125u8, 37u8, 161u8, 108u8, 98u8, 250u8, 3u8, - 146u8, 224u8, 178u8, 139u8, 72u8, 21u8, 159u8, - 54u8, 225u8, 172u8, 88u8, 214u8, 162u8, 235u8, - 87u8, 125u8, 23u8, - ], - ) - } - #[doc = "@param origin"] - #[doc = "@param src_id"] - #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] - #[doc = "@param signature: a signature over the proposal_data"] - #[doc = ""] - #[doc = "We check:"] - #[doc = "1. That the signature is actually over the proposal data"] - #[doc = "2. Add ResourceId to the Storage"] - #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] - #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] - #[doc = "indeed this chain's id type"] - #[doc = ""] - #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] - #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] - #[doc = "the anchor-handler or token-wrapper-handler pallet."] - #[doc = ""] - #[doc = "There are a few TODOs left in the function."] - #[doc = ""] - #[doc = "In the set_resource_with_signature"] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn set_resource_with_signature( - &self, - src_id: ::core::primitive::u64, - proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "set_resource_with_signature", - SetResourceWithSignature { - src_id, - proposal_data, - signature, - }, - [ - 77u8, 91u8, 104u8, 22u8, 207u8, 86u8, 57u8, 238u8, - 168u8, 243u8, 218u8, 73u8, 192u8, 133u8, 163u8, - 164u8, 252u8, 145u8, 103u8, 1u8, 0u8, 128u8, 145u8, - 83u8, 213u8, 58u8, 228u8, 190u8, 46u8, 114u8, - 227u8, 86u8, - ], - ) - } - #[doc = "@param origin"] - #[doc = "@param src_id"] - #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] - #[doc = "@param signature: a signature over the proposal_data"] - #[doc = ""] - #[doc = "We check:"] - #[doc = "1. That the signature is actually over the proposal data"] - #[doc = "2. That the r_id parsed from the proposal data exists"] - #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] - #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] - #[doc = "indeed this chain's id type"] - #[doc = ""] - #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] - #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] - #[doc = "the anchor-handler or token-wrapper-handler pallet."] - #[doc = ""] - #[doc = "There are a few TODOs left in the function."] - #[doc = ""] - #[doc = "In the execute_proposal"] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn execute_proposal( - &self, - src_id: ::core::primitive::u64, - proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "SignatureBridge", - "execute_proposal", - ExecuteProposal { - src_id, - proposal_data, - signature, - }, - [ - 206u8, 23u8, 14u8, 145u8, 199u8, 21u8, 242u8, 83u8, - 4u8, 46u8, 238u8, 210u8, 121u8, 48u8, 75u8, 151u8, - 188u8, 20u8, 165u8, 177u8, 67u8, 34u8, 129u8, 92u8, - 155u8, 141u8, 199u8, 127u8, 227u8, 255u8, 237u8, - 128u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_signature_bridge::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Maintainer is set"] - pub struct MaintainerSet { - pub old_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub new_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - impl ::subxt::events::StaticEvent for MaintainerSet { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "MaintainerSet"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Chain now available for transfers (chain_id)"] - pub struct ChainWhitelisted { - pub chain_id: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ChainWhitelisted { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ChainWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Proposal has been approved"] - pub struct ProposalApproved { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalApproved { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalApproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Execution of call succeeded"] - pub struct ProposalSucceeded { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalSucceeded { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalSucceeded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Execution of call failed"] - pub struct ProposalFailed { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalFailed { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalFailed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The parameter maintainer who can change the parameters"] pub fn maintainer (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "Maintainer", - vec![], - [ - 104u8, 164u8, 76u8, 22u8, 55u8, 166u8, 230u8, 23u8, - 129u8, 166u8, 199u8, 31u8, 66u8, 142u8, 10u8, - 119u8, 72u8, 63u8, 10u8, 213u8, 69u8, 49u8, 243u8, - 128u8, 212u8, 125u8, 202u8, 208u8, 180u8, 62u8, - 84u8, 157u8, - ], - ) - } - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("SignatureBridge" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [46u8 , 115u8 , 113u8 , 107u8 , 117u8 , 64u8 , 44u8 , 249u8 , 225u8 , 85u8 , 228u8 , 126u8 , 121u8 , 101u8 , 13u8 , 244u8 , 174u8 , 210u8 , 21u8 , 34u8 , 248u8 , 203u8 , 38u8 , 35u8 , 113u8 , 149u8 , 100u8 , 157u8 , 8u8 , 100u8 , 113u8 , 68u8 ,]) - } - #[doc = " All whitelisted chains and their respective transaction counts"] pub fn chain_nonces_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "ChainNonces", - Vec::new(), - [ - 46u8, 115u8, 113u8, 107u8, 117u8, 64u8, 44u8, - 249u8, 225u8, 85u8, 228u8, 126u8, 121u8, 101u8, - 13u8, 244u8, 174u8, 210u8, 21u8, 34u8, 248u8, - 203u8, 38u8, 35u8, 113u8, 149u8, 100u8, 157u8, 8u8, - 100u8, 113u8, 68u8, - ], - ) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < () > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("SignatureBridge" , "Resources" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_256)] , [244u8 , 76u8 , 108u8 , 200u8 , 197u8 , 2u8 , 102u8 , 136u8 , 158u8 , 135u8 , 102u8 , 251u8 , 56u8 , 170u8 , 225u8 , 248u8 , 37u8 , 168u8 , 49u8 , 184u8 , 241u8 , 15u8 , 4u8 , 100u8 , 144u8 , 154u8 , 29u8 , 128u8 , 69u8 , 188u8 , 80u8 , 121u8 ,]) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] pub fn resources_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < () > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "Resources", - Vec::new(), - [ - 244u8, 76u8, 108u8, 200u8, 197u8, 2u8, 102u8, - 136u8, 158u8, 135u8, 102u8, 251u8, 56u8, 170u8, - 225u8, 248u8, 37u8, 168u8, 49u8, 184u8, 241u8, - 15u8, 4u8, 100u8, 144u8, 154u8, 29u8, 128u8, 69u8, - 188u8, 80u8, 121u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "ProposalNonce", - vec![], - [ - 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, - 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, - 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, - 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, - ], - ) - } pub fn maintainer_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "SignatureBridge", - "MaintainerNonce", - vec![], - [ - 139u8, 246u8, 239u8, 180u8, 188u8, 73u8, 234u8, - 114u8, 211u8, 68u8, 84u8, 178u8, 142u8, 49u8, 24u8, - 160u8, 32u8, 180u8, 211u8, 16u8, 75u8, 91u8, 40u8, - 132u8, 120u8, 68u8, 221u8, 167u8, 138u8, 53u8, - 71u8, 250u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The identifier for this chain."] - #[doc = " This must be unique and must not collide with existing IDs within a"] - #[doc = " set of bridged chains."] - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "ChainIdentifier", - [ - 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 chain type for this chain."] - #[doc = " This is either a standalone Substrate chain, relay chain, or parachain"] - pub fn chain_type( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - [::core::primitive::u8; 2usize], - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "ChainType", - [ - 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, - 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, - 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, - 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, - 240u8, 86u8, - ], - ) - } - pub fn proposal_lifetime( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "ProposalLifetime", - [ - 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 bridge_account_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "SignatureBridge", - "BridgeAccountId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - } - } - } - pub mod v_anchor_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Create { - pub max_edges: ::core::primitive::u32, - pub depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Transact { pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RegisterAndTransact { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMaxDepositAmount { - pub max_deposit_amount: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetMinWithdrawAmount { - pub min_withdraw_amount: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "create", - Create { - max_edges, - depth, - asset, - }, - [ - 179u8, 67u8, 213u8, 88u8, 4u8, 208u8, 165u8, 229u8, - 106u8, 59u8, 181u8, 181u8, 67u8, 139u8, 48u8, - 227u8, 237u8, 190u8, 95u8, 118u8, 70u8, 177u8, - 106u8, 67u8, 253u8, 70u8, 125u8, 78u8, 22u8, 142u8, - 161u8, 100u8, - ], - ) - } - pub fn transact( - &self, - id: ::core::primitive::u32, - proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, - ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "transact", - Transact { - id, - proof_data, - ext_data, - }, - [ - 157u8, 31u8, 193u8, 175u8, 45u8, 95u8, 117u8, - 197u8, 158u8, 109u8, 20u8, 9u8, 148u8, 218u8, - 112u8, 129u8, 151u8, 106u8, 221u8, 47u8, 172u8, - 114u8, 172u8, 173u8, 2u8, 7u8, 145u8, 32u8, 157u8, - 61u8, 215u8, 176u8, - ], - ) - } - pub fn register_and_transact( - &self, - owner: ::subxt::utils::AccountId32, - public_key: ::std::vec::Vec<::core::primitive::u8>, - id: ::core::primitive::u32, - proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, - ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "register_and_transact", - RegisterAndTransact { - owner, - public_key, - id, - proof_data, - ext_data, - }, - [ - 21u8, 243u8, 134u8, 214u8, 148u8, 56u8, 53u8, 92u8, - 137u8, 39u8, 119u8, 189u8, 110u8, 72u8, 76u8, 84u8, - 233u8, 62u8, 147u8, 247u8, 172u8, 9u8, 69u8, 49u8, - 141u8, 145u8, 161u8, 32u8, 86u8, 13u8, 74u8, 119u8, - ], - ) - } - pub fn set_max_deposit_amount( - &self, - max_deposit_amount: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "set_max_deposit_amount", - SetMaxDepositAmount { - max_deposit_amount, - nonce, - }, - [ - 176u8, 129u8, 140u8, 194u8, 38u8, 99u8, 96u8, - 123u8, 223u8, 127u8, 142u8, 201u8, 168u8, 229u8, - 117u8, 84u8, 88u8, 187u8, 141u8, 17u8, 227u8, - 250u8, 61u8, 213u8, 138u8, 191u8, 79u8, 233u8, - 219u8, 157u8, 162u8, 131u8, - ], - ) - } - pub fn set_min_withdraw_amount( - &self, - min_withdraw_amount: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorBn254", - "set_min_withdraw_amount", - SetMinWithdrawAmount { - min_withdraw_amount, - nonce, - }, - [ - 57u8, 249u8, 24u8, 174u8, 12u8, 147u8, 47u8, 89u8, - 196u8, 217u8, 27u8, 19u8, 74u8, 241u8, 51u8, 27u8, - 209u8, 252u8, 129u8, 50u8, 7u8, 162u8, 115u8, 60u8, - 92u8, 168u8, 238u8, 168u8, 139u8, 240u8, 58u8, - 16u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "New tree created"] - pub struct VAnchorCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for VAnchorCreation { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "VAnchorCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Transaction has been made"] - pub struct Transaction { pub transactor : :: subxt :: utils :: AccountId32 , pub tree_id : :: core :: primitive :: u32 , pub leafs : :: std :: vec :: Vec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , pub encrypted_output1 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub encrypted_output2 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub amount : :: core :: primitive :: i128 , } - impl ::subxt::events::StaticEvent for Transaction { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "Transaction"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Deposit hook has executed successfully"] - pub struct Deposit { pub depositor : :: subxt :: utils :: AccountId32 , pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MaxDepositAmountChanged { - pub max_deposit_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for MaxDepositAmountChanged { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "MaxDepositAmountChanged"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MinWithdrawAmountChanged { - pub min_withdraw_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for MinWithdrawAmountChanged { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "MinWithdrawAmountChanged"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn max_deposit_amount (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "MaxDepositAmount", - vec![], - [ - 103u8, 143u8, 218u8, 145u8, 13u8, 227u8, 200u8, - 72u8, 147u8, 151u8, 21u8, 63u8, 38u8, 101u8, 23u8, - 45u8, 67u8, 250u8, 184u8, 206u8, 10u8, 184u8, 98u8, - 179u8, 120u8, 62u8, 92u8, 199u8, 30u8, 255u8, 26u8, - 84u8, - ], - ) - } pub fn min_withdraw_amount (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "MinWithdrawAmount", - vec![], - [ - 217u8, 143u8, 57u8, 19u8, 253u8, 60u8, 103u8, - 182u8, 70u8, 55u8, 27u8, 66u8, 117u8, 86u8, 196u8, - 163u8, 41u8, 18u8, 117u8, 125u8, 232u8, 109u8, - 197u8, 177u8, 54u8, 157u8, 165u8, 251u8, 16u8, - 49u8, 113u8, 240u8, - ], - ) - } - #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorBn254" , "VAnchors" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [36u8 , 134u8 , 67u8 , 39u8 , 166u8 , 66u8 , 25u8 , 61u8 , 47u8 , 227u8 , 59u8 , 137u8 , 206u8 , 140u8 , 252u8 , 38u8 , 69u8 , 243u8 , 65u8 , 15u8 , 127u8 , 65u8 , 200u8 , 12u8 , 60u8 , 140u8 , 19u8 , 168u8 , 135u8 , 135u8 , 38u8 , 219u8 ,]) - } - #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "VAnchors", - Vec::new(), - [ - 36u8, 134u8, 67u8, 39u8, 166u8, 66u8, 25u8, 61u8, - 47u8, 227u8, 59u8, 137u8, 206u8, 140u8, 252u8, - 38u8, 69u8, 243u8, 65u8, 15u8, 127u8, 65u8, 200u8, - 12u8, 60u8, 140u8, 19u8, 168u8, 135u8, 135u8, 38u8, - 219u8, - ], - ) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) - } - #[doc = " The map of trees to their spent nullifier hashes"] pub fn nullifier_hashes_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "NullifierHashes", - Vec::new(), - [ - 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, - 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, - 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, - 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, - 185u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] pub fn proposal_nonce (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorBn254", - "ProposalNonce", - vec![], - [ - 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, - 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, - 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, - 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "VAnchorBn254", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " Native currency id"] - pub fn native_currency_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "VAnchorBn254", - "NativeCurrencyId", - [ - 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 v_anchor_handler_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteVanchorCreateProposal { - pub src_chain_id: ::core::primitive::u64, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub max_edges: ::core::primitive::u32, - pub tree_depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteVanchorUpdateProposal { pub r_id : runtime_types :: webb_proposals :: header :: ResourceId , pub merkle_root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , pub src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId , pub nonce : :: core :: primitive :: u32 , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetResourceProposal { - pub r_id: runtime_types::webb_proposals::header::ResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetMaxDepositLimitProposal { - pub max_deposit_limit: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetMinxWithdrawalLimitProposal { - pub min_withdraw_limit: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "This will be called by bridge when proposal to create a"] - #[doc = "vanchor has been successfully voted on."] - pub fn execute_vanchor_create_proposal( - &self, - src_chain_id: ::core::primitive::u64, - r_id: runtime_types::webb_proposals::header::ResourceId, - max_edges: ::core::primitive::u32, - tree_depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_vanchor_create_proposal", - ExecuteVanchorCreateProposal { - src_chain_id, - r_id, - max_edges, - tree_depth, - asset, - nonce, - }, - [ - 87u8, 197u8, 136u8, 226u8, 195u8, 230u8, 78u8, - 200u8, 62u8, 131u8, 194u8, 106u8, 230u8, 87u8, - 105u8, 141u8, 52u8, 10u8, 34u8, 132u8, 152u8, 12u8, - 182u8, 110u8, 124u8, 248u8, 42u8, 37u8, 184u8, - 160u8, 30u8, 239u8, - ], - ) - } - #[doc = "This will be called by bridge when proposal to add/update edge of a"] - #[doc = "vanchor has been successfully voted on."] - pub fn execute_vanchor_update_proposal( - &self, - r_id: runtime_types::webb_proposals::header::ResourceId, - merkle_root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, - src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_vanchor_update_proposal", - ExecuteVanchorUpdateProposal { - r_id, - merkle_root, - src_resource_id, - nonce, - }, - [ - 248u8, 213u8, 40u8, 228u8, 156u8, 188u8, 16u8, - 104u8, 13u8, 176u8, 140u8, 155u8, 185u8, 97u8, - 109u8, 27u8, 12u8, 209u8, 41u8, 174u8, 158u8, - 208u8, 85u8, 120u8, 128u8, 218u8, 147u8, 71u8, - 165u8, 153u8, 7u8, 249u8, - ], - ) - } - #[doc = "This will by called by bridge when proposal to set new resource for"] - #[doc = "handler has been successfully voted on."] - pub fn execute_set_resource_proposal( - &self, - r_id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_set_resource_proposal", - ExecuteSetResourceProposal { r_id }, - [ - 228u8, 152u8, 137u8, 216u8, 49u8, 178u8, 221u8, - 163u8, 89u8, 90u8, 63u8, 173u8, 170u8, 175u8, 30u8, - 31u8, 77u8, 198u8, 214u8, 169u8, 52u8, 13u8, 63u8, - 98u8, 218u8, 108u8, 82u8, 222u8, 224u8, 50u8, - 151u8, 247u8, - ], - ) - } - #[doc = "Execute set max deposit limit proposal."] - #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] - #[doc = "anchor system."] - pub fn execute_set_max_deposit_limit_proposal( - &self, - max_deposit_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload< - ExecuteSetMaxDepositLimitProposal, - > { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_set_max_deposit_limit_proposal", - ExecuteSetMaxDepositLimitProposal { - max_deposit_limit, - nonce, - }, - [ - 60u8, 64u8, 168u8, 137u8, 52u8, 27u8, 152u8, 36u8, - 248u8, 102u8, 189u8, 30u8, 35u8, 149u8, 173u8, - 199u8, 22u8, 113u8, 146u8, 120u8, 59u8, 222u8, - 215u8, 146u8, 165u8, 220u8, 17u8, 107u8, 118u8, - 224u8, 13u8, 47u8, - ], - ) - } - #[doc = "Execute set min withdrawal limit proposal."] - #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] - #[doc = "variable anchor system."] - pub fn execute_set_minx_withdrawal_limit_proposal( - &self, - min_withdraw_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload< - ExecuteSetMinxWithdrawalLimitProposal, - > { - ::subxt::tx::StaticTxPayload::new( - "VAnchorHandlerBn254", - "execute_set_minx_withdrawal_limit_proposal", - ExecuteSetMinxWithdrawalLimitProposal { - min_withdraw_limit, - nonce, - }, - [ - 121u8, 21u8, 36u8, 144u8, 108u8, 159u8, 214u8, - 149u8, 125u8, 234u8, 106u8, 167u8, 126u8, 45u8, - 105u8, 168u8, 42u8, 14u8, 159u8, 38u8, 118u8, - 150u8, 191u8, 13u8, 103u8, 242u8, 158u8, 168u8, - 122u8, 137u8, 231u8, 114u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AnchorCreated; - impl ::subxt::events::StaticEvent for AnchorCreated { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AnchorEdgeAdded; - impl ::subxt::events::StaticEvent for AnchorEdgeAdded { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorEdgeAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AnchorEdgeUpdated; - impl ::subxt::events::StaticEvent for AnchorEdgeUpdated { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorEdgeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ResourceAnchored; - impl ::subxt::events::StaticEvent for ResourceAnchored { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "ResourceAnchored"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to their anchor metadata"] pub fn anchor_list (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorHandlerBn254" , "AnchorList" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [208u8 , 135u8 , 255u8 , 171u8 , 144u8 , 24u8 , 220u8 , 50u8 , 12u8 , 31u8 , 90u8 , 255u8 , 252u8 , 78u8 , 107u8 , 239u8 , 162u8 , 141u8 , 248u8 , 201u8 , 149u8 , 98u8 , 234u8 , 116u8 , 212u8 , 184u8 , 249u8 , 242u8 , 41u8 , 40u8 , 66u8 , 72u8 ,]) - } - #[doc = " The map of trees to their anchor metadata"] pub fn anchor_list_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorHandlerBn254", - "AnchorList", - Vec::new(), - [ - 208u8, 135u8, 255u8, 171u8, 144u8, 24u8, 220u8, - 50u8, 12u8, 31u8, 90u8, 255u8, 252u8, 78u8, 107u8, - 239u8, 162u8, 141u8, 248u8, 201u8, 149u8, 98u8, - 234u8, 116u8, 212u8, 184u8, 249u8, 242u8, 41u8, - 40u8, 66u8, 72u8, - ], - ) - } - } - } - } - pub mod token_wrapper_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteWrappingFeeProposal { - pub wrapping_fee_percent: ::core::primitive::u128, - pub into_pool_share_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteAddTokenToPoolShare { - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub asset_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteRemoveTokenFromPoolShare { - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub asset_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteSetFeeRecipientProposal { - pub pool_share_id: ::core::primitive::u32, - pub fee_recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecuteRescueTokensProposal { - pub pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] - #[doc = "method. Ensures that only the bridge can call this function."] - pub fn execute_wrapping_fee_proposal( - &self, - wrapping_fee_percent: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_wrapping_fee_proposal", - ExecuteWrappingFeeProposal { - wrapping_fee_percent, - into_pool_share_id, - nonce, - }, - [ - 151u8, 198u8, 139u8, 120u8, 128u8, 232u8, 69u8, - 120u8, 115u8, 47u8, 107u8, 79u8, 227u8, 240u8, - 115u8, 75u8, 93u8, 122u8, 216u8, 5u8, 163u8, 45u8, - 124u8, 42u8, 108u8, 171u8, 164u8, 75u8, 81u8, - 105u8, 156u8, 63u8, - ], - ) - } - pub fn execute_add_token_to_pool_share( - &self, - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_add_token_to_pool_share", - ExecuteAddTokenToPoolShare { - name, - asset_id, - nonce, - }, - [ - 100u8, 68u8, 240u8, 86u8, 44u8, 153u8, 29u8, 25u8, - 97u8, 95u8, 237u8, 202u8, 172u8, 150u8, 40u8, - 206u8, 67u8, 115u8, 11u8, 48u8, 2u8, 97u8, 41u8, - 2u8, 22u8, 172u8, 6u8, 11u8, 251u8, 248u8, 193u8, - 11u8, - ], - ) - } - pub fn execute_remove_token_from_pool_share( - &self, - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_remove_token_from_pool_share", - ExecuteRemoveTokenFromPoolShare { - name, - asset_id, - nonce, - }, - [ - 174u8, 253u8, 31u8, 62u8, 240u8, 34u8, 230u8, - 165u8, 169u8, 90u8, 189u8, 44u8, 12u8, 169u8, - 136u8, 98u8, 192u8, 79u8, 223u8, 153u8, 239u8, - 84u8, 71u8, 108u8, 178u8, 143u8, 61u8, 148u8, 6u8, - 204u8, 105u8, 144u8, - ], - ) - } - #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] - #[doc = "who will be receiving wrapping fee cost for given asset."] - #[doc = "Ensures that only the bridge can call this function."] - pub fn execute_set_fee_recipient_proposal( - &self, - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_set_fee_recipient_proposal", - ExecuteSetFeeRecipientProposal { - pool_share_id, - fee_recipient, - nonce, - }, - [ - 5u8, 50u8, 89u8, 17u8, 97u8, 30u8, 250u8, 167u8, - 227u8, 198u8, 222u8, 211u8, 6u8, 165u8, 94u8, - 252u8, 151u8, 49u8, 74u8, 244u8, 131u8, 196u8, - 234u8, 202u8, 19u8, 92u8, 247u8, 183u8, 242u8, - 89u8, 98u8, 40u8, - ], - ) - } - #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] - #[doc = "fee recipient to given recipient address from given asset."] - #[doc = "Ensures that only the bridge can call this function."] - pub fn execute_rescue_tokens_proposal( - &self, - pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TokenWrapperHandler", - "execute_rescue_tokens_proposal", - ExecuteRescueTokensProposal { - pool_share_id, - asset_id, - amount, - recipient, - nonce, - }, - [ - 152u8, 151u8, 76u8, 65u8, 60u8, 153u8, 36u8, 0u8, - 46u8, 254u8, 155u8, 205u8, 61u8, 153u8, 8u8, 137u8, - 53u8, 66u8, 49u8, 14u8, 53u8, 250u8, 95u8, 98u8, - 148u8, 141u8, 135u8, 142u8, 163u8, 123u8, 250u8, - 235u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_token_wrapper_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdatedWrappingFeePercent { - pub wrapping_fee_percent: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { - const PALLET: &'static str = "TokenWrapperHandler"; - const EVENT: &'static str = "UpdatedWrappingFeePercent"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi {} - } - } - pub mod key_storage { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Register { - pub owner: ::subxt::utils::AccountId32, - pub public_key: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn register( - &self, - owner: ::subxt::utils::AccountId32, - public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "KeyStorage", - "register", - Register { owner, public_key }, - [ - 171u8, 208u8, 174u8, 130u8, 196u8, 84u8, 27u8, 8u8, - 186u8, 246u8, 169u8, 204u8, 151u8, 151u8, 172u8, - 47u8, 198u8, 250u8, 162u8, 161u8, 37u8, 144u8, - 193u8, 107u8, 125u8, 202u8, 8u8, 209u8, 244u8, - 108u8, 81u8, 62u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_key_storage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Public key registration"] - pub struct PublicKeyRegistration { - pub owner: ::subxt::utils::AccountId32, - pub public_key: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - impl ::subxt::events::StaticEvent for PublicKeyRegistration { - const PALLET: &'static str = "KeyStorage"; - const EVENT: &'static str = "PublicKeyRegistration"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of owners to public keys"] pub fn public_key_owners (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "KeyStorage", - "PublicKeyOwners", - vec![], - [ - 45u8, 68u8, 75u8, 191u8, 222u8, 164u8, 64u8, 224u8, - 76u8, 232u8, 244u8, 187u8, 33u8, 179u8, 192u8, - 168u8, 172u8, 102u8, 222u8, 81u8, 68u8, 213u8, - 182u8, 173u8, 161u8, 126u8, 247u8, 9u8, 226u8, - 119u8, 185u8, 18u8, - ], - ) - } - } - } - } - pub mod v_anchor_verifier { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceSetParameters { - pub configuration: - (::core::primitive::u8, ::core::primitive::u8), - pub parameters: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - configuration: ( - ::core::primitive::u8, - ::core::primitive::u8, - ), - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "VAnchorVerifier", - "force_set_parameters", - ForceSetParameters { - configuration, - parameters, - }, - [ - 21u8, 13u8, 77u8, 47u8, 51u8, 143u8, 238u8, 56u8, - 197u8, 27u8, 184u8, 112u8, 150u8, 225u8, 90u8, - 114u8, 85u8, 223u8, 80u8, 180u8, 87u8, 224u8, 88u8, - 240u8, 31u8, 155u8, 173u8, 71u8, 22u8, 223u8, - 162u8, 180u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor_verifier::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters for different vanchor configurations"] pub fn parameters (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u8 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u8 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("VAnchorVerifier" , "Parameters" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [158u8 , 70u8 , 6u8 , 255u8 , 76u8 , 199u8 , 208u8 , 93u8 , 218u8 , 86u8 , 190u8 , 70u8 , 232u8 , 57u8 , 91u8 , 148u8 , 223u8 , 50u8 , 229u8 , 94u8 , 50u8 , 78u8 , 22u8 , 207u8 , 30u8 , 179u8 , 158u8 , 85u8 , 139u8 , 166u8 , 240u8 , 136u8 ,]) - } - #[doc = " Details of the module's parameters for different vanchor configurations"] pub fn parameters_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "VAnchorVerifier", - "Parameters", - Vec::new(), - [ - 158u8, 70u8, 6u8, 255u8, 76u8, 199u8, 208u8, 93u8, - 218u8, 86u8, 190u8, 70u8, 232u8, 57u8, 91u8, 148u8, - 223u8, 50u8, 229u8, 94u8, 50u8, 78u8, 22u8, 207u8, - 30u8, 179u8, 158u8, 85u8, 139u8, 166u8, 240u8, - 136u8, - ], - ) - } - } - } - } - pub mod transaction_pause { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PauseTransaction { - pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, - pub function_name: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnpauseTransaction { - pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, - pub function_name: ::std::vec::Vec<::core::primitive::u8>, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn pause_transaction( - &self, - pallet_name: ::std::vec::Vec<::core::primitive::u8>, - function_name: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TransactionPause", - "pause_transaction", - PauseTransaction { - pallet_name, - function_name, - }, - [ - 191u8, 46u8, 160u8, 98u8, 234u8, 205u8, 136u8, - 130u8, 220u8, 76u8, 88u8, 162u8, 142u8, 251u8, - 70u8, 224u8, 228u8, 253u8, 154u8, 46u8, 154u8, - 231u8, 142u8, 91u8, 147u8, 113u8, 2u8, 225u8, 7u8, - 139u8, 23u8, 90u8, - ], - ) - } - pub fn unpause_transaction( - &self, - pallet_name: ::std::vec::Vec<::core::primitive::u8>, - function_name: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "TransactionPause", - "unpause_transaction", - UnpauseTransaction { - pallet_name, - function_name, - }, - [ - 215u8, 194u8, 64u8, 170u8, 108u8, 9u8, 37u8, 99u8, - 46u8, 201u8, 227u8, 73u8, 184u8, 32u8, 58u8, 255u8, - 181u8, 184u8, 79u8, 240u8, 39u8, 146u8, 239u8, - 12u8, 18u8, 77u8, 76u8, 218u8, 10u8, 23u8, 69u8, - 209u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_transaction_pause::module::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Paused transaction"] - pub struct TransactionPaused { - pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, - pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for TransactionPaused { - const PALLET: &'static str = "TransactionPause"; - const EVENT: &'static str = "TransactionPaused"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Unpaused transaction"] - pub struct TransactionUnpaused { - pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, - pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for TransactionUnpaused { - const PALLET: &'static str = "TransactionPause"; - const EVENT: &'static str = "TransactionUnpaused"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The paused transaction map"] - #[doc = ""] - #[doc = " map (PalletNameBytes, FunctionNameBytes) => Option<()>"] pub fn paused_transactions (& self , _0 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > , _1 : impl :: std :: borrow :: Borrow < [:: core :: primitive :: u8] > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < () > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("TransactionPause" , "PausedTransactions" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (& (_0 . borrow () , _1 . borrow ()) , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [202u8 , 146u8 , 231u8 , 118u8 , 39u8 , 102u8 , 215u8 , 91u8 , 137u8 , 31u8 , 182u8 , 136u8 , 192u8 , 97u8 , 2u8 , 247u8 , 216u8 , 154u8 , 110u8 , 47u8 , 134u8 , 1u8 , 18u8 , 122u8 , 91u8 , 237u8 , 111u8 , 43u8 , 74u8 , 247u8 , 173u8 , 202u8 ,]) - } - #[doc = " The paused transaction map"] - #[doc = ""] - #[doc = " map (PalletNameBytes, FunctionNameBytes) => Option<()>"] pub fn paused_transactions_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < () > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "TransactionPause", - "PausedTransactions", - Vec::new(), - [ - 202u8, 146u8, 231u8, 118u8, 39u8, 102u8, 215u8, - 91u8, 137u8, 31u8, 182u8, 136u8, 192u8, 97u8, 2u8, - 247u8, 216u8, 154u8, 110u8, 47u8, 134u8, 1u8, 18u8, - 122u8, 91u8, 237u8, 111u8, 43u8, 74u8, 247u8, - 173u8, 202u8, - ], - ) - } - } - } - } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] - pub fn heartbeat( - &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat< - ::core::primitive::u32, - >, - signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "ImOnline", - "heartbeat", - Heartbeat { - heartbeat, - signature, - }, - [ - 212u8, 23u8, 174u8, 246u8, 60u8, 220u8, 178u8, - 137u8, 53u8, 146u8, 165u8, 225u8, 179u8, 209u8, - 233u8, 152u8, 129u8, 210u8, 126u8, 32u8, 216u8, - 22u8, 76u8, 196u8, 255u8, 128u8, 246u8, 161u8, - 30u8, 186u8, 249u8, 34u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>, - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] pub fn heartbeat_after (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "HeartbeatAfter", - vec![], - [ - 108u8, 100u8, 85u8, 198u8, 226u8, 122u8, 94u8, - 225u8, 97u8, 154u8, 135u8, 95u8, 106u8, 28u8, - 185u8, 78u8, 192u8, 196u8, 35u8, 191u8, 12u8, 19u8, - 163u8, 46u8, 232u8, 235u8, 193u8, 81u8, 126u8, - 204u8, 25u8, 228u8, - ], - ) - } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "Keys", - vec![], - [ - 6u8, 198u8, 221u8, 58u8, 14u8, 166u8, 245u8, 103u8, - 191u8, 20u8, 69u8, 233u8, 147u8, 245u8, 24u8, 64u8, - 207u8, 180u8, 39u8, 208u8, 252u8, 236u8, 247u8, - 112u8, 187u8, 97u8, 70u8, 11u8, 248u8, 148u8, - 208u8, 106u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "ReceivedHeartbeats", - Vec::new(), - [ - 233u8, 128u8, 140u8, 233u8, 55u8, 146u8, 172u8, - 54u8, 54u8, 57u8, 141u8, 106u8, 168u8, 59u8, 147u8, - 253u8, 119u8, 48u8, 50u8, 251u8, 242u8, 109u8, - 251u8, 2u8, 136u8, 80u8, 146u8, 121u8, 180u8, - 219u8, 245u8, 37u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "ImOnline", - "AuthoredBlocks", - Vec::new(), - [ - 50u8, 4u8, 242u8, 240u8, 247u8, 184u8, 114u8, - 245u8, 233u8, 170u8, 24u8, 197u8, 18u8, 245u8, 8u8, - 28u8, 33u8, 115u8, 166u8, 245u8, 221u8, 223u8, - 56u8, 144u8, 33u8, 139u8, 10u8, 227u8, 228u8, - 223u8, 103u8, 151u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - } - } - } - pub mod identity { - use super::root_mod; - use super::runtime_types; - #[doc = "Identity pallet declaration."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddRegistrar { - pub account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetIdentity { - pub info: ::std::boxed::Box< - runtime_types::pallet_identity::types::IdentityInfo, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetSubs { - pub subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ClearIdentity; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - #[codec(compact)] - pub max_fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CancelRequest { - pub reg_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetFee { - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetAccountId { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SetFields { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - pub identity: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KillIdentity { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AddSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub data: runtime_types::pallet_identity::types::Data, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RenameSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub data: runtime_types::pallet_identity::types::Data, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RemoveSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct QuitSub; - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Add a registrar to the system."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] - #[doc = ""] - #[doc = "- `account`: the account of the registrar."] - #[doc = ""] - #[doc = "Emits `RegistrarAdded` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] - #[doc = "- One storage mutation (codec `O(R)`)."] - #[doc = "- One event."] - #[doc = "# "] - pub fn add_registrar( - &self, - account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "add_registrar", - AddRegistrar { account }, - [ - 96u8, 200u8, 92u8, 23u8, 3u8, 144u8, 56u8, 53u8, - 245u8, 210u8, 33u8, 36u8, 183u8, 233u8, 41u8, 1u8, - 127u8, 2u8, 25u8, 5u8, 15u8, 133u8, 4u8, 107u8, - 206u8, 155u8, 114u8, 39u8, 14u8, 235u8, 115u8, - 172u8, - ], - ) - } - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `IdentitySet` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(X + X' + R)`"] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] - #[doc = " - where `R` judgements-count (registrar-count-bounded)"] - #[doc = "- One balance reserve operation."] - #[doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] - #[doc = "- One event."] - #[doc = "# "] - pub fn set_identity( - &self, - info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "set_identity", - SetIdentity { - info: ::std::boxed::Box::new(info), - }, - [ - 130u8, 89u8, 118u8, 6u8, 134u8, 166u8, 35u8, 192u8, - 73u8, 6u8, 171u8, 20u8, 225u8, 255u8, 152u8, 142u8, - 111u8, 8u8, 206u8, 200u8, 64u8, 52u8, 110u8, 123u8, - 42u8, 101u8, 191u8, 242u8, 133u8, 139u8, 154u8, - 205u8, - ], - ) - } - #[doc = "Set the sub-accounts of the sender."] - #[doc = ""] - #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] - #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "- `subs`: The identity's (new) sub-accounts."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(P + S)`"] - #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = "- At most one balance operations."] - #[doc = "- DB:"] - #[doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] - #[doc = " - One storage read (codec complexity `O(P)`)."] - #[doc = " - One storage write (codec complexity `O(S)`)."] - #[doc = " - One storage-exists (`IdentityOf::contains_key`)."] - #[doc = "# "] - pub fn set_subs( - &self, - subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "set_subs", - SetSubs { subs }, - [ - 177u8, 219u8, 84u8, 183u8, 5u8, 32u8, 192u8, 82u8, - 174u8, 68u8, 198u8, 224u8, 56u8, 85u8, 134u8, - 171u8, 30u8, 132u8, 140u8, 236u8, 117u8, 24u8, - 150u8, 218u8, 146u8, 194u8, 144u8, 92u8, 103u8, - 206u8, 46u8, 90u8, - ], - ) - } - #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "Emits `IdentityCleared` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - #[doc = "- One balance-unreserve operation."] - #[doc = "- `2` storage reads and `S + 2` storage deletions."] - #[doc = "- One event."] - #[doc = "# "] - pub fn clear_identity( - &self, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "clear_identity", - ClearIdentity {}, - [ - 75u8, 44u8, 74u8, 122u8, 149u8, 202u8, 114u8, - 230u8, 0u8, 255u8, 140u8, 122u8, 14u8, 196u8, - 205u8, 249u8, 220u8, 94u8, 216u8, 34u8, 63u8, 14u8, - 8u8, 205u8, 74u8, 23u8, 181u8, 129u8, 252u8, 110u8, - 231u8, 114u8, - ], - ) - } - #[doc = "Request a judgement from a registrar."] - #[doc = ""] - #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] - #[doc = "given."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] - #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] - #[doc = ""] - #[doc = "```nocompile"] - #[doc = "Self::registrars().get(reg_index).unwrap().fee"] - #[doc = "```"] - #[doc = ""] - #[doc = "Emits `JudgementRequested` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] - #[doc = "- One event."] - #[doc = "# "] - pub fn request_judgement( - &self, - reg_index: ::core::primitive::u32, - max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "request_judgement", - RequestJudgement { reg_index, max_fee }, - [ - 186u8, 149u8, 61u8, 54u8, 159u8, 194u8, 77u8, - 161u8, 220u8, 157u8, 3u8, 216u8, 23u8, 105u8, - 119u8, 76u8, 144u8, 198u8, 157u8, 45u8, 235u8, - 139u8, 87u8, 82u8, 81u8, 12u8, 25u8, 134u8, 225u8, - 92u8, 182u8, 101u8, - ], - ) - } - #[doc = "Cancel a previous request."] - #[doc = ""] - #[doc = "Payment: A previously reserved deposit is returned on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] - #[doc = ""] - #[doc = "Emits `JudgementUnrequested` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- One storage mutation `O(R + X)`."] - #[doc = "- One event"] - #[doc = "# "] - pub fn cancel_request( - &self, - reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "cancel_request", - CancelRequest { reg_index }, - [ - 83u8, 180u8, 239u8, 126u8, 32u8, 51u8, 17u8, 20u8, - 180u8, 3u8, 59u8, 96u8, 24u8, 32u8, 136u8, 92u8, - 58u8, 254u8, 68u8, 70u8, 50u8, 11u8, 51u8, 91u8, - 180u8, 79u8, 81u8, 84u8, 216u8, 138u8, 6u8, 215u8, - ], - ) - } - #[doc = "Set the fee required for a judgement to be requested from a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fee`: the new fee."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] - #[doc = "# "] - pub fn set_fee( - &self, - index: ::core::primitive::u32, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "set_fee", - SetFee { index, fee }, - [ - 21u8, 157u8, 123u8, 182u8, 160u8, 190u8, 117u8, - 37u8, 136u8, 133u8, 104u8, 234u8, 31u8, 145u8, - 115u8, 154u8, 125u8, 40u8, 2u8, 87u8, 118u8, 56u8, - 247u8, 73u8, 89u8, 0u8, 251u8, 3u8, 58u8, 105u8, - 239u8, 211u8, - ], - ) - } - #[doc = "Change the account associated with a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `new`: the new account ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] - #[doc = "# "] - pub fn set_account_id( - &self, - index: ::core::primitive::u32, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "set_account_id", - SetAccountId { index, new }, - [ - 14u8, 154u8, 84u8, 48u8, 59u8, 133u8, 45u8, 204u8, - 255u8, 85u8, 157u8, 88u8, 56u8, 207u8, 113u8, - 184u8, 233u8, 139u8, 129u8, 118u8, 59u8, 9u8, - 211u8, 184u8, 32u8, 141u8, 126u8, 208u8, 179u8, - 4u8, 2u8, 95u8, - ], - ) - } - #[doc = "Set the field information for a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fields`: the fields that the registrar concerns themselves with."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] - #[doc = "# "] - pub fn set_fields( - &self, - index: ::core::primitive::u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "set_fields", - SetFields { index, fields }, - [ - 50u8, 196u8, 179u8, 71u8, 66u8, 65u8, 235u8, 7u8, - 51u8, 14u8, 81u8, 173u8, 201u8, 58u8, 6u8, 151u8, - 174u8, 245u8, 102u8, 184u8, 28u8, 84u8, 125u8, - 93u8, 126u8, 134u8, 92u8, 203u8, 200u8, 129u8, - 240u8, 252u8, - ], - ) - } - #[doc = "Provide a judgement for an account's identity."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `reg_index`."] - #[doc = ""] - #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] - #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] - #[doc = ""] - #[doc = "Emits `JudgementGiven` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-transfer operation."] - #[doc = "- Up to one account-lookup operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] - #[doc = "- One event."] - #[doc = "# "] - pub fn provide_judgement( - &self, - reg_index: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - identity: ::subxt::utils::H256, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "provide_judgement", - ProvideJudgement { - reg_index, - target, - judgement, - identity, - }, - [ - 83u8, 253u8, 77u8, 208u8, 198u8, 25u8, 202u8, - 213u8, 223u8, 184u8, 231u8, 185u8, 186u8, 216u8, - 54u8, 62u8, 3u8, 7u8, 107u8, 152u8, 126u8, 195u8, - 175u8, 221u8, 134u8, 169u8, 199u8, 124u8, 232u8, - 157u8, 67u8, 75u8, - ], - ) - } - #[doc = "Remove an account's identity and sub-account information and slash the deposits."] - #[doc = ""] - #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] - #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] - #[doc = "manually using `cancel_request`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - #[doc = ""] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = ""] - #[doc = "Emits `IdentityKilled` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- `S + 2` storage mutations."] - #[doc = "- One event."] - #[doc = "# "] - pub fn kill_identity( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "kill_identity", - KillIdentity { target }, - [ - 65u8, 106u8, 116u8, 209u8, 219u8, 181u8, 185u8, - 75u8, 146u8, 194u8, 187u8, 170u8, 7u8, 34u8, 140u8, - 87u8, 107u8, 112u8, 229u8, 34u8, 65u8, 71u8, 58u8, - 152u8, 74u8, 253u8, 137u8, 69u8, 149u8, 214u8, - 158u8, 19u8, - ], - ) - } - #[doc = "Add the given account to the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] - pub fn add_sub( - &self, - sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "add_sub", - AddSub { sub, data }, - [ - 206u8, 112u8, 143u8, 96u8, 152u8, 12u8, 174u8, - 226u8, 23u8, 27u8, 154u8, 188u8, 195u8, 233u8, - 185u8, 180u8, 246u8, 218u8, 154u8, 129u8, 138u8, - 52u8, 212u8, 109u8, 54u8, 211u8, 219u8, 255u8, - 39u8, 79u8, 154u8, 123u8, - ], - ) - } - #[doc = "Alter the associated name of the given sub-account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] - pub fn rename_sub( - &self, - sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "rename_sub", - RenameSub { sub, data }, - [ - 110u8, 28u8, 134u8, 225u8, 44u8, 242u8, 20u8, 22u8, - 197u8, 49u8, 173u8, 178u8, 106u8, 181u8, 103u8, - 90u8, 27u8, 73u8, 102u8, 130u8, 2u8, 216u8, 172u8, - 186u8, 124u8, 244u8, 128u8, 6u8, 112u8, 128u8, - 25u8, 245u8, - ], - ) - } - #[doc = "Remove the given account from the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] - pub fn remove_sub( - &self, - sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "remove_sub", - RemoveSub { sub }, - [ - 92u8, 201u8, 70u8, 170u8, 248u8, 110u8, 179u8, - 186u8, 213u8, 197u8, 150u8, 156u8, 156u8, 50u8, - 19u8, 158u8, 186u8, 61u8, 106u8, 64u8, 84u8, 38u8, - 73u8, 134u8, 132u8, 233u8, 50u8, 152u8, 40u8, 18u8, - 212u8, 121u8, - ], - ) - } - #[doc = "Remove the sender as a sub-account."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender (*not* the original depositor)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "super-identity."] - #[doc = ""] - #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] - #[doc = "controller of an account is maliciously registered as a sub-account."] - pub fn quit_sub( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Identity", - "quit_sub", - QuitSub {}, - [ - 62u8, 57u8, 73u8, 72u8, 119u8, 216u8, 250u8, 155u8, - 57u8, 169u8, 157u8, 44u8, 87u8, 51u8, 63u8, 231u8, - 77u8, 7u8, 0u8, 119u8, 244u8, 42u8, 179u8, 51u8, - 254u8, 240u8, 55u8, 25u8, 142u8, 38u8, 87u8, 44u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_identity::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A name was set or reset (which will remove all judgements)."] - pub struct IdentitySet { - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IdentitySet { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentitySet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A name was cleared, and the given balance returned."] - pub struct IdentityCleared { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for IdentityCleared { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityCleared"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A name was removed and the given balance slashed."] - pub struct IdentityKilled { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for IdentityKilled { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityKilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A judgement was asked from a registrar."] - pub struct JudgementRequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementRequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementRequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A judgement request was retracted."] - pub struct JudgementUnrequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementUnrequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementUnrequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A judgement was given by a registrar."] - pub struct JudgementGiven { - pub target: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementGiven { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementGiven"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A registrar was added."] - pub struct RegistrarAdded { - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for RegistrarAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "RegistrarAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sub-identity was added to an identity and the deposit paid."] - pub struct SubIdentityAdded { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SubIdentityAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sub-identity was removed from an identity and the deposit freed."] - pub struct SubIdentityRemoved { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] - #[doc = "main identity account to the sub-identity account."] - pub struct SubIdentityRevoked { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SubIdentityRevoked { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRevoked"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Information that is pertinent to identify the entity behind an account."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_identity :: types :: Registration < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Identity" , "IdentityOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [193u8 , 195u8 , 180u8 , 188u8 , 129u8 , 250u8 , 180u8 , 219u8 , 22u8 , 95u8 , 175u8 , 170u8 , 143u8 , 188u8 , 80u8 , 124u8 , 234u8 , 228u8 , 245u8 , 39u8 , 72u8 , 153u8 , 107u8 , 199u8 , 23u8 , 75u8 , 47u8 , 247u8 , 104u8 , 208u8 , 171u8 , 82u8 ,]) - } - #[doc = " Information that is pertinent to identify the entity behind an account."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_identity :: types :: Registration < :: core :: primitive :: u128 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Identity", - "IdentityOf", - Vec::new(), - [ - 193u8, 195u8, 180u8, 188u8, 129u8, 250u8, 180u8, - 219u8, 22u8, 95u8, 175u8, 170u8, 143u8, 188u8, - 80u8, 124u8, 234u8, 228u8, 245u8, 39u8, 72u8, - 153u8, 107u8, 199u8, 23u8, 75u8, 47u8, 247u8, - 104u8, 208u8, 171u8, 82u8, - ], - ) - } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Identity" , "SuperOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [170u8 , 249u8 , 112u8 , 249u8 , 75u8 , 176u8 , 21u8 , 29u8 , 152u8 , 149u8 , 69u8 , 113u8 , 20u8 , 92u8 , 113u8 , 130u8 , 135u8 , 62u8 , 18u8 , 204u8 , 166u8 , 193u8 , 133u8 , 167u8 , 248u8 , 117u8 , 80u8 , 137u8 , 158u8 , 111u8 , 100u8 , 137u8 ,]) - } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Identity", - "SuperOf", - Vec::new(), - [ - 170u8, 249u8, 112u8, 249u8, 75u8, 176u8, 21u8, - 29u8, 152u8, 149u8, 69u8, 113u8, 20u8, 92u8, 113u8, - 130u8, 135u8, 62u8, 18u8, 204u8, 166u8, 193u8, - 133u8, 167u8, 248u8, 117u8, 80u8, 137u8, 158u8, - 111u8, 100u8, 137u8, - ], - ) - } - #[doc = " Alternative \"sub\" identities of this account."] - #[doc = ""] - #[doc = " The first item is the deposit, the second is a vector of the accounts."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Identity" , "SubsOf" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Twox64Concat)] , [128u8 , 15u8 , 175u8 , 155u8 , 216u8 , 225u8 , 200u8 , 169u8 , 215u8 , 206u8 , 110u8 , 22u8 , 204u8 , 89u8 , 212u8 , 210u8 , 159u8 , 169u8 , 53u8 , 7u8 , 44u8 , 164u8 , 91u8 , 151u8 , 7u8 , 227u8 , 38u8 , 230u8 , 175u8 , 84u8 , 6u8 , 4u8 ,]) - } - #[doc = " Alternative \"sub\" identities of this account."] - #[doc = ""] - #[doc = " The first item is the deposit, the second is a vector of the accounts."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Identity", - "SubsOf", - Vec::new(), - [ - 128u8, 15u8, 175u8, 155u8, 216u8, 225u8, 200u8, - 169u8, 215u8, 206u8, 110u8, 22u8, 204u8, 89u8, - 212u8, 210u8, 159u8, 169u8, 53u8, 7u8, 44u8, 164u8, - 91u8, 151u8, 7u8, 227u8, 38u8, 230u8, 175u8, 84u8, - 6u8, 4u8, - ], - ) - } - #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] - #[doc = " special origin (likely a council motion)."] - #[doc = ""] - #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Identity", - "Registrars", - vec![], - [ - 157u8, 87u8, 39u8, 240u8, 154u8, 54u8, 241u8, - 229u8, 76u8, 9u8, 62u8, 252u8, 40u8, 143u8, 186u8, - 182u8, 233u8, 187u8, 251u8, 61u8, 236u8, 229u8, - 19u8, 55u8, 42u8, 36u8, 82u8, 173u8, 215u8, 155u8, - 229u8, 111u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The amount held on deposit for a registered identity"] - pub fn basic_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Identity", - "BasicDeposit", - [ - 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 additional field for a registered identity."] - pub fn field_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Identity", - "FieldDeposit", - [ - 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 for a registered subaccount. This should account for the fact"] - #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] - #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] - pub fn sub_account_deposit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::primitive::u128, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Identity", - "SubAccountDeposit", - [ - 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 sub-accounts allowed per identified account."] - pub fn max_sub_accounts( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Identity", - "MaxSubAccounts", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] - #[doc = " required to access an identity, but can be pretty high."] - pub fn max_additional_fields( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Identity", - "MaxAdditionalFields", - [ - 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 = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] - #[doc = " of, e.g., updating judgements."] - pub fn max_registrars( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "Identity", - "MaxRegistrars", - [ - 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 = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Batch { - pub calls: ::std::vec::Vec< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AsDerivative { - pub index: ::core::primitive::u16, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BatchAll { - pub calls: ::std::vec::Vec< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DispatchAs { - pub as_origin: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::OriginCaller, - >, - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ForceBatch { - pub calls: ::std::vec::Vec< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WithWeight { - pub call: ::std::boxed::Box< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - #[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: ::std::vec::Vec< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "batch", - Batch { calls }, - [ - 47u8, 172u8, 116u8, 17u8, 230u8, 198u8, 74u8, - 114u8, 75u8, 183u8, 211u8, 210u8, 220u8, 112u8, - 162u8, 96u8, 71u8, 214u8, 234u8, 127u8, 59u8, 1u8, - 100u8, 175u8, 77u8, 108u8, 120u8, 135u8, 96u8, - 123u8, 79u8, 13u8, - ], - ) - } - #[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: ::core::primitive::u16, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "as_derivative", - AsDerivative { - index, - call: ::std::boxed::Box::new(call), - }, - [ - 56u8, 233u8, 7u8, 88u8, 187u8, 136u8, 208u8, 40u8, - 104u8, 203u8, 209u8, 10u8, 192u8, 129u8, 201u8, - 99u8, 96u8, 39u8, 145u8, 165u8, 42u8, 105u8, 49u8, - 14u8, 168u8, 15u8, 19u8, 95u8, 65u8, 121u8, 92u8, - 106u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - pub fn batch_all( - &self, - calls: ::std::vec::Vec< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "batch_all", - BatchAll { calls }, - [ - 121u8, 207u8, 22u8, 102u8, 61u8, 195u8, 195u8, - 56u8, 254u8, 204u8, 17u8, 71u8, 79u8, 237u8, 162u8, - 186u8, 175u8, 176u8, 131u8, 244u8, 77u8, 117u8, - 8u8, 70u8, 120u8, 195u8, 142u8, 111u8, 76u8, 98u8, - 241u8, 76u8, - ], - ) - } - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] - #[doc = "# "] - pub fn dispatch_as( - &self, - as_origin : runtime_types :: tangle_standalone_runtime :: OriginCaller, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "dispatch_as", - DispatchAs { - as_origin: ::std::boxed::Box::new(as_origin), - call: ::std::boxed::Box::new(call), - }, - [ - 142u8, 34u8, 44u8, 119u8, 90u8, 156u8, 43u8, 95u8, - 92u8, 123u8, 249u8, 66u8, 154u8, 244u8, 147u8, - 155u8, 123u8, 122u8, 250u8, 210u8, 79u8, 74u8, - 202u8, 139u8, 186u8, 19u8, 178u8, 6u8, 71u8, 9u8, - 254u8, 5u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - pub fn force_batch( - &self, - calls: ::std::vec::Vec< - runtime_types::tangle_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "force_batch", - ForceBatch { calls }, - [ - 41u8, 39u8, 62u8, 143u8, 166u8, 144u8, 147u8, - 110u8, 77u8, 75u8, 40u8, 80u8, 15u8, 139u8, 72u8, - 20u8, 76u8, 72u8, 160u8, 124u8, 64u8, 199u8, 199u8, - 109u8, 103u8, 32u8, 185u8, 3u8, 35u8, 94u8, 158u8, - 53u8, - ], - ) - } - #[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: runtime_types::tangle_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Utility", - "with_weight", - WithWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 187u8, 66u8, 158u8, 142u8, 124u8, 159u8, 244u8, - 141u8, 9u8, 11u8, 12u8, 180u8, 84u8, 200u8, 88u8, - 63u8, 13u8, 219u8, 136u8, 209u8, 91u8, 45u8, 160u8, - 24u8, 168u8, 120u8, 199u8, 5u8, 243u8, 39u8, 111u8, - 28u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_utility::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::core::primitive::u32, - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::events::StaticEvent for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Batch of dispatches completed fully with no error."] - pub struct BatchCompleted; - impl ::subxt::events::StaticEvent for BatchCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Batch of dispatches completed but has errors."] - pub struct BatchCompletedWithErrors; - impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompletedWithErrors"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A single item within a Batch of dispatches has completed with no error."] - pub struct ItemCompleted; - impl ::subxt::events::StaticEvent for ItemCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A single item within a Batch of dispatches has completed with error."] - pub struct ItemFailed { - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::events::StaticEvent for ItemFailed { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "A call was dispatched."] - pub struct DispatchedAs { - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for DispatchedAs { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "DispatchedAs"; - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The limit on the number of batched calls."] - pub fn batched_calls_limit( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( - "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 eth2_client { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Init { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub args: ::std::boxed::Box< - runtime_types::eth_types::pallet::InitInput< - ::subxt::utils::AccountId32, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RegisterSubmitter { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnregisterSubmitter { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitBeaconChainLightClientUpdate { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub light_client_update: - runtime_types::eth_types::eth2::LightClientUpdate, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitExecutionHeader { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub block_header: runtime_types::eth_types::BlockHeader, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateTrustedSigner { - pub trusted_signer: ::subxt::utils::AccountId32, - } - pub struct TransactionApi; - impl TransactionApi { - pub fn init( - &self, - typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - args: runtime_types::eth_types::pallet::InitInput< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( - "Eth2Client", - "init", - Init { - typed_chain_id, - args: ::std::boxed::Box::new(args), - }, - [ - 206u8, 239u8, 164u8, 149u8, 149u8, 206u8, 155u8, - 22u8, 185u8, 46u8, 237u8, 12u8, 179u8, 117u8, - 150u8, 179u8, 146u8, 173u8, 248u8, 234u8, 178u8, - 9u8, 33u8, 82u8, 202u8, 36u8, 162u8, 45u8, 109u8, - 12u8, 251u8, 42u8, - ], - ) - } - pub fn register_submitter( - &self, - typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Eth2Client", - "register_submitter", - RegisterSubmitter { typed_chain_id }, - [ - 103u8, 140u8, 4u8, 58u8, 34u8, 7u8, 94u8, 156u8, - 54u8, 42u8, 12u8, 104u8, 30u8, 235u8, 43u8, 129u8, - 88u8, 155u8, 58u8, 4u8, 133u8, 201u8, 91u8, 34u8, - 166u8, 84u8, 75u8, 11u8, 151u8, 55u8, 125u8, 30u8, - ], - ) - } - pub fn unregister_submitter( - &self, - typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Eth2Client", - "unregister_submitter", - UnregisterSubmitter { typed_chain_id }, - [ - 118u8, 212u8, 239u8, 32u8, 132u8, 204u8, 144u8, - 51u8, 233u8, 97u8, 1u8, 200u8, 189u8, 107u8, 70u8, - 112u8, 230u8, 35u8, 22u8, 70u8, 182u8, 167u8, 7u8, - 72u8, 239u8, 240u8, 103u8, 2u8, 191u8, 240u8, - 184u8, 127u8, - ], - ) - } - pub fn submit_beacon_chain_light_client_update( - &self, - typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - light_client_update : runtime_types :: eth_types :: eth2 :: LightClientUpdate, - ) -> ::subxt::tx::StaticTxPayload< - SubmitBeaconChainLightClientUpdate, - > { - ::subxt::tx::StaticTxPayload::new( - "Eth2Client", - "submit_beacon_chain_light_client_update", - SubmitBeaconChainLightClientUpdate { - typed_chain_id, - light_client_update, - }, - [ - 99u8, 27u8, 35u8, 92u8, 56u8, 89u8, 101u8, 215u8, - 193u8, 2u8, 65u8, 74u8, 70u8, 80u8, 84u8, 8u8, - 200u8, 15u8, 165u8, 2u8, 216u8, 121u8, 121u8, - 221u8, 229u8, 254u8, 49u8, 59u8, 254u8, 17u8, 77u8, - 225u8, - ], - ) - } - pub fn submit_execution_header( - &self, - typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - block_header: runtime_types::eth_types::BlockHeader, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Eth2Client", - "submit_execution_header", - SubmitExecutionHeader { - typed_chain_id, - block_header, - }, - [ - 42u8, 228u8, 96u8, 129u8, 33u8, 45u8, 48u8, 225u8, - 51u8, 87u8, 196u8, 231u8, 95u8, 44u8, 46u8, 81u8, - 17u8, 253u8, 30u8, 164u8, 90u8, 143u8, 239u8, 27u8, - 39u8, 83u8, 242u8, 52u8, 173u8, 59u8, 213u8, 7u8, - ], - ) - } - pub fn update_trusted_signer( - &self, - trusted_signer: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::StaticTxPayload - { - ::subxt::tx::StaticTxPayload::new( - "Eth2Client", - "update_trusted_signer", - UpdateTrustedSigner { trusted_signer }, - [ - 237u8, 184u8, 230u8, 1u8, 219u8, 8u8, 250u8, 144u8, - 217u8, 51u8, 209u8, 64u8, 204u8, 141u8, 9u8, 152u8, - 41u8, 241u8, 23u8, 78u8, 42u8, 131u8, 108u8, 212u8, - 8u8, 233u8, 106u8, 218u8, 41u8, 194u8, 43u8, 56u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_eth2_light_client::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Init { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub header_info: - runtime_types::eth_types::pallet::ExecutionHeaderInfo< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::events::StaticEvent for Init { - const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = "Init"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RegisterSubmitter { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub submitter: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for RegisterSubmitter { - const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = "RegisterSubmitter"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnregisterSubmitter { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub submitter: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for UnregisterSubmitter { - const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = "UnregisterSubmitter"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitBeaconChainLightClientUpdate { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub submitter: ::subxt::utils::AccountId32, - pub beacon_block_header: - runtime_types::eth_types::eth2::BeaconBlockHeader, - } - impl ::subxt::events::StaticEvent for SubmitBeaconChainLightClientUpdate { - const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = - "SubmitBeaconChainLightClientUpdate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubmitExecutionHeader { - pub typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub header_info: - runtime_types::eth_types::pallet::ExecutionHeaderInfo< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::events::StaticEvent for SubmitExecutionHeader { - const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = "SubmitExecutionHeader"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UpdateTrustedSigner { - pub trusted_signer: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for UpdateTrustedSigner { - const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = "UpdateTrustedSigner"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " If set, only light client updates by the trusted signer will be accepted"] pub fn trusted_signer (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: subxt :: utils :: AccountId32 > , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "TrustedSigner", - vec![], - [ - 106u8, 170u8, 214u8, 183u8, 202u8, 137u8, 72u8, - 85u8, 202u8, 161u8, 181u8, 51u8, 66u8, 225u8, - 160u8, 219u8, 4u8, 54u8, 166u8, 66u8, 103u8, 186u8, - 9u8, 243u8, 35u8, 6u8, 188u8, 25u8, 48u8, 141u8, - 161u8, 144u8, - ], - ) - } - #[doc = " Mask determining all paused functions"] pub fn paused (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "Paused" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [246u8 , 76u8 , 208u8 , 126u8 , 194u8 , 25u8 , 17u8 , 112u8 , 79u8 , 98u8 , 246u8 , 87u8 , 195u8 , 92u8 , 249u8 , 205u8 , 208u8 , 96u8 , 165u8 , 221u8 , 240u8 , 49u8 , 252u8 , 217u8 , 175u8 , 3u8 , 8u8 , 6u8 , 142u8 , 188u8 , 223u8 , 58u8 ,]) - } - #[doc = " Mask determining all paused functions"] pub fn paused_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "Paused", - Vec::new(), - [ - 246u8, 76u8, 208u8, 126u8, 194u8, 25u8, 17u8, - 112u8, 79u8, 98u8, 246u8, 87u8, 195u8, 92u8, 249u8, - 205u8, 208u8, 96u8, 165u8, 221u8, 240u8, 49u8, - 252u8, 217u8, 175u8, 3u8, 8u8, 6u8, 142u8, 188u8, - 223u8, 58u8, - ], - ) - } - #[doc = " Whether the client validates the updates."] - #[doc = " Should only be set to `false` for debugging, testing, and diagnostic purposes"] pub fn validate_updates (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "ValidateUpdates" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [86u8 , 26u8 , 173u8 , 110u8 , 231u8 , 9u8 , 36u8 , 254u8 , 82u8 , 80u8 , 78u8 , 249u8 , 56u8 , 23u8 , 202u8 , 19u8 , 24u8 , 116u8 , 171u8 , 126u8 , 81u8 , 8u8 , 54u8 , 180u8 , 6u8 , 57u8 , 202u8 , 40u8 , 254u8 , 124u8 , 92u8 , 36u8 ,]) - } - #[doc = " Whether the client validates the updates."] - #[doc = " Should only be set to `false` for debugging, testing, and diagnostic purposes"] pub fn validate_updates_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "ValidateUpdates", - Vec::new(), - [ - 86u8, 26u8, 173u8, 110u8, 231u8, 9u8, 36u8, 254u8, - 82u8, 80u8, 78u8, 249u8, 56u8, 23u8, 202u8, 19u8, - 24u8, 116u8, 171u8, 126u8, 81u8, 8u8, 54u8, 180u8, - 6u8, 57u8, 202u8, 40u8, 254u8, 124u8, 92u8, 36u8, - ], - ) - } - #[doc = " Whether the client verifies BLS signatures."] pub fn verify_bls_signatures (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "VerifyBlsSignatures" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [174u8 , 194u8 , 4u8 , 89u8 , 235u8 , 196u8 , 39u8 , 161u8 , 124u8 , 161u8 , 182u8 , 156u8 , 170u8 , 60u8 , 170u8 , 233u8 , 244u8 , 133u8 , 75u8 , 69u8 , 26u8 , 207u8 , 133u8 , 140u8 , 119u8 , 132u8 , 244u8 , 20u8 , 81u8 , 25u8 , 24u8 , 217u8 ,]) - } - #[doc = " Whether the client verifies BLS signatures."] pub fn verify_bls_signatures_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: bool > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "VerifyBlsSignatures", - Vec::new(), - [ - 174u8, 194u8, 4u8, 89u8, 235u8, 196u8, 39u8, 161u8, - 124u8, 161u8, 182u8, 156u8, 170u8, 60u8, 170u8, - 233u8, 244u8, 133u8, 75u8, 69u8, 26u8, 207u8, - 133u8, 140u8, 119u8, 132u8, 244u8, 20u8, 81u8, - 25u8, 24u8, 217u8, - ], - ) - } - #[doc = " We store the hashes of the blocks for the past `hashes_gc_threshold` headers."] - #[doc = " Events that happen past this threshold cannot be verified by the client."] - #[doc = " It is desirable that this number is larger than 7 days' worth of headers, which is roughly"] - #[doc = " 51k Ethereum blocks. So this number should be 51k in production."] pub fn hashes_gc_threshold (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "HashesGcThreshold" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [220u8 , 238u8 , 33u8 , 21u8 , 96u8 , 160u8 , 110u8 , 211u8 , 35u8 , 8u8 , 6u8 , 98u8 , 10u8 , 53u8 , 189u8 , 154u8 , 171u8 , 27u8 , 245u8 , 152u8 , 177u8 , 142u8 , 113u8 , 56u8 , 187u8 , 159u8 , 192u8 , 114u8 , 175u8 , 24u8 , 237u8 , 149u8 ,]) - } - #[doc = " We store the hashes of the blocks for the past `hashes_gc_threshold` headers."] - #[doc = " Events that happen past this threshold cannot be verified by the client."] - #[doc = " It is desirable that this number is larger than 7 days' worth of headers, which is roughly"] - #[doc = " 51k Ethereum blocks. So this number should be 51k in production."] pub fn hashes_gc_threshold_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "HashesGcThreshold", - Vec::new(), - [ - 220u8, 238u8, 33u8, 21u8, 96u8, 160u8, 110u8, - 211u8, 35u8, 8u8, 6u8, 98u8, 10u8, 53u8, 189u8, - 154u8, 171u8, 27u8, 245u8, 152u8, 177u8, 142u8, - 113u8, 56u8, 187u8, 159u8, 192u8, 114u8, 175u8, - 24u8, 237u8, 149u8, - ], - ) - } - #[doc = " Hashes of the finalized execution blocks mapped to their numbers. Stores up to"] - #[doc = " `hashes_gc_threshold` entries. Execution block number -> execution block hash"] pub fn finalized_execution_blocks (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: H256 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "FinalizedExecutionBlocks" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [220u8 , 176u8 , 213u8 , 243u8 , 245u8 , 60u8 , 148u8 , 53u8 , 2u8 , 141u8 , 66u8 , 175u8 , 248u8 , 177u8 , 86u8 , 10u8 , 163u8 , 100u8 , 235u8 , 179u8 , 145u8 , 140u8 , 231u8 , 240u8 , 220u8 , 72u8 , 113u8 , 164u8 , 95u8 , 131u8 , 246u8 , 74u8 ,]) - } - #[doc = " Hashes of the finalized execution blocks mapped to their numbers. Stores up to"] - #[doc = " `hashes_gc_threshold` entries. Execution block number -> execution block hash"] pub fn finalized_execution_blocks_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: H256 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "FinalizedExecutionBlocks", - Vec::new(), - [ - 220u8, 176u8, 213u8, 243u8, 245u8, 60u8, 148u8, - 53u8, 2u8, 141u8, 66u8, 175u8, 248u8, 177u8, 86u8, - 10u8, 163u8, 100u8, 235u8, 179u8, 145u8, 140u8, - 231u8, 240u8, 220u8, 72u8, 113u8, 164u8, 95u8, - 131u8, 246u8, 74u8, - ], - ) - } - #[doc = " All unfinalized execution blocks' headers hashes mapped to their `HeaderInfo`."] - #[doc = " Execution block hash -> ExecutionHeaderInfo object"] pub fn unfinalized_headers (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: eth_types :: H256 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "UnfinalizedHeaders" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [238u8 , 34u8 , 164u8 , 119u8 , 175u8 , 88u8 , 205u8 , 239u8 , 141u8 , 70u8 , 43u8 , 2u8 , 20u8 , 5u8 , 64u8 , 134u8 , 69u8 , 53u8 , 248u8 , 115u8 , 241u8 , 165u8 , 162u8 , 207u8 , 233u8 , 31u8 , 88u8 , 5u8 , 47u8 , 16u8 , 44u8 , 159u8 ,]) - } - #[doc = " All unfinalized execution blocks' headers hashes mapped to their `HeaderInfo`."] - #[doc = " Execution block hash -> ExecutionHeaderInfo object"] pub fn unfinalized_headers_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "UnfinalizedHeaders", - Vec::new(), - [ - 238u8, 34u8, 164u8, 119u8, 175u8, 88u8, 205u8, - 239u8, 141u8, 70u8, 43u8, 2u8, 20u8, 5u8, 64u8, - 134u8, 69u8, 53u8, 248u8, 115u8, 241u8, 165u8, - 162u8, 207u8, 233u8, 31u8, 88u8, 5u8, 47u8, 16u8, - 44u8, 159u8, - ], - ) - } - #[doc = " `AccountId`s mapped to their number of submitted headers."] - #[doc = " Submitter account -> Num of submitted headers"] pub fn submitters (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "Submitters" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat) , :: subxt :: storage :: address :: StorageMapKey :: new (_1 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [138u8 , 84u8 , 90u8 , 113u8 , 200u8 , 222u8 , 59u8 , 174u8 , 139u8 , 218u8 , 80u8 , 215u8 , 195u8 , 196u8 , 156u8 , 93u8 , 156u8 , 224u8 , 95u8 , 49u8 , 22u8 , 26u8 , 48u8 , 27u8 , 216u8 , 77u8 , 246u8 , 19u8 , 102u8 , 108u8 , 125u8 , 115u8 ,]) - } - #[doc = " `AccountId`s mapped to their number of submitted headers."] - #[doc = " Submitter account -> Num of submitted headers"] pub fn submitters_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "Submitters", - Vec::new(), - [ - 138u8, 84u8, 90u8, 113u8, 200u8, 222u8, 59u8, - 174u8, 139u8, 218u8, 80u8, 215u8, 195u8, 196u8, - 156u8, 93u8, 156u8, 224u8, 95u8, 49u8, 22u8, 26u8, - 48u8, 27u8, 216u8, 77u8, 246u8, 19u8, 102u8, 108u8, - 125u8, 115u8, - ], - ) - } - #[doc = " Max number of unfinalized blocks allowed to be stored by one submitter account"] - #[doc = " This value should be at least 32 blocks (1 epoch), but the recommended value is 1024 (32"] - #[doc = " epochs"] pub fn max_unfinalized_blocks_per_submitter (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "MaxUnfinalizedBlocksPerSubmitter" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [38u8 , 27u8 , 213u8 , 127u8 , 48u8 , 21u8 , 109u8 , 75u8 , 138u8 , 130u8 , 212u8 , 220u8 , 233u8 , 207u8 , 235u8 , 28u8 , 187u8 , 166u8 , 114u8 , 181u8 , 162u8 , 147u8 , 80u8 , 119u8 , 212u8 , 107u8 , 190u8 , 12u8 , 27u8 , 53u8 , 175u8 , 220u8 ,]) - } - #[doc = " Max number of unfinalized blocks allowed to be stored by one submitter account"] - #[doc = " This value should be at least 32 blocks (1 epoch), but the recommended value is 1024 (32"] - #[doc = " epochs"] pub fn max_unfinalized_blocks_per_submitter_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "MaxUnfinalizedBlocksPerSubmitter", - Vec::new(), - [ - 38u8, 27u8, 213u8, 127u8, 48u8, 21u8, 109u8, 75u8, - 138u8, 130u8, 212u8, 220u8, 233u8, 207u8, 235u8, - 28u8, 187u8, 166u8, 114u8, 181u8, 162u8, 147u8, - 80u8, 119u8, 212u8, 107u8, 190u8, 12u8, 27u8, 53u8, - 175u8, 220u8, - ], - ) - } - #[doc = " The minimum balance that should be attached to register a new submitter account"] pub fn min_submitter_balance (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "MinSubmitterBalance" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [231u8 , 115u8 , 41u8 , 207u8 , 67u8 , 71u8 , 203u8 , 11u8 , 233u8 , 115u8 , 16u8 , 105u8 , 104u8 , 32u8 , 94u8 , 2u8 , 209u8 , 94u8 , 233u8 , 219u8 , 111u8 , 118u8 , 184u8 , 144u8 , 54u8 , 104u8 , 117u8 , 8u8 , 49u8 , 164u8 , 103u8 , 196u8 ,]) - } - #[doc = " The minimum balance that should be attached to register a new submitter account"] pub fn min_submitter_balance_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u128 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "MinSubmitterBalance", - Vec::new(), - [ - 231u8, 115u8, 41u8, 207u8, 67u8, 71u8, 203u8, 11u8, - 233u8, 115u8, 16u8, 105u8, 104u8, 32u8, 94u8, 2u8, - 209u8, 94u8, 233u8, 219u8, 111u8, 118u8, 184u8, - 144u8, 54u8, 104u8, 117u8, 8u8, 49u8, 164u8, 103u8, - 196u8, - ], - ) - } - #[doc = " Light client state"] pub fn finalized_beacon_header (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: eth2 :: ExtendedBeaconBlockHeader > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "FinalizedBeaconHeader" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [218u8 , 228u8 , 178u8 , 233u8 , 200u8 , 20u8 , 96u8 , 4u8 , 29u8 , 225u8 , 232u8 , 224u8 , 140u8 , 32u8 , 92u8 , 188u8 , 43u8 , 104u8 , 25u8 , 18u8 , 203u8 , 23u8 , 158u8 , 143u8 , 109u8 , 60u8 , 242u8 , 65u8 , 131u8 , 251u8 , 164u8 , 12u8 ,]) - } - #[doc = " Light client state"] pub fn finalized_beacon_header_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: eth2 :: ExtendedBeaconBlockHeader > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "FinalizedBeaconHeader", - Vec::new(), - [ - 218u8, 228u8, 178u8, 233u8, 200u8, 20u8, 96u8, 4u8, - 29u8, 225u8, 232u8, 224u8, 140u8, 32u8, 92u8, - 188u8, 43u8, 104u8, 25u8, 18u8, 203u8, 23u8, 158u8, - 143u8, 109u8, 60u8, 242u8, 65u8, 131u8, 251u8, - 164u8, 12u8, - ], - ) - } pub fn finalized_execution_header (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "FinalizedExecutionHeader" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [163u8 , 134u8 , 92u8 , 104u8 , 29u8 , 88u8 , 15u8 , 156u8 , 128u8 , 62u8 , 223u8 , 182u8 , 236u8 , 34u8 , 75u8 , 104u8 , 220u8 , 164u8 , 7u8 , 255u8 , 242u8 , 119u8 , 148u8 , 94u8 , 110u8 , 80u8 , 242u8 , 208u8 , 83u8 , 191u8 , 126u8 , 4u8 ,]) - } pub fn finalized_execution_header_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "FinalizedExecutionHeader", - Vec::new(), - [ - 163u8, 134u8, 92u8, 104u8, 29u8, 88u8, 15u8, 156u8, - 128u8, 62u8, 223u8, 182u8, 236u8, 34u8, 75u8, - 104u8, 220u8, 164u8, 7u8, 255u8, 242u8, 119u8, - 148u8, 94u8, 110u8, 80u8, 242u8, 208u8, 83u8, - 191u8, 126u8, 4u8, - ], - ) - } pub fn current_sync_committee (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: eth2 :: SyncCommittee > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "CurrentSyncCommittee" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [249u8 , 118u8 , 4u8 , 81u8 , 56u8 , 158u8 , 131u8 , 244u8 , 221u8 , 44u8 , 175u8 , 40u8 , 174u8 , 72u8 , 47u8 , 95u8 , 0u8 , 42u8 , 154u8 , 166u8 , 244u8 , 54u8 , 222u8 , 88u8 , 35u8 , 162u8 , 37u8 , 202u8 , 126u8 , 213u8 , 41u8 , 190u8 ,]) - } pub fn current_sync_committee_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: eth2 :: SyncCommittee > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "CurrentSyncCommittee", - Vec::new(), - [ - 249u8, 118u8, 4u8, 81u8, 56u8, 158u8, 131u8, 244u8, - 221u8, 44u8, 175u8, 40u8, 174u8, 72u8, 47u8, 95u8, - 0u8, 42u8, 154u8, 166u8, 244u8, 54u8, 222u8, 88u8, - 35u8, 162u8, 37u8, 202u8, 126u8, 213u8, 41u8, - 190u8, - ], - ) - } pub fn next_sync_committee (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: eth2 :: SyncCommittee > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "NextSyncCommittee" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [35u8 , 230u8 , 100u8 , 169u8 , 186u8 , 249u8 , 30u8 , 104u8 , 139u8 , 104u8 , 107u8 , 240u8 , 24u8 , 205u8 , 221u8 , 23u8 , 2u8 , 211u8 , 183u8 , 103u8 , 166u8 , 35u8 , 236u8 , 229u8 , 54u8 , 215u8 , 91u8 , 41u8 , 11u8 , 165u8 , 225u8 , 252u8 ,]) - } pub fn next_sync_committee_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: eth_types :: eth2 :: SyncCommittee > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "NextSyncCommittee", - Vec::new(), - [ - 35u8, 230u8, 100u8, 169u8, 186u8, 249u8, 30u8, - 104u8, 139u8, 104u8, 107u8, 240u8, 24u8, 205u8, - 221u8, 23u8, 2u8, 211u8, 183u8, 103u8, 166u8, 35u8, - 236u8, 229u8, 54u8, 215u8, 91u8, 41u8, 11u8, 165u8, - 225u8, 252u8, - ], - ) - } pub fn genesis_validators_root (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < [:: core :: primitive :: u8 ; 32usize] > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "GenesisValidatorsRoot" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [247u8 , 224u8 , 24u8 , 126u8 , 232u8 , 218u8 , 254u8 , 228u8 , 34u8 , 195u8 , 158u8 , 195u8 , 197u8 , 115u8 , 108u8 , 67u8 , 115u8 , 253u8 , 210u8 , 222u8 , 157u8 , 92u8 , 133u8 , 15u8 , 183u8 , 170u8 , 65u8 , 70u8 , 233u8 , 151u8 , 54u8 , 146u8 ,]) - } pub fn genesis_validators_root_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < [:: core :: primitive :: u8 ; 32usize] > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "GenesisValidatorsRoot", - Vec::new(), - [ - 247u8, 224u8, 24u8, 126u8, 232u8, 218u8, 254u8, - 228u8, 34u8, 195u8, 158u8, 195u8, 197u8, 115u8, - 108u8, 67u8, 115u8, 253u8, 210u8, 222u8, 157u8, - 92u8, 133u8, 15u8, 183u8, 170u8, 65u8, 70u8, 233u8, - 151u8, 54u8, 146u8, - ], - ) - } pub fn bellatrix_fork_version (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < [:: core :: primitive :: u8 ; 4usize] > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "BellatrixForkVersion" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [191u8 , 28u8 , 47u8 , 88u8 , 255u8 , 118u8 , 70u8 , 15u8 , 64u8 , 126u8 , 37u8 , 208u8 , 149u8 , 60u8 , 92u8 , 246u8 , 28u8 , 127u8 , 162u8 , 235u8 , 57u8 , 83u8 , 70u8 , 195u8 , 50u8 , 237u8 , 230u8 , 0u8 , 49u8 , 23u8 , 57u8 , 27u8 ,]) - } pub fn bellatrix_fork_version_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < [:: core :: primitive :: u8 ; 4usize] > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "BellatrixForkVersion", - Vec::new(), - [ - 191u8, 28u8, 47u8, 88u8, 255u8, 118u8, 70u8, 15u8, - 64u8, 126u8, 37u8, 208u8, 149u8, 60u8, 92u8, 246u8, - 28u8, 127u8, 162u8, 235u8, 57u8, 83u8, 70u8, 195u8, - 50u8, 237u8, 230u8, 0u8, 49u8, 23u8, 57u8, 27u8, - ], - ) - } pub fn bellatrix_fork_epoch (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: StaticStorageAddress :: new ("Eth2Client" , "BellatrixForkEpoch" , vec ! [:: subxt :: storage :: address :: StorageMapKey :: new (_0 . borrow () , :: subxt :: storage :: address :: StorageHasher :: Blake2_128Concat)] , [245u8 , 202u8 , 36u8 , 65u8 , 145u8 , 126u8 , 3u8 , 235u8 , 6u8 , 233u8 , 182u8 , 68u8 , 45u8 , 244u8 , 38u8 , 73u8 , 188u8 , 247u8 , 26u8 , 229u8 , 228u8 , 141u8 , 83u8 , 42u8 , 222u8 , 180u8 , 2u8 , 173u8 , 168u8 , 23u8 , 41u8 , 159u8 ,]) - } pub fn bellatrix_fork_epoch_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < :: core :: primitive :: u64 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::StaticStorageAddress::new( - "Eth2Client", - "BellatrixForkEpoch", - Vec::new(), - [ - 245u8, 202u8, 36u8, 65u8, 145u8, 126u8, 3u8, 235u8, - 6u8, 233u8, 182u8, 68u8, 45u8, 244u8, 38u8, 73u8, - 188u8, 247u8, 26u8, 229u8, 228u8, 141u8, 83u8, - 42u8, 222u8, 180u8, 2u8, 173u8, 168u8, 23u8, 41u8, - 159u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::PalletId, - >, - > { - ::subxt::constants::StaticConstantAddress::new( - "Eth2Client", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - } - } - } - pub mod runtime_types { - use super::runtime_types; - pub mod dkg_runtime_primitives { - use super::runtime_types; - pub mod crypto { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub runtime_types::sp_core::ecdsa::Public); - } - pub mod proposal { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DKGPayloadKey { - #[codec(index = 0)] - EVMProposal(runtime_types::webb_proposals::nonce::Nonce), - #[codec(index = 1)] - RefreshVote(runtime_types::webb_proposals::nonce::Nonce), - #[codec(index = 2)] - ProposerSetUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 3)] - AnchorCreateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 4)] - AnchorUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 5)] - TokenAddProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 6)] - TokenRemoveProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 7)] - WrappingFeeUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 8)] - ResourceIdUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 9)] - RescueTokensProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 10)] - MaxDepositLimitUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 11)] - MinWithdrawalLimitUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 12)] - SetVerifierProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 13)] - SetTreasuryHandlerProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 14)] - FeeRecipientUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RefreshProposalSigned { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub signature: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct StoredUnsignedProposal<_0, _1> { - pub proposal: - runtime_types::webb_proposals::proposal::Proposal<_1>, - pub timestamp: _0, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AggregatedMisbehaviourReports < _0 , _1 , _2 > { pub misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , pub session_id : :: core :: primitive :: u64 , pub offender : _0 , pub reporters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub signatures : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_1 , _2) > } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AggregatedPublicKeys { - pub keys_and_signatures: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CustomU32Getter; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum MisbehaviourType { - #[codec(index = 0)] - Keygen, - #[codec(index = 1)] - Sign, - } - } - pub mod eth_types { - use super::runtime_types; - pub mod eth2 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BeaconBlockHeader { - pub slot: ::core::primitive::u64, - pub proposer_index: ::core::primitive::u64, - pub parent_root: runtime_types::eth_types::H256, - pub state_root: runtime_types::eth_types::H256, - pub body_root: runtime_types::eth_types::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExtendedBeaconBlockHeader { - pub header: - runtime_types::eth_types::eth2::BeaconBlockHeader, - pub beacon_block_root: runtime_types::eth_types::H256, - pub execution_block_hash: runtime_types::eth_types::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FinalizedHeaderUpdate { - pub header_update: - runtime_types::eth_types::eth2::HeaderUpdate, - pub finality_branch: - ::std::vec::Vec, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct HeaderUpdate { - pub beacon_header: - runtime_types::eth_types::eth2::BeaconBlockHeader, - pub execution_block_hash: runtime_types::eth_types::H256, - pub execution_hash_branch: - ::std::vec::Vec, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct LightClientUpdate { - pub attested_beacon_header: - runtime_types::eth_types::eth2::BeaconBlockHeader, - pub sync_aggregate: - runtime_types::eth_types::eth2::SyncAggregate, - pub signature_slot: ::core::primitive::u64, - pub finality_update: - runtime_types::eth_types::eth2::FinalizedHeaderUpdate, - pub sync_committee_update: ::core::option::Option< - runtime_types::eth_types::eth2::SyncCommitteeUpdate, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PublicKeyBytes(pub [::core::primitive::u8; 48usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SignatureBytes(pub [::core::primitive::u8; 96usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SyncAggregate { - pub sync_committee_bits: - runtime_types::eth_types::eth2::SyncCommitteeBits, - pub sync_committee_signature: - runtime_types::eth_types::eth2::SignatureBytes, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SyncCommittee { - pub pubkeys: - runtime_types::eth_types::eth2::SyncCommitteePublicKeys, - pub aggregate_pubkey: - runtime_types::eth_types::eth2::PublicKeyBytes, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SyncCommitteeBits( - pub [::core::primitive::u8; 64usize], - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SyncCommitteePublicKeys( - pub ::std::vec::Vec< - runtime_types::eth_types::eth2::PublicKeyBytes, - >, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SyncCommitteeUpdate { - pub next_sync_committee: - runtime_types::eth_types::eth2::SyncCommittee, - pub next_sync_committee_branch: - ::std::vec::Vec, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExecutionHeaderInfo<_0> { - pub parent_hash: ::subxt::utils::H256, - pub block_number: ::core::primitive::u64, - pub submitter: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct InitInput < _0 > { pub finalized_execution_header : runtime_types :: eth_types :: BlockHeader , pub finalized_beacon_header : runtime_types :: eth_types :: eth2 :: ExtendedBeaconBlockHeader , pub current_sync_committee : runtime_types :: eth_types :: eth2 :: SyncCommittee , pub next_sync_committee : runtime_types :: eth_types :: eth2 :: SyncCommittee , pub validate_updates : :: core :: primitive :: bool , pub verify_bls_signatures : :: core :: primitive :: bool , pub hashes_gc_threshold : :: core :: primitive :: u64 , pub max_submitted_blocks_by_account : :: core :: primitive :: u32 , pub trusted_signer : :: core :: option :: Option < _0 > , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BlockHeader { - pub parent_hash: runtime_types::eth_types::H256, - pub uncles_hash: runtime_types::eth_types::H256, - pub author: runtime_types::eth_types::H160, - pub state_root: runtime_types::eth_types::H256, - pub transactions_root: runtime_types::eth_types::H256, - pub receipts_root: runtime_types::eth_types::H256, - pub log_bloom: runtime_types::eth_types::Bloom, - pub difficulty: runtime_types::eth_types::U256, - pub number: ::core::primitive::u64, - pub gas_limit: runtime_types::eth_types::U256, - pub gas_used: runtime_types::eth_types::U256, - pub timestamp: ::core::primitive::u64, - pub extra_data: ::std::vec::Vec<::core::primitive::u8>, - pub mix_hash: runtime_types::eth_types::H256, - pub nonce: runtime_types::eth_types::H64, - pub base_fee_per_gas: ::core::primitive::u64, - pub hash: - ::core::option::Option, - pub partial_hash: - ::core::option::Option, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bloom(pub runtime_types::ethbloom::Bloom); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H160(pub ::subxt::utils::H160); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H256(pub ::subxt::utils::H256); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H64(pub runtime_types::ethereum_types::hash::H64); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct U256(pub runtime_types::primitive_types::U256); - } - pub mod ethbloom { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bloom(pub [::core::primitive::u8; 256usize]); - } - pub mod ethereum_types { - use super::runtime_types; - pub mod hash { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H64(pub [::core::primitive::u8; 8usize]); - } - } - pub mod finality_grandpa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - } - pub mod frame_support { - use super::runtime_types; - pub mod dispatch { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DispatchClass { - #[codec(index = 0)] - Normal, - #[codec(index = 1)] - Operational, - #[codec(index = 2)] - Mandatory, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Pays { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } - pub mod preimages { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Bounded<_0> { - # [codec (index = 0)] Legacy { hash : :: subxt :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } - } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckMortality( - pub runtime_types::sp_runtime::generic::era::Era, - ); - } - pub mod check_non_zero_sender { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckNonce( - #[codec(compact)] pub ::core::primitive::u32, - ); - } - pub mod check_spec_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckSpecVersion; - } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckTxVersion; - } - pub mod check_weight { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct CheckWeight; - } - } - pub mod limits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - remark { - remark: ::std::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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - set_code { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - set_code_without_checks { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "Set some items of storage."] - set_storage { - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 5)] - #[doc = "Kill some items from storage."] - kill_storage { - keys: ::std::vec::Vec< - ::std::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: ::std::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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, - pub data: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::std::vec::Vec<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::std::string::String, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, - } - } - pub mod orml_currencies { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some balance to another account under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Transfer some native currency to another account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - transfer_native_currency { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "update amount of account `who` under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - update_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::i128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Unable to convert the Amount type into Balance."] - AmountIntoBalanceFailed, - #[codec(index = 1)] - #[doc = "Balance is too low."] - BalanceTooLow, - #[codec(index = 2)] - #[doc = "Deposit result is not expected"] - DepositFailed, - } - } - } - pub mod orml_tokens { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "It will decrease the total issuance of the system by the"] - #[doc = "`TransferFee`. If the sender's account is below the existential"] - #[doc = "deposit as a result of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Transfer all remaining balance to the given account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_"] - #[doc = "balances. This means that any locked, reserved, or existential"] - #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] - #[doc = "this function. To ensure that this function results in a killed"] - #[doc = "account, you might need to prepare the account by removing any"] - #[doc = "reference counters, storage deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] - #[doc = " operation should send all of the funds the account has, causing"] - #[doc = " the sender account to be killed (false), or transfer everything"] - #[doc = " except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - keep_alive: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] - #[doc = "will not kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source"] - #[doc = "account may be specified."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The sender of the transfer."] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] - #[doc = "will also decrease the total issuance of the system"] - #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] - #[doc = "existential deposit, it will reap the `AccountInfo`."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The balance is too low"] - BalanceTooLow, - #[codec(index = 1)] - #[doc = "Cannot convert Amount into Balance type"] - AmountIntoBalanceFailed, - #[codec(index = 2)] - #[doc = "Failed because liquidity restrictions due to locking"] - LiquidityRestrictions, - #[codec(index = 3)] - #[doc = "Failed because the maximum locks was exceeded"] - MaxLocksExceeded, - #[codec(index = 4)] - #[doc = "Transfer/payment would kill account"] - KeepAlive, - #[codec(index = 5)] - #[doc = "Value too low to create account due to existential deposit"] - ExistentialDeposit, - #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist"] - DeadAccount, - #[codec(index = 7)] - TooManyReserves, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below"] # [doc = "ExistentialDeposit, resulting in an outright loss."] DustLost { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some reserved balance was repatriated (moved from reserved to"] # [doc = "another account)."] ReserveRepatriated { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 6)] # [doc = "A balance was set by root."] BalanceSet { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "The total issuance of an currency has been set"] TotalIssuanceSet { currency_id : :: core :: primitive :: u32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] Withdrawn { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some balances were slashed (e.g. due to mis-behavior)"] Slashed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free_amount : :: core :: primitive :: u128 , reserved_amount : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Deposited some balance into an account"] Deposited { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Some funds are locked"] LockSet { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "Some locked funds were unlocked"] LockRemoved { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_asset_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Register a new asset."] # [doc = ""] # [doc = "Asset is identified by `name` and the name must not be used to"] # [doc = "register another asset."] # [doc = ""] # [doc = "New asset is given `NextAssetId` - sequential asset id"] # [doc = ""] # [doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] # [doc = "be retrieved by name too (Note: this approach is used in AMM"] # [doc = "implementation (xyk))"] # [doc = ""] # [doc = "Emits 'Registered` event when successful."] register { name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , existential_deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Update registered asset."] # [doc = ""] # [doc = "Updates also mapping between name and asset id if provided name is"] # [doc = "different than currently registered."] # [doc = ""] # [doc = "Emits `Updated` event when successful."] update { asset_id : :: core :: primitive :: u32 , bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } , # [codec (index = 2)] # [doc = "Set metadata for an asset."] # [doc = ""] # [doc = "- `asset_id`: Asset identifier."] # [doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] # [doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] # [doc = ""] # [doc = "Emits `MetadataSet` event when successful."] set_metadata { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Set asset native location."] # [doc = ""] # [doc = "Adds mapping between native location and local asset id and vice"] # [doc = "versa."] # [doc = ""] # [doc = "Mainly used in XCM."] # [doc = ""] # [doc = "Emits `LocationSet` event when successful."] set_location { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Add an asset to an existing pool."] add_asset_to_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Remove an asset from an existing pool."] delete_asset_from_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Asset Id is not available. This only happens when it reaches the MAX"] - #[doc = "value of given id type."] - NoIdAvailable, - #[codec(index = 1)] - #[doc = "Invalid asset name or symbol."] - AssetNotFound, - #[codec(index = 2)] - #[doc = "Invalid asset name or symbol."] - TooLong, - #[codec(index = 3)] - #[doc = "Asset ID is not registered in the asset-registry."] - AssetNotRegistered, - #[codec(index = 4)] - #[doc = "Asset is already registered."] - AssetAlreadyRegistered, - #[codec(index = 5)] - #[doc = "Incorrect number of assets provided to create shared asset."] - InvalidSharedAssetLen, - #[codec(index = 6)] - #[doc = "Asset exists in to pool"] - AssetExistsInPool, - #[codec(index = 7)] - #[doc = "Asset not found in pool"] - AssetNotFoundInPool, - #[codec(index = 8)] - #[doc = "Max number of assets in pool is reached"] - MaxAssetIdInPoolReached, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Asset was registered."] Registered { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } , # [codec (index = 1)] # [doc = "Asset was updated."] Updated { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } , # [codec (index = 2)] # [doc = "Metadata set for an asset."] MetadataSet { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Native location set for an asset."] LocationSet { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetDetails<_0, _1, _2, _3> { - pub name: _2, - pub asset_type: - runtime_types::pallet_asset_registry::types::AssetType< - _0, - _3, - >, - pub existential_deposit: _1, - pub locked: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AssetMetadata<_0> { - pub symbol: _0, - pub decimals: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum AssetType<_0, _1> { - # [codec (index = 0)] Token , # [codec (index = 1)] PoolShare (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > ,) , __Ignore (:: core :: marker :: PhantomData < _1 >) , } - } - } - pub mod pallet_authorship { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Provide a set of uncles."] - set_uncles { - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The uncle parent not in the chain."] - InvalidUncleParent, - #[codec(index = 1)] - #[doc = "Uncles already set in the block."] - UnclesAlreadySet, - #[codec(index = 2)] - #[doc = "Too many uncles."] - TooManyUncles, - #[codec(index = 3)] - #[doc = "The uncle is genesis."] - GenesisUncle, - #[codec(index = 4)] - #[doc = "The uncle is too high in chain."] - TooHighUncle, - #[codec(index = 5)] - #[doc = "The uncle is already included."] - UncleAlreadyIncluded, - #[codec(index = 6)] - #[doc = "The uncle isn't recent enough to be included."] - OldUncle, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum UncleEntryItem<_0, _1, _2> { - #[codec(index = 0)] - InclusionHeight(_0), - #[codec(index = 1)] - Uncle(_1, ::core::option::Option<_2>), - } - } - pub mod pallet_bags_list { - use super::runtime_types; - pub mod list { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Bag { - pub head: - ::core::option::Option<::subxt::utils::AccountId32>, - pub tail: - ::core::option::Option<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ListError { - #[codec(index = 0)] - Duplicate, - #[codec(index = 1)] - NotHeavier, - #[codec(index = 2)] - NotInSameBag, - #[codec(index = 3)] - NodeNotFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Node { - pub id: ::subxt::utils::AccountId32, - pub prev: - ::core::option::Option<::subxt::utils::AccountId32>, - pub next: - ::core::option::Option<::subxt::utils::AccountId32>, - pub bag_upper: ::core::primitive::u64, - pub score: ::core::primitive::u64, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] - put_in_front_of { - lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "A error in the list interface implementation."] - List(runtime_types::pallet_bags_list::list::ListError), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Moved an account from one bag to another."] - Rebagged { - who: ::subxt::utils::AccountId32, - from: ::core::primitive::u64, - to: ::core::primitive::u64, - }, - #[codec(index = 1)] - #[doc = "Updated the score of some account to the given amount."] - ScoreUpdated { - who: ::subxt::utils::AccountId32, - new_score: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_balances { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] - KeepAlive, - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - approve_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - propose_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - award_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - extend_bounty_expiry { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "A bounty is claimed by beneficiary."] - BountyClaimed { - index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::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 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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_bridge_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_metadata { bridge_index : :: core :: primitive :: u32 , info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } , # [codec (index = 1)] force_reset_indices { resource_ids : :: std :: vec :: Vec < runtime_types :: webb_proposals :: header :: ResourceId > , bridge_index : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - ParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - #[codec(index = 2)] - #[doc = "Proposal is not signed and should not be processed"] - ProposalNotSigned, - #[codec(index = 3)] - #[doc = "Resources map to different bridge indices"] - BridgeIndexError, - #[codec(index = 4)] - #[doc = "Too many additional fields."] - TooManyFields, - #[codec(index = 5)] - #[doc = "Bridge does not exist."] - BridgeNotFound, - #[codec(index = 6)] - #[doc = "Too many resources."] - TooManyResources, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BridgeInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_bridge_registry :: types :: SerdeData , runtime_types :: pallet_bridge_registry :: types :: SerdeData ,) > , pub display : runtime_types :: pallet_bridge_registry :: types :: SerdeData , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BridgeMetadata { pub resource_ids : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_proposals :: header :: ResourceId > , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SerdeData( - pub runtime_types::pallet_identity::types::Data, - ); - } - } - pub mod pallet_child_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::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::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A child-bounty is cancelled."] - Canceled { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ChildBounty<_0, _1, _2> { - pub parent_bounty: _2, - pub value: _1, - pub fee: _1, - pub curator_deposit: _1, - pub status: - runtime_types::pallet_child_bounties::ChildBountyStatus< - _0, - _2, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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_collective { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set the collective's membership."] # [doc = ""] # [doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] # [doc = "- `prime`: The prime member whose vote sets the default."] # [doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] # [doc = " weight estimation."] # [doc = ""] # [doc = "Requires root origin."] # [doc = ""] # [doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] # [doc = " the weight estimations rely on it to estimate dispatchable weight."] # [doc = ""] # [doc = "# WARNING:"] # [doc = ""] # [doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] # [doc = "implementation of the trait [`ChangeMembers`]."] # [doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] # [doc = "with other logic managing the member set."] # [doc = ""] # [doc = "# "] # [doc = "## Weight"] # [doc = "- `O(MP + N)` where:"] # [doc = " - `M` old-members-count (code- and governance-bounded)"] # [doc = " - `N` new-members-count (code- and governance-bounded)"] # [doc = " - `P` proposals-count (code-bounded)"] # [doc = "- DB:"] # [doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] # [doc = " members"] # [doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] # [doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] # [doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] # [doc = "# "] set_members { new_members : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , prime : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , old_count : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Dispatch a proposal from a member using the `Member` origin."] # [doc = ""] # [doc = "Origin must be a member of the collective."] # [doc = ""] # [doc = "# "] # [doc = "## Weight"] # [doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] # [doc = " `proposal`"] # [doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] # [doc = "- 1 event"] # [doc = "# "] execute { proposal : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Add a new proposal to either be voted on or executed directly."] # [doc = ""] # [doc = "Requires the sender to be member."] # [doc = ""] # [doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] # [doc = "or put up for voting."] # [doc = ""] # [doc = "# "] # [doc = "## Weight"] # [doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] # [doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = " - `M` is members-count (code- and governance-bounded)"] # [doc = " - branching is influenced by `threshold` where:"] # [doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] # [doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] # [doc = "- DB:"] # [doc = " - 1 storage read `is_member` (codec `O(M)`)"] # [doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] # [doc = " - DB accesses influenced by `threshold`:"] # [doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] # [doc = " - OR proposal insertion (`threshold <= 2`)"] # [doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] # [doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] # [doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] # [doc = " - 1 storage write `Voting` (codec `O(M)`)"] # [doc = " - 1 event"] # [doc = "# "] propose { # [codec (compact)] threshold : :: core :: primitive :: u32 , proposal : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Add an aye or nay vote for the sender to the given proposal."] # [doc = ""] # [doc = "Requires the sender to be a member."] # [doc = ""] # [doc = "Transaction fees will be waived if the member is voting on any particular proposal"] # [doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] # [doc = "fee."] # [doc = "# "] # [doc = "## Weight"] # [doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] # [doc = "- DB:"] # [doc = " - 1 storage read `Members` (codec `O(M)`)"] # [doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] # [doc = "- 1 event"] # [doc = "# "] vote { proposal : :: subxt :: utils :: H256 , # [codec (compact)] index : :: core :: primitive :: u32 , approve : :: core :: primitive :: bool , } , # [codec (index = 4)] # [doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] # [doc = ""] # [doc = "May be called by any signed account in order to finish voting and close the proposal."] # [doc = ""] # [doc = "If called before the end of the voting period it will only close the vote if it is"] # [doc = "has enough votes to be approved or disapproved."] # [doc = ""] # [doc = "If called after the end of the voting period abstentions are counted as rejections"] # [doc = "unless there is a prime member set and the prime member cast an approval."] # [doc = ""] # [doc = "If the close operation completes successfully with disapproval, the transaction fee will"] # [doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] # [doc = ""] # [doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] # [doc = "proposal."] # [doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] # [doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] # [doc = ""] # [doc = "# "] # [doc = "## Weight"] # [doc = "- `O(B + M + P1 + P2)` where:"] # [doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = " - `M` is members-count (code- and governance-bounded)"] # [doc = " - `P1` is the complexity of `proposal` preimage."] # [doc = " - `P2` is proposal-count (code-bounded)"] # [doc = "- DB:"] # [doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] # [doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] # [doc = " `O(P2)`)"] # [doc = " - any mutations done while executing `proposal` (`P1`)"] # [doc = "- up to 3 events"] # [doc = "# "] close_old_weight { proposal_hash : :: subxt :: utils :: H256 , # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] proposal_weight_bound : runtime_types :: sp_weights :: OldWeight , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] # [doc = "state."] # [doc = ""] # [doc = "Must be called by the Root origin."] # [doc = ""] # [doc = "Parameters:"] # [doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] # [doc = ""] # [doc = "# "] # [doc = "Complexity: O(P) where P is the number of max proposals"] # [doc = "DB Weight:"] # [doc = "* Reads: Proposals"] # [doc = "* Writes: Voting, Proposals, ProposalOf"] # [doc = "# "] disapprove_proposal { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 6)] # [doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] # [doc = ""] # [doc = "May be called by any signed account in order to finish voting and close the proposal."] # [doc = ""] # [doc = "If called before the end of the voting period it will only close the vote if it is"] # [doc = "has enough votes to be approved or disapproved."] # [doc = ""] # [doc = "If called after the end of the voting period abstentions are counted as rejections"] # [doc = "unless there is a prime member set and the prime member cast an approval."] # [doc = ""] # [doc = "If the close operation completes successfully with disapproval, the transaction fee will"] # [doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] # [doc = ""] # [doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] # [doc = "proposal."] # [doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] # [doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] # [doc = ""] # [doc = "# "] # [doc = "## Weight"] # [doc = "- `O(B + M + P1 + P2)` where:"] # [doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = " - `M` is members-count (code- and governance-bounded)"] # [doc = " - `P1` is the complexity of `proposal` preimage."] # [doc = " - `P2` is proposal-count (code-bounded)"] # [doc = "- DB:"] # [doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] # [doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] # [doc = " `O(P2)`)"] # [doc = " - any mutations done while executing `proposal` (`P1`)"] # [doc = "- up to 3 events"] # [doc = "# "] close { proposal_hash : :: subxt :: utils :: H256 , # [codec (compact)] index : :: core :: primitive :: u32 , proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account is not a member"] - NotMember, - #[codec(index = 1)] - #[doc = "Duplicate proposals not allowed"] - DuplicateProposal, - #[codec(index = 2)] - #[doc = "Proposal must exist"] - ProposalMissing, - #[codec(index = 3)] - #[doc = "Mismatched index"] - WrongIndex, - #[codec(index = 4)] - #[doc = "Duplicate vote ignored"] - DuplicateVote, - #[codec(index = 5)] - #[doc = "Members are already initialized!"] - AlreadyInitialized, - #[codec(index = 6)] - #[doc = "The close call was made too early, before the end of the voting."] - TooEarly, - #[codec(index = 7)] - #[doc = "There can only be a maximum of `MaxProposals` active proposals."] - TooManyProposals, - #[codec(index = 8)] - #[doc = "The given weight bound for the proposal was too low."] - WrongProposalWeight, - #[codec(index = 9)] - #[doc = "The given length bound for the proposal was too low."] - WrongProposalLength, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - Proposed { - account: ::subxt::utils::AccountId32, - proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::utils::H256, - threshold: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - Voted { - account: ::subxt::utils::AccountId32, - proposal_hash: ::subxt::utils::H256, - voted: ::core::primitive::bool, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "A motion was approved by the required threshold."] - Approved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 3)] - #[doc = "A motion was not approved by the required threshold."] - Disapproved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 4)] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - Executed { - proposal_hash: ::subxt::utils::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 5)] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - MemberExecuted { - proposal_hash: ::subxt::utils::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 6)] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - Closed { - proposal_hash: ::subxt::utils::H256, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Members(::core::primitive::u32, ::core::primitive::u32), - #[codec(index = 1)] - Member(_0), - #[codec(index = 2)] - _Phantom, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Votes<_0, _1> { - pub index: _1, - pub threshold: _1, - pub ayes: ::std::vec::Vec<_0>, - pub nays: ::std::vec::Vec<_0>, - pub end: _1, - } - } - pub mod pallet_democracy { - use super::runtime_types; - pub mod conviction { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Conviction { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Locked1x, - #[codec(index = 2)] - Locked2x, - #[codec(index = 3)] - Locked3x, - #[codec(index = 4)] - Locked4x, - #[codec(index = 5)] - Locked5x, - #[codec(index = 6)] - Locked6x, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Propose a sensitive action to be taken."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender must"] # [doc = "have funds to cover the deposit."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the proposal preimage."] # [doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] # [doc = ""] # [doc = "Emits `Proposed`."] propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Signals agreement with a particular proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender"] # [doc = "must have funds to cover the deposit, equal to the original deposit."] # [doc = ""] # [doc = "- `proposal`: The index of the proposal to second."] second { # [codec (compact)] proposal : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] # [doc = "- `vote`: The vote configuration."] vote { # [codec (compact)] ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 3)] # [doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancellationOrigin`."] # [doc = ""] # [doc = "-`ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "Weight: `O(1)`."] emergency_cancel { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `ExternalOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] # [doc = "an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_majority { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] # [doc = "schedule an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_default { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] # [doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] # [doc = "but it is not a majority-carries referendum then it fails."] # [doc = ""] # [doc = "The dispatch of this call must be `FastTrackOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the current external proposal."] # [doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] # [doc = "\tMust be always greater than zero."] # [doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] # [doc = "- `delay`: The number of block after voting has ended in approval and this should be"] # [doc = " enacted. This doesn't have a minimum amount."] # [doc = ""] # [doc = "Emits `Started`."] # [doc = ""] # [doc = "Weight: `O(1)`"] fast_track { proposal_hash : :: subxt :: utils :: H256 , voting_period : :: core :: primitive :: u32 , delay : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Veto and blacklist the external proposal hash."] # [doc = ""] # [doc = "The dispatch origin of this call must be `VetoOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] # [doc = ""] # [doc = "Emits `Vetoed`."] # [doc = ""] # [doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Remove a referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "- `ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "# Weight: `O(1)`."] cancel_referendum { # [codec (compact)] ref_index : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Delegate the voting power (with some given conviction) of the sending account."] # [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/consolidated"] # [doc = " through `reap_vote` or `unvote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [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 referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] delegate { to : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , balance : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Undelegate the voting power of the sending account."] # [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."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] undelegate , # [codec (index = 12)] # [doc = "Clears all public proposals."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "Weight: `O(1)`."] clear_public_proposals , # [codec (index = 13)] # [doc = "Unlock tokens that have an expired lock."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] unlock { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove a vote for a referendum."] # [doc = ""] # [doc = "If:"] # [doc = "- the referendum was cancelled, or"] # [doc = "- the referendum is ongoing, or"] # [doc = "- the referendum 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 referendum 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 referendum `index`."] # [doc = ""] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_vote { index : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Remove a vote for a referendum."] # [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 referendum was cancelled, because the voter lost the referendum 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"] # [doc = " referendum `index`."] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , index : :: core :: primitive :: u32 , } , # [codec (index = 16)] # [doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] # [doc = "proposed again."] # [doc = ""] # [doc = "If called on a queued public or external proposal, then this will result in it being"] # [doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] # [doc = "then it will be cancelled."] # [doc = ""] # [doc = "The dispatch origin of this call must be `BlacklistOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] # [doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] # [doc = "cancelled."] # [doc = ""] # [doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] # [doc = " reasonable value)."] blacklist { proposal_hash : :: subxt :: utils :: H256 , maybe_ref_index : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 17)] # [doc = "Remove a proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] # [doc = ""] # [doc = "- `prop_index`: The index of the proposal to cancel."] # [doc = ""] # [doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { # [codec (compact)] prop_index : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Value too low"] - ValueLow, - #[codec(index = 1)] - #[doc = "Proposal does not exist"] - ProposalMissing, - #[codec(index = 2)] - #[doc = "Cannot cancel the same proposal twice"] - AlreadyCanceled, - #[codec(index = 3)] - #[doc = "Proposal already made"] - DuplicateProposal, - #[codec(index = 4)] - #[doc = "Proposal still blacklisted"] - ProposalBlacklisted, - #[codec(index = 5)] - #[doc = "Next external proposal not simple majority"] - NotSimpleMajority, - #[codec(index = 6)] - #[doc = "Invalid hash"] - InvalidHash, - #[codec(index = 7)] - #[doc = "No external proposal"] - NoProposal, - #[codec(index = 8)] - #[doc = "Identity may not veto a proposal twice"] - AlreadyVetoed, - #[codec(index = 9)] - #[doc = "Vote given for invalid referendum"] - ReferendumInvalid, - #[codec(index = 10)] - #[doc = "No proposals waiting"] - NoneWaiting, - #[codec(index = 11)] - #[doc = "The given account did not vote on the referendum."] - NotVoter, - #[codec(index = 12)] - #[doc = "The actor has no permission to conduct the action."] - NoPermission, - #[codec(index = 13)] - #[doc = "The account is already delegating."] - AlreadyDelegating, - #[codec(index = 14)] - #[doc = "Too high a balance was provided that the account cannot afford."] - InsufficientFunds, - #[codec(index = 15)] - #[doc = "The account is not currently delegating."] - NotDelegating, - #[codec(index = 16)] - #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] - #[doc = "these are removed, either through `unvote` or `reap_vote`."] - VotesExist, - #[codec(index = 17)] - #[doc = "The instant referendum origin is currently disallowed."] - InstantNotAllowed, - #[codec(index = 18)] - #[doc = "Delegation to oneself makes no sense."] - Nonsense, - #[codec(index = 19)] - #[doc = "Invalid upper bound."] - WrongUpperBound, - #[codec(index = 20)] - #[doc = "Maximum number of votes reached."] - MaxVotesReached, - #[codec(index = 21)] - #[doc = "Maximum number of items reached."] - TooMany, - #[codec(index = 22)] - #[doc = "Voting period too low"] - VotingPeriodLow, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A motion has been proposed by a public account."] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "An external proposal has been tabled."] ExternalTabled , # [codec (index = 3)] # [doc = "A referendum has begun."] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] # [doc = "A proposal has been approved by referendum."] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proposal has been rejected by referendum."] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A referendum has been cancelled."] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "An account has delegated their vote to another account."] Delegated { who : :: subxt :: utils :: AccountId32 , target : :: subxt :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An account has cancelled a previous delegation operation."] Undelegated { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An external proposal has been vetoed."] Vetoed { who : :: subxt :: utils :: AccountId32 , proposal_hash : :: subxt :: utils :: H256 , until : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 11)] # [doc = "An account has voted in a referendum"] Voted { voter : :: subxt :: utils :: AccountId32 , ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 12)] # [doc = "An account has secconded a proposal"] Seconded { seconder : :: subxt :: utils :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , # [codec (index = 13)] # [doc = "A proposal got canceled."] ProposalCanceled { prop_index : :: core :: primitive :: u32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ReferendumInfo<_0, _1, _2> { - # [codec (index = 0)] Ongoing (runtime_types :: pallet_democracy :: types :: ReferendumStatus < _0 , _1 , _2 > ,) , # [codec (index = 1)] Finished { approved : :: core :: primitive :: bool , end : _0 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReferendumStatus < _0 , _1 , _2 > { pub end : _0 , pub proposal : _1 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , pub delay : _0 , pub tally : runtime_types :: pallet_democracy :: types :: Tally < _2 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub turnout: _0, - } - } - pub mod vote { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum AccountVote<_0> { - #[codec(index = 0)] - Standard { - vote: runtime_types::pallet_democracy::vote::Vote, - balance: _0, - }, - #[codec(index = 1)] - Split { aye: _0, nay: _0 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PriorLock<_0, _1>(pub _0, pub _1); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Vote(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Voting<_0, _1, _2> { - # [codec (index = 0)] Direct { votes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (_2 , runtime_types :: pallet_democracy :: vote :: AccountVote < _0 > ,) > , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , # [codec (index = 1)] Delegating { balance : _0 , target : _1 , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , } - } - pub mod vote_threshold { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum VoteThreshold { - #[codec(index = 0)] - SuperMajorityApprove, - #[codec(index = 1)] - SuperMajorityAgainst, - #[codec(index = 2)] - SimpleMajority, - } - } - } - pub mod pallet_dkg_metadata { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set the pending signature threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new signature threshold for the DKG."] set_signature_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 1)] # [doc = "Set the pending keygen threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new keygen threshold for the DKG."] set_keygen_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] # [doc = "proposal queue."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] # [doc = " unsigned refresh proposal to the unsigned proposal queue."] set_refresh_delay { new_delay : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Submits and stores the active public key for the genesis session into the on-chain"] # [doc = "storage. This is primarily used to separate the genesis public key submission from"] # [doc = "non-genesis rounds."] # [doc = ""] # [doc = "Can only be submitted by the current authorities. It is also required that a"] # [doc = "`SignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] # [doc = " DKG public keys."] submit_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 4)] # [doc = "Submits and stores the next public key for the next session into the on-chain storage."] # [doc = ""] # [doc = "Can only be submitted by the next authorities. It is also required that a"] # [doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] # [doc = " DKG public keys."] submit_next_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 5)] # [doc = "Submits the public key signature for the key refresh/rotation process."] # [doc = ""] # [doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] # [doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] # [doc = "DKG's public key. Successful storage of this public key signature also removes"] # [doc = "the unsigned `RefreshProposal` from the unsigned queue."] # [doc = ""] # [doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] # [doc = "the keys are immediately refreshed and the authority set is immediately rotated"] # [doc = "and incremented."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] # [doc = " and nonce."] submit_public_key_signature { signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } , # [codec (index = 6)] # [doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] # [doc = "verified against the current or next authorities depending on the type of misbehaviour."] # [doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] # [doc = "- Signing: Verifies against the current authorities, since they are doing signing."] # [doc = ""] # [doc = "Verifies the reports against the respective thresholds and if enough reports are met"] # [doc = "begins to jail and decrease the reputation of the offending authority."] # [doc = ""] # [doc = "The misbehaviour reputation update is:"] # [doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] # [doc = ""] # [doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] # [doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] # [doc = "accordingly."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] # [doc = " authority"] submit_misbehaviour_reports { reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] # [doc = "This can only be called by the controller of the authority in jail. The"] # [doc = "origin must map directly to the authority in jail."] # [doc = ""] # [doc = "The authority's jail sentence for either keygen or signing must be elapsed"] # [doc = "for the authority to be removed from the jail."] # [doc = ""] # [doc = "* `origin` - The account origin."] unjail , # [codec (index = 8)] # [doc = "Force removes an authority from keygen jail."] # [doc = ""] # [doc = "Can only be called by DKG"] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the keygen jail."] force_unjail_keygen { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 9)] # [doc = "Force removes an authority from signing jail."] # [doc = ""] # [doc = "Can only be called by the root origin."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the signing jail."] force_unjail_signing { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 10)] # [doc = "Forcefully rotate the DKG"] # [doc = ""] # [doc = "This forces the next authorities into the current authority spot and"] # [doc = "automatically increments the authority ID. It uses `change_authorities`"] # [doc = "to execute the rotation forcefully."] force_change_authorities , # [codec (index = 11)] # [doc = "Triggers an Emergency Keygen Porotocol."] # [doc = ""] # [doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] # [doc = "storage, which will be picked up by the on chain worker and stored on chain."] # [doc = ""] # [doc = "Note that, this will clear the next public key and its signature, if any."] trigger_emergency_keygen , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "No mapped account to authority"] - NoMappedAccount, - #[codec(index = 1)] - #[doc = "Invalid threshold"] - InvalidThreshold, - #[codec(index = 2)] - #[doc = "Must be queued to become an authority"] - MustBeAQueuedAuthority, - #[codec(index = 3)] - #[doc = "Must be an an authority"] - MustBeAnActiveAuthority, - #[codec(index = 4)] - #[doc = "Refresh delay should be in the range of 0% - 100%"] - InvalidRefreshDelay, - #[codec(index = 5)] - #[doc = "Invalid public key submission"] - InvalidPublicKeys, - #[codec(index = 6)] - #[doc = "Already submitted a public key"] - AlreadySubmittedPublicKey, - #[codec(index = 7)] - #[doc = "Already submitted a public key signature"] - AlreadySubmittedSignature, - #[codec(index = 8)] - #[doc = "Used signature from past sessions"] - UsedSignature, - #[codec(index = 9)] - #[doc = "Invalid public key signature submission"] - InvalidSignature, - #[codec(index = 10)] - #[doc = "Invalid Nonece used, must be greater than [`refresh_nonce`]."] - InvalidNonce, - #[codec(index = 11)] - #[doc = "Invalid misbehaviour reports"] - InvalidMisbehaviourReports, - #[codec(index = 12)] - #[doc = "DKG Refresh is already in progress."] - RefreshInProgress, - #[codec(index = 13)] - #[doc = "No NextPublicKey stored on-chain."] - NoNextPublicKey, - #[codec(index = 14)] - #[doc = "Must be calling from the controller account"] - InvalidControllerAccount, - #[codec(index = 15)] - #[doc = "Input is out of bounds"] - OutOfBounds, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Current public key submitted"] PublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Next public key submitted"] NextPublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Next public key signature submitted"] NextPublicKeySignatureSubmitted { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Current Public Key Changed."] PublicKeyChanged { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Current Public Key Signature Changed."] PublicKeySignatureChanged { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Misbehaviour reports submitted"] MisbehaviourReportsSubmitted { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , reporters : :: std :: vec :: Vec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , offender : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 6)] # [doc = "Refresh DKG Keys Finished (forcefully)."] RefreshKeysFinished { next_authority_set_id : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "NextKeygenThreshold updated"] NextKeygenThresholdUpdated { next_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 8)] # [doc = "NextSignatureThreshold updated"] NextSignatureThresholdUpdated { next_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 9)] # [doc = "PendingKeygenThreshold updated"] PendingKeygenThresholdUpdated { pending_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 10)] # [doc = "PendingSignatureThreshold updated"] PendingSignatureThresholdUpdated { pending_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 11)] # [doc = "An Emergency Keygen Protocol was triggered."] EmergencyKeygenTriggered , # [codec (index = 12)] # [doc = "An authority has been jailed for misbehaviour"] AuthorityJailed { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 13)] # [doc = "An authority has been unjailed"] AuthorityUnJailed { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RoundMetadata < _0 , _1 > { pub curr_round_pub_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub next_round_pub_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub refresh_signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_0 , _1) > } - } - } - pub mod pallet_dkg_proposal_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] submit_signed_proposals { props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } , # [codec (index = 1)] # [doc = "Force submit an unsigned proposal to the DKG"] # [doc = ""] # [doc = "There are certain proposals we'd like to be proposable only"] # [doc = "through root actions. The currently supported proposals are"] # [doc = "\t1. Updating"] force_submit_unsigned_proposal { prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Error names should be descriptive."] - NoneValue, - #[codec(index = 1)] - #[doc = "Errors should have helpful documentation associated with them."] - StorageOverflow, - #[codec(index = 2)] - #[doc = "Proposal format is invalid"] - ProposalFormatInvalid, - #[codec(index = 3)] - #[doc = "Proposal must be unsigned"] - ProposalMustBeUnsigned, - #[codec(index = 4)] - #[doc = "Proposal bytes length is invalid"] - InvalidProposalBytesLength, - #[codec(index = 5)] - #[doc = "Proposal signature is invalid"] - ProposalSignatureInvalid, - #[codec(index = 6)] - #[doc = "No proposal with the ID was found"] - ProposalDoesNotExists, - #[codec(index = 7)] - #[doc = "Proposal with the ID has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 8)] - #[doc = "Chain id is invalid"] - ChainIdInvalid, - #[codec(index = 9)] - #[doc = "Proposal length exceeds max allowed per batch"] - ProposalsLengthOverflow, - #[codec(index = 10)] - #[doc = "Proposal out of bounds"] - ProposalOutOfBounds, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] InvalidProposalSignature { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , invalid_signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , expected_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , actual_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 1)] # [doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] ProposalAdded { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] ProposalRemoved { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , expired : :: core :: primitive :: bool , } , # [codec (index = 3)] # [doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] ProposalSigned { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , } - } - } - pub mod pallet_dkg_proposals { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Sets the vote threshold for proposals."] # [doc = ""] # [doc = "This threshold is used to determine how many votes are required"] # [doc = "before a proposal is executed."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] set_threshold { threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , method : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 4)] # [doc = "Adds a new proposer to the proposer set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] add_proposer { native_account : :: subxt :: utils :: AccountId32 , external_account : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "Removes an existing proposer from the set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and removal"] # [doc = "# "] remove_proposer { v : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Commits a vote in favour of the provided proposal."] # [doc = ""] # [doc = "If a proposal with the given nonce and source chain ID does not"] # [doc = "already exist, it will be created with an initial vote in favour"] # [doc = "from the caller."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] acknowledge_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 7)] # [doc = "Commits a vote against a provided proposal."] # [doc = ""] # [doc = "# "] # [doc = "- Fixed, since execution of proposal should not be included"] # [doc = "# "] reject_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 8)] # [doc = "Evaluate the state of a proposal given the current vote threshold."] # [doc = ""] # [doc = "A proposal with enough votes will be either executed or cancelled,"] # [doc = "and the status will be updated accordingly."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] eval_vote_state { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Proposer threshold not set"] - ThresholdNotSet, - #[codec(index = 2)] - #[doc = "Provided chain Id is not valid"] - InvalidChainId, - #[codec(index = 3)] - #[doc = "Proposer threshold cannot be 0"] - InvalidThreshold, - #[codec(index = 4)] - #[doc = "Interactions with this chain is not permitted"] - ChainNotWhitelisted, - #[codec(index = 5)] - #[doc = "Chain has already been enabled"] - ChainAlreadyWhitelisted, - #[codec(index = 6)] - #[doc = "Resource ID provided isn't mapped to anything"] - ResourceDoesNotExist, - #[codec(index = 7)] - #[doc = "Proposer already in set"] - ProposerAlreadyExists, - #[codec(index = 8)] - #[doc = "Provided accountId is not a proposer"] - ProposerInvalid, - #[codec(index = 9)] - #[doc = "Protected operation, must be performed by proposer"] - MustBeProposer, - #[codec(index = 10)] - #[doc = "Proposer has already submitted some vote for this proposal"] - ProposerAlreadyVoted, - #[codec(index = 11)] - #[doc = "A proposal with these parameters has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 12)] - #[doc = "No proposal with the ID was found"] - ProposalDoesNotExist, - #[codec(index = 13)] - #[doc = "Cannot complete proposal, needs more votes"] - ProposalNotComplete, - #[codec(index = 14)] - #[doc = "Proposal has either failed or succeeded"] - ProposalAlreadyComplete, - #[codec(index = 15)] - #[doc = "Lifetime of proposal has been exceeded"] - ProposalExpired, - #[codec(index = 16)] - #[doc = "Proposer Count is Zero"] - ProposerCountIsZero, - #[codec(index = 17)] - #[doc = "Input is out of bounds"] - OutOfBounds, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Vote threshold has changed (new_threshold)"] - ProposerThresholdChanged { - new_threshold: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Chain now available for transfers (chain_id)"] - ChainWhitelisted { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - }, - #[codec(index = 2)] - #[doc = "Proposer added to set"] - ProposerAdded { - proposer_id: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "Proposer removed from set"] - ProposerRemoved { - proposer_id: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "Vote submitted in favour of proposal"] - VoteFor { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "Vot submitted against proposal"] - VoteAgainst { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 6)] - #[doc = "Voting successful for a proposal"] - ProposalApproved { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 7)] - #[doc = "Voting rejected a proposal"] - ProposalRejected { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 8)] - #[doc = "Execution of call succeeded"] - ProposalSucceeded { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 9)] - #[doc = "Execution of call failed"] - ProposalFailed { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 10)] - #[doc = "Proposers have been reset"] - AuthorityProposersReset { - proposers: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ProposalStatus { - #[codec(index = 0)] - Initiated, - #[codec(index = 1)] - Approved, - #[codec(index = 2)] - Rejected, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProposalVotes < _0 , _1 , _2 > { pub votes_for : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub votes_against : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub status : runtime_types :: pallet_dkg_proposals :: types :: ProposalStatus , pub expiry : _1 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _2 > } - } - } - pub mod pallet_ecdsa_claims { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Make a claim to collect your WEBBs."] - #[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::utils::AccountId32, - ethereum_signature: - runtime_types::pallet_ecdsa_claims::EcdsaSignature, - }, - #[codec(index = 1)] - #[doc = "Mint a new claim to collect WEBBs."] - #[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 WEBBs that will be claimed."] - #[doc = "- `vesting_schedule`: An optional vesting schedule for these WEBBs."] - #[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::pallet_ecdsa_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::pallet_ecdsa_claims::StatementKind, - >, - }, - #[codec(index = 2)] - #[doc = "Make a claim to collect your WEBBs 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::utils::AccountId32, - ethereum_signature: - runtime_types::pallet_ecdsa_claims::EcdsaSignature, - statement: ::std::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: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - move_claim { - old: - runtime_types::pallet_ecdsa_claims::EthereumAddress, - new: - runtime_types::pallet_ecdsa_claims::EthereumAddress, - maybe_preclaim: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 5)] - #[doc = "Set the value for expiryconfig"] - #[doc = "Can only be called by ForceOrigin"] - force_set_expiry_config { - expiry_block: ::core::primitive::u32, - dest: ::subxt::utils::AccountId32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid Ethereum signature."] - InvalidEthereumSignature, - #[codec(index = 1)] - #[doc = "Ethereum address has no claim."] - SignerHasNoClaim, - #[codec(index = 2)] - #[doc = "Account ID sending transaction has no claim."] - SenderHasNoClaim, - #[codec(index = 3)] - #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] - #[doc = "logic error."] - PotUnderflow, - #[codec(index = 4)] - #[doc = "A needed statement was not included."] - InvalidStatement, - #[codec(index = 5)] - #[doc = "The account already has a vested balance."] - VestedBalanceExists, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Someone claimed some WEBBs."] - Claimed { - who: ::subxt::utils::AccountId32, - ethereum_address: - runtime_types::pallet_ecdsa_claims::EthereumAddress, - amount: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum StatementKind { - #[codec(index = 0)] - Regular, - #[codec(index = 1)] - Saft, - } - } - pub mod pallet_election_provider_multi_phase { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } - } - pub mod signed { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ElectionCompute { - #[codec(index = 0)] - OnChain, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned, - #[codec(index = 3)] - Fallback, - #[codec(index = 4)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Phase<_0> { - #[codec(index = 0)] - Off, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned((::core::primitive::bool, _0)), - #[codec(index = 3)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub round: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ReadySolution { pub supports : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: ::core::primitive::u32, - #[codec(compact)] - pub targets: ::core::primitive::u32, - } - } - pub mod pallet_elections_phragmen { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] # [doc = "set the initial votes, or update already existing votes."] # [doc = ""] # [doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] # [doc = "reserved. The deposit is based on the number of votes and can be updated over time."] # [doc = ""] # [doc = "The `votes` should:"] # [doc = " - not be empty."] # [doc = " - be less than the number of possible candidates. Note that all current members and"] # [doc = " runners-up are also automatically candidates for the next round."] # [doc = ""] # [doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] # [doc = "lock and keep some for further operations."] # [doc = ""] # [doc = "# "] # [doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] # [doc = "# "] vote { votes : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Remove `origin` as a voter."] # [doc = ""] # [doc = "This removes the lock and returns the deposit."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter , # [codec (index = 2)] # [doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] # [doc = ""] # [doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] # [doc = "or leave the system while their deposit is slashed."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] # [doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] # [doc = ""] # [doc = "# "] # [doc = "The number of current candidates must be provided as witness data."] # [doc = "# "] submit_candidacy { # [codec (compact)] candidate_count : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] # [doc = "outcomes exist:"] # [doc = ""] # [doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] # [doc = " unreserved, returned and origin is removed as a candidate."] # [doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] # [doc = " origin is removed as a runner-up."] # [doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] # [doc = " removed as a member, consequently not being a candidate for the next round anymore."] # [doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] # [doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] # [doc = " next round."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed, and have one of the above roles."] # [doc = ""] # [doc = "# "] # [doc = "The type of renouncing must be provided as witness data."] # [doc = "# "] renounce_candidacy { renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing , } , # [codec (index = 4)] # [doc = "Remove a particular member from the set. This is effective immediately and the bond of"] # [doc = "the outgoing member is slashed."] # [doc = ""] # [doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] # [doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] # [doc = "started, else, nothing happens."] # [doc = ""] # [doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] # [doc = "it is returned."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "Note that this does not affect the designated block number of the next election."] # [doc = ""] # [doc = "# "] # [doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] # [doc = "will go into phragmen, we assume full block for now."] # [doc = "# "] remove_member { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , slash_bond : :: core :: primitive :: bool , rerun_election : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] # [doc = "deposit of the removed voters are returned."] # [doc = ""] # [doc = "This is an root function to be used only for cleaning the state."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "# "] # [doc = "The total number of voters and those that are defunct must be provided as witness data."] # [doc = "# "] clean_defunct_voters { num_voters : :: core :: primitive :: u32 , num_defunct : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Cannot vote when no candidates or members exist."] - UnableToVote, - #[codec(index = 1)] - #[doc = "Must vote for at least one candidate."] - NoVotes, - #[codec(index = 2)] - #[doc = "Cannot vote more than candidates."] - TooManyVotes, - #[codec(index = 3)] - #[doc = "Cannot vote more than maximum allowed."] - MaximumVotesExceeded, - #[codec(index = 4)] - #[doc = "Cannot vote with stake less than minimum balance."] - LowBalance, - #[codec(index = 5)] - #[doc = "Voter can not pay voting bond."] - UnableToPayBond, - #[codec(index = 6)] - #[doc = "Must be a voter."] - MustBeVoter, - #[codec(index = 7)] - #[doc = "Duplicated candidate submission."] - DuplicatedCandidate, - #[codec(index = 8)] - #[doc = "Too many candidates have been created."] - TooManyCandidates, - #[codec(index = 9)] - #[doc = "Member cannot re-submit candidacy."] - MemberSubmit, - #[codec(index = 10)] - #[doc = "Runner cannot re-submit candidacy."] - RunnerUpSubmit, - #[codec(index = 11)] - #[doc = "Candidate does not have enough funds."] - InsufficientCandidateFunds, - #[codec(index = 12)] - #[doc = "Not a member."] - NotMember, - #[codec(index = 13)] - #[doc = "The provided count of number of candidates is incorrect."] - InvalidWitnessData, - #[codec(index = 14)] - #[doc = "The provided count of number of votes is incorrect."] - InvalidVoteCount, - #[codec(index = 15)] - #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] - InvalidRenouncing, - #[codec(index = 16)] - #[doc = "Prediction regarding replacement after member removal is wrong."] - InvalidReplacement, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - NewTerm { - new_members: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - }, - #[codec(index = 1)] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - EmptyTerm, - #[codec(index = 2)] - #[doc = "Internal error happened while trying to perform election."] - ElectionError, - #[codec(index = 3)] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - MemberKicked { member: ::subxt::utils::AccountId32 }, - #[codec(index = 4)] - #[doc = "Someone has renounced their candidacy."] - Renounced { - candidate: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - CandidateSlashed { - candidate: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - SeatHolderSlashed { - seat_holder: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Renouncing { - #[codec(index = 0)] - Member, - #[codec(index = 1)] - RunnerUp, - #[codec(index = 2)] - Candidate(#[codec(compact)] ::core::primitive::u32), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SeatHolder<_0, _1> { - pub who: _0, - pub stake: _1, - pub deposit: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Voter<_0, _1> { - pub votes: ::std::vec::Vec<_0>, - pub stake: _1, - pub deposit: _1, - } - } - pub mod pallet_eth2_light_client { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - init { - typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - args: ::std::boxed::Box< - runtime_types::eth_types::pallet::InitInput< - ::subxt::utils::AccountId32, - >, - >, - }, - #[codec(index = 1)] - register_submitter { - typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - }, - #[codec(index = 2)] - unregister_submitter { - typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - }, - #[codec(index = 3)] - submit_beacon_chain_light_client_update { - typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - light_client_update: - runtime_types::eth_types::eth2::LightClientUpdate, - }, - #[codec(index = 4)] - submit_execution_header { - typed_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - block_header: runtime_types::eth_types::BlockHeader, - }, - #[codec(index = 5)] - update_trusted_signer { - trusted_signer: ::subxt::utils::AccountId32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The light client is already initialized for the typed chain ID"] - AlreadyInitialized, - #[codec(index = 1)] - #[doc = "For attempting to register"] - SubmitterAlreadyRegistered, - #[codec(index = 2)] - #[doc = "For attempting to unregister"] - SubmitterNotRegistered, - #[codec(index = 3)] - #[doc = "For attempting to unregister"] - SubmitterHasUsedStorage, - #[codec(index = 4)] - #[doc = "For attempting to update the light client"] - LightClientUpdateNotAllowed, - #[codec(index = 5)] - #[doc = "Block already submitted"] - BlockAlreadySubmitted, - #[codec(index = 6)] - #[doc = "Unknown parent block header hash"] - UnknownParentHeader, - #[codec(index = 7)] - #[doc = "Self-explanatory"] - NotTrustedSigner, - #[codec(index = 8)] - #[doc = "The updates validation can't be disabled for mainnet"] - ValidateUpdatesParameterError, - #[codec(index = 9)] - #[doc = "The client can't be executed in the trustless mode without BLS sigs verification on"] - #[doc = "Mainnet"] - TrustlessModeError, - #[codec(index = 10)] - InvalidSyncCommitteeBitsSum, - #[codec(index = 11)] - SyncCommitteeBitsSumLessThanThreshold, - #[codec(index = 12)] - ForkVersionNotFound, - #[codec(index = 13)] - ForkEpochNotFound, - #[codec(index = 14)] - GenesisValidatorsRootNotFound, - #[codec(index = 15)] - InvalidBlsSignature, - #[codec(index = 16)] - InvalidExecutionBlock, - #[codec(index = 17)] - ActiveHeaderSlotNumberLessThanFinalizedSlot, - #[codec(index = 18)] - InvalidUpdatePeriod, - #[codec(index = 19)] - InvalidFinalityProof, - #[codec(index = 20)] - InvalidExecutionBlockHashProof, - #[codec(index = 21)] - NextSyncCommitteeNotPresent, - #[codec(index = 22)] - InvalidNextSyncCommitteeProof, - #[codec(index = 23)] - FinalizedExecutionHeaderNotPresent, - #[codec(index = 24)] - FinalizedBeaconHeaderNotPresent, - #[codec(index = 25)] - UnfinalizedHeaderNotPresent, - #[codec(index = 26)] - SyncCommitteeUpdateNotPresent, - #[codec(index = 27)] - SubmitterExhaustedLimit, - #[codec(index = 28)] - HeaderHashDoesNotExist, - #[codec(index = 29)] - BlockHashesDoNotMatch, - #[codec(index = 30)] - InvalidSignaturePeriod, - #[codec(index = 31)] - CurrentSyncCommitteeNotSet, - #[codec(index = 32)] - NextSyncCommitteeNotSet, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] Init { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , header_info : runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 1)] RegisterSubmitter { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , submitter : :: subxt :: utils :: AccountId32 , } , # [codec (index = 2)] UnregisterSubmitter { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , submitter : :: subxt :: utils :: AccountId32 , } , # [codec (index = 3)] SubmitBeaconChainLightClientUpdate { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , submitter : :: subxt :: utils :: AccountId32 , beacon_block_header : runtime_types :: eth_types :: eth2 :: BeaconBlockHeader , } , # [codec (index = 4)] SubmitExecutionHeader { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , header_info : runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 5)] UpdateTrustedSigner { trusted_signer : :: subxt :: utils :: AccountId32 , } , } - } - } - pub mod pallet_grandpa { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New authority set has been applied."] - NewAuthorities { - authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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_hasher { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - HashingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during hashing"] - HashError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_identity { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Identity pallet declaration."] - pub enum Call { - # [codec (index = 0)] # [doc = "Add a registrar to the system."] # [doc = ""] # [doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] # [doc = ""] # [doc = "- `account`: the account of the registrar."] # [doc = ""] # [doc = "Emits `RegistrarAdded` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] # [doc = "- One storage mutation (codec `O(R)`)."] # [doc = "- One event."] # [doc = "# "] add_registrar { account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `IdentitySet` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(X + X' + R)`"] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] # [doc = " - where `R` judgements-count (registrar-count-bounded)"] # [doc = "- One balance reserve operation."] # [doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] # [doc = "- One event."] # [doc = "# "] set_identity { info : :: std :: boxed :: Box < runtime_types :: pallet_identity :: types :: IdentityInfo > , } , # [codec (index = 2)] # [doc = "Set the sub-accounts of the sender."] # [doc = ""] # [doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] # [doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "- `subs`: The identity's (new) sub-accounts."] # [doc = ""] # [doc = "# "] # [doc = "- `O(P + S)`"] # [doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = "- At most one balance operations."] # [doc = "- DB:"] # [doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] # [doc = " - One storage read (codec complexity `O(P)`)."] # [doc = " - One storage write (codec complexity `O(S)`)."] # [doc = " - One storage-exists (`IdentityOf::contains_key`)."] # [doc = "# "] set_subs { subs : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , } , # [codec (index = 3)] # [doc = "Clear an account's identity info and all sub-accounts and return all deposits."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "Emits `IdentityCleared` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] # [doc = "- One balance-unreserve operation."] # [doc = "- `2` storage reads and `S + 2` storage deletions."] # [doc = "- One event."] # [doc = "# "] clear_identity , # [codec (index = 4)] # [doc = "Request a judgement from a registrar."] # [doc = ""] # [doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] # [doc = "given."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is requested."] # [doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] # [doc = ""] # [doc = "```nocompile"] # [doc = "Self::registrars().get(reg_index).unwrap().fee"] # [doc = "```"] # [doc = ""] # [doc = "Emits `JudgementRequested` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] # [doc = "- One event."] # [doc = "# "] request_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , # [codec (compact)] max_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Cancel a previous request."] # [doc = ""] # [doc = "Payment: A previously reserved deposit is returned on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] # [doc = ""] # [doc = "Emits `JudgementUnrequested` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- One storage mutation `O(R + X)`."] # [doc = "- One event"] # [doc = "# "] cancel_request { reg_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the fee required for a judgement to be requested from a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fee`: the new fee."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] # [doc = "# "] set_fee { # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "Change the account associated with a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `new`: the new account ID."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] # [doc = "# "] set_account_id { # [codec (compact)] index : :: core :: primitive :: u32 , new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 8)] # [doc = "Set the field information for a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fields`: the fields that the registrar concerns themselves with."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] # [doc = "# "] set_fields { # [codec (compact)] index : :: core :: primitive :: u32 , fields : runtime_types :: pallet_identity :: types :: BitFlags < runtime_types :: pallet_identity :: types :: IdentityField > , } , # [codec (index = 9)] # [doc = "Provide a judgement for an account's identity."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `reg_index`."] # [doc = ""] # [doc = "- `reg_index`: the index of the registrar whose judgement is being made."] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] # [doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] # [doc = ""] # [doc = "Emits `JudgementGiven` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-transfer operation."] # [doc = "- Up to one account-lookup operation."] # [doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] # [doc = "- One event."] # [doc = "# "] provide_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , judgement : runtime_types :: pallet_identity :: types :: Judgement < :: core :: primitive :: u128 > , identity : :: subxt :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Remove an account's identity and sub-account information and slash the deposits."] # [doc = ""] # [doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] # [doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] # [doc = "manually using `cancel_request`."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] # [doc = ""] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = ""] # [doc = "Emits `IdentityKilled` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + S + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- `S + 2` storage mutations."] # [doc = "- One event."] # [doc = "# "] kill_identity { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 11)] # [doc = "Add the given account to the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] add_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 12)] # [doc = "Alter the associated name of the given sub-account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] rename_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 13)] # [doc = "Remove the given account from the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] remove_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove the sender as a sub-account."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender (*not* the original depositor)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "super-identity."] # [doc = ""] # [doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] # [doc = "controller of an account is maliciously registered as a sub-account."] quit_sub , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Too many subs-accounts."] - TooManySubAccounts, - #[codec(index = 1)] - #[doc = "Account isn't found."] - NotFound, - #[codec(index = 2)] - #[doc = "Account isn't named."] - NotNamed, - #[codec(index = 3)] - #[doc = "Empty index."] - EmptyIndex, - #[codec(index = 4)] - #[doc = "Fee is changed."] - FeeChanged, - #[codec(index = 5)] - #[doc = "No identity found."] - NoIdentity, - #[codec(index = 6)] - #[doc = "Sticky judgement."] - StickyJudgement, - #[codec(index = 7)] - #[doc = "Judgement given."] - JudgementGiven, - #[codec(index = 8)] - #[doc = "Invalid judgement."] - InvalidJudgement, - #[codec(index = 9)] - #[doc = "The index is invalid."] - InvalidIndex, - #[codec(index = 10)] - #[doc = "The target is invalid."] - InvalidTarget, - #[codec(index = 11)] - #[doc = "Too many additional fields."] - TooManyFields, - #[codec(index = 12)] - #[doc = "Maximum amount of registrars reached. Cannot add any more."] - TooManyRegistrars, - #[codec(index = 13)] - #[doc = "Account ID is already named."] - AlreadyClaimed, - #[codec(index = 14)] - #[doc = "Sender is not a sub-account."] - NotSub, - #[codec(index = 15)] - #[doc = "Sub-account isn't owned by sender."] - NotOwned, - #[codec(index = 16)] - #[doc = "The provided judgement was for a different identity."] - JudgementForDifferentIdentity, - #[codec(index = 17)] - #[doc = "Error that occurs when there is an issue paying for judgement."] - JudgementPaymentFailed, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A name was set or reset (which will remove all judgements)."] - IdentitySet { who: ::subxt::utils::AccountId32 }, - #[codec(index = 1)] - #[doc = "A name was cleared, and the given balance returned."] - IdentityCleared { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "A name was removed and the given balance slashed."] - IdentityKilled { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A judgement was asked from a registrar."] - JudgementRequested { - who: ::subxt::utils::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A judgement request was retracted."] - JudgementUnrequested { - who: ::subxt::utils::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "A judgement was given by a registrar."] - JudgementGiven { - target: ::subxt::utils::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "A registrar was added."] - RegistrarAdded { - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 7)] - #[doc = "A sub-identity was added to an identity and the deposit paid."] - SubIdentityAdded { - sub: ::subxt::utils::AccountId32, - main: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "A sub-identity was removed from an identity and the deposit freed."] - SubIdentityRemoved { - sub: ::subxt::utils::AccountId32, - main: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] - #[doc = "main identity account to the sub-identity account."] - SubIdentityRevoked { - sub: ::subxt::utils::AccountId32, - main: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BitFlags<_0>( - pub ::core::primitive::u64, - #[codec(skip)] pub ::core::marker::PhantomData<_0>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Data { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Raw0([::core::primitive::u8; 0usize]), - #[codec(index = 2)] - Raw1([::core::primitive::u8; 1usize]), - #[codec(index = 3)] - Raw2([::core::primitive::u8; 2usize]), - #[codec(index = 4)] - Raw3([::core::primitive::u8; 3usize]), - #[codec(index = 5)] - Raw4([::core::primitive::u8; 4usize]), - #[codec(index = 6)] - Raw5([::core::primitive::u8; 5usize]), - #[codec(index = 7)] - Raw6([::core::primitive::u8; 6usize]), - #[codec(index = 8)] - Raw7([::core::primitive::u8; 7usize]), - #[codec(index = 9)] - Raw8([::core::primitive::u8; 8usize]), - #[codec(index = 10)] - Raw9([::core::primitive::u8; 9usize]), - #[codec(index = 11)] - Raw10([::core::primitive::u8; 10usize]), - #[codec(index = 12)] - Raw11([::core::primitive::u8; 11usize]), - #[codec(index = 13)] - Raw12([::core::primitive::u8; 12usize]), - #[codec(index = 14)] - Raw13([::core::primitive::u8; 13usize]), - #[codec(index = 15)] - Raw14([::core::primitive::u8; 14usize]), - #[codec(index = 16)] - Raw15([::core::primitive::u8; 15usize]), - #[codec(index = 17)] - Raw16([::core::primitive::u8; 16usize]), - #[codec(index = 18)] - Raw17([::core::primitive::u8; 17usize]), - #[codec(index = 19)] - Raw18([::core::primitive::u8; 18usize]), - #[codec(index = 20)] - Raw19([::core::primitive::u8; 19usize]), - #[codec(index = 21)] - Raw20([::core::primitive::u8; 20usize]), - #[codec(index = 22)] - Raw21([::core::primitive::u8; 21usize]), - #[codec(index = 23)] - Raw22([::core::primitive::u8; 22usize]), - #[codec(index = 24)] - Raw23([::core::primitive::u8; 23usize]), - #[codec(index = 25)] - Raw24([::core::primitive::u8; 24usize]), - #[codec(index = 26)] - Raw25([::core::primitive::u8; 25usize]), - #[codec(index = 27)] - Raw26([::core::primitive::u8; 26usize]), - #[codec(index = 28)] - Raw27([::core::primitive::u8; 27usize]), - #[codec(index = 29)] - Raw28([::core::primitive::u8; 28usize]), - #[codec(index = 30)] - Raw29([::core::primitive::u8; 29usize]), - #[codec(index = 31)] - Raw30([::core::primitive::u8; 30usize]), - #[codec(index = 32)] - Raw31([::core::primitive::u8; 31usize]), - #[codec(index = 33)] - Raw32([::core::primitive::u8; 32usize]), - #[codec(index = 34)] - BlakeTwo256([::core::primitive::u8; 32usize]), - #[codec(index = 35)] - Sha256([::core::primitive::u8; 32usize]), - #[codec(index = 36)] - Keccak256([::core::primitive::u8; 32usize]), - #[codec(index = 37)] - ShaThree256([::core::primitive::u8; 32usize]), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum IdentityField { - #[codec(index = 1)] - Display, - #[codec(index = 2)] - Legal, - #[codec(index = 4)] - Web, - #[codec(index = 8)] - Riot, - #[codec(index = 16)] - Email, - #[codec(index = 32)] - PgpFingerprint, - #[codec(index = 64)] - Image, - #[codec(index = 128)] - Twitter, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct IdentityInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub legal : runtime_types :: pallet_identity :: types :: Data , pub web : runtime_types :: pallet_identity :: types :: Data , pub riot : runtime_types :: pallet_identity :: types :: Data , pub email : runtime_types :: pallet_identity :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_identity :: types :: Data , pub twitter : runtime_types :: pallet_identity :: types :: Data , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Judgement<_0> { - #[codec(index = 0)] - Unknown, - #[codec(index = 1)] - FeePaid(_0), - #[codec(index = 2)] - Reasonable, - #[codec(index = 3)] - KnownGood, - #[codec(index = 4)] - OutOfDate, - #[codec(index = 5)] - LowQuality, - #[codec(index = 6)] - Erroneous, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RegistrarInfo<_0, _1> { - pub account: _1, - pub fee: _0, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Registration < _0 > { pub judgements : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_identity :: types :: Judgement < _0 > ,) > , pub deposit : _0 , pub info : runtime_types :: pallet_identity :: types :: IdentityInfo , } - } - } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Non existent public key."] - InvalidKey, - #[codec(index = 1)] - #[doc = "Duplicated heartbeat."] - DuplicatedHeartbeat, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } - } - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public( - pub runtime_types::sp_core::sr25519::Public, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature( - pub runtime_types::sp_core::sr25519::Signature, - ); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub network_state: - runtime_types::sp_core::offchain::OpaqueNetworkState, - pub session_index: _0, - pub authority_index: _0, - pub validators_len: _0, - } - } - pub mod pallet_indices { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] - transfer { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] - force_transfer { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - freeze { index: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A account index was assigned."] - IndexAssigned { - who: ::subxt::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::utils::AccountId32, - }, - } - } - } - pub mod pallet_key_storage { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] register { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - PubKeyOutOfBounds, - #[codec(index = 1)] - MaxPubkeyOwnersExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Public key registration"] PublicKeyRegistration { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - } - } - pub mod pallet_linkable_tree { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - create { - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - UnknownRoot, - #[codec(index = 1)] - #[doc = "Invalid Merkle Roots"] - InvalidMerkleRoots, - #[codec(index = 2)] - #[doc = "Invalid neighbor root passed in withdrawal"] - #[doc = "(neighbor root is not in neighbor history)"] - InvalidNeighborWithdrawRoot, - #[codec(index = 3)] - #[doc = "Anchor is at maximum number of edges for the given tree"] - TooManyEdges, - #[codec(index = 4)] - #[doc = "Edge already exists"] - EdgeAlreadyExists, - #[codec(index = 5)] - #[doc = "Edge does not exist"] - EdgeDoesntExists, - #[codec(index = 6)] - #[doc = "Invalid latest leaf index"] - InvalidLatestLeafIndex, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - LinkableTreeCreation { tree_id: ::core::primitive::u32 }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EdgeMetadata<_0, _1, _2> { - pub src_chain_id: _0, - pub root: _1, - pub latest_leaf_index: _2, - pub src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - } - } - } - pub mod pallet_mixer { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { deposit_size : :: core :: primitive :: u128 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] deposit { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 2)] withdraw { id : :: core :: primitive :: u32 , proof_bytes : :: std :: vec :: Vec < :: core :: primitive :: u8 > , root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , nullifier_hash : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , recipient : :: subxt :: utils :: AccountId32 , relayer : :: subxt :: utils :: AccountId32 , fee : :: core :: primitive :: u128 , refund : :: core :: primitive :: u128 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Invalid withdraw proof"] - InvalidWithdrawProof, - #[codec(index = 2)] - #[doc = "Invalid nullifier that is already used"] - #[doc = "(this error is returned when a nullifier is used twice)"] - AlreadyRevealedNullifier, - #[codec(index = 3)] - InvalidArbitraryData, - #[codec(index = 4)] - #[doc = "Invalid root"] - UnknownRoot, - #[codec(index = 5)] - #[doc = "No mixer found"] - NoMixerFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "New tree created"] MixerCreation { tree_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] Deposit { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 2)] Withdraw { tree_id : :: core :: primitive :: u32 , recipient : :: subxt :: utils :: AccountId32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MixerMetadata<_0, _1> { - pub deposit_size: _0, - pub asset: _1, - } - } - } - pub mod pallet_mt { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { depth : :: core :: primitive :: u8 , } , # [codec (index = 1)] insert { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 2)] force_set_default_hashes { default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Invalid depth of the tree specified"] - InvalidTreeDepth, - #[codec(index = 2)] - #[doc = "Invalid leaf index, either taken or too large"] - InvalidLeafIndex, - #[codec(index = 3)] - #[doc = "Tree is full"] - ExceedsMaxLeaves, - #[codec(index = 4)] - #[doc = "Tree doesnt exist"] - TreeDoesntExist, - #[codec(index = 5)] - #[doc = "Invalid length for default hashes"] - ExceedsMaxDefaultHashes, - #[codec(index = 6)] - #[doc = "Invalid length for edges"] - ExceedsMaxEdges, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "New tree created"] TreeCreation { tree_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "New leaf inserted"] LeafInsertion { tree_id : :: core :: primitive :: u32 , leaf_index : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct TreeMetadata < _0 , _1 , _2 , _3 > { pub creator : :: core :: option :: Option < _0 > , pub paused : :: core :: primitive :: bool , pub leaf_count : _1 , pub max_leaves : _1 , pub depth : :: core :: primitive :: u8 , pub root : _2 , pub edge_nodes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _2 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } - } - } - pub mod pallet_nomination_pools { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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."] - 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 there 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\"."] - 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 state-toggler. This is"] - #[doc = " refereed to 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 their 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 state-toggler."] - #[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."] - withdraw_unbonded { - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - create { - #[codec(compact)] - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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."] - nominate { - pool_id: ::core::primitive::u32, - validators: - ::std::vec::Vec<::subxt::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 state toggler, 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 state toggler, or the root role"] - #[doc = "of the pool."] - set_metadata { - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - 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, - >, - }, - #[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::utils::AccountId32, - >, - new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 13)] - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - chill { pool_id: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DefensiveError { - #[codec(index = 0)] - NotEnoughSpaceInUnbondPool, - #[codec(index = 1)] - PoolNotFound, - #[codec(index = 2)] - RewardPoolNotFound, - #[codec(index = 3)] - SubPoolsNotFound, - #[codec(index = 4)] - BondedStashKilledPrematurely, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Events of this pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "A pool has been created."] - Created { - depositor: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A member has became bonded in a pool."] - Bonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - bonded: ::core::primitive::u128, - joined: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "A payout has been made to a member."] - PaidOut { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - payout: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - Unbonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - era: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - Withdrawn { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "A pool has been destroyed."] - Destroyed { pool_id: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "The state of a pool has changed"] - StateChanged { - pool_id: ::core::primitive::u32, - new_state: - runtime_types::pallet_nomination_pools::PoolState, - }, - #[codec(index = 7)] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - MemberRemoved { - pool_id: ::core::primitive::u32, - member: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - RolesUpdated { - root: - ::core::option::Option<::subxt::utils::AccountId32>, - state_toggler: - ::core::option::Option<::subxt::utils::AccountId32>, - nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 9)] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - PoolSlashed { - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - UnbondingPoolSlashed { - pool_id: ::core::primitive::u32, - era: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum BondExtra<_0> { - #[codec(index = 0)] - FreeBalance(_0), - #[codec(index = 1)] - Rewards, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BondedPoolInner { - pub points: ::core::primitive::u128, - pub state: runtime_types::pallet_nomination_pools::PoolState, - pub member_counter: ::core::primitive::u32, - pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PoolRoles<_0> { - pub depositor: _0, - pub root: ::core::option::Option<_0>, - pub nominator: ::core::option::Option<_0>, - pub state_toggler: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum PoolState { - #[codec(index = 0)] - Open, - #[codec(index = 1)] - Blocked, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - } - } - pub mod pallet_preimage { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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::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::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::utils::H256 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A preimage has been noted."] - Noted { hash: ::subxt::utils::H256 }, - #[codec(index = 1)] - #[doc = "A preimage has been requested."] - Requested { hash: ::subxt::utils::H256 }, - #[codec(index = 2)] - #[doc = "A preimage has ben cleared."] - Cleared { hash: ::subxt::utils::H256 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RequestStatus<_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>, - }, - } - } - pub mod pallet_scheduler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`schedule`]."] # [doc = "# "] schedule_after { after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a named task after a delay."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`schedule_named`](Self::schedule_named)."] # [doc = "# "] 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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 = "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 = 4)] - #[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 = 5)] - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 __subxt_unused_type_params: ::core::marker::PhantomData<_4>, - } - } - pub mod pallet_session { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] # [doc = " `T::Keys::key_ids()` which is fixed."] # [doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] # [doc = "- DbWrites: `origin account`, `NextKeys`"] # [doc = "- DbReads per key id: `KeyOwner`"] # [doc = "- DbWrites per key id: `KeyOwner`"] # [doc = "# "] set_keys { keys : runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys , proof : :: std :: 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 = "# "] # [doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] # [doc = " of `T::Keys::key_ids()` which is fixed."] # [doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] # [doc = "- DbWrites: `NextKeys`, `origin account`"] # [doc = "- DbWrites per key id: `KeyOwner`"] # [doc = "# "] purge_keys , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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_signature_bridge { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Sets the maintainer."] set_maintainer { message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] force_set_maintainer { new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 4)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { id : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. Add ResourceId to the Storage"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the set_resource_with_signature"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] set_resource_with_signature { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 6)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. That the r_id parsed from the proposal data exists"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the execute_proposal"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] execute_proposal { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Provided chain Id is not valid"] - InvalidChainId, - #[codec(index = 2)] - #[doc = "Interactions with this chain is not permitted"] - ChainNotWhitelisted, - #[codec(index = 3)] - #[doc = "Chain has already been enabled"] - ChainAlreadyWhitelisted, - #[codec(index = 4)] - #[doc = "Resource ID provided isn't mapped to anything"] - ResourceDoesNotExist, - #[codec(index = 5)] - #[doc = "Resource ID provided is already mapped to anchor"] - ResourceAlreadyExists, - #[codec(index = 6)] - #[doc = "Provided signature is not from the active maintainer"] - SignatureInvalid, - #[codec(index = 7)] - #[doc = "Protected operation, must be performed by relayer"] - MustBeMaintainer, - #[codec(index = 8)] - #[doc = "A proposal with these parameters has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 9)] - #[doc = "Call does not match parsed call from proposal data"] - CallNotConsistentWithProposalData, - #[codec(index = 10)] - #[doc = "Call does not match resource id according to resources mapping"] - CallDoesNotMatchResourceId, - #[codec(index = 11)] - #[doc = "Chain Id Type from the r_id does not match this chain"] - IncorrectExecutionChainIdType, - #[codec(index = 12)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 13)] - #[doc = "Invalid proposal data"] - InvalidProposalData, - #[codec(index = 14)] - #[doc = "Invalid call - calls must be delegated to handler pallets"] - InvalidCall, - #[codec(index = 15)] - #[doc = "The max limit for string is exceeded"] - StringLimitExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Maintainer is set"] MaintainerSet { old_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Proposal has been approved"] ProposalApproved { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Execution of call succeeded"] ProposalSucceeded { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execution of call failed"] ProposalFailed { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [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_ and gets removed as dust."] # [doc = "------------------"] # [doc = "# "] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] # [doc = "# "] 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"] # [doc = "whatever 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 = "# "] # [doc = "Complexity O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] # [doc = "# "] 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 = "# "] # [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."] # [doc = "# "] nominate { targets : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "# "] 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] # [doc = "- Weight: O(1)"] # [doc = "- DB Weight:"] # [doc = " - Read: Ledger"] # [doc = " - Write: Payee"] # [doc = "# "] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "----------"] # [doc = "Weight: O(1)"] # [doc = "DB Weight:"] # [doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "# "] set_controller { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Weight: O(1)"] # [doc = "Write: Validator Count"] # [doc = "# "] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write: ForceEra"] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write ForceEra"] # [doc = "# "] 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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::SlashCancelOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "# "] # [doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] # [doc = "- Contains a limited number of reads and writes."] # [doc = "-----------"] # [doc = "N is the Number of payouts for the validator (including the validator)"] # [doc = "Weight:"] # [doc = "- Reward Destination Staked: O(N)"] # [doc = "- Reward Destination Controller (Creating): O(N)"] # [doc = ""] # [doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] # [doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] # [doc = "# "] payout_stakers { validator_stash : :: subxt :: 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 = "# "] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] # [doc = "- Storage changes: Can't increase storage, only decrease it."] # [doc = "# "] 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: utils :: AccountId32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 = "Incorrect previous history depth input provided."] - IncorrectHistoryDepth, - #[codec(index = 16)] - #[doc = "Incorrect number of slashing spans provided."] - IncorrectSlashingSpans, - #[codec(index = 17)] - #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] - BadState, - #[codec(index = 18)] - #[doc = "Too many nomination targets supplied."] - TooManyTargets, - #[codec(index = 19)] - #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] - BadTarget, - #[codec(index = 20)] - #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] - CannotChillOther, - #[codec(index = 21)] - #[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 = 22)] - #[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 = 23)] - #[doc = "Commission is too low. Must be at least `MinCommission`."] - CommissionTooLow, - #[codec(index = 24)] - #[doc = "Some bound is not met."] - BoundNotMet, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , } - } - } - pub mod slashing { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SlashingSpans { - pub span_index: ::core::primitive::u32, - pub last_start: ::core::primitive::u32, - pub last_nonzero_slash: ::core::primitive::u32, - pub prior: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ActiveEraInfo { - pub index: ::core::primitive::u32, - pub start: ::core::option::Option<::core::primitive::u64>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EraRewardPoints<_0> { - pub total: ::core::primitive::u32, - pub individual: - ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: ::std::vec::Vec< - runtime_types::pallet_staking::IndividualExposure<_0, _1>, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Forcing { - #[codec(index = 0)] - NotForcing, - #[codec(index = 1)] - ForceNew, - #[codec(index = 2)] - ForceNone, - #[codec(index = 3)] - ForceAlways, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nominations { - pub targets: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - pub submitted_in: ::core::primitive::u32, - pub suppressed: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Releases { - #[codec(index = 0)] - V1_0_0Ancient, - #[codec(index = 1)] - V2_0_0, - #[codec(index = 2)] - V3_0_0, - #[codec(index = 3)] - V4_0_0, - #[codec(index = 4)] - V5_0_0, - #[codec(index = 5)] - V6_0_0, - #[codec(index = 6)] - V7_0_0, - #[codec(index = 7)] - V8_0_0, - #[codec(index = 8)] - V9_0_0, - #[codec(index = 9)] - V10_0_0, - #[codec(index = 10)] - V11_0_0, - #[codec(index = 11)] - V12_0_0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RewardDestination<_0> { - #[codec(index = 0)] - Staked, - #[codec(index = 1)] - Stash, - #[codec(index = 2)] - Controller, - #[codec(index = 3)] - Account(_0), - #[codec(index = 4)] - None, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct StakingLedger { - pub stash: ::subxt::utils::AccountId32, - #[codec(compact)] - pub total: ::core::primitive::u128, - #[codec(compact)] - pub active: ::core::primitive::u128, - pub unlocking: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk< - ::core::primitive::u128, - >, - >, - pub claimed_rewards: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnappliedSlash<_0, _1> { - pub validator: _0, - pub own: _1, - pub others: ::std::vec::Vec<(_0, _1)>, - pub reporters: ::std::vec::Vec<_0>, - pub payout: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: - runtime_types::sp_arithmetic::per_things::Perbill, - pub blocked: ::core::primitive::bool, - } - } - pub mod pallet_sudo { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB write (event)."] # [doc = "- Weight of derivative `call` execution + 10,000."] # [doc = "# "] sudo { call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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_."] # [doc = ""] # [doc = "# "] # [doc = "- O(1)."] # [doc = "- The weight of this call is defined by the caller."] # [doc = "# "] sudo_unchecked_weight { call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB change."] # [doc = "# "] set_key { new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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_."] # [doc = ""] # [doc = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB write (event)."] # [doc = "- Weight of derivative `call` execution + 10,000."] # [doc = "# "] sudo_as { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Error for the Sudo pallet"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Sender must be the Sudo account"] - RequireSudo, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A sudo just took place. \\[result\\]"] - Sudid { - sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 1)] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 2)] - #[doc = "A sudo just took place. \\[result\\]"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[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)`."] - #[doc = "# "] - set { - #[codec(compact)] - now: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_token_wrapper { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - set_wrapping_fee { - fee: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - set_fee_recipient { - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - wrap { - from_asset_id: ::core::primitive::u32, - into_pool_share_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - unwrap { - from_pool_share_id: ::core::primitive::u32, - into_asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - rescue_tokens { - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid transaction amount"] - InvalidAmount, - #[codec(index = 1)] - #[doc = "AssetId not found in selected pool share"] - UnregisteredAssetId, - #[codec(index = 2)] - #[doc = "Assets not found in selected pool"] - NotFoundInPool, - #[codec(index = 3)] - #[doc = "Insufficient Balance for an asset"] - InsufficientBalance, - #[codec(index = 4)] - NoWrappingFeePercentFound, - #[codec(index = 5)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 6)] - #[doc = "Name exceeds maximum limit"] - NameExceedsMaximumLimit, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - WrappedToken { - pool_share_asset: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - UnwrappedToken { - pool_share_asset: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 2)] - UpdatedWrappingFeePercent { - into_pool_share_id: ::core::primitive::u32, - wrapping_fee_percent: ::core::primitive::u128, - }, - #[codec(index = 3)] - UpdatedFeeRecipient { - fee_recipient: ::subxt::utils::AccountId32, - pool_share_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - TokensRescued { - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - } - } - } - pub mod pallet_token_wrapper_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] - #[doc = "method. Ensures that only the bridge can call this function."] - execute_wrapping_fee_proposal { - wrapping_fee_percent: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - execute_add_token_to_pool_share { - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - execute_remove_token_from_pool_share { - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] - #[doc = "who will be receiving wrapping fee cost for given asset."] - #[doc = "Ensures that only the bridge can call this function."] - execute_set_fee_recipient_proposal { - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] - #[doc = "fee recipient to given recipient address from given asset."] - #[doc = "Ensures that only the bridge can call this function."] - execute_rescue_tokens_proposal { - pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Access violation."] - InvalidPermissions, - #[codec(index = 1)] - ResourceIsAlreadyAnchored, - #[codec(index = 2)] - TokenWrapperHandlerNotFound, - #[codec(index = 3)] - #[doc = "Storage overflowed."] - StorageOverflow, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - UpdatedWrappingFeePercent { - wrapping_fee_percent: ::core::primitive::u128, - }, - } - } - } - pub mod pallet_transaction_pause { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - pause_transaction { - pallet_name: ::std::vec::Vec<::core::primitive::u8>, - function_name: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - unpause_transaction { - pallet_name: ::std::vec::Vec<::core::primitive::u8>, - function_name: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "can not pause"] - CannotPause, - #[codec(index = 1)] - #[doc = "invalid character encoding"] - InvalidCharacter, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Paused transaction"] - TransactionPaused { - pallet_name_bytes: - ::std::vec::Vec<::core::primitive::u8>, - function_name_bytes: - ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - #[doc = "Unpaused transaction"] - TransactionUnpaused { - pallet_name_bytes: - ::std::vec::Vec<::core::primitive::u8>, - function_name_bytes: - ::std::vec::Vec<::core::primitive::u8>, - }, - } - } - } - pub mod pallet_transaction_payment { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - actual_fee: ::core::primitive::u128, - tip: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ChargeTransactionPayment( - #[codec(compact)] pub ::core::primitive::u128, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] - propose_spend { - #[codec(compact)] - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 1)] - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] - reject_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] - approve_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] - spend { - #[codec(compact)] - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 4)] - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] - remove_approval { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Error for the treasury 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 = "Too many approvals in the queue."] - TooManyApprovals, - #[codec(index = 3)] - #[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 = 4)] - #[doc = "Proposal has not been approved."] - ProposalNotApproved, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New proposal."] - Proposed { - proposal_index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "We have ended a spend period and will now allocate funds."] - Spending { - budget_remaining: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Some funds have been allocated."] - Awarded { - proposal_index: ::core::primitive::u32, - award: ::core::primitive::u128, - account: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A proposal was rejected; funds were slashed."] - Rejected { - proposal_index: ::core::primitive::u32, - slashed: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Some of our funds have been burnt."] - Burnt { - burnt_funds: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - Rollover { - rollover_balance: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "Some funds have been deposited."] - Deposit { value: ::core::primitive::u128 }, - #[codec(index = 7)] - #[doc = "A new spend proposal has been approved."] - SpendApproved { - proposal_index: ::core::primitive::u32, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::AccountId32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Proposal<_0, _1> { - pub proposer: _0, - pub value: _1, - pub beneficiary: _0, - pub bond: _1, - } - } - pub mod pallet_utility { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] # [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 : :: std :: vec :: Vec < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] batch_all { calls : :: std :: vec :: Vec < runtime_types :: tangle_standalone_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 = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB write (event)."] # [doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] # [doc = "# "] dispatch_as { as_origin : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: OriginCaller > , call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] force_batch { calls : :: std :: vec :: Vec < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Too many calls batched."] - TooManyCalls, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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_vanchor { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { max_edges : :: core :: primitive :: u32 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] transact { id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 2)] register_and_transact { owner : :: subxt :: utils :: AccountId32 , public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 3)] set_max_deposit_amount { max_deposit_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] set_min_withdraw_amount { min_withdraw_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid transaction proof"] - InvalidTransactionProof, - #[codec(index = 1)] - #[doc = "Variable Anchor not found."] - NoVAnchorFound, - #[codec(index = 2)] - #[doc = "Invalid nullifier that is already used"] - #[doc = "(this error is returned when a nullifier is used twice)"] - AlreadyRevealedNullifier, - #[codec(index = 3)] - InvalidExtAmount, - #[codec(index = 4)] - InvalidDepositAmount, - #[codec(index = 5)] - InvalidWithdrawAmount, - #[codec(index = 6)] - InvalidExtData, - #[codec(index = 7)] - InvalidInputNullifiers, - #[codec(index = 8)] - InvalidFee, - #[codec(index = 9)] - InvalidPublicAmount, - #[codec(index = 10)] - #[doc = "Invalid nonce"] - InvalidNonce, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "New tree created"] VAnchorCreation { tree_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Transaction has been made"] Transaction { transactor : :: subxt :: utils :: AccountId32 , tree_id : :: core :: primitive :: u32 , leafs : :: std :: vec :: Vec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , encrypted_output1 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , encrypted_output2 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , amount : :: core :: primitive :: i128 , } , # [codec (index = 2)] # [doc = "Deposit hook has executed successfully"] Deposit { depositor : :: subxt :: utils :: AccountId32 , tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 3)] MaxDepositAmountChanged { max_deposit_amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] MinWithdrawAmountChanged { min_withdraw_amount : :: core :: primitive :: u128 , } , } - } - } - pub mod pallet_vanchor_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "This will be called by bridge when proposal to create a"] # [doc = "vanchor has been successfully voted on."] execute_vanchor_create_proposal { src_chain_id : :: core :: primitive :: u64 , r_id : runtime_types :: webb_proposals :: header :: ResourceId , max_edges : :: core :: primitive :: u32 , tree_depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "This will be called by bridge when proposal to add/update edge of a"] # [doc = "vanchor has been successfully voted on."] execute_vanchor_update_proposal { r_id : runtime_types :: webb_proposals :: header :: ResourceId , merkle_root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId , nonce : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "This will by called by bridge when proposal to set new resource for"] # [doc = "handler has been successfully voted on."] execute_set_resource_proposal { r_id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Execute set max deposit limit proposal."] # [doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] # [doc = "anchor system."] execute_set_max_deposit_limit_proposal { max_deposit_limit : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execute set min withdrawal limit proposal."] # [doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] # [doc = "variable anchor system."] execute_set_minx_withdrawal_limit_proposal { min_withdraw_limit : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Access violation."] - InvalidPermissions, - #[codec(index = 1)] - ResourceIsAlreadyAnchored, - #[codec(index = 2)] - AnchorHandlerNotFound, - #[codec(index = 3)] - SourceChainIdNotFound, - #[codec(index = 4)] - #[doc = "Storage overflowed."] - StorageOverflow, - #[codec(index = 5)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 6)] - #[doc = "Invalid resource ID"] - InvalidResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - AnchorCreated, - #[codec(index = 1)] - AnchorEdgeAdded, - #[codec(index = 2)] - AnchorEdgeUpdated, - #[codec(index = 3)] - ResourceAnchored, - } - } - } - pub mod pallet_vanchor_verifier { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - VerifyingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_verifier { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - VerifyingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_vesting { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [doc = "- `O(1)`."] # [doc = "- DbWeight: 2 Reads, 2 Writes"] # [doc = " - Reads: Vesting Storage, Balances Locks, [Sender Account]"] # [doc = " - Writes: Vesting Storage, Balances Locks, [Sender Account]"] # [doc = "# "] 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 = "# "] # [doc = "- `O(1)`."] # [doc = "- DbWeight: 3 Reads, 3 Writes"] # [doc = " - Reads: Vesting Storage, Balances Locks, Target Account"] # [doc = " - Writes: Vesting Storage, Balances Locks, Target Account"] # [doc = "# "] vest_other { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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 = "# "] # [doc = "- `O(1)`."] # [doc = "- DbWeight: 3 Reads, 3 Writes"] # [doc = " - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] # [doc = " - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] # [doc = "# "] vested_transfer { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , 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 = "# "] # [doc = "- `O(1)`."] # [doc = "- DbWeight: 4 Reads, 4 Writes"] # [doc = " - Reads: Vesting Storage, Balances Locks, Target Account, Source Account"] # [doc = " - Writes: Vesting Storage, Balances Locks, Target Account, Source Account"] # [doc = "# "] force_vested_transfer { source : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [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 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - unvested: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "An \\[account\\] has become fully vested."] - VestingCompleted { - account: ::subxt::utils::AccountId32, - }, - } - } - pub mod vesting_info { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VestingInfo<_0, _1> { - pub locked: _0, - pub per_block: _0, - pub starting_block: _1, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Releases { - #[codec(index = 0)] - V0, - #[codec(index = 1)] - V1, - } - } - pub mod primitive_types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct U256(pub [::core::primitive::u64; 4usize]); - } - pub mod sp_arithmetic { - use super::runtime_types; - pub mod fixed_point { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct FixedU128(pub ::core::primitive::u128); - } - pub mod per_things { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct PerU16(pub ::core::primitive::u16); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Perbill(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Percent(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Permill(pub ::core::primitive::u32); - } - } - pub mod sp_consensus_aura { - use super::runtime_types; - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public( - pub runtime_types::sp_core::sr25519::Public, - ); - } - } - } - pub mod sp_consensus_slots { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Slot(pub ::core::primitive::u64); - } - pub mod sp_core { - use super::runtime_types; - pub mod bounded { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BoundedBTreeMap<_0, _1>( - pub ::subxt::utils::KeyedVec<_0, _1>, - ); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } - pub mod crypto { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); - } - pub mod ecdsa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub [::core::primitive::u8; 33usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature(pub [::core::primitive::u8; 65usize]); - } - pub mod ed25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OpaqueMultiaddr( - pub ::std::vec::Vec<::core::primitive::u8>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: ::std::vec::Vec< - runtime_types::sp_core::offchain::OpaqueMultiaddr, - >, - } - } - pub mod sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Void {} - } - pub mod sp_finality_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Signature( - pub runtime_types::sp_core::ed25519::Signature, - ); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Equivocation<_0, _1> { - #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct EquivocationProof<_0, _1> { - pub set_id: ::core::primitive::u64, - pub equivocation: - runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, - } - } - pub mod sp_npos_elections { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ElectionScore { - pub minimal_stake: ::core::primitive::u128, - pub sum_stake: ::core::primitive::u128, - pub sum_stake_squared: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Support<_0> { - pub total: ::core::primitive::u128, - pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, - } - } - pub mod sp_runtime { - use super::runtime_types; - pub mod generic { - use super::runtime_types; - pub mod digest { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum DigestItem { - #[codec(index = 6)] - PreRuntime( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 4)] - Consensus( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 5)] - Seal( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 0)] - Other(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 8)] - RuntimeEnvironmentUpdated, - } - } - pub mod era { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - 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 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 aura(&self) -> aura::storage::StorageApi { + aura::storage::StorageApi + } + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } + pub fn dkg(&self) -> dkg::storage::StorageApi { + dkg::storage::StorageApi + } + pub fn dkg_proposals(&self) -> dkg_proposals::storage::StorageApi { + dkg_proposals::storage::StorageApi + } + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::storage::StorageApi { + dkg_proposal_handler::storage::StorageApi + } + pub fn bridge_registry(&self) -> bridge_registry::storage::StorageApi { + bridge_registry::storage::StorageApi + } + pub fn indices(&self) -> indices::storage::StorageApi { + indices::storage::StorageApi + } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } + pub fn vesting(&self) -> vesting::storage::StorageApi { + vesting::storage::StorageApi + } + pub fn claims(&self) -> claims::storage::StorageApi { + claims::storage::StorageApi + } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::storage::StorageApi { + election_provider_multi_phase::storage::StorageApi + } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::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 bags_list(&self) -> bags_list::storage::StorageApi { + bags_list::storage::StorageApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } + pub fn offences(&self) -> offences::storage::StorageApi { + offences::storage::StorageApi + } + pub fn hasher_bn254(&self) -> hasher_bn254::storage::StorageApi { + hasher_bn254::storage::StorageApi + } + pub fn asset_registry(&self) -> asset_registry::storage::StorageApi { + asset_registry::storage::StorageApi + } + pub fn tokens(&self) -> tokens::storage::StorageApi { + tokens::storage::StorageApi + } + pub fn token_wrapper(&self) -> token_wrapper::storage::StorageApi { + token_wrapper::storage::StorageApi + } + pub fn mixer_verifier_bn254( + &self, + ) -> mixer_verifier_bn254::storage::StorageApi { + mixer_verifier_bn254::storage::StorageApi + } + pub fn merkle_tree_bn254( + &self, + ) -> merkle_tree_bn254::storage::StorageApi { + merkle_tree_bn254::storage::StorageApi + } + pub fn linkable_tree_bn254( + &self, + ) -> linkable_tree_bn254::storage::StorageApi { + linkable_tree_bn254::storage::StorageApi + } + pub fn mixer_bn254(&self) -> mixer_bn254::storage::StorageApi { + mixer_bn254::storage::StorageApi + } + pub fn signature_bridge( + &self, + ) -> signature_bridge::storage::StorageApi { + signature_bridge::storage::StorageApi + } + pub fn v_anchor_bn254(&self) -> v_anchor_bn254::storage::StorageApi { + v_anchor_bn254::storage::StorageApi + } + pub fn v_anchor_handler_bn254( + &self, + ) -> v_anchor_handler_bn254::storage::StorageApi { + v_anchor_handler_bn254::storage::StorageApi + } + pub fn token_wrapper_handler( + &self, + ) -> token_wrapper_handler::storage::StorageApi { + token_wrapper_handler::storage::StorageApi + } + pub fn key_storage(&self) -> key_storage::storage::StorageApi { + key_storage::storage::StorageApi + } + pub fn v_anchor_verifier( + &self, + ) -> v_anchor_verifier::storage::StorageApi { + v_anchor_verifier::storage::StorageApi + } + pub fn transaction_pause( + &self, + ) -> transaction_pause::storage::StorageApi { + transaction_pause::storage::StorageApi + } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } + pub fn eth2_client(&self) -> eth2_client::storage::StorageApi { + eth2_client::storage::StorageApi + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { + timestamp::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } + pub fn balances(&self) -> balances::calls::TransactionApi { + balances::calls::TransactionApi + } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } + pub fn dkg(&self) -> dkg::calls::TransactionApi { + dkg::calls::TransactionApi + } + pub fn dkg_proposals(&self) -> dkg_proposals::calls::TransactionApi { + dkg_proposals::calls::TransactionApi + } + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::calls::TransactionApi { + dkg_proposal_handler::calls::TransactionApi + } + pub fn bridge_registry( + &self, + ) -> bridge_registry::calls::TransactionApi { + bridge_registry::calls::TransactionApi + } + pub fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } + pub fn democracy(&self) -> democracy::calls::TransactionApi { + democracy::calls::TransactionApi + } + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } + pub fn vesting(&self) -> vesting::calls::TransactionApi { + vesting::calls::TransactionApi + } + pub fn claims(&self) -> claims::calls::TransactionApi { + claims::calls::TransactionApi + } + pub fn elections(&self) -> elections::calls::TransactionApi { + elections::calls::TransactionApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::calls::TransactionApi { + election_provider_multi_phase::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } + pub fn treasury(&self) -> treasury::calls::TransactionApi { + treasury::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 bags_list(&self) -> bags_list::calls::TransactionApi { + bags_list::calls::TransactionApi + } + pub fn nomination_pools( + &self, + ) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { + scheduler::calls::TransactionApi + } + pub fn preimage(&self) -> preimage::calls::TransactionApi { + preimage::calls::TransactionApi + } + pub fn hasher_bn254(&self) -> hasher_bn254::calls::TransactionApi { + hasher_bn254::calls::TransactionApi + } + pub fn asset_registry(&self) -> asset_registry::calls::TransactionApi { + asset_registry::calls::TransactionApi + } + pub fn currencies(&self) -> currencies::calls::TransactionApi { + currencies::calls::TransactionApi + } + pub fn tokens(&self) -> tokens::calls::TransactionApi { + tokens::calls::TransactionApi + } + pub fn token_wrapper(&self) -> token_wrapper::calls::TransactionApi { + token_wrapper::calls::TransactionApi + } + pub fn mixer_verifier_bn254( + &self, + ) -> mixer_verifier_bn254::calls::TransactionApi { + mixer_verifier_bn254::calls::TransactionApi + } + pub fn merkle_tree_bn254( + &self, + ) -> merkle_tree_bn254::calls::TransactionApi { + merkle_tree_bn254::calls::TransactionApi + } + pub fn linkable_tree_bn254( + &self, + ) -> linkable_tree_bn254::calls::TransactionApi { + linkable_tree_bn254::calls::TransactionApi + } + pub fn mixer_bn254(&self) -> mixer_bn254::calls::TransactionApi { + mixer_bn254::calls::TransactionApi + } + pub fn signature_bridge( + &self, + ) -> signature_bridge::calls::TransactionApi { + signature_bridge::calls::TransactionApi + } + pub fn v_anchor_bn254(&self) -> v_anchor_bn254::calls::TransactionApi { + v_anchor_bn254::calls::TransactionApi + } + pub fn v_anchor_handler_bn254( + &self, + ) -> v_anchor_handler_bn254::calls::TransactionApi { + v_anchor_handler_bn254::calls::TransactionApi + } + pub fn token_wrapper_handler( + &self, + ) -> token_wrapper_handler::calls::TransactionApi { + token_wrapper_handler::calls::TransactionApi + } + pub fn key_storage(&self) -> key_storage::calls::TransactionApi { + key_storage::calls::TransactionApi + } + pub fn v_anchor_verifier( + &self, + ) -> v_anchor_verifier::calls::TransactionApi { + v_anchor_verifier::calls::TransactionApi + } + pub fn transaction_pause( + &self, + ) -> transaction_pause::calls::TransactionApi { + transaction_pause::calls::TransactionApi + } + pub fn im_online(&self) -> im_online::calls::TransactionApi { + im_online::calls::TransactionApi + } + pub fn identity(&self) -> identity::calls::TransactionApi { + identity::calls::TransactionApi + } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } + pub fn eth2_client(&self) -> eth2_client::calls::TransactionApi { + eth2_client::calls::TransactionApi + } + } + #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] + pub fn validate_codegen< + T: ::subxt::Config, + C: ::subxt::client::OfflineClientT, + >( + client: &C, + ) -> Result<(), ::subxt::error::MetadataError> { + let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); + if runtime_metadata_hash + != [ + 181u8, 23u8, 191u8, 84u8, 236u8, 160u8, 187u8, 159u8, 81u8, + 49u8, 121u8, 90u8, 4u8, 183u8, 68u8, 126u8, 115u8, 59u8, 202u8, + 213u8, 128u8, 190u8, 42u8, 173u8, 243u8, 135u8, 50u8, 4u8, + 27u8, 132u8, 240u8, 47u8, + ] + { + Err(::subxt::error::MetadataError::IncompatibleMetadata) + } else { + Ok(()) + } + } + 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Remark { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for Remark { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetHeapPages { + pub pages: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_heap_pages"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetCode { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCode { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetCodeWithoutChecks { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code_without_checks"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetStorage { + pub items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_storage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillStorage { + pub keys: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } + impl ::subxt::blocks::StaticExtrinsic for KillStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_storage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillPrefix { + pub prefix: ::std::vec::Vec<::core::primitive::u8>, + pub subkeys: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for KillPrefix { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_prefix"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemarkWithEvent { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark_with_event"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`"] + pub fn remark( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "remark", + types::Remark { remark }, + [ + 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, + 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, + 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, + 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, + 181u8, 129u8, 160u8, + ], + ) + } + #[doc = "Set the number of pages in the WebAssembly environment's heap."] + pub fn set_heap_pages( + &self, + pages: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_heap_pages", + types::SetHeapPages { pages }, + [ + 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, + 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, + 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, + 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, + 86u8, 87u8, + ], + ) + } + #[doc = "Set the new runtime code."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + pub fn set_code( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_code", + types::SetCode { code }, + [ + 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, + 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, + 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, + 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, + 14u8, 40u8, + ], + ) + } + #[doc = "Set the new runtime code without doing any checks of the given `code`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(C)` where `C` length of `code`"] + pub fn set_code_without_checks( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "System", + "set_code_without_checks", + types::SetCodeWithoutChecks { code }, + [ + 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, + 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, + 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, + 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, + 99u8, 216u8, + ], + ) + } + #[doc = "Set some items of storage."] + pub fn set_storage( + &self, + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_storage", + types::SetStorage { items }, + [ + 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, + 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, + 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, + 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, + 191u8, 22u8, 116u8, + ], + ) + } + #[doc = "Kill some items from storage."] + pub fn kill_storage( + &self, + keys: ::std::vec::Vec< + ::std::vec::Vec<::core::primitive::u8>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "kill_storage", + types::KillStorage { keys }, + [ + 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, + 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, + 70u8, 19u8, 108u8, 209u8, 41u8, 228u8, 67u8, 130u8, + 230u8, 160u8, 207u8, 11u8, 180u8, 139u8, 242u8, + 41u8, 15u8, + ], + ) + } + #[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: ::std::vec::Vec<::core::primitive::u8>, + subkeys: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "kill_prefix", + types::KillPrefix { prefix, subkeys }, + [ + 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, + 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, + 115u8, 187u8, 218u8, 129u8, 34u8, 80u8, 4u8, 173u8, + 120u8, 92u8, 35u8, 237u8, 112u8, 201u8, 207u8, + 200u8, 48u8, + ], + ) + } + #[doc = "Make some on-chain remark and emit event."] + pub fn remark_with_event( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "System", + "remark_with_event", + types::RemarkWithEvent { remark }, + [ + 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, + 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, + 158u8, 14u8, 213u8, 56u8, 225u8, 136u8, 88u8, 26u8, + 114u8, 178u8, 43u8, 176u8, 43u8, 240u8, 84u8, + 116u8, 46u8, + ], + ) + } + } + } + #[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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An extrinsic completed successfully."] + pub struct ExtrinsicSuccess { + pub dispatch_info: + runtime_types::frame_support::dispatch::DispatchInfo, + } + impl ::subxt::events::StaticEvent for ExtrinsicSuccess { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicSuccess"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An extrinsic failed."] + pub struct ExtrinsicFailed { + pub dispatch_error: runtime_types::sp_runtime::DispatchError, + pub dispatch_info: + runtime_types::frame_support::dispatch::DispatchInfo, + } + impl ::subxt::events::StaticEvent for ExtrinsicFailed { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "`:code` was updated."] + pub struct CodeUpdated; + impl ::subxt::events::StaticEvent for CodeUpdated { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "CodeUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new account was created."] + pub struct NewAccount { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for NewAccount { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "NewAccount"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was reaped."] + pub struct KilledAccount { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for KilledAccount { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "KilledAccount"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "On on-chain remark happened."] + pub struct Remarked { + pub sender: ::subxt::utils::AccountId32, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Remarked { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "Remarked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The full account information for a particular account ID."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) + } + #[doc = " The full account information for a particular account ID."] + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "Account", + Vec::new(), + [ + 176u8, 187u8, 21u8, 220u8, 159u8, 204u8, 127u8, + 14u8, 21u8, 69u8, 77u8, 114u8, 230u8, 141u8, 107u8, + 79u8, 23u8, 16u8, 174u8, 243u8, 252u8, 42u8, 65u8, + 120u8, 229u8, 38u8, 210u8, 255u8, 22u8, 40u8, + 109u8, 223u8, + ], + ) + } + #[doc = " Total extrinsics count for the current block."] + pub fn extrinsic_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicCount", + vec![], + [ + 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, + 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, + 249u8, 8u8, 225u8, 28u8, 232u8, 4u8, 136u8, 41u8, + 151u8, 82u8, 189u8, 149u8, 49u8, 166u8, 139u8, 9u8, + 163u8, 231u8, + ], + ) + } + #[doc = " The current weight for the block."] + pub fn block_weight( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockWeight", + vec![], + [ + 120u8, 67u8, 71u8, 163u8, 36u8, 202u8, 52u8, 106u8, + 143u8, 155u8, 144u8, 87u8, 142u8, 241u8, 232u8, + 183u8, 56u8, 235u8, 27u8, 237u8, 20u8, 202u8, 33u8, + 85u8, 189u8, 0u8, 28u8, 52u8, 198u8, 40u8, 219u8, + 54u8, + ], + ) + } + #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] + pub fn all_extrinsics_len( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "AllExtrinsicsLen", + vec![], + [ + 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, + 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, + 32u8, 117u8, 96u8, 149u8, 53u8, 145u8, 219u8, 64u8, + 234u8, 18u8, 217u8, 200u8, 203u8, 141u8, 145u8, + 28u8, 134u8, 60u8, + ], + ) + } + #[doc = " Map of block numbers to block hashes."] + pub fn block_hash( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [50u8 , 112u8 , 176u8 , 239u8 , 175u8 , 18u8 , 205u8 , 20u8 , 241u8 , 195u8 , 21u8 , 228u8 , 186u8 , 57u8 , 200u8 , 25u8 , 38u8 , 44u8 , 106u8 , 20u8 , 168u8 , 80u8 , 76u8 , 235u8 , 12u8 , 51u8 , 137u8 , 149u8 , 200u8 , 4u8 , 220u8 , 237u8 ,]) + } + #[doc = " Map of block numbers to block hashes."] + pub fn block_hash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockHash", + Vec::new(), + [ + 50u8, 112u8, 176u8, 239u8, 175u8, 18u8, 205u8, + 20u8, 241u8, 195u8, 21u8, 228u8, 186u8, 57u8, + 200u8, 25u8, 38u8, 44u8, 106u8, 20u8, 168u8, 80u8, + 76u8, 235u8, 12u8, 51u8, 137u8, 149u8, 200u8, 4u8, + 220u8, 237u8, + ], + ) + } + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] + pub fn extrinsic_data( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) + } + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] + pub fn extrinsic_data_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicData", + Vec::new(), + [ + 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, + 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, + 31u8, 229u8, 168u8, 125u8, 98u8, 23u8, 241u8, 59u8, + 49u8, 86u8, 126u8, 9u8, 114u8, 163u8, 160u8, 62u8, + 50u8, 67u8, + ], + ) + } + #[doc = " The current block number being processed. Set by `execute_block`."] + pub fn number( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Number", + vec![], + [ + 228u8, 96u8, 102u8, 190u8, 252u8, 130u8, 239u8, + 172u8, 126u8, 235u8, 246u8, 139u8, 208u8, 15u8, + 88u8, 245u8, 141u8, 232u8, 43u8, 204u8, 36u8, 87u8, + 211u8, 141u8, 187u8, 68u8, 236u8, 70u8, 193u8, + 235u8, 164u8, 191u8, + ], + ) + } + #[doc = " Hash of the previous block."] + pub fn parent_hash( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ParentHash", + vec![], + [ + 232u8, 206u8, 177u8, 119u8, 38u8, 57u8, 233u8, + 50u8, 225u8, 49u8, 169u8, 176u8, 210u8, 51u8, + 231u8, 176u8, 234u8, 186u8, 188u8, 112u8, 15u8, + 152u8, 195u8, 232u8, 201u8, 97u8, 208u8, 249u8, + 9u8, 163u8, 69u8, 36u8, + ], + ) + } + #[doc = " Digest of the current block, also part of the block header."] + pub fn digest( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_runtime::generic::digest::Digest, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Digest", + vec![], + [ + 83u8, 141u8, 200u8, 132u8, 182u8, 55u8, 197u8, + 122u8, 13u8, 159u8, 31u8, 42u8, 60u8, 191u8, 89u8, + 221u8, 242u8, 47u8, 199u8, 213u8, 48u8, 216u8, + 131u8, 168u8, 245u8, 82u8, 56u8, 190u8, 62u8, 69u8, + 96u8, 37u8, + ], + ) + } + #[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 :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: tangle_standalone_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "System", + "Events", + vec![], + [ + 16u8, 173u8, 18u8, 248u8, 211u8, 135u8, 133u8, + 139u8, 99u8, 237u8, 9u8, 244u8, 16u8, 172u8, 188u8, + 182u8, 106u8, 251u8, 131u8, 105u8, 117u8, 125u8, + 52u8, 68u8, 112u8, 143u8, 66u8, 67u8, 110u8, 138u8, + 64u8, 5u8, + ], + ) + } + #[doc = " The number of events in the `Events` list."] + pub fn event_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventCount", + vec![], + [ + 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, + 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, + 227u8, 9u8, 249u8, 25u8, 202u8, 185u8, 161u8, + 144u8, 167u8, 104u8, 127u8, 187u8, 38u8, 18u8, + 52u8, 61u8, 66u8, 112u8, + ], + ) + } + #[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 `(T::BlockNumber, 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 ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [205u8 , 90u8 , 142u8 , 190u8 , 176u8 , 37u8 , 94u8 , 82u8 , 98u8 , 1u8 , 129u8 , 63u8 , 246u8 , 101u8 , 130u8 , 58u8 , 216u8 , 16u8 , 139u8 , 196u8 , 154u8 , 111u8 , 110u8 , 178u8 , 24u8 , 44u8 , 183u8 , 176u8 , 232u8 , 82u8 , 223u8 , 38u8 ,]) + } + #[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 `(T::BlockNumber, 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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventTopics", + Vec::new(), + [ + 205u8, 90u8, 142u8, 190u8, 176u8, 37u8, 94u8, 82u8, + 98u8, 1u8, 129u8, 63u8, 246u8, 101u8, 130u8, 58u8, + 216u8, 16u8, 139u8, 196u8, 154u8, 111u8, 110u8, + 178u8, 24u8, 44u8, 183u8, 176u8, 232u8, 82u8, + 223u8, 38u8, + ], + ) + } + #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] + pub fn last_runtime_upgrade( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::LastRuntimeUpgradeInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "LastRuntimeUpgrade", + vec![], + [ + 52u8, 37u8, 117u8, 111u8, 57u8, 130u8, 196u8, 14u8, + 99u8, 77u8, 91u8, 126u8, 178u8, 249u8, 78u8, 34u8, + 9u8, 194u8, 92u8, 105u8, 113u8, 81u8, 185u8, 127u8, + 245u8, 184u8, 60u8, 29u8, 234u8, 182u8, 96u8, + 196u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "UpgradedToU32RefCount", + vec![], + [ + 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, + 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, + 59u8, 222u8, 141u8, 32u8, 107u8, 3u8, 114u8, 83u8, + 250u8, 180u8, 233u8, 152u8, 54u8, 187u8, 99u8, + 131u8, 204u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "UpgradedToTripleRefCount", + vec![], + [ + 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, + 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, + 18u8, 51u8, 105u8, 14u8, 230u8, 103u8, 155u8, + 246u8, 99u8, 53u8, 207u8, 225u8, 128u8, 186u8, + 76u8, 40u8, 185u8, + ], + ) + } + #[doc = " The execution phase of the block."] + pub fn execution_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::Phase, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExecutionPhase", + vec![], + [ + 230u8, 183u8, 221u8, 135u8, 226u8, 223u8, 55u8, + 104u8, 138u8, 224u8, 103u8, 156u8, 222u8, 99u8, + 203u8, 199u8, 164u8, 168u8, 193u8, 133u8, 201u8, + 155u8, 63u8, 95u8, 17u8, 206u8, 165u8, 123u8, + 161u8, 33u8, 172u8, 93u8, + ], + ) + } + } + } + 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::constants::Address< + runtime_types::frame_system::limits::BlockWeights, + > { + ::subxt::constants::Address::new_static( + "System", + "BlockWeights", + [ + 118u8, 253u8, 239u8, 217u8, 145u8, 115u8, 85u8, + 86u8, 172u8, 248u8, 139u8, 32u8, 158u8, 126u8, + 172u8, 188u8, 197u8, 105u8, 145u8, 235u8, 171u8, + 50u8, 31u8, 225u8, 167u8, 187u8, 241u8, 87u8, 6u8, + 17u8, 234u8, 185u8, + ], + ) + } + #[doc = " The maximum length of a block (in bytes)."] + pub fn block_length( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_system::limits::BlockLength, + > { + ::subxt::constants::Address::new_static( + "System", + "BlockLength", + [ + 116u8, 184u8, 225u8, 228u8, 207u8, 203u8, 4u8, + 220u8, 234u8, 198u8, 150u8, 108u8, 205u8, 87u8, + 194u8, 131u8, 229u8, 51u8, 140u8, 4u8, 47u8, 12u8, + 200u8, 144u8, 153u8, 62u8, 51u8, 39u8, 138u8, + 205u8, 203u8, 236u8, + ], + ) + } + #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] + pub fn block_hash_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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::constants::Address< + runtime_types::sp_weights::RuntimeDbWeight, + > { + ::subxt::constants::Address::new_static( + "System", + "DbWeight", + [ + 124u8, 162u8, 190u8, 149u8, 49u8, 177u8, 162u8, + 231u8, 62u8, 167u8, 199u8, 181u8, 43u8, 232u8, + 185u8, 116u8, 195u8, 51u8, 233u8, 223u8, 20u8, + 129u8, 246u8, 13u8, 65u8, 180u8, 64u8, 9u8, 157u8, + 59u8, 245u8, 118u8, + ], + ) + } + #[doc = " Get the chain's current version."] + pub fn version( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_version::RuntimeVersion, + > { + ::subxt::constants::Address::new_static( + "System", + "Version", + [ + 93u8, 98u8, 57u8, 243u8, 229u8, 8u8, 234u8, 231u8, + 72u8, 230u8, 139u8, 47u8, 63u8, 181u8, 17u8, 2u8, + 220u8, 231u8, 104u8, 237u8, 185u8, 143u8, 165u8, + 253u8, 188u8, 76u8, 147u8, 12u8, 170u8, 26u8, 74u8, + 200u8, + ], + ) + } + #[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::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::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 timestamp { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Set { + #[codec(compact)] + pub now: ::core::primitive::u64, + } + impl ::subxt::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 = "`MinimumPeriod`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Inherent`."] + #[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: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Timestamp", + "set", + types::Set { now }, + [ + 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, + 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, + 33u8, 187u8, 17u8, 166u8, 88u8, 127u8, 214u8, + 182u8, 51u8, 168u8, 88u8, 43u8, 101u8, 185u8, 8u8, + 1u8, 28u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Current time for the current block."] + pub fn now( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Timestamp", + "Now", + vec![], + [ + 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, + 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, + 39u8, 123u8, 106u8, 134u8, 202u8, 185u8, 83u8, + 85u8, 60u8, 41u8, 120u8, 96u8, 210u8, 34u8, 2u8, + 250u8, + ], + ) + } + #[doc = " Did the timestamp get updated in this block?"] + pub fn did_update( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Timestamp", + "DidUpdate", + vec![], + [ + 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, + 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, + 16u8, 6u8, 39u8, 158u8, 167u8, 85u8, 27u8, 47u8, + 122u8, 73u8, 127u8, 26u8, 35u8, 168u8, 72u8, 204u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] + #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] + #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] + #[doc = " double this period on default settings."] + pub fn minimum_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::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 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Sudo { + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Sudo { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKey { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SudoAs { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SudoAs { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] + pub fn sudo( + &self, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo", + types::Sudo { + call: ::std::boxed::Box::new(call), + }, + [ + 54u8, 134u8, 26u8, 184u8, 173u8, 215u8, 143u8, + 18u8, 247u8, 77u8, 241u8, 9u8, 168u8, 12u8, 235u8, + 254u8, 212u8, 28u8, 152u8, 195u8, 204u8, 144u8, + 73u8, 58u8, 18u8, 216u8, 240u8, 248u8, 37u8, 132u8, + 186u8, 135u8, + ], + ) + } + #[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_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] + pub fn sudo_unchecked_weight( + &self, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_unchecked_weight", + types::SudoUncheckedWeight { + call: ::std::boxed::Box::new(call), + weight, + }, + [ + 81u8, 225u8, 216u8, 81u8, 216u8, 254u8, 232u8, + 147u8, 28u8, 2u8, 124u8, 132u8, 107u8, 77u8, 167u8, + 33u8, 90u8, 217u8, 197u8, 153u8, 177u8, 2u8, 207u8, + 68u8, 36u8, 57u8, 22u8, 187u8, 202u8, 231u8, 4u8, + 116u8, + ], + ) + } + #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] + #[doc = "key."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] + pub fn set_key( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, + 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, + 163u8, 41u8, 138u8, 7u8, 81u8, 98u8, 230u8, 182u8, + 23u8, 222u8, 240u8, 117u8, 173u8, 232u8, 192u8, + 55u8, 92u8, 208u8, + ], + ) + } + #[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_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] + pub fn sudo_as( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_as", + types::SudoAs { + who, + call: ::std::boxed::Box::new(call), + }, + [ + 85u8, 74u8, 152u8, 56u8, 200u8, 161u8, 85u8, 32u8, + 148u8, 2u8, 127u8, 149u8, 244u8, 127u8, 85u8, + 188u8, 4u8, 68u8, 146u8, 224u8, 46u8, 69u8, 59u8, + 66u8, 29u8, 220u8, 62u8, 183u8, 89u8, 88u8, 94u8, + 212u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_sudo::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sudo just took place. \\[result\\]"] + pub struct Sudid { + pub sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] + pub struct KeyChanged { + pub old_sudoer: + ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sudo just took place. \\[result\\]"] + pub struct SudoAsDone { + pub sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The `AccountId` of the sudo key."] + pub fn key( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 244u8, 73u8, 188u8, 136u8, 218u8, 163u8, 68u8, + 179u8, 122u8, 173u8, 34u8, 108u8, 137u8, 28u8, + 182u8, 16u8, 196u8, 92u8, 138u8, 34u8, 102u8, 80u8, + 199u8, 88u8, 107u8, 207u8, 36u8, 22u8, 168u8, + 167u8, 20u8, 142u8, + ], + ) + } + } + } + } + pub mod randomness_collective_flip { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] + #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] + #[doc = " the oldest hash."] + pub fn random_material( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RandomnessCollectiveFlip", + "RandomMaterial", + vec![], + [ + 152u8, 126u8, 73u8, 88u8, 54u8, 147u8, 6u8, 19u8, + 214u8, 40u8, 159u8, 30u8, 236u8, 61u8, 240u8, 65u8, + 178u8, 94u8, 146u8, 152u8, 135u8, 252u8, 160u8, + 86u8, 123u8, 114u8, 251u8, 140u8, 98u8, 143u8, + 217u8, 242u8, + ], + ) + } + } + } + } + pub mod balances { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_balances::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub new_reserved: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetBalance { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "set_balance"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnreserve { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_unreserve"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` 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."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] + #[doc = " types. See related functions below."] + #[doc = "- It contains a limited number of reads and writes internally and no complex"] + #[doc = " computation."] + #[doc = ""] + #[doc = "Related functions:"] + #[doc = ""] + #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] + #[doc = " - Transferring balances to accounts that did not exist before will cause"] + #[doc = " `T::OnNewAccount::on_new_account` to be called."] + #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] + #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] + #[doc = " that the transfer will not kill the origin account."] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer", + types::Transfer { dest, value }, + [ + 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, + 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, + 66u8, 184u8, 27u8, 94u8, 176u8, 60u8, 233u8, 236u8, + 145u8, 218u8, 44u8, 138u8, 240u8, 224u8, 16u8, + 193u8, 220u8, 95u8, + ], + ) + } + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] + #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] + #[doc = "If the new free or reserved balance is below the existential deposit,"] + #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + pub fn set_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + new_free: ::core::primitive::u128, + new_reserved: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "set_balance", + types::SetBalance { + who, + new_free, + new_reserved, + }, + [ + 174u8, 34u8, 80u8, 252u8, 193u8, 51u8, 228u8, + 236u8, 234u8, 16u8, 173u8, 214u8, 122u8, 21u8, + 254u8, 7u8, 49u8, 176u8, 18u8, 128u8, 122u8, 68u8, + 72u8, 181u8, 119u8, 90u8, 167u8, 46u8, 203u8, + 220u8, 109u8, 110u8, + ], + ) + } + #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] + #[doc = "specified."] + #[doc = "## Complexity"] + #[doc = "- Same as transfer, but additional read and write because the source account is not"] + #[doc = " assumed to be in the overlay."] + pub fn force_transfer( + &self, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Balances", + "force_transfer", + types::ForceTransfer { + source, + dest, + value, + }, + [ + 56u8, 80u8, 186u8, 45u8, 134u8, 147u8, 200u8, 19u8, + 53u8, 221u8, 213u8, 32u8, 13u8, 51u8, 130u8, 42u8, + 244u8, 85u8, 50u8, 246u8, 189u8, 51u8, 93u8, 1u8, + 108u8, 142u8, 112u8, 245u8, 104u8, 255u8, 15u8, + 62u8, + ], + ) + } + #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] + #[doc = "origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + pub fn transfer_keep_alive( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_keep_alive", + types::TransferKeepAlive { dest, value }, + [ + 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, + 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, + 56u8, 217u8, 250u8, 21u8, 44u8, 239u8, 66u8, 79u8, + 99u8, 25u8, 106u8, 70u8, 226u8, 50u8, 255u8, 176u8, + 71u8, + ], + ) + } + #[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). ## Complexity"] + #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] + pub fn transfer_all( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + keep_alive: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_all", + types::TransferAll { dest, keep_alive }, + [ + 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, + 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, + 53u8, 205u8, 112u8, 147u8, 88u8, 167u8, 197u8, + 32u8, 104u8, 117u8, 201u8, 168u8, 144u8, 230u8, + 120u8, 29u8, 122u8, 159u8, + ], + ) + } + #[doc = "Unreserve some balance from a user by force."] + #[doc = ""] + #[doc = "Can only be called by ROOT."] + pub fn force_unreserve( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Balances", + "force_unreserve", + types::ForceUnreserve { who, amount }, + [ + 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, + 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, + 46u8, 108u8, 136u8, 167u8, 145u8, 103u8, 65u8, + 33u8, 168u8, 36u8, 214u8, 126u8, 237u8, 180u8, + 61u8, 108u8, 110u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_balances::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub account: ::subxt::utils::AccountId32, + pub free_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + pub struct DustLost { + pub account: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A balance was set by root."] + pub struct BalanceSet { + pub who: ::subxt::utils::AccountId32, + pub free: ::core::primitive::u128, + pub reserved: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BalanceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was reserved (moved from free to reserved)."] + pub struct Reserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Reserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was unreserved (moved from reserved to free)."] + pub struct Unreserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unreserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was moved from the reserve of the first account to the second account."] + #[doc = "Final argument indicates the destination balance type."] + pub struct ReserveRepatriated { pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "ReserveRepatriated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was deposited (e.g. for transaction fees)."] + pub struct Deposit { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] + pub struct Withdraw { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] + pub struct Slashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The total units issued in the system."] + pub fn total_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "TotalIssuance", + vec![], + [ + 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, + 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, + 187u8, 44u8, 84u8, 25u8, 164u8, 235u8, 20u8, 86u8, + 242u8, 124u8, 23u8, 28u8, 140u8, 26u8, 73u8, 231u8, + 51u8, + ], + ) + } + #[doc = " The total units of outstanding deactivated balance in the system."] + pub fn inactive_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "InactiveIssuance", + vec![], + [ + 74u8, 203u8, 111u8, 142u8, 225u8, 104u8, 173u8, + 51u8, 226u8, 12u8, 85u8, 135u8, 41u8, 206u8, 177u8, + 238u8, 94u8, 246u8, 184u8, 250u8, 140u8, 213u8, + 91u8, 118u8, 163u8, 111u8, 211u8, 46u8, 204u8, + 160u8, 154u8, 21u8, + ], + ) + } + #[doc = " The Balances pallet example of storing the balance of an account."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " You can also store the balance of an account in the `System` pallet."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = System"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] + #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] + #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::AccountData< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Account", + Vec::new(), + [ + 246u8, 154u8, 253u8, 71u8, 192u8, 192u8, 192u8, + 236u8, 128u8, 80u8, 40u8, 252u8, 201u8, 43u8, 3u8, + 131u8, 19u8, 49u8, 141u8, 240u8, 172u8, 217u8, + 215u8, 109u8, 87u8, 135u8, 248u8, 57u8, 98u8, + 185u8, 22u8, 4u8, + ], + ) + } + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) + } + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Balances", + "Locks", + Vec::new(), + [ + 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, + 244u8, 134u8, 195u8, 58u8, 255u8, 64u8, 153u8, + 212u8, 210u8, 232u8, 4u8, 122u8, 90u8, 212u8, + 136u8, 14u8, 127u8, 232u8, 8u8, 192u8, 40u8, 233u8, + 18u8, 250u8, + ], + ) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Reserves", + Vec::new(), + [ + 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, + 42u8, 250u8, 128u8, 167u8, 117u8, 44u8, 85u8, 96u8, + 105u8, 216u8, 16u8, 147u8, 74u8, 55u8, 183u8, 94u8, + 160u8, 177u8, 26u8, 187u8, 71u8, 197u8, 187u8, + 163u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum amount required to keep an account open."] + pub fn existential_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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."] + pub fn max_locks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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."] + pub fn max_reserves( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + pub mod transaction_payment { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_transaction_payment::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who`."] + pub struct TransactionFeePaid { + pub who: ::subxt::utils::AccountId32, + pub actual_fee: ::core::primitive::u128, + pub tip: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for TransactionFeePaid { + const PALLET: &'static str = "TransactionPayment"; + const EVENT: &'static str = "TransactionFeePaid"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn next_fee_multiplier( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::fixed_point::FixedU128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "NextFeeMultiplier", + vec![], + [ + 210u8, 0u8, 206u8, 165u8, 183u8, 10u8, 206u8, 52u8, + 14u8, 90u8, 218u8, 197u8, 189u8, 125u8, 113u8, + 216u8, 52u8, 161u8, 45u8, 24u8, 245u8, 237u8, + 121u8, 41u8, 106u8, 29u8, 45u8, 129u8, 250u8, + 203u8, 206u8, 180u8, + ], + ) + } + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_transaction_payment::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "StorageVersion", + vec![], + [ + 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, + 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, + 166u8, 11u8, 34u8, 12u8, 12u8, 198u8, 58u8, 191u8, + 186u8, 221u8, 221u8, 119u8, 181u8, 253u8, 154u8, + 228u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] + #[doc = " `priority`"] + #[doc = ""] + #[doc = " This value is multipled 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::constants::Address<::core::primitive::u8> + { + ::subxt::constants::Address::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 struct StorageApi; + impl StorageApi { + #[doc = " Author of current block."] + pub fn author( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "Author", + vec![], + [ + 149u8, 42u8, 33u8, 147u8, 190u8, 207u8, 174u8, + 227u8, 190u8, 110u8, 25u8, 131u8, 5u8, 167u8, + 237u8, 188u8, 188u8, 33u8, 177u8, 126u8, 181u8, + 49u8, 126u8, 118u8, 46u8, 128u8, 154u8, 95u8, 15u8, + 91u8, 103u8, 113u8, + ], + ) + } + } + } + } + pub mod aura { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Aura", + "Authorities", + vec![], + [ + 199u8, 89u8, 94u8, 48u8, 249u8, 35u8, 105u8, 90u8, + 15u8, 86u8, 218u8, 85u8, 22u8, 236u8, 228u8, 36u8, + 137u8, 64u8, 236u8, 171u8, 242u8, 217u8, 91u8, + 240u8, 205u8, 205u8, 226u8, 16u8, 147u8, 235u8, + 181u8, 41u8, + ], + ) + } + #[doc = " The current slot of this block."] + #[doc = ""] + #[doc = " This will be set in `on_initialize`."] + pub fn current_slot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Aura", + "CurrentSlot", + vec![], + [ + 139u8, 237u8, 185u8, 137u8, 251u8, 179u8, 69u8, + 167u8, 133u8, 168u8, 204u8, 64u8, 178u8, 123u8, + 92u8, 250u8, 119u8, 190u8, 208u8, 178u8, 208u8, + 176u8, 124u8, 187u8, 74u8, 165u8, 33u8, 78u8, + 161u8, 206u8, 8u8, 108u8, + ], + ) + } + } + } + } + pub mod grandpa { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_grandpa::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >, + pub key_owner_proof: + runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >, + pub key_owner_proof: + runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct NoteStalled { + pub delay: ::core::primitive::u32, + pub best_finalized_block_number: ::core::primitive::u32, + } + impl ::subxt::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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new( + equivocation_proof, + ), + key_owner_proof, + }, + [ + 156u8, 162u8, 189u8, 89u8, 60u8, 156u8, 129u8, + 176u8, 62u8, 35u8, 214u8, 7u8, 68u8, 245u8, 130u8, + 117u8, 30u8, 3u8, 73u8, 218u8, 142u8, 82u8, 13u8, + 141u8, 124u8, 19u8, 53u8, 138u8, 70u8, 4u8, 40u8, + 32u8, + ], + ) + } + #[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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new( + equivocation_proof, + ), + key_owner_proof, + }, + [ + 166u8, 26u8, 217u8, 185u8, 215u8, 37u8, 174u8, + 170u8, 137u8, 160u8, 151u8, 43u8, 246u8, 86u8, + 58u8, 18u8, 248u8, 73u8, 99u8, 161u8, 158u8, 93u8, + 212u8, 186u8, 224u8, 253u8, 234u8, 18u8, 151u8, + 111u8, 227u8, 249u8, + ], + ) + } + #[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: ::core::primitive::u32, + best_finalized_block_number: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "note_stalled", + types::NoteStalled { + delay, + best_finalized_block_number, + }, + [ + 197u8, 236u8, 137u8, 32u8, 46u8, 200u8, 144u8, + 13u8, 89u8, 181u8, 235u8, 73u8, 167u8, 131u8, + 174u8, 93u8, 42u8, 136u8, 238u8, 59u8, 129u8, 60u8, + 83u8, 100u8, 5u8, 182u8, 99u8, 250u8, 145u8, 180u8, + 1u8, 199u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_grandpa::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New authority set has been applied."] + pub struct NewAuthorities { + pub authority_set: ::std::vec::Vec<( + runtime_types::sp_finality_grandpa::app::Public, + ::core::primitive::u64, + )>, + } + impl ::subxt::events::StaticEvent for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current authority set has been paused."] + pub struct Paused; + impl ::subxt::events::StaticEvent for Paused { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Paused"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current authority set has been resumed."] + pub struct Resumed; + impl ::subxt::events::StaticEvent for Resumed { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " State of the current authority set."] + pub fn state( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredState< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "State", + vec![], + [ + 211u8, 149u8, 114u8, 217u8, 206u8, 194u8, 115u8, + 67u8, 12u8, 218u8, 246u8, 213u8, 208u8, 29u8, + 216u8, 104u8, 2u8, 39u8, 123u8, 172u8, 252u8, + 210u8, 52u8, 129u8, 147u8, 237u8, 244u8, 68u8, + 252u8, 169u8, 97u8, 148u8, + ], + ) + } + #[doc = " Pending change: (signaled at, scheduled change)."] + pub fn pending_change( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredPendingChange< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "PendingChange", + vec![], + [ + 178u8, 24u8, 140u8, 7u8, 8u8, 196u8, 18u8, 58u8, + 3u8, 226u8, 181u8, 47u8, 155u8, 160u8, 70u8, 12u8, + 75u8, 189u8, 38u8, 255u8, 104u8, 141u8, 64u8, 34u8, + 134u8, 201u8, 102u8, 21u8, 75u8, 81u8, 218u8, 60u8, + ], + ) + } + #[doc = " next block number where we can force a change."] + pub fn next_forced( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "NextForced", + vec![], + [ + 99u8, 43u8, 245u8, 201u8, 60u8, 9u8, 122u8, 99u8, + 188u8, 29u8, 67u8, 6u8, 193u8, 133u8, 179u8, 67u8, + 202u8, 208u8, 62u8, 179u8, 19u8, 169u8, 196u8, + 119u8, 107u8, 75u8, 100u8, 3u8, 121u8, 18u8, 80u8, + 156u8, + ], + ) + } + #[doc = " `true` if we are currently stalled."] + pub fn stalled( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Stalled", + vec![], + [ + 219u8, 8u8, 37u8, 78u8, 150u8, 55u8, 0u8, 57u8, + 201u8, 170u8, 186u8, 189u8, 56u8, 161u8, 44u8, + 15u8, 53u8, 178u8, 224u8, 208u8, 231u8, 109u8, + 14u8, 209u8, 57u8, 205u8, 237u8, 153u8, 231u8, + 156u8, 24u8, 185u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "CurrentSetId", + vec![], + [ + 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, + 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, + 197u8, 157u8, 163u8, 116u8, 36u8, 105u8, 52u8, + 149u8, 244u8, 108u8, 94u8, 109u8, 111u8, 244u8, + 137u8, 7u8, 108u8, + ], + ) + } + #[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 ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "SetIdSession", + Vec::new(), + [ + 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, + 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, + 123u8, 133u8, 157u8, 15u8, 33u8, 234u8, 108u8, + 13u8, 88u8, 115u8, 254u8, 9u8, 145u8, 199u8, 102u8, + 47u8, 53u8, 134u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max Authorities in use"] + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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 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::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::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 dkg { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_dkg_metadata::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_dkg_metadata::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetSignatureThreshold { + pub new_threshold: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for SetSignatureThreshold { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "set_signature_threshold"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKeygenThreshold { + pub new_threshold: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for SetKeygenThreshold { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "set_keygen_threshold"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetRefreshDelay { + pub new_delay: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for SetRefreshDelay { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "set_refresh_delay"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitPublicKey { pub keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } + impl ::subxt::blocks::StaticExtrinsic for SubmitPublicKey { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_public_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitNextPublicKey { pub keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } + impl ::subxt::blocks::StaticExtrinsic for SubmitNextPublicKey { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_next_public_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitPublicKeySignature { pub signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } + impl ::subxt::blocks::StaticExtrinsic for SubmitPublicKeySignature { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_public_key_signature"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitMisbehaviourReports { pub reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } + impl ::subxt::blocks::StaticExtrinsic for SubmitMisbehaviourReports { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "submit_misbehaviour_reports"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unjail; + impl ::subxt::blocks::StaticExtrinsic for Unjail { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "unjail"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnjailKeygen { + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnjailKeygen { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "force_unjail_keygen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnjailSigning { + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnjailSigning { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "force_unjail_signing"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceChangeAuthorities; + impl ::subxt::blocks::StaticExtrinsic for ForceChangeAuthorities { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "force_change_authorities"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TriggerEmergencyKeygen; + impl ::subxt::blocks::StaticExtrinsic for TriggerEmergencyKeygen { + const PALLET: &'static str = "DKG"; + const CALL: &'static str = "trigger_emergency_keygen"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Set the pending signature threshold for the session following the next session."] + #[doc = ""] + #[doc = "We cannot assume that the next DKG has not already completed keygen."] + #[doc = "After all, if we are in a new session the next DKG may have already completed."] + #[doc = "Therefore, when we update the thresholds we are updating a threshold"] + #[doc = "that will become the next threshold after the next session update."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `new_threshold` - The new signature threshold for the DKG."] + pub fn set_signature_threshold( + &self, + new_threshold: ::core::primitive::u16, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "set_signature_threshold", + types::SetSignatureThreshold { new_threshold }, + [ + 160u8, 195u8, 237u8, 69u8, 171u8, 13u8, 28u8, + 110u8, 245u8, 159u8, 172u8, 115u8, 125u8, 245u8, + 207u8, 23u8, 227u8, 200u8, 227u8, 120u8, 183u8, + 185u8, 240u8, 153u8, 127u8, 14u8, 106u8, 85u8, 4u8, + 55u8, 227u8, 65u8, + ], + ) + } + #[doc = "Set the pending keygen threshold for the session following the next session."] + #[doc = ""] + #[doc = "We cannot assume that the next DKG has not already completed keygen."] + #[doc = "After all, if we are in a new session the next DKG may have already completed."] + #[doc = "Therefore, when we update the thresholds we are updating a threshold"] + #[doc = "that will become the next threshold after the next session update."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `new_threshold` - The new keygen threshold for the DKG."] + pub fn set_keygen_threshold( + &self, + new_threshold: ::core::primitive::u16, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "set_keygen_threshold", + types::SetKeygenThreshold { new_threshold }, + [ + 181u8, 23u8, 76u8, 117u8, 56u8, 235u8, 59u8, 254u8, + 242u8, 114u8, 147u8, 247u8, 248u8, 168u8, 235u8, + 50u8, 128u8, 167u8, 99u8, 110u8, 2u8, 15u8, 26u8, + 110u8, 216u8, 7u8, 189u8, 46u8, 73u8, 229u8, 24u8, + 9u8, + ], + ) + } + #[doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] + #[doc = "proposal queue."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] + #[doc = " unsigned refresh proposal to the unsigned proposal queue."] + pub fn set_refresh_delay( + &self, + new_delay: ::core::primitive::u8, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "set_refresh_delay", + types::SetRefreshDelay { new_delay }, + [ + 16u8, 74u8, 191u8, 229u8, 37u8, 51u8, 217u8, 83u8, + 211u8, 119u8, 177u8, 127u8, 207u8, 133u8, 218u8, + 245u8, 162u8, 21u8, 93u8, 42u8, 250u8, 63u8, 218u8, + 33u8, 217u8, 215u8, 61u8, 122u8, 28u8, 53u8, 157u8, + 108u8, + ], + ) + } + #[doc = "Submits and stores the active public key for the genesis session into the on-chain"] + #[doc = "storage. This is primarily used to separate the genesis public key submission from"] + #[doc = "non-genesis rounds."] + #[doc = ""] + #[doc = "Can only be submitted by the current authorities. It is also required that a"] + #[doc = "`SignatureThreshold` of submissions is reached in order to successfully"] + #[doc = "store the public key on-chain."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] + #[doc = " DKG public keys."] + pub fn submit_public_key( + &self, + keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "submit_public_key", + types::SubmitPublicKey { + keys_and_signatures, + }, + [ + 39u8, 55u8, 155u8, 151u8, 44u8, 91u8, 66u8, 109u8, + 115u8, 132u8, 68u8, 187u8, 202u8, 41u8, 234u8, + 114u8, 79u8, 78u8, 65u8, 245u8, 192u8, 38u8, 172u8, + 71u8, 54u8, 170u8, 53u8, 122u8, 58u8, 135u8, 234u8, + 49u8, + ], + ) + } + #[doc = "Submits and stores the next public key for the next session into the on-chain storage."] + #[doc = ""] + #[doc = "Can only be submitted by the next authorities. It is also required that a"] + #[doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] + #[doc = "store the public key on-chain."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] + #[doc = " DKG public keys."] + pub fn submit_next_public_key( + &self, + keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "submit_next_public_key", + types::SubmitNextPublicKey { + keys_and_signatures, + }, + [ + 248u8, 166u8, 238u8, 156u8, 241u8, 216u8, 68u8, + 78u8, 95u8, 106u8, 167u8, 238u8, 113u8, 117u8, + 109u8, 169u8, 253u8, 75u8, 154u8, 30u8, 170u8, + 94u8, 187u8, 192u8, 193u8, 34u8, 50u8, 66u8, 32u8, + 68u8, 81u8, 205u8, + ], + ) + } + #[doc = "Submits the public key signature for the key refresh/rotation process."] + #[doc = ""] + #[doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] + #[doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] + #[doc = "DKG's public key. Successful storage of this public key signature also removes"] + #[doc = "the unsigned `RefreshProposal` from the unsigned queue."] + #[doc = ""] + #[doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] + #[doc = "the keys are immediately refreshed and the authority set is immediately rotated"] + #[doc = "and incremented."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] + #[doc = " and nonce."] + pub fn submit_public_key_signature( + &self, + signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "submit_public_key_signature", + types::SubmitPublicKeySignature { signature_proposal }, + [ + 74u8, 197u8, 64u8, 71u8, 121u8, 35u8, 252u8, 67u8, + 136u8, 25u8, 110u8, 230u8, 219u8, 44u8, 146u8, + 203u8, 151u8, 165u8, 62u8, 83u8, 236u8, 75u8, + 220u8, 112u8, 160u8, 192u8, 220u8, 0u8, 203u8, + 34u8, 195u8, 76u8, + ], + ) + } + #[doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] + #[doc = "verified against the current or next authorities depending on the type of misbehaviour."] + #[doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] + #[doc = "- Signing: Verifies against the current authorities, since they are doing signing."] + #[doc = ""] + #[doc = "Verifies the reports against the respective thresholds and if enough reports are met"] + #[doc = "begins to jail and decrease the reputation of the offending authority."] + #[doc = ""] + #[doc = "The misbehaviour reputation update is:"] + #[doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] + #[doc = ""] + #[doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] + #[doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] + #[doc = "accordingly."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] + #[doc = " authority"] + pub fn submit_misbehaviour_reports( + &self, + reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "submit_misbehaviour_reports", + types::SubmitMisbehaviourReports { reports }, + [ + 217u8, 75u8, 94u8, 66u8, 26u8, 160u8, 229u8, 184u8, + 66u8, 97u8, 190u8, 21u8, 127u8, 165u8, 67u8, 85u8, + 246u8, 173u8, 133u8, 253u8, 173u8, 33u8, 61u8, + 229u8, 148u8, 101u8, 1u8, 210u8, 109u8, 116u8, + 251u8, 134u8, + ], + ) + } + #[doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] + #[doc = "This can only be called by the controller of the authority in jail. The"] + #[doc = "origin must map directly to the authority in jail."] + #[doc = ""] + #[doc = "The authority's jail sentence for either keygen or signing must be elapsed"] + #[doc = "for the authority to be removed from the jail."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + pub fn unjail(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "DKG", + "unjail", + types::Unjail {}, + [ + 209u8, 5u8, 90u8, 85u8, 167u8, 92u8, 85u8, 132u8, + 48u8, 27u8, 89u8, 149u8, 242u8, 209u8, 97u8, 87u8, + 13u8, 58u8, 124u8, 41u8, 155u8, 103u8, 62u8, 115u8, + 58u8, 143u8, 233u8, 105u8, 18u8, 198u8, 173u8, + 77u8, + ], + ) + } + #[doc = "Force removes an authority from keygen jail."] + #[doc = ""] + #[doc = "Can only be called by DKG"] + #[doc = "* `origin` - The account origin."] + #[doc = "* `authority` - The authority to be removed from the keygen jail."] + pub fn force_unjail_keygen( + &self, + authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "force_unjail_keygen", + types::ForceUnjailKeygen { authority }, + [ + 7u8, 2u8, 72u8, 189u8, 190u8, 208u8, 55u8, 117u8, + 205u8, 174u8, 223u8, 90u8, 12u8, 136u8, 64u8, + 212u8, 57u8, 31u8, 227u8, 103u8, 72u8, 157u8, + 156u8, 101u8, 66u8, 5u8, 149u8, 175u8, 3u8, 98u8, + 60u8, 44u8, + ], + ) + } + #[doc = "Force removes an authority from signing jail."] + #[doc = ""] + #[doc = "Can only be called by the root origin."] + #[doc = ""] + #[doc = "* `origin` - The account origin."] + #[doc = "* `authority` - The authority to be removed from the signing jail."] + pub fn force_unjail_signing( + &self, + authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "force_unjail_signing", + types::ForceUnjailSigning { authority }, + [ + 195u8, 160u8, 19u8, 141u8, 200u8, 170u8, 41u8, + 189u8, 18u8, 98u8, 112u8, 34u8, 55u8, 46u8, 101u8, + 216u8, 177u8, 135u8, 70u8, 24u8, 219u8, 153u8, + 167u8, 130u8, 110u8, 187u8, 146u8, 103u8, 3u8, + 253u8, 5u8, 185u8, + ], + ) + } + #[doc = "Forcefully rotate the DKG"] + #[doc = ""] + #[doc = "This forces the next authorities into the current authority spot and"] + #[doc = "automatically increments the authority ID. It uses `change_authorities`"] + #[doc = "to execute the rotation forcefully."] + pub fn force_change_authorities( + &self, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "force_change_authorities", + types::ForceChangeAuthorities {}, + [ + 98u8, 226u8, 238u8, 39u8, 98u8, 79u8, 85u8, 160u8, + 82u8, 3u8, 34u8, 195u8, 220u8, 178u8, 25u8, 110u8, + 12u8, 72u8, 165u8, 126u8, 207u8, 173u8, 210u8, + 74u8, 54u8, 106u8, 255u8, 243u8, 240u8, 22u8, + 161u8, 255u8, + ], + ) + } + #[doc = "Triggers an Emergency Keygen Porotocol."] + #[doc = ""] + #[doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] + #[doc = "storage, which will be picked up by the on chain worker and stored on chain."] + #[doc = ""] + #[doc = "Note that, this will clear the next public key and its signature, if any."] + pub fn trigger_emergency_keygen( + &self, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKG", + "trigger_emergency_keygen", + types::TriggerEmergencyKeygen {}, + [ + 169u8, 123u8, 131u8, 42u8, 202u8, 219u8, 162u8, + 1u8, 134u8, 223u8, 197u8, 245u8, 64u8, 51u8, 46u8, + 231u8, 155u8, 25u8, 6u8, 253u8, 170u8, 251u8, 15u8, + 156u8, 76u8, 127u8, 142u8, 218u8, 142u8, 65u8, + 197u8, 160u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_dkg_metadata::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current public key submitted"] + pub struct PublicKeySubmitted { + pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, + pub uncompressed_pub_key: + ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for PublicKeySubmitted { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "PublicKeySubmitted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Next public key submitted"] + pub struct NextPublicKeySubmitted { + pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, + pub uncompressed_pub_key: + ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for NextPublicKeySubmitted { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "NextPublicKeySubmitted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Next public key signature submitted"] + pub struct NextPublicKeySignatureSubmitted { + pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, + pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, + pub uncompressed_pub_key: + ::std::vec::Vec<::core::primitive::u8>, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NextPublicKeySignatureSubmitted { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "NextPublicKeySignatureSubmitted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current Public Key Changed."] + pub struct PublicKeyChanged { + pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, + pub uncompressed_pub_key: + ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for PublicKeyChanged { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "PublicKeyChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current Public Key Signature Changed."] + pub struct PublicKeySignatureChanged { + pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, + pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, + pub uncompressed_pub_key: + ::std::vec::Vec<::core::primitive::u8>, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for PublicKeySignatureChanged { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "PublicKeySignatureChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Misbehaviour reports submitted"] + pub struct MisbehaviourReportsSubmitted { + pub misbehaviour_type: + runtime_types::dkg_runtime_primitives::MisbehaviourType, + pub reporters: ::std::vec::Vec< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + pub offender: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::events::StaticEvent for MisbehaviourReportsSubmitted { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "MisbehaviourReportsSubmitted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Refresh DKG Keys Finished (forcefully)."] + pub struct RefreshKeysFinished { + pub next_authority_set_id: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for RefreshKeysFinished { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "RefreshKeysFinished"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "NextKeygenThreshold updated"] + pub struct NextKeygenThresholdUpdated { + pub next_keygen_threshold: ::core::primitive::u16, + } + impl ::subxt::events::StaticEvent for NextKeygenThresholdUpdated { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "NextKeygenThresholdUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "NextSignatureThreshold updated"] + pub struct NextSignatureThresholdUpdated { + pub next_signature_threshold: ::core::primitive::u16, + } + impl ::subxt::events::StaticEvent for NextSignatureThresholdUpdated { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "NextSignatureThresholdUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "PendingKeygenThreshold updated"] + pub struct PendingKeygenThresholdUpdated { + pub pending_keygen_threshold: ::core::primitive::u16, + } + impl ::subxt::events::StaticEvent for PendingKeygenThresholdUpdated { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "PendingKeygenThresholdUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "PendingSignatureThreshold updated"] + pub struct PendingSignatureThresholdUpdated { + pub pending_signature_threshold: ::core::primitive::u16, + } + impl ::subxt::events::StaticEvent for PendingSignatureThresholdUpdated { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "PendingSignatureThresholdUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An Emergency Keygen Protocol was triggered."] + pub struct EmergencyKeygenTriggered; + impl ::subxt::events::StaticEvent for EmergencyKeygenTriggered { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "EmergencyKeygenTriggered"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An authority has been jailed for misbehaviour"] + pub struct AuthorityJailed { + pub misbehaviour_type: + runtime_types::dkg_runtime_primitives::MisbehaviourType, + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::events::StaticEvent for AuthorityJailed { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "AuthorityJailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An authority has been unjailed"] + pub struct AuthorityUnJailed { + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, + } + impl ::subxt::events::StaticEvent for AuthorityUnJailed { + const PALLET: &'static str = "DKG"; + const EVENT: &'static str = "AuthorityUnJailed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "UsedSignatures", + vec![], + [ + 46u8, 101u8, 56u8, 181u8, 166u8, 247u8, 210u8, + 177u8, 219u8, 97u8, 159u8, 183u8, 246u8, 101u8, + 210u8, 242u8, 165u8, 160u8, 106u8, 162u8, 44u8, + 46u8, 107u8, 151u8, 156u8, 220u8, 221u8, 229u8, + 178u8, 156u8, 73u8, 85u8, + ], + ) + } + #[doc = " Nonce value for next refresh proposal"] + pub fn refresh_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "RefreshNonce", + vec![], + [ + 184u8, 107u8, 53u8, 61u8, 92u8, 121u8, 77u8, 93u8, + 141u8, 192u8, 238u8, 92u8, 15u8, 155u8, 1u8, 153u8, + 55u8, 64u8, 83u8, 144u8, 127u8, 250u8, 207u8, 14u8, + 62u8, 137u8, 151u8, 230u8, 86u8, 236u8, 27u8, + 175u8, + ], + ) + } + #[doc = " Session progress required to kickstart refresh process"] + pub fn refresh_delay( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Permill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "RefreshDelay", + vec![], + [ + 79u8, 178u8, 57u8, 227u8, 1u8, 170u8, 0u8, 55u8, + 231u8, 155u8, 114u8, 9u8, 197u8, 101u8, 112u8, + 176u8, 169u8, 138u8, 67u8, 127u8, 127u8, 59u8, + 56u8, 99u8, 113u8, 242u8, 15u8, 43u8, 254u8, 79u8, + 9u8, 161u8, + ], + ) + } + #[doc = " Defines the block when next unsigned transaction will be accepted."] + #[doc = ""] + #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] + #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] + #[doc = " This storage entry defines when new transaction is going to be accepted."] + pub fn next_unsigned_at( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextUnsignedAt", + vec![], + [ + 175u8, 176u8, 254u8, 20u8, 27u8, 31u8, 70u8, 46u8, + 201u8, 118u8, 22u8, 200u8, 95u8, 116u8, 223u8, + 63u8, 191u8, 85u8, 55u8, 21u8, 70u8, 24u8, 225u8, + 203u8, 66u8, 213u8, 94u8, 229u8, 234u8, 223u8, + 255u8, 28u8, + ], + ) + } + #[doc = " Check if there is a refresh in progress."] + pub fn refresh_in_progress( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "RefreshInProgress", + vec![], + [ + 150u8, 114u8, 14u8, 254u8, 132u8, 254u8, 10u8, + 89u8, 109u8, 4u8, 182u8, 128u8, 114u8, 15u8, 82u8, + 35u8, 88u8, 86u8, 32u8, 82u8, 83u8, 175u8, 123u8, + 98u8, 120u8, 180u8, 167u8, 185u8, 57u8, 221u8, + 12u8, 62u8, + ], + ) + } + #[doc = " Should we start a new Keygen"] + pub fn should_execute_new_keygen( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "ShouldExecuteNewKeygen", + vec![], + [ + 125u8, 105u8, 100u8, 215u8, 34u8, 62u8, 234u8, + 88u8, 98u8, 221u8, 122u8, 143u8, 214u8, 192u8, + 91u8, 77u8, 98u8, 63u8, 149u8, 118u8, 159u8, 158u8, + 163u8, 112u8, 198u8, 59u8, 106u8, 233u8, 239u8, + 216u8, 151u8, 18u8, + ], + ) + } + #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "NextDKGPublicKey", + vec![], + [ + 190u8, 8u8, 19u8, 247u8, 57u8, 79u8, 143u8, 79u8, + 251u8, 110u8, 255u8, 86u8, 175u8, 77u8, 78u8, + 173u8, 183u8, 5u8, 94u8, 97u8, 12u8, 101u8, 26u8, + 75u8, 223u8, 196u8, 22u8, 202u8, 152u8, 67u8, + 170u8, 22u8, + ], + ) + } + #[doc = " Signature of the DKG public key for the next session"] + pub fn next_public_key_signature( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextPublicKeySignature", + vec![], + [ + 7u8, 23u8, 208u8, 171u8, 234u8, 66u8, 219u8, 107u8, + 109u8, 127u8, 166u8, 218u8, 179u8, 97u8, 137u8, + 57u8, 64u8, 48u8, 104u8, 56u8, 58u8, 93u8, 132u8, + 191u8, 206u8, 134u8, 129u8, 107u8, 223u8, 178u8, + 87u8, 25u8, + ], + ) + } + #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "DKGPublicKey", + vec![], + [ + 171u8, 148u8, 67u8, 160u8, 252u8, 26u8, 71u8, 2u8, + 13u8, 45u8, 214u8, 185u8, 187u8, 219u8, 153u8, + 108u8, 240u8, 150u8, 103u8, 59u8, 210u8, 211u8, + 218u8, 147u8, 49u8, 223u8, 194u8, 130u8, 69u8, + 131u8, 24u8, 81u8, + ], + ) + } + #[doc = " Signature of the current DKG public key"] + pub fn dkg_public_key_signature( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "DKGPublicKeySignature", + vec![], + [ + 63u8, 104u8, 181u8, 61u8, 227u8, 143u8, 48u8, 34u8, + 38u8, 3u8, 149u8, 124u8, 90u8, 4u8, 39u8, 253u8, + 102u8, 169u8, 179u8, 87u8, 213u8, 132u8, 137u8, + 218u8, 216u8, 141u8, 189u8, 159u8, 141u8, 147u8, + 101u8, 102u8, + ], + ) + } + #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "PreviousPublicKey", + vec![], + [ + 211u8, 151u8, 16u8, 209u8, 65u8, 128u8, 48u8, + 209u8, 242u8, 91u8, 253u8, 156u8, 196u8, 190u8, + 249u8, 91u8, 59u8, 142u8, 75u8, 72u8, 104u8, 83u8, + 42u8, 176u8, 14u8, 147u8, 73u8, 73u8, 194u8, 203u8, + 143u8, 86u8, + ], + ) + } + #[doc = " Tracks current proposer set"] + pub fn historical_rounds( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_metadata::types::RoundMetadata< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "HistoricalRounds" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [69u8 , 172u8 , 38u8 , 240u8 , 139u8 , 118u8 , 160u8 , 111u8 , 95u8 , 143u8 , 196u8 , 94u8 , 149u8 , 125u8 , 176u8 , 142u8 , 53u8 , 141u8 , 70u8 , 132u8 , 71u8 , 23u8 , 174u8 , 221u8 , 72u8 , 69u8 , 14u8 , 191u8 , 225u8 , 43u8 , 67u8 , 79u8 ,]) + } + #[doc = " Tracks current proposer set"] + pub fn historical_rounds_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_metadata::types::RoundMetadata< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "HistoricalRounds", + Vec::new(), + [ + 69u8, 172u8, 38u8, 240u8, 139u8, 118u8, 160u8, + 111u8, 95u8, 143u8, 196u8, 94u8, 149u8, 125u8, + 176u8, 142u8, 53u8, 141u8, 70u8, 132u8, 71u8, 23u8, + 174u8, 221u8, 72u8, 69u8, 14u8, 191u8, 225u8, 43u8, + 67u8, 79u8, + ], + ) + } + #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] + pub fn signature_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "SignatureThreshold", + vec![], + [ + 228u8, 213u8, 121u8, 182u8, 49u8, 44u8, 159u8, + 113u8, 209u8, 234u8, 107u8, 232u8, 192u8, 211u8, + 144u8, 183u8, 170u8, 37u8, 236u8, 48u8, 177u8, 7u8, + 62u8, 63u8, 39u8, 134u8, 158u8, 72u8, 52u8, 179u8, + 184u8, 217u8, + ], + ) + } + #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] + pub fn keygen_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "KeygenThreshold", + vec![], + [ + 52u8, 253u8, 133u8, 19u8, 89u8, 89u8, 8u8, 246u8, + 87u8, 16u8, 72u8, 213u8, 230u8, 168u8, 223u8, 38u8, + 33u8, 83u8, 79u8, 28u8, 2u8, 92u8, 141u8, 197u8, + 73u8, 190u8, 6u8, 177u8, 240u8, 245u8, 119u8, 70u8, + ], + ) + } + #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] + pub fn next_signature_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextSignatureThreshold", + vec![], + [ + 83u8, 91u8, 234u8, 198u8, 71u8, 140u8, 138u8, + 136u8, 26u8, 244u8, 93u8, 37u8, 141u8, 37u8, 91u8, + 236u8, 135u8, 137u8, 86u8, 35u8, 240u8, 136u8, + 144u8, 203u8, 230u8, 163u8, 66u8, 121u8, 18u8, + 128u8, 102u8, 124u8, + ], + ) + } + #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] + pub fn next_keygen_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextKeygenThreshold", + vec![], + [ + 244u8, 125u8, 22u8, 245u8, 44u8, 192u8, 133u8, + 170u8, 115u8, 173u8, 56u8, 200u8, 83u8, 192u8, + 65u8, 213u8, 71u8, 28u8, 15u8, 200u8, 47u8, 103u8, + 215u8, 179u8, 6u8, 95u8, 214u8, 89u8, 223u8, 133u8, + 161u8, 191u8, + ], + ) + } + #[doc = " The pending signature threshold (i.e. the `t` in t-of-n)"] + pub fn pending_signature_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "PendingSignatureThreshold", + vec![], + [ + 69u8, 20u8, 129u8, 76u8, 67u8, 68u8, 122u8, 151u8, + 39u8, 116u8, 35u8, 34u8, 96u8, 168u8, 39u8, 43u8, + 64u8, 185u8, 126u8, 145u8, 247u8, 150u8, 96u8, + 125u8, 109u8, 208u8, 254u8, 121u8, 227u8, 235u8, + 108u8, 169u8, + ], + ) + } + #[doc = " The pending signature threshold (i.e. the `n` in t-of-n)"] + pub fn pending_keygen_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u16, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "PendingKeygenThreshold", + vec![], + [ + 80u8, 94u8, 41u8, 244u8, 115u8, 174u8, 75u8, 71u8, + 225u8, 122u8, 125u8, 141u8, 81u8, 69u8, 51u8, + 200u8, 129u8, 143u8, 14u8, 106u8, 228u8, 177u8, + 196u8, 167u8, 18u8, 70u8, 31u8, 137u8, 8u8, 233u8, + 249u8, 202u8, + ], + ) + } + #[doc = " The current authorities set"] + pub fn authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "Authorities", + vec![], + [ + 180u8, 103u8, 249u8, 204u8, 109u8, 0u8, 211u8, + 102u8, 59u8, 184u8, 31u8, 52u8, 140u8, 248u8, 10u8, + 127u8, 19u8, 50u8, 254u8, 116u8, 124u8, 5u8, 94u8, + 42u8, 9u8, 138u8, 159u8, 94u8, 26u8, 136u8, 236u8, + 141u8, + ], + ) + } + #[doc = " The current authority set id"] + pub fn authority_set_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "AuthoritySetId", + vec![], + [ + 97u8, 57u8, 86u8, 112u8, 28u8, 206u8, 59u8, 216u8, + 109u8, 216u8, 119u8, 48u8, 31u8, 112u8, 189u8, + 19u8, 234u8, 38u8, 14u8, 212u8, 191u8, 203u8, 72u8, + 164u8, 131u8, 57u8, 77u8, 192u8, 182u8, 168u8, + 185u8, 114u8, + ], + ) + } + #[doc = " The next authority set id"] + pub fn next_authority_set_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextAuthoritySetId", + vec![], + [ + 27u8, 226u8, 90u8, 171u8, 61u8, 158u8, 36u8, 48u8, + 88u8, 240u8, 189u8, 234u8, 176u8, 40u8, 78u8, + 239u8, 201u8, 189u8, 111u8, 160u8, 5u8, 232u8, + 196u8, 228u8, 19u8, 238u8, 185u8, 98u8, 73u8, + 207u8, 135u8, 20u8, + ], + ) + } + #[doc = " Authorities set scheduled to be used with the next session"] + pub fn next_authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextAuthorities", + vec![], + [ + 64u8, 174u8, 216u8, 177u8, 95u8, 133u8, 175u8, + 16u8, 171u8, 110u8, 7u8, 244u8, 111u8, 89u8, 57u8, + 46u8, 52u8, 28u8, 150u8, 117u8, 156u8, 47u8, 91u8, + 135u8, 196u8, 102u8, 46u8, 4u8, 224u8, 155u8, 83u8, + 36u8, + ], + ) + } + #[doc = " Accounts for the current authorities"] + pub fn current_authorities_accounts( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "CurrentAuthoritiesAccounts", + vec![], + [ + 63u8, 248u8, 43u8, 115u8, 47u8, 190u8, 73u8, 201u8, + 191u8, 159u8, 118u8, 31u8, 140u8, 144u8, 242u8, + 207u8, 239u8, 39u8, 67u8, 163u8, 111u8, 104u8, + 173u8, 254u8, 214u8, 226u8, 133u8, 239u8, 31u8, + 134u8, 124u8, 245u8, + ], + ) + } + #[doc = " Authority account ids scheduled for the next session"] + pub fn next_authorities_accounts( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "NextAuthoritiesAccounts", + vec![], + [ + 189u8, 126u8, 179u8, 166u8, 252u8, 67u8, 141u8, + 167u8, 7u8, 113u8, 103u8, 25u8, 152u8, 171u8, 26u8, + 0u8, 151u8, 68u8, 167u8, 156u8, 225u8, 66u8, 87u8, + 0u8, 119u8, 29u8, 226u8, 16u8, 176u8, 148u8, 153u8, + 158u8, + ], + ) + } + #[doc = " Authority account ids scheduled for the next session"] + pub fn account_to_authority( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::dkg_runtime_primitives::crypto::Public, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "AccountToAuthority" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [153u8 , 156u8 , 238u8 , 107u8 , 10u8 , 129u8 , 109u8 , 32u8 , 111u8 , 45u8 , 223u8 , 84u8 , 30u8 , 115u8 , 139u8 , 254u8 , 58u8 , 194u8 , 205u8 , 73u8 , 249u8 , 102u8 , 217u8 , 125u8 , 137u8 , 206u8 , 87u8 , 34u8 , 100u8 , 45u8 , 223u8 , 252u8 ,]) + } + #[doc = " Authority account ids scheduled for the next session"] + pub fn account_to_authority_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::dkg_runtime_primitives::crypto::Public, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "AccountToAuthority", + Vec::new(), + [ + 153u8, 156u8, 238u8, 107u8, 10u8, 129u8, 109u8, + 32u8, 111u8, 45u8, 223u8, 84u8, 30u8, 115u8, 139u8, + 254u8, 58u8, 194u8, 205u8, 73u8, 249u8, 102u8, + 217u8, 125u8, 137u8, 206u8, 87u8, 34u8, 100u8, + 45u8, 223u8, 252u8, + ], + ) + } + #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: MisbehaviourType > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > , _2 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "MisbehaviourReports" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_2 . borrow ())] , [2u8 , 14u8 , 23u8 , 57u8 , 168u8 , 205u8 , 55u8 , 220u8 , 203u8 , 236u8 , 126u8 , 46u8 , 31u8 , 215u8 , 25u8 , 163u8 , 138u8 , 62u8 , 188u8 , 146u8 , 131u8 , 165u8 , 100u8 , 50u8 , 66u8 , 94u8 , 236u8 , 25u8 , 147u8 , 11u8 , 231u8 , 182u8 ,]) + } + #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "MisbehaviourReports", + Vec::new(), + [ + 2u8, 14u8, 23u8, 57u8, 168u8, 205u8, 55u8, 220u8, + 203u8, 236u8, 126u8, 46u8, 31u8, 215u8, 25u8, + 163u8, 138u8, 62u8, 188u8, 146u8, 131u8, 165u8, + 100u8, 50u8, 66u8, 94u8, 236u8, 25u8, 147u8, 11u8, + 231u8, 182u8, + ], + ) + } + #[doc = " Tracks authority reputations"] + pub fn authority_reputations( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "AuthorityReputations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [232u8 , 88u8 , 120u8 , 58u8 , 141u8 , 39u8 , 76u8 , 249u8 , 250u8 , 154u8 , 173u8 , 127u8 , 163u8 , 70u8 , 186u8 , 193u8 , 210u8 , 43u8 , 225u8 , 11u8 , 254u8 , 208u8 , 46u8 , 87u8 , 66u8 , 21u8 , 111u8 , 228u8 , 54u8 , 200u8 , 46u8 , 2u8 ,]) + } + #[doc = " Tracks authority reputations"] + pub fn authority_reputations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "AuthorityReputations", + Vec::new(), + [ + 232u8, 88u8, 120u8, 58u8, 141u8, 39u8, 76u8, 249u8, + 250u8, 154u8, 173u8, 127u8, 163u8, 70u8, 186u8, + 193u8, 210u8, 43u8, 225u8, 11u8, 254u8, 208u8, + 46u8, 87u8, 66u8, 21u8, 111u8, 228u8, 54u8, 200u8, + 46u8, 2u8, + ], + ) + } + #[doc = " Tracks jailed authorities for keygen by mapping"] + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_keygen_authorities( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "JailedKeygenAuthorities" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [59u8 , 86u8 , 235u8 , 7u8 , 94u8 , 26u8 , 253u8 , 179u8 , 186u8 , 33u8 , 6u8 , 242u8 , 46u8 , 174u8 , 254u8 , 118u8 , 92u8 , 208u8 , 166u8 , 181u8 , 45u8 , 137u8 , 41u8 , 87u8 , 109u8 , 37u8 , 171u8 , 59u8 , 169u8 , 48u8 , 78u8 , 107u8 ,]) + } + #[doc = " Tracks jailed authorities for keygen by mapping"] + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_keygen_authorities_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "JailedKeygenAuthorities", + Vec::new(), + [ + 59u8, 86u8, 235u8, 7u8, 94u8, 26u8, 253u8, 179u8, + 186u8, 33u8, 6u8, 242u8, 46u8, 174u8, 254u8, 118u8, + 92u8, 208u8, 166u8, 181u8, 45u8, 137u8, 41u8, 87u8, + 109u8, 37u8, 171u8, 59u8, 169u8, 48u8, 78u8, 107u8, + ], + ) + } + #[doc = " Tracks jailed authorities for signing by mapping"] + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_signing_authorities( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::dkg_runtime_primitives::crypto::Public, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKG" , "JailedSigningAuthorities" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [32u8 , 100u8 , 53u8 , 234u8 , 245u8 , 105u8 , 136u8 , 132u8 , 225u8 , 219u8 , 138u8 , 165u8 , 124u8 , 174u8 , 201u8 , 219u8 , 255u8 , 214u8 , 104u8 , 204u8 , 14u8 , 32u8 , 181u8 , 79u8 , 135u8 , 172u8 , 26u8 , 1u8 , 115u8 , 98u8 , 110u8 , 89u8 ,]) + } + #[doc = " Tracks jailed authorities for signing by mapping"] + #[doc = " to the block number when the authority was last jailed"] + pub fn jailed_signing_authorities_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "JailedSigningAuthorities", + Vec::new(), + [ + 32u8, 100u8, 53u8, 234u8, 245u8, 105u8, 136u8, + 132u8, 225u8, 219u8, 138u8, 165u8, 124u8, 174u8, + 201u8, 219u8, 255u8, 214u8, 104u8, 204u8, 14u8, + 32u8, 181u8, 79u8, 135u8, 172u8, 26u8, 1u8, 115u8, + 98u8, 110u8, 89u8, + ], + ) + } + #[doc = " The current best authorities of the active keygen set"] pub fn best_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "BestAuthorities", + vec![], + [ + 229u8, 47u8, 85u8, 153u8, 16u8, 203u8, 19u8, 51u8, + 70u8, 158u8, 223u8, 231u8, 218u8, 68u8, 216u8, + 119u8, 55u8, 157u8, 50u8, 82u8, 242u8, 13u8, 185u8, + 188u8, 35u8, 85u8, 230u8, 213u8, 110u8, 27u8, 38u8, + 86u8, + ], + ) + } + #[doc = " The next best authorities of the active keygen set"] pub fn next_best_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "DKG", + "NextBestAuthorities", + vec![], + [ + 243u8, 43u8, 60u8, 70u8, 51u8, 232u8, 171u8, 95u8, + 25u8, 228u8, 57u8, 221u8, 51u8, 115u8, 111u8, 19u8, + 140u8, 179u8, 245u8, 243u8, 240u8, 145u8, 59u8, + 63u8, 75u8, 70u8, 105u8, 22u8, 195u8, 145u8, 47u8, + 68u8, + ], + ) + } + #[doc = " The last BlockNumber at which the session rotation happened"] + pub fn last_session_rotation_block( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKG", + "LastSessionRotationBlock", + vec![], + [ + 221u8, 138u8, 110u8, 204u8, 255u8, 254u8, 229u8, + 185u8, 225u8, 170u8, 60u8, 234u8, 12u8, 6u8, 235u8, + 76u8, 245u8, 206u8, 254u8, 229u8, 239u8, 140u8, + 111u8, 58u8, 254u8, 131u8, 255u8, 112u8, 88u8, + 134u8, 241u8, 86u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Percentage session should have progressed for refresh to begin"] + pub fn refresh_delay( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "DKG", + "RefreshDelay", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " Number of blocks of cooldown after unsigned transaction is included."] + #[doc = ""] + #[doc = " This ensures that we only accept unsigned transactions once, every `UnsignedInterval`"] + #[doc = " blocks."] + pub fn unsigned_interval( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKG", + "UnsignedInterval", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = ""] + #[doc = " This is exposed so that it can be tuned for particular runtime, when"] + #[doc = " multiple pallets send unsigned transactions."] + pub fn unsigned_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "DKG", + "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, + ], + ) + } + #[doc = " Session length helper allowing to query session length across runtime upgrades."] + pub fn session_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKG", + "SessionPeriod", + [ + 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 = " MaxLength for keys"] + pub fn max_key_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKG", + "MaxKeyLength", + [ + 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 = " MaxLength for signature"] + pub fn max_signature_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKG", + "MaxSignatureLength", + [ + 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 = " Max authorities to store"] + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKG", + "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 = " Max reporters to store"] + pub fn max_reporters( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKG", + "MaxReporters", + [ + 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 dkg_proposals { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_dkg_proposals::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_dkg_proposals::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetThreshold { + pub threshold: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetThreshold { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "set_threshold"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + pub method: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetResource { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "set_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveResource { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "remove_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WhitelistChain { + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + } + impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "whitelist_chain"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddProposer { + pub native_account: ::subxt::utils::AccountId32, + pub external_account: + ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for AddProposer { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "add_proposer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveProposer { + pub v: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveProposer { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "remove_proposer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AcknowledgeProposal { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AcknowledgeProposal { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "acknowledge_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RejectProposal { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "reject_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct EvalVoteState { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } + impl ::subxt::blocks::StaticExtrinsic for EvalVoteState { + const PALLET: &'static str = "DKGProposals"; + const CALL: &'static str = "eval_vote_state"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Sets the vote threshold for proposals."] + #[doc = ""] + #[doc = "This threshold is used to determine how many votes are required"] + #[doc = "before a proposal is executed."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) lookup and insert"] + #[doc = "# "] + pub fn set_threshold( + &self, + threshold: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "set_threshold", + types::SetThreshold { threshold }, + [ + 97u8, 156u8, 187u8, 176u8, 219u8, 218u8, 220u8, + 12u8, 153u8, 121u8, 167u8, 142u8, 88u8, 249u8, + 99u8, 44u8, 183u8, 26u8, 130u8, 71u8, 228u8, 33u8, + 233u8, 203u8, 93u8, 138u8, 130u8, 146u8, 242u8, + 169u8, 196u8, 225u8, + ], + ) + } + #[doc = "Stores a method name on chain under an associated resource ID."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) write"] + #[doc = "# "] + pub fn set_resource( + &self, + id: runtime_types::webb_proposals::header::ResourceId, + method: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "set_resource", + types::SetResource { id, method }, + [ + 72u8, 53u8, 0u8, 252u8, 156u8, 111u8, 215u8, 92u8, + 184u8, 69u8, 64u8, 26u8, 251u8, 229u8, 240u8, + 155u8, 243u8, 21u8, 7u8, 57u8, 14u8, 251u8, 44u8, + 55u8, 238u8, 91u8, 134u8, 175u8, 239u8, 76u8, + 181u8, 17u8, + ], + ) + } + #[doc = "Removes a resource ID from the resource mapping."] + #[doc = ""] + #[doc = "After this call, bridge transfers with the associated resource ID"] + #[doc = "will be rejected."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) removal"] + #[doc = "# "] + pub fn remove_resource( + &self, + id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "remove_resource", + types::RemoveResource { id }, + [ + 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, + 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, + 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, + 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, + 172u8, 92u8, 67u8, + ], + ) + } + #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) lookup and insert"] + #[doc = "# "] + pub fn whitelist_chain( + &self, + chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "whitelist_chain", + types::WhitelistChain { chain_id }, + [ + 143u8, 172u8, 215u8, 87u8, 23u8, 86u8, 95u8, 116u8, + 205u8, 140u8, 58u8, 104u8, 6u8, 162u8, 28u8, 115u8, + 64u8, 94u8, 184u8, 169u8, 225u8, 28u8, 180u8, 13u8, + 242u8, 35u8, 58u8, 114u8, 120u8, 220u8, 48u8, + 162u8, + ], + ) + } + #[doc = "Adds a new proposer to the proposer set."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) lookup and insert"] + #[doc = "# "] + pub fn add_proposer( + &self, + native_account: ::subxt::utils::AccountId32, + external_account: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "add_proposer", + types::AddProposer { + native_account, + external_account, + }, + [ + 160u8, 92u8, 87u8, 9u8, 152u8, 22u8, 53u8, 235u8, + 151u8, 20u8, 251u8, 54u8, 150u8, 195u8, 177u8, + 181u8, 190u8, 9u8, 209u8, 246u8, 99u8, 150u8, 40u8, + 77u8, 191u8, 175u8, 100u8, 75u8, 5u8, 244u8, 184u8, + 122u8, + ], + ) + } + #[doc = "Removes an existing proposer from the set."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) lookup and removal"] + #[doc = "# "] + pub fn remove_proposer( + &self, + v: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "remove_proposer", + types::RemoveProposer { v }, + [ + 21u8, 136u8, 197u8, 105u8, 101u8, 203u8, 64u8, + 170u8, 57u8, 37u8, 253u8, 246u8, 124u8, 127u8, + 131u8, 73u8, 55u8, 218u8, 160u8, 22u8, 232u8, + 198u8, 208u8, 166u8, 73u8, 24u8, 234u8, 117u8, + 17u8, 232u8, 72u8, 234u8, + ], + ) + } + #[doc = "Commits a vote in favour of the provided proposal."] + #[doc = ""] + #[doc = "If a proposal with the given nonce and source chain ID does not"] + #[doc = "already exist, it will be created with an initial vote in favour"] + #[doc = "from the caller."] + #[doc = ""] + #[doc = "# "] + #[doc = "- weight of proposed call, regardless of whether execution is performed"] + #[doc = "# "] + pub fn acknowledge_proposal( + &self, + nonce: runtime_types::webb_proposals::nonce::Nonce, + src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + r_id: runtime_types::webb_proposals::header::ResourceId, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "acknowledge_proposal", + types::AcknowledgeProposal { + nonce, + src_chain_id, + r_id, + prop, + }, + [ + 144u8, 178u8, 224u8, 126u8, 92u8, 178u8, 113u8, + 91u8, 41u8, 61u8, 192u8, 103u8, 105u8, 37u8, 23u8, + 66u8, 122u8, 248u8, 92u8, 7u8, 251u8, 212u8, 99u8, + 254u8, 65u8, 117u8, 126u8, 225u8, 131u8, 116u8, + 187u8, 212u8, + ], + ) + } + #[doc = "Commits a vote against a provided proposal."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Fixed, since execution of proposal should not be included"] + #[doc = "# "] + pub fn reject_proposal( + &self, + nonce: runtime_types::webb_proposals::nonce::Nonce, + src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + r_id: runtime_types::webb_proposals::header::ResourceId, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "reject_proposal", + types::RejectProposal { + nonce, + src_chain_id, + r_id, + prop, + }, + [ + 86u8, 225u8, 153u8, 170u8, 61u8, 160u8, 19u8, 23u8, + 224u8, 202u8, 159u8, 226u8, 178u8, 49u8, 91u8, + 251u8, 220u8, 131u8, 149u8, 175u8, 146u8, 28u8, + 67u8, 188u8, 156u8, 246u8, 255u8, 58u8, 181u8, 2u8, + 127u8, 255u8, + ], + ) + } + #[doc = "Evaluate the state of a proposal given the current vote threshold."] + #[doc = ""] + #[doc = "A proposal with enough votes will be either executed or cancelled,"] + #[doc = "and the status will be updated accordingly."] + #[doc = ""] + #[doc = "# "] + #[doc = "- weight of proposed call, regardless of whether execution is performed"] + #[doc = "# "] + pub fn eval_vote_state( + &self, + nonce: runtime_types::webb_proposals::nonce::Nonce, + src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposals", + "eval_vote_state", + types::EvalVoteState { + nonce, + src_chain_id, + prop, + }, + [ + 216u8, 162u8, 146u8, 194u8, 180u8, 203u8, 200u8, + 87u8, 101u8, 48u8, 152u8, 60u8, 208u8, 57u8, 114u8, + 147u8, 210u8, 247u8, 95u8, 217u8, 209u8, 73u8, + 54u8, 202u8, 29u8, 82u8, 255u8, 125u8, 188u8, + 130u8, 34u8, 77u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_dkg_proposals::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Vote threshold has changed (new_threshold)"] + pub struct ProposerThresholdChanged { + pub new_threshold: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposerThresholdChanged { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposerThresholdChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Chain now available for transfers (chain_id)"] + pub struct ChainWhitelisted { + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + } + impl ::subxt::events::StaticEvent for ChainWhitelisted { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ChainWhitelisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Proposer added to set"] + pub struct ProposerAdded { + pub proposer_id: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for ProposerAdded { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposerAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Proposer removed from set"] + pub struct ProposerRemoved { + pub proposer_id: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for ProposerRemoved { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposerRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Vote submitted in favour of proposal"] + pub struct VoteFor { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for VoteFor { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "VoteFor"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Vot submitted against proposal"] + pub struct VoteAgainst { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for VoteAgainst { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "VoteAgainst"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Voting successful for a proposal"] + pub struct ProposalApproved { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, + } + impl ::subxt::events::StaticEvent for ProposalApproved { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposalApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Voting rejected a proposal"] + pub struct ProposalRejected { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, + } + impl ::subxt::events::StaticEvent for ProposalRejected { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposalRejected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Execution of call succeeded"] + pub struct ProposalSucceeded { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, + } + impl ::subxt::events::StaticEvent for ProposalSucceeded { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposalSucceeded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Execution of call failed"] + pub struct ProposalFailed { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, + } + impl ::subxt::events::StaticEvent for ProposalFailed { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "ProposalFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Proposers have been reset"] + pub struct AuthorityProposersReset { + pub proposers: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for AuthorityProposersReset { + const PALLET: &'static str = "DKGProposals"; + const EVENT: &'static str = "AuthorityProposersReset"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::nonce::Nonce, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [153u8 , 41u8 , 103u8 , 222u8 , 96u8 , 64u8 , 161u8 , 162u8 , 39u8 , 95u8 , 154u8 , 67u8 , 167u8 , 127u8 , 163u8 , 149u8 , 38u8 , 175u8 , 245u8 , 223u8 , 182u8 , 86u8 , 163u8 , 10u8 , 143u8 , 190u8 , 137u8 , 192u8 , 227u8 , 12u8 , 135u8 , 227u8 ,]) + } + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::nonce::Nonce, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "ChainNonces", + Vec::new(), + [ + 153u8, 41u8, 103u8, 222u8, 96u8, 64u8, 161u8, + 162u8, 39u8, 95u8, 154u8, 67u8, 167u8, 127u8, + 163u8, 149u8, 38u8, 175u8, 245u8, 223u8, 182u8, + 86u8, 163u8, 10u8, 143u8, 190u8, 137u8, 192u8, + 227u8, 12u8, 135u8, 227u8, + ], + ) + } + #[doc = " Number of votes required for a proposal to execute"] + pub fn proposer_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "ProposerThreshold", + vec![], + [ + 129u8, 174u8, 171u8, 36u8, 172u8, 108u8, 139u8, + 176u8, 152u8, 127u8, 52u8, 68u8, 109u8, 238u8, + 50u8, 176u8, 49u8, 78u8, 240u8, 36u8, 94u8, 247u8, + 215u8, 82u8, 109u8, 10u8, 81u8, 156u8, 14u8, 247u8, + 39u8, 154u8, + ], + ) + } + #[doc = " Proposer Set Update Proposal Nonce"] + pub fn proposer_set_update_proposal_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "ProposerSetUpdateProposalNonce", + vec![], + [ + 118u8, 52u8, 184u8, 159u8, 206u8, 28u8, 122u8, + 219u8, 168u8, 206u8, 143u8, 16u8, 128u8, 31u8, + 254u8, 40u8, 45u8, 92u8, 183u8, 46u8, 80u8, 19u8, + 131u8, 6u8, 26u8, 105u8, 81u8, 174u8, 10u8, 154u8, + 186u8, 157u8, + ], + ) + } + #[doc = " Tracks current proposer set"] + pub fn proposers( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Proposers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [163u8 , 252u8 , 227u8 , 131u8 , 254u8 , 6u8 , 64u8 , 191u8 , 158u8 , 117u8 , 69u8 , 137u8 , 184u8 , 85u8 , 112u8 , 252u8 , 137u8 , 30u8 , 24u8 , 87u8 , 55u8 , 82u8 , 22u8 , 241u8 , 124u8 , 222u8 , 155u8 , 60u8 , 123u8 , 5u8 , 191u8 , 79u8 ,]) + } + #[doc = " Tracks current proposer set"] + pub fn proposers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "Proposers", + Vec::new(), + [ + 163u8, 252u8, 227u8, 131u8, 254u8, 6u8, 64u8, + 191u8, 158u8, 117u8, 69u8, 137u8, 184u8, 85u8, + 112u8, 252u8, 137u8, 30u8, 24u8, 87u8, 55u8, 82u8, + 22u8, 241u8, 124u8, 222u8, 155u8, 60u8, 123u8, 5u8, + 191u8, 79u8, + ], + ) + } + #[doc = " Tracks current proposer set external accounts"] + #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] + pub fn external_proposer_accounts( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "ExternalProposerAccounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [20u8 , 120u8 , 130u8 , 198u8 , 23u8 , 142u8 , 44u8 , 2u8 , 227u8 , 81u8 , 19u8 , 161u8 , 131u8 , 103u8 , 182u8 , 14u8 , 83u8 , 59u8 , 88u8 , 35u8 , 193u8 , 118u8 , 232u8 , 48u8 , 119u8 , 28u8 , 143u8 , 242u8 , 168u8 , 76u8 , 194u8 , 117u8 ,]) + } + #[doc = " Tracks current proposer set external accounts"] + #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] + pub fn external_proposer_accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "ExternalProposerAccounts", + Vec::new(), + [ + 20u8, 120u8, 130u8, 198u8, 23u8, 142u8, 44u8, 2u8, + 227u8, 81u8, 19u8, 161u8, 131u8, 103u8, 182u8, + 14u8, 83u8, 59u8, 88u8, 35u8, 193u8, 118u8, 232u8, + 48u8, 119u8, 28u8, 143u8, 242u8, 168u8, 76u8, + 194u8, 117u8, + ], + ) + } + #[doc = " Tracks the authorities that are proposers so we can properly update the proposer set"] + #[doc = " across sessions and authority changes."] + pub fn authority_proposers( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "AuthorityProposers", + vec![], + [ + 13u8, 39u8, 119u8, 156u8, 19u8, 173u8, 56u8, 139u8, + 217u8, 25u8, 136u8, 183u8, 232u8, 196u8, 58u8, + 202u8, 155u8, 60u8, 26u8, 153u8, 218u8, 72u8, + 108u8, 133u8, 30u8, 11u8, 9u8, 41u8, 145u8, 129u8, + 200u8, 248u8, + ], + ) + } + #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "ExternalAuthorityProposerAccounts", + vec![], + [ + 139u8, 28u8, 211u8, 94u8, 127u8, 243u8, 82u8, + 237u8, 70u8, 205u8, 243u8, 167u8, 161u8, 98u8, + 62u8, 122u8, 118u8, 152u8, 200u8, 230u8, 35u8, + 206u8, 120u8, 128u8, 44u8, 216u8, 113u8, 255u8, + 110u8, 75u8, 108u8, 1u8, + ], + ) + } + #[doc = " Number of proposers in set"] + pub fn proposer_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "ProposerCount", + vec![], + [ + 150u8, 116u8, 125u8, 20u8, 135u8, 11u8, 47u8, + 155u8, 87u8, 113u8, 44u8, 139u8, 67u8, 74u8, 92u8, + 113u8, 173u8, 62u8, 207u8, 79u8, 125u8, 109u8, + 170u8, 166u8, 55u8, 85u8, 3u8, 32u8, 155u8, 45u8, + 236u8, 253u8, + ], + ) + } + #[doc = " All known proposals."] + #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] + #[doc = " unique."] + pub fn votes( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > ,) >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_proposals::types::ProposalVotes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + runtime_types::tangle_standalone_runtime::MaxVotes, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [170u8 , 58u8 , 19u8 , 141u8 , 123u8 , 87u8 , 199u8 , 5u8 , 37u8 , 56u8 , 221u8 , 167u8 , 88u8 , 33u8 , 21u8 , 73u8 , 251u8 , 81u8 , 122u8 , 25u8 , 77u8 , 81u8 , 160u8 , 143u8 , 35u8 , 204u8 , 85u8 , 86u8 , 24u8 , 94u8 , 15u8 , 191u8 ,]) + } + #[doc = " All known proposals."] + #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] + #[doc = " unique."] + pub fn votes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg_proposals::types::ProposalVotes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + runtime_types::tangle_standalone_runtime::MaxVotes, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "Votes", + Vec::new(), + [ + 170u8, 58u8, 19u8, 141u8, 123u8, 87u8, 199u8, 5u8, + 37u8, 56u8, 221u8, 167u8, 88u8, 33u8, 21u8, 73u8, + 251u8, 81u8, 122u8, 25u8, 77u8, 81u8, 160u8, 143u8, + 35u8, 204u8, 85u8, 86u8, 24u8, 94u8, 15u8, 191u8, + ], + ) + } + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Resources" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [137u8 , 242u8 , 218u8 , 244u8 , 20u8 , 237u8 , 53u8 , 254u8 , 119u8 , 30u8 , 2u8 , 81u8 , 72u8 , 214u8 , 164u8 , 126u8 , 73u8 , 252u8 , 191u8 , 64u8 , 154u8 , 248u8 , 124u8 , 6u8 , 200u8 , 218u8 , 221u8 , 35u8 , 15u8 , 129u8 , 65u8 , 182u8 ,]) + } + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKGProposals", + "Resources", + Vec::new(), + [ + 137u8, 242u8, 218u8, 244u8, 20u8, 237u8, 53u8, + 254u8, 119u8, 30u8, 2u8, 81u8, 72u8, 214u8, 164u8, + 126u8, 73u8, 252u8, 191u8, 64u8, 154u8, 248u8, + 124u8, 6u8, 200u8, 218u8, 221u8, 35u8, 15u8, 129u8, + 65u8, 182u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The identifier for this chain."] + #[doc = " This must be unique and must not collide with existing IDs within a"] + #[doc = " set of bridged chains."] + pub fn chain_identifier( + &self, + ) -> ::subxt::constants::Address< + runtime_types::webb_proposals::header::TypedChainId, + > { + ::subxt::constants::Address::new_static( + "DKGProposals", + "ChainIdentifier", + [ + 80u8, 245u8, 165u8, 63u8, 83u8, 75u8, 120u8, 198u8, + 51u8, 48u8, 231u8, 27u8, 18u8, 145u8, 145u8, 198u8, + 211u8, 221u8, 19u8, 170u8, 68u8, 87u8, 79u8, 5u8, + 204u8, 71u8, 188u8, 140u8, 38u8, 17u8, 107u8, + 146u8, + ], + ) + } + pub fn proposal_lifetime( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "ProposalLifetime", + [ + 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 session period"] + pub fn period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "Period", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max votes to store for for and against"] + pub fn max_votes( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "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 max resources that can be stored in storage"] + pub fn max_resources( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "MaxResources", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max authority proposers that can be stored in storage"] + pub fn max_authority_proposers( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "MaxAuthorityProposers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max external proposer accounts that can be stored in storage"] + pub fn max_external_proposer_accounts( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "MaxExternalProposerAccounts", + [ + 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 = " Max length of a proposal"] + pub fn max_proposal_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "MaxProposalLength", + [ + 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 dkg_proposal_handler { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = + runtime_types::pallet_dkg_proposal_handler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = + runtime_types::pallet_dkg_proposal_handler::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitSignedProposals { pub props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } + impl ::subxt::blocks::StaticExtrinsic for SubmitSignedProposals { + const PALLET: &'static str = "DKGProposalHandler"; + const CALL: &'static str = "submit_signed_proposals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSubmitUnsignedProposal { + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSubmitUnsignedProposal { + const PALLET: &'static str = "DKGProposalHandler"; + const CALL: &'static str = "force_submit_unsigned_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn submit_signed_proposals( + &self, + props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposalHandler", + "submit_signed_proposals", + types::SubmitSignedProposals { props }, + [ + 40u8, 38u8, 237u8, 6u8, 145u8, 127u8, 224u8, 153u8, + 97u8, 77u8, 26u8, 198u8, 143u8, 255u8, 229u8, + 178u8, 248u8, 154u8, 41u8, 154u8, 186u8, 56u8, + 74u8, 137u8, 120u8, 36u8, 89u8, 224u8, 224u8, + 189u8, 97u8, 99u8, + ], + ) + } + #[doc = "Force submit an unsigned proposal to the DKG"] + #[doc = ""] + #[doc = "There are certain proposals we'd like to be proposable only"] + #[doc = "through root actions. The currently supported proposals are"] + #[doc = "\t1. Updating"] + pub fn force_submit_unsigned_proposal( + &self, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "DKGProposalHandler", + "force_submit_unsigned_proposal", + types::ForceSubmitUnsignedProposal { prop }, + [ + 213u8, 166u8, 49u8, 2u8, 146u8, 30u8, 105u8, 213u8, + 119u8, 50u8, 83u8, 22u8, 234u8, 221u8, 92u8, 156u8, + 120u8, 5u8, 213u8, 174u8, 17u8, 129u8, 49u8, 196u8, + 36u8, 52u8, 59u8, 100u8, 21u8, 204u8, 79u8, 43u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_dkg_proposal_handler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] + pub struct InvalidProposalSignature { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub data: ::std::vec::Vec<::core::primitive::u8>, + pub invalid_signature: ::std::vec::Vec<::core::primitive::u8>, + pub expected_public_key: ::core::option::Option< + ::std::vec::Vec<::core::primitive::u8>, + >, + pub actual_public_key: ::core::option::Option< + ::std::vec::Vec<::core::primitive::u8>, + >, + } + impl ::subxt::events::StaticEvent for InvalidProposalSignature { + const PALLET: &'static str = "DKGProposalHandler"; + const EVENT: &'static str = "InvalidProposalSignature"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] + pub struct ProposalAdded { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } + impl ::subxt::events::StaticEvent for ProposalAdded { + const PALLET: &'static str = "DKGProposalHandler"; + const EVENT: &'static str = "ProposalAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] + pub struct ProposalRemoved { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub expired : :: core :: primitive :: bool , } + impl ::subxt::events::StaticEvent for ProposalRemoved { + const PALLET: &'static str = "DKGProposalHandler"; + const EVENT: &'static str = "ProposalRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] + pub struct ProposalSigned { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } + impl ::subxt::events::StaticEvent for ProposalSigned { + const PALLET: &'static str = "DKGProposalHandler"; + const EVENT: &'static str = "ProposalSigned"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("DKGProposalHandler" , "UnsignedProposalQueue" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [180u8 , 168u8 , 253u8 , 235u8 , 22u8 , 205u8 , 104u8 , 231u8 , 206u8 , 162u8 , 69u8 , 53u8 , 120u8 , 242u8 , 94u8 , 192u8 , 63u8 , 147u8 , 54u8 , 66u8 , 54u8 , 195u8 , 19u8 , 252u8 , 129u8 , 118u8 , 114u8 , 37u8 , 231u8 , 137u8 , 66u8 , 228u8 ,]) + } + #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "DKGProposalHandler", + "UnsignedProposalQueue", + Vec::new(), + [ + 180u8, 168u8, 253u8, 235u8, 22u8, 205u8, 104u8, + 231u8, 206u8, 162u8, 69u8, 53u8, 120u8, 242u8, + 94u8, 192u8, 63u8, 147u8, 54u8, 66u8, 54u8, 195u8, + 19u8, 252u8, 129u8, 118u8, 114u8, 37u8, 231u8, + 137u8, 66u8, 228u8, + ], + ) + } + #[doc = " Defines the block when next unsigned transaction will be accepted."] + #[doc = ""] + #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] + #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] + #[doc = " This storage entry defines when new transaction is going to be accepted."] + pub fn next_unsigned_at( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DKGProposalHandler", + "NextUnsignedAt", + vec![], + [ + 175u8, 176u8, 254u8, 20u8, 27u8, 31u8, 70u8, 46u8, + 201u8, 118u8, 22u8, 200u8, 95u8, 116u8, 223u8, + 63u8, 191u8, 85u8, 55u8, 21u8, 70u8, 24u8, 225u8, + 203u8, 66u8, 213u8, 94u8, 229u8, 234u8, 223u8, + 255u8, 28u8, + ], + ) + } + #[doc = " All signed proposals."] + pub fn signed_proposals( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("DKGProposalHandler" , "SignedProposals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [40u8 , 252u8 , 222u8 , 220u8 , 87u8 , 195u8 , 206u8 , 177u8 , 252u8 , 151u8 , 163u8 , 130u8 , 212u8 , 57u8 , 250u8 , 155u8 , 16u8 , 65u8 , 94u8 , 201u8 , 52u8 , 174u8 , 75u8 , 9u8 , 185u8 , 240u8 , 218u8 , 241u8 , 208u8 , 36u8 , 17u8 , 196u8 ,]) + } + #[doc = " All signed proposals."] + pub fn signed_proposals_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "DKGProposalHandler", + "SignedProposals", + Vec::new(), + [ + 40u8, 252u8, 222u8, 220u8, 87u8, 195u8, 206u8, + 177u8, 252u8, 151u8, 163u8, 130u8, 212u8, 57u8, + 250u8, 155u8, 16u8, 65u8, 94u8, 201u8, 52u8, 174u8, + 75u8, 9u8, 185u8, 240u8, 218u8, 241u8, 208u8, 36u8, + 17u8, 196u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max number of signed proposal submissions per batch;"] + pub fn max_submissions_per_batch( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::new_static( + "DKGProposalHandler", + "MaxSubmissionsPerBatch", + [ + 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, + ], + ) + } + #[doc = " Max blocks to store an unsigned proposal"] + pub fn unsigned_proposal_expiry( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposalHandler", + "UnsignedProposalExpiry", + [ + 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 = " Max length of a proposal"] + pub fn max_proposal_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposalHandler", + "MaxProposalLength", + [ + 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 bridge_registry { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bridge_registry::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_bridge_registry::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { pub bridge_index : :: core :: primitive :: u32 , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "BridgeRegistry"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceResetIndices { + pub resource_ids: ::std::vec::Vec< + runtime_types::webb_proposals::header::ResourceId, + >, + pub bridge_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceResetIndices { + const PALLET: &'static str = "BridgeRegistry"; + const CALL: &'static str = "force_reset_indices"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Set an account's identity information and reserve the appropriate deposit."] + #[doc = ""] + #[doc = "If the account already has identity information, the deposit is taken as part payment"] + #[doc = "for the new deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `info`: The identity information."] + #[doc = ""] + #[doc = "Emits `ResourceSet` if successful."] + pub fn set_metadata( + &self, + bridge_index: ::core::primitive::u32, + info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BridgeRegistry", + "set_metadata", + types::SetMetadata { bridge_index, info }, + [ + 72u8, 84u8, 159u8, 244u8, 136u8, 19u8, 190u8, + 187u8, 185u8, 86u8, 180u8, 197u8, 241u8, 97u8, + 235u8, 39u8, 114u8, 90u8, 112u8, 70u8, 93u8, 230u8, + 236u8, 25u8, 109u8, 152u8, 155u8, 107u8, 160u8, + 183u8, 137u8, 242u8, + ], + ) + } + pub fn force_reset_indices( + &self, + resource_ids: ::std::vec::Vec< + runtime_types::webb_proposals::header::ResourceId, + >, + bridge_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "BridgeRegistry", + "force_reset_indices", + types::ForceResetIndices { + resource_ids, + bridge_index, + }, + [ + 162u8, 5u8, 147u8, 58u8, 45u8, 163u8, 101u8, 251u8, + 103u8, 30u8, 134u8, 106u8, 142u8, 117u8, 183u8, + 108u8, 14u8, 208u8, 208u8, 82u8, 155u8, 61u8, 61u8, + 62u8, 81u8, 181u8, 88u8, 220u8, 122u8, 176u8, 50u8, + 29u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_bridge_registry::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Storage for next bridge index"] + pub fn next_bridge_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "BridgeRegistry", + "NextBridgeIndex", + vec![], + [ + 47u8, 238u8, 32u8, 185u8, 116u8, 5u8, 125u8, 28u8, + 39u8, 110u8, 178u8, 155u8, 45u8, 72u8, 248u8, + 161u8, 75u8, 161u8, 207u8, 101u8, 55u8, 226u8, + 233u8, 233u8, 14u8, 62u8, 168u8, 20u8, 146u8, 8u8, + 152u8, 222u8, + ], + ) + } + #[doc = " Storage for map of all bridges"] pub fn bridges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("BridgeRegistry" , "Bridges" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 112u8 , 75u8 , 147u8 , 69u8 , 209u8 , 218u8 , 149u8 , 213u8 , 112u8 , 94u8 , 202u8 , 240u8 , 100u8 , 216u8 , 77u8 , 14u8 , 111u8 , 54u8 , 86u8 , 79u8 , 109u8 , 31u8 , 34u8 , 31u8 , 24u8 , 30u8 , 64u8 , 29u8 , 29u8 , 64u8 , 3u8 ,]) + } + #[doc = " Storage for map of all bridges"] pub fn bridges_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "BridgeRegistry", + "Bridges", + Vec::new(), + [ + 1u8, 112u8, 75u8, 147u8, 69u8, 209u8, 218u8, 149u8, + 213u8, 112u8, 94u8, 202u8, 240u8, 100u8, 216u8, + 77u8, 14u8, 111u8, 54u8, 86u8, 79u8, 109u8, 31u8, + 34u8, 31u8, 24u8, 30u8, 64u8, 29u8, 29u8, 64u8, + 3u8, + ], + ) + } + #[doc = " Mapping of resource to bridge index"] + pub fn resource_to_bridge_index( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BridgeRegistry" , "ResourceToBridgeIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 216u8 , 179u8 , 142u8 , 98u8 , 4u8 , 178u8 , 25u8 , 179u8 , 57u8 , 140u8 , 220u8 , 202u8 , 186u8 , 74u8 , 115u8 , 145u8 , 63u8 , 69u8 , 239u8 , 102u8 , 91u8 , 1u8 , 43u8 , 46u8 , 165u8 , 18u8 , 191u8 , 7u8 , 97u8 , 84u8 , 111u8 ,]) + } + #[doc = " Mapping of resource to bridge index"] + pub fn resource_to_bridge_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BridgeRegistry", + "ResourceToBridgeIndex", + Vec::new(), + [ + 130u8, 216u8, 179u8, 142u8, 98u8, 4u8, 178u8, 25u8, + 179u8, 57u8, 140u8, 220u8, 202u8, 186u8, 74u8, + 115u8, 145u8, 63u8, 69u8, 239u8, 102u8, 91u8, 1u8, + 43u8, 46u8, 165u8, 18u8, 191u8, 7u8, 97u8, 84u8, + 111u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum number of additional fields that may be stored in a bridge's metadata. Needed to"] + #[doc = " bound the I/O required to access an identity, but can be pretty high."] + pub fn max_additional_fields( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "BridgeRegistry", + "MaxAdditionalFields", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum number of resources that may be stored in a bridge. This is not to be confused"] + #[doc = " with the actual maximum supported by the bridge. Needed to bound the I/O"] + #[doc = " required to access a metadata object, but can be pretty high."] + pub fn max_resources( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "BridgeRegistry", + "MaxResources", + [ + 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 = " Max length of a proposal"] + pub fn max_proposal_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "BridgeRegistry", + "MaxProposalLength", + [ + 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 indices { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_indices::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Claim { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Free { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Free { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + pub freeze: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Freeze { + pub index: ::core::primitive::u32, + } + impl ::subxt::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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, + [ + 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, + 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, + 88u8, 196u8, 189u8, 244u8, 18u8, 233u8, 37u8, + 228u8, 248u8, 76u8, 175u8, 212u8, 233u8, 238u8, + 203u8, 162u8, 68u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "transfer", + types::Transfer { new, index }, + [ + 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, + 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, + 154u8, 27u8, 34u8, 205u8, 188u8, 10u8, 169u8, + 203u8, 39u8, 2u8, 236u8, 181u8, 162u8, 115u8, + 254u8, 42u8, 28u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, + [ + 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, + 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, + 74u8, 203u8, 235u8, 138u8, 255u8, 27u8, 163u8, + 71u8, 254u8, 217u8, 6u8, 208u8, 202u8, 204u8, + 238u8, 70u8, 126u8, 252u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + freeze: ::core::primitive::bool, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Indices", + "force_transfer", + types::ForceTransfer { new, index, freeze }, + [ + 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, + 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, + 181u8, 172u8, 64u8, 37u8, 165u8, 121u8, 111u8, + 173u8, 224u8, 181u8, 79u8, 76u8, 134u8, 93u8, + 169u8, 65u8, 131u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "freeze", + types::Freeze { index }, + [ + 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, + 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, + 246u8, 149u8, 31u8, 168u8, 186u8, 208u8, 90u8, + 40u8, 47u8, 100u8, 228u8, 188u8, 33u8, 79u8, 220u8, + 105u8, 209u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_indices::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index was assigned."] + pub struct IndexAssigned { + pub who: ::subxt::utils::AccountId32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexAssigned { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index has been freed up (unassigned)."] + pub struct IndexFreed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexFreed { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index has been frozen to its current account ID."] + pub struct IndexFrozen { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for IndexFrozen { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFrozen"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The lookup from index to account."] + pub fn accounts( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) + } + #[doc = " The lookup from index to account."] + pub fn accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Indices", + "Accounts", + Vec::new(), + [ + 211u8, 169u8, 54u8, 254u8, 88u8, 57u8, 22u8, 223u8, + 108u8, 27u8, 38u8, 9u8, 202u8, 209u8, 111u8, 209u8, + 144u8, 13u8, 211u8, 114u8, 239u8, 127u8, 75u8, + 166u8, 234u8, 222u8, 225u8, 35u8, 160u8, 163u8, + 112u8, 242u8, + ], + ) + } + } + } + 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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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 democracy { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_democracy::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_democracy::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Propose { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] pub value : :: core :: primitive :: u128 , } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Second { + #[codec(compact)] + pub proposal: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Second { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "second"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote { + #[codec(compact)] + pub ref_index: ::core::primitive::u32, + pub vote: + runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct EmergencyCancel { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "emergency_cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExternalPropose { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } + impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExternalProposeMajority { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_majority"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExternalProposeDefault { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_default"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FastTrack { + pub proposal_hash: ::subxt::utils::H256, + pub voting_period: ::core::primitive::u32, + pub delay: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for FastTrack { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "fast_track"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VetoExternal { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for VetoExternal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "veto_external"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelReferendum { + #[codec(compact)] + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_referendum"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Delegate { + pub to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub conviction: + runtime_types::pallet_democracy::conviction::Conviction, + pub balance: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "delegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Undelegate; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "undelegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClearPublicProposals; + impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "clear_public_proposals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unlock { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "unlock"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveVote { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveOtherVote { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_other_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Blacklist { + pub proposal_hash: ::subxt::utils::H256, + pub maybe_ref_index: + ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for Blacklist { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "blacklist"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelProposal { + #[codec(compact)] + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelProposal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub maybe_hash: + ::core::option::Option<::subxt::utils::H256>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "set_metadata"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Propose a sensitive action to be taken."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] + #[doc = "have funds to cover the deposit."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the proposal preimage."] + #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] + #[doc = ""] + #[doc = "Emits `Proposed`."] + pub fn propose( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "propose", + types::Propose { proposal, value }, + [ + 123u8, 3u8, 204u8, 140u8, 194u8, 195u8, 214u8, + 39u8, 167u8, 126u8, 45u8, 4u8, 219u8, 17u8, 143u8, + 185u8, 29u8, 224u8, 230u8, 68u8, 253u8, 15u8, + 170u8, 90u8, 232u8, 123u8, 46u8, 255u8, 168u8, + 39u8, 204u8, 63u8, + ], + ) + } + #[doc = "Signals agreement with a particular proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] + #[doc = "must have funds to cover the deposit, equal to the original deposit."] + #[doc = ""] + #[doc = "- `proposal`: The index of the proposal to second."] + pub fn second( + &self, + proposal: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "second", + types::Second { proposal }, + [ + 59u8, 240u8, 183u8, 218u8, 61u8, 93u8, 184u8, 67u8, + 10u8, 4u8, 138u8, 196u8, 168u8, 49u8, 42u8, 69u8, + 154u8, 42u8, 90u8, 112u8, 179u8, 69u8, 51u8, 148u8, + 159u8, 212u8, 221u8, 226u8, 132u8, 228u8, 51u8, + 83u8, + ], + ) + } + #[doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] + #[doc = "- `vote`: The vote configuration."] + pub fn vote( + &self, + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "vote", + types::Vote { ref_index, vote }, + [ + 138u8, 213u8, 229u8, 111u8, 1u8, 191u8, 73u8, 3u8, + 145u8, 28u8, 44u8, 88u8, 163u8, 188u8, 129u8, + 188u8, 64u8, 15u8, 64u8, 103u8, 250u8, 97u8, 234u8, + 188u8, 29u8, 205u8, 51u8, 6u8, 116u8, 58u8, 156u8, + 201u8, + ], + ) + } + #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] + #[doc = ""] + #[doc = "-`ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] + pub fn emergency_cancel( + &self, + ref_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "emergency_cancel", + types::EmergencyCancel { ref_index }, + [ + 139u8, 213u8, 133u8, 75u8, 34u8, 206u8, 124u8, + 245u8, 35u8, 237u8, 132u8, 92u8, 49u8, 167u8, + 117u8, 80u8, 188u8, 93u8, 198u8, 237u8, 132u8, + 77u8, 195u8, 65u8, 29u8, 37u8, 86u8, 74u8, 214u8, + 119u8, 71u8, 204u8, + ], + ) + } + #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + pub fn external_propose( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose", + types::ExternalPropose { proposal }, + [ + 164u8, 193u8, 14u8, 122u8, 105u8, 232u8, 20u8, + 194u8, 99u8, 227u8, 36u8, 105u8, 218u8, 146u8, + 16u8, 208u8, 56u8, 62u8, 100u8, 65u8, 35u8, 33u8, + 51u8, 208u8, 17u8, 43u8, 223u8, 198u8, 202u8, 16u8, + 56u8, 75u8, + ], + ) + } + #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] + #[doc = "an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn external_propose_majority( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_majority", + types::ExternalProposeMajority { proposal }, + [ + 129u8, 124u8, 147u8, 253u8, 69u8, 115u8, 230u8, + 186u8, 155u8, 4u8, 220u8, 103u8, 28u8, 132u8, + 115u8, 153u8, 196u8, 88u8, 9u8, 130u8, 129u8, + 234u8, 75u8, 96u8, 202u8, 216u8, 145u8, 189u8, + 231u8, 101u8, 127u8, 11u8, + ], + ) + } + #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] + #[doc = "schedule an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn external_propose_default( + &self, + proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_default", + types::ExternalProposeDefault { proposal }, + [ + 96u8, 15u8, 108u8, 208u8, 141u8, 247u8, 4u8, 73u8, + 2u8, 30u8, 231u8, 40u8, 184u8, 250u8, 42u8, 161u8, + 248u8, 45u8, 217u8, 50u8, 53u8, 13u8, 181u8, 214u8, + 136u8, 51u8, 93u8, 95u8, 165u8, 3u8, 83u8, 190u8, + ], + ) + } + #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] + #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] + #[doc = "but it is not a majority-carries referendum then it fails."] + #[doc = ""] + #[doc = "The dispatch of this call must be `FastTrackOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the current external proposal."] + #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] + #[doc = "\tMust be always greater than zero."] + #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] + #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] + #[doc = " enacted. This doesn't have a minimum amount."] + #[doc = ""] + #[doc = "Emits `Started`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + pub fn fast_track( + &self, + proposal_hash: ::subxt::utils::H256, + voting_period: ::core::primitive::u32, + delay: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "fast_track", + types::FastTrack { + proposal_hash, + voting_period, + delay, + }, + [ + 125u8, 209u8, 107u8, 120u8, 93u8, 205u8, 129u8, + 147u8, 254u8, 126u8, 45u8, 126u8, 39u8, 0u8, 56u8, + 14u8, 233u8, 49u8, 245u8, 220u8, 156u8, 10u8, + 252u8, 31u8, 102u8, 90u8, 163u8, 236u8, 178u8, + 85u8, 13u8, 24u8, + ], + ) + } + #[doc = "Veto and blacklist the external proposal hash."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `VetoOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] + #[doc = ""] + #[doc = "Emits `Vetoed`."] + #[doc = ""] + #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + pub fn veto_external( + &self, + proposal_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "veto_external", + types::VetoExternal { proposal_hash }, + [ + 209u8, 18u8, 18u8, 103u8, 186u8, 160u8, 214u8, + 124u8, 150u8, 207u8, 112u8, 90u8, 84u8, 197u8, + 95u8, 157u8, 165u8, 65u8, 109u8, 101u8, 75u8, + 201u8, 41u8, 149u8, 75u8, 154u8, 37u8, 178u8, + 239u8, 121u8, 124u8, 23u8, + ], + ) + } + #[doc = "Remove a referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "# Weight: `O(1)`."] + pub fn cancel_referendum( + &self, + ref_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_referendum", + types::CancelReferendum { ref_index }, + [ + 51u8, 25u8, 25u8, 251u8, 236u8, 115u8, 130u8, + 230u8, 72u8, 186u8, 119u8, 71u8, 165u8, 137u8, + 55u8, 167u8, 187u8, 128u8, 55u8, 8u8, 212u8, 139u8, + 245u8, 232u8, 103u8, 136u8, 229u8, 113u8, 125u8, + 36u8, 1u8, 149u8, + ], + ) + } + #[doc = "Delegate the voting power (with some given conviction) of the sending account."] + #[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/consolidated"] + #[doc = " through `reap_vote` or `unvote`)."] + #[doc = ""] + #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] + #[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 referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] + pub fn delegate( + &self, + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + conviction : runtime_types :: pallet_democracy :: conviction :: Conviction, + balance: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "delegate", + types::Delegate { + to, + conviction, + balance, + }, + [ + 247u8, 226u8, 242u8, 221u8, 47u8, 161u8, 91u8, + 223u8, 6u8, 79u8, 238u8, 205u8, 41u8, 188u8, 140u8, + 56u8, 181u8, 248u8, 102u8, 10u8, 127u8, 166u8, + 90u8, 187u8, 13u8, 124u8, 209u8, 117u8, 16u8, + 209u8, 74u8, 29u8, + ], + ) + } + #[doc = "Undelegate the voting power of the sending account."] + #[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."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] + #[doc = "currently delegating."] + #[doc = ""] + #[doc = "Emits `Undelegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] + pub fn undelegate( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "undelegate", + types::Undelegate {}, + [ + 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, + 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, + 155u8, 44u8, 245u8, 28u8, 220u8, 56u8, 134u8, 43u8, + 122u8, 248u8, 156u8, 191u8, 154u8, 4u8, 121u8, + 152u8, 153u8, + ], + ) + } + #[doc = "Clears all public proposals."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] + pub fn clear_public_proposals( + &self, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "clear_public_proposals", + types::ClearPublicProposals {}, + [ + 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, + 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, + 12u8, 141u8, 243u8, 197u8, 46u8, 130u8, 215u8, + 196u8, 225u8, 88u8, 48u8, 199u8, 231u8, 249u8, + 195u8, 53u8, 184u8, 204u8, + ], + ) + } + #[doc = "Unlock tokens that have an expired lock."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[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, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "unlock", + types::Unlock { target }, + [ + 227u8, 6u8, 154u8, 150u8, 253u8, 167u8, 142u8, 6u8, + 147u8, 24u8, 124u8, 51u8, 101u8, 185u8, 184u8, + 170u8, 6u8, 223u8, 29u8, 167u8, 73u8, 31u8, 179u8, + 60u8, 156u8, 244u8, 192u8, 233u8, 79u8, 99u8, + 248u8, 126u8, + ], + ) + } + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If:"] + #[doc = "- the referendum was cancelled, or"] + #[doc = "- the referendum is ongoing, or"] + #[doc = "- the referendum 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 referendum 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 referendum `index`."] + #[doc = ""] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] + pub fn remove_vote( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_vote", + types::RemoveVote { index }, + [ + 148u8, 120u8, 14u8, 172u8, 81u8, 152u8, 159u8, + 178u8, 106u8, 244u8, 36u8, 98u8, 120u8, 189u8, + 213u8, 93u8, 119u8, 156u8, 112u8, 34u8, 241u8, + 72u8, 206u8, 113u8, 212u8, 161u8, 164u8, 126u8, + 122u8, 82u8, 160u8, 74u8, + ], + ) + } + #[doc = "Remove a vote for a referendum."] + #[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 referendum was cancelled, because the voter lost the referendum 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"] + #[doc = " referendum `index`."] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] + pub fn remove_other_vote( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_other_vote", + types::RemoveOtherVote { target, index }, + [ + 251u8, 245u8, 79u8, 229u8, 3u8, 107u8, 66u8, 202u8, + 148u8, 31u8, 6u8, 236u8, 156u8, 202u8, 197u8, + 107u8, 100u8, 60u8, 255u8, 213u8, 222u8, 209u8, + 249u8, 61u8, 209u8, 215u8, 82u8, 73u8, 25u8, 73u8, + 161u8, 24u8, + ], + ) + } + #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] + #[doc = "proposed again."] + #[doc = ""] + #[doc = "If called on a queued public or external proposal, then this will result in it being"] + #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] + #[doc = "then it will be cancelled."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] + #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] + #[doc = "cancelled."] + #[doc = ""] + #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] + #[doc = " reasonable value)."] + pub fn blacklist( + &self, + proposal_hash: ::subxt::utils::H256, + maybe_ref_index: ::core::option::Option< + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "blacklist", + types::Blacklist { + proposal_hash, + maybe_ref_index, + }, + [ + 48u8, 144u8, 81u8, 164u8, 54u8, 111u8, 197u8, + 134u8, 6u8, 98u8, 121u8, 179u8, 254u8, 191u8, + 204u8, 212u8, 84u8, 255u8, 86u8, 110u8, 225u8, + 130u8, 26u8, 65u8, 133u8, 56u8, 231u8, 15u8, 245u8, + 137u8, 146u8, 242u8, + ], + ) + } + #[doc = "Remove a proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] + #[doc = ""] + #[doc = "- `prop_index`: The index of the proposal to cancel."] + #[doc = ""] + #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + pub fn cancel_proposal( + &self, + prop_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_proposal", + types::CancelProposal { prop_index }, + [ + 179u8, 3u8, 198u8, 244u8, 241u8, 124u8, 205u8, + 58u8, 100u8, 80u8, 177u8, 254u8, 98u8, 220u8, + 189u8, 63u8, 229u8, 60u8, 157u8, 83u8, 142u8, 6u8, + 236u8, 183u8, 193u8, 235u8, 253u8, 126u8, 153u8, + 185u8, 74u8, 117u8, + ], + ) + } + #[doc = "Set or clear a metadata of a proposal or a referendum."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] + #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] + #[doc = " threshold."] + #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] + #[doc = " threshold."] + #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] + #[doc = " threshold."] + #[doc = " - `Signed` by a creator for a public proposal."] + #[doc = " - `Signed` to clear a metadata for a finished referendum."] + #[doc = " - `Root` to set a metadata for an ongoing referendum."] + #[doc = "- `owner`: an identifier of a metadata owner."] + #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] + pub fn set_metadata( + &self, + owner : runtime_types :: pallet_democracy :: types :: MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "set_metadata", + types::SetMetadata { owner, maybe_hash }, + [ + 182u8, 2u8, 168u8, 244u8, 247u8, 35u8, 65u8, 9u8, + 39u8, 164u8, 30u8, 141u8, 69u8, 137u8, 75u8, 156u8, + 158u8, 107u8, 67u8, 28u8, 145u8, 65u8, 175u8, 30u8, + 254u8, 231u8, 4u8, 77u8, 207u8, 166u8, 157u8, 73u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_democracy::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion has been proposed by a public account."] + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A public proposal has been tabled for referendum vote."] + pub struct Tabled { + pub proposal_index: ::core::primitive::u32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Tabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Tabled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An external proposal has been tabled."] + pub struct ExternalTabled; + impl ::subxt::events::StaticEvent for ExternalTabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ExternalTabled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has begun."] + pub struct Started { pub ref_index : :: core :: primitive :: u32 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } + impl ::subxt::events::StaticEvent for Started { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Started"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been approved by referendum."] + pub struct Passed { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Passed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Passed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been rejected by referendum."] + pub struct NotPassed { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NotPassed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "NotPassed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has delegated their vote to another account."] + pub struct Delegated { + pub who: ::subxt::utils::AccountId32, + pub target: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Delegated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has cancelled a previous delegation operation."] + pub struct Undelegated { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Undelegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Undelegated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An external proposal has been vetoed."] + pub struct Vetoed { + pub who: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, + pub until: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Vetoed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Vetoed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal_hash has been blacklisted permanently."] + pub struct Blacklisted { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Blacklisted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Blacklisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has voted in a referendum"] + pub struct Voted { + pub voter: ::subxt::utils::AccountId32, + pub ref_index: ::core::primitive::u32, + pub vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has secconded a proposal"] + pub struct Seconded { + pub seconder: ::subxt::utils::AccountId32, + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Seconded { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Seconded"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal got canceled."] + pub struct ProposalCanceled { + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalCanceled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ProposalCanceled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a proposal or a referendum has been set."] + pub struct MetadataSet { + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a proposal or a referendum has been cleared."] + pub struct MetadataCleared { + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been transferred to new owner."] + pub struct MetadataTransferred { + pub prev_owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataTransferred { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataTransferred"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The number of (public) proposals that have been made so far."] + pub fn public_prop_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicPropCount", + vec![], + [ + 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, + 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, + 159u8, 9u8, 174u8, 74u8, 174u8, 218u8, 197u8, 23u8, + 235u8, 152u8, 226u8, 216u8, 4u8, 120u8, 121u8, + 27u8, 138u8, + ], + ) + } + #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: subxt :: utils :: AccountId32 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicProps", + vec![], + [ + 63u8, 172u8, 211u8, 85u8, 27u8, 14u8, 86u8, 49u8, + 133u8, 5u8, 132u8, 189u8, 138u8, 137u8, 219u8, + 37u8, 209u8, 49u8, 172u8, 86u8, 240u8, 235u8, 42u8, + 201u8, 203u8, 12u8, 122u8, 225u8, 0u8, 109u8, + 205u8, 103u8, + ], + ) + } + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "DepositOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [9u8 , 219u8 , 11u8 , 58u8 , 17u8 , 194u8 , 248u8 , 154u8 , 135u8 , 119u8 , 123u8 , 235u8 , 252u8 , 176u8 , 190u8 , 162u8 , 236u8 , 45u8 , 237u8 , 125u8 , 98u8 , 176u8 , 184u8 , 160u8 , 8u8 , 181u8 , 213u8 , 65u8 , 14u8 , 84u8 , 200u8 , 64u8 ,]) + } + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "DepositOf", + Vec::new(), + [ + 9u8, 219u8, 11u8, 58u8, 17u8, 194u8, 248u8, 154u8, + 135u8, 119u8, 123u8, 235u8, 252u8, 176u8, 190u8, + 162u8, 236u8, 45u8, 237u8, 125u8, 98u8, 176u8, + 184u8, 160u8, 8u8, 181u8, 213u8, 65u8, 14u8, 84u8, + 200u8, 64u8, + ], + ) + } + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumCount", + vec![], + [ + 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, + 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, + 119u8, 137u8, 11u8, 240u8, 160u8, 151u8, 248u8, + 229u8, 231u8, 89u8, 222u8, 18u8, 237u8, 144u8, + 78u8, 99u8, 58u8, + ], + ) + } + #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] + #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] + pub fn lowest_unbaked( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LowestUnbaked", + vec![], + [ + 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, + 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, + 128u8, 27u8, 165u8, 164u8, 111u8, 22u8, 209u8, + 190u8, 103u8, 7u8, 116u8, 16u8, 160u8, 144u8, + 123u8, 64u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "ReferendumInfoOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [167u8 , 58u8 , 230u8 , 197u8 , 185u8 , 56u8 , 181u8 , 32u8 , 81u8 , 150u8 , 29u8 , 138u8 , 142u8 , 38u8 , 255u8 , 216u8 , 139u8 , 93u8 , 56u8 , 148u8 , 196u8 , 169u8 , 168u8 , 144u8 , 193u8 , 200u8 , 187u8 , 5u8 , 141u8 , 201u8 , 254u8 , 248u8 ,]) + } + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumInfoOf", + Vec::new(), + [ + 167u8, 58u8, 230u8, 197u8, 185u8, 56u8, 181u8, + 32u8, 81u8, 150u8, 29u8, 138u8, 142u8, 38u8, 255u8, + 216u8, 139u8, 93u8, 56u8, 148u8, 196u8, 169u8, + 168u8, 144u8, 193u8, 200u8, 187u8, 5u8, 141u8, + 201u8, 254u8, 248u8, + ], + ) + } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] + pub fn voting_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "VotingOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [125u8 , 121u8 , 167u8 , 170u8 , 18u8 , 194u8 , 183u8 , 38u8 , 176u8 , 48u8 , 30u8 , 88u8 , 233u8 , 196u8 , 33u8 , 119u8 , 160u8 , 201u8 , 29u8 , 183u8 , 88u8 , 67u8 , 219u8 , 137u8 , 6u8 , 195u8 , 11u8 , 63u8 , 162u8 , 181u8 , 82u8 , 243u8 ,]) + } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] + pub fn voting_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "VotingOf", + Vec::new(), + [ + 125u8, 121u8, 167u8, 170u8, 18u8, 194u8, 183u8, + 38u8, 176u8, 48u8, 30u8, 88u8, 233u8, 196u8, 33u8, + 119u8, 160u8, 201u8, 29u8, 183u8, 88u8, 67u8, + 219u8, 137u8, 6u8, 195u8, 11u8, 63u8, 162u8, 181u8, + 82u8, 243u8, + ], + ) + } + #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] + #[doc = " proposal."] + pub fn last_tabled_was_external( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LastTabledWasExternal", + vec![], + [ + 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, + 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, + 222u8, 82u8, 31u8, 223u8, 144u8, 169u8, 17u8, 6u8, + 138u8, 36u8, 113u8, 155u8, 241u8, 106u8, 189u8, + 218u8, + ], + ) + } + #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] + #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] + #[doc = " - `LastTabledWasExternal` is `false`; or"] + #[doc = " - `PublicProps` is empty."] pub fn next_external (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold ,) , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "NextExternal", + vec![], + [ + 213u8, 36u8, 235u8, 75u8, 153u8, 33u8, 140u8, + 121u8, 191u8, 197u8, 17u8, 57u8, 234u8, 67u8, 81u8, + 55u8, 123u8, 179u8, 207u8, 124u8, 238u8, 147u8, + 243u8, 126u8, 200u8, 2u8, 16u8, 143u8, 165u8, + 143u8, 159u8, 93u8, + ], + ) + } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u32 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "Blacklist" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [8u8 , 227u8 , 185u8 , 179u8 , 192u8 , 92u8 , 171u8 , 125u8 , 237u8 , 224u8 , 109u8 , 207u8 , 44u8 , 181u8 , 78u8 , 17u8 , 254u8 , 183u8 , 199u8 , 241u8 , 49u8 , 90u8 , 101u8 , 168u8 , 46u8 , 89u8 , 253u8 , 155u8 , 38u8 , 183u8 , 112u8 , 35u8 ,]) + } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u32 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Democracy", + "Blacklist", + Vec::new(), + [ + 8u8, 227u8, 185u8, 179u8, 192u8, 92u8, 171u8, + 125u8, 237u8, 224u8, 109u8, 207u8, 44u8, 181u8, + 78u8, 17u8, 254u8, 183u8, 199u8, 241u8, 49u8, 90u8, + 101u8, 168u8, 46u8, 89u8, 253u8, 155u8, 38u8, + 183u8, 112u8, 35u8, + ], + ) + } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] + pub fn cancellations( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "Cancellations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [154u8 , 36u8 , 172u8 , 46u8 , 65u8 , 218u8 , 30u8 , 151u8 , 173u8 , 186u8 , 166u8 , 79u8 , 35u8 , 226u8 , 94u8 , 200u8 , 67u8 , 44u8 , 47u8 , 7u8 , 17u8 , 89u8 , 169u8 , 166u8 , 236u8 , 101u8 , 68u8 , 54u8 , 114u8 , 141u8 , 177u8 , 135u8 ,]) + } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] + pub fn cancellations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Cancellations", + Vec::new(), + [ + 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, + 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, + 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, + 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, + 177u8, 135u8, + ], + ) + } + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_democracy::types::MetadataOwner, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "MetadataOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [157u8 , 252u8 , 120u8 , 151u8 , 76u8 , 82u8 , 189u8 , 77u8 , 196u8 , 65u8 , 113u8 , 138u8 , 138u8 , 57u8 , 199u8 , 136u8 , 22u8 , 35u8 , 114u8 , 144u8 , 172u8 , 42u8 , 130u8 , 19u8 , 19u8 , 245u8 , 76u8 , 177u8 , 145u8 , 146u8 , 107u8 , 23u8 ,]) + } + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `PreimageHash` 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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + Vec::new(), + [ + 157u8, 252u8, 120u8, 151u8, 76u8, 82u8, 189u8, + 77u8, 196u8, 65u8, 113u8, 138u8, 138u8, 57u8, + 199u8, 136u8, 22u8, 35u8, 114u8, 144u8, 172u8, + 42u8, 130u8, 19u8, 19u8, 245u8, 76u8, 177u8, 145u8, + 146u8, 107u8, 23u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The period between a proposal being approved and enacted."] + #[doc = ""] + #[doc = " It should generally be a little more than the unstake period to ensure that"] + #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] + #[doc = " where they are on the losing side of a vote."] + pub fn enactment_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How often (in blocks) new public referenda are launched."] + pub fn launch_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How often (in blocks) to check for new votes."] + pub fn voting_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum period of vote locking."] + #[doc = ""] + #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] + #[doc = " those successful voters are locked into the consequences that their votes entail."] + pub fn vote_locking_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn minimum_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] + #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] + #[doc = " as an upgrade having happened recently."] + pub fn instant_allowed( + &self, + ) -> ::subxt::constants::Address<::core::primitive::bool> + { + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, + 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, + 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, + 115u8, 102u8, 131u8, + ], + ) + } + #[doc = " Minimum voting period allowed for a fast-track referendum."] + pub fn fast_track_voting_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] + pub fn cooloff_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of votes for an account."] + #[doc = ""] + #[doc = " Also used to compute weight, an overly big value can"] + #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] + pub fn max_votes( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of public proposals that can exist at any time."] + pub fn max_proposals( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of deposits a public proposal may have at any time."] + pub fn max_deposits( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of items which can be blacklisted."] + pub fn max_blacklisted( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod council { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_collective::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_collective::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMembers { + pub new_members: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub prime: + ::core::option::Option<::subxt::utils::AccountId32>, + pub old_count: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMembers { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "set_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Execute { + pub proposal: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Execute { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "execute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Propose { + #[codec(compact)] + pub threshold: ::core::primitive::u32, + pub proposal: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote { + pub proposal: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + pub approve: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CloseOldWeight { + pub proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + #[codec(compact)] + pub proposal_weight_bound: + runtime_types::sp_weights::OldWeight, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseOldWeight { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "close_old_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DisapproveProposal { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "disapprove_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Close { + pub proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + pub proposal_weight_bound: + runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "close"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "The dispatch of this call must be `SetMembersOrigin`."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] + pub fn set_members( + &self, + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "set_members", + types::SetMembers { + new_members, + prime, + old_count, + }, + [ + 196u8, 103u8, 123u8, 125u8, 226u8, 177u8, 126u8, + 37u8, 160u8, 114u8, 34u8, 136u8, 219u8, 84u8, + 199u8, 94u8, 242u8, 20u8, 126u8, 126u8, 166u8, + 190u8, 198u8, 33u8, 162u8, 113u8, 237u8, 222u8, + 90u8, 1u8, 2u8, 234u8, + ], + ) + } + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(B + M + P)` where:"] + #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = "- `M` members-count (code-bounded)"] + #[doc = "- `P` complexity of dispatching `proposal`"] + pub fn execute( + &self, + proposal : runtime_types :: tangle_standalone_runtime :: RuntimeCall, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "execute", + types::Execute { + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 160u8, 225u8, 0u8, 26u8, 33u8, 24u8, 217u8, 21u8, + 87u8, 126u8, 182u8, 70u8, 202u8, 231u8, 167u8, + 145u8, 84u8, 200u8, 75u8, 194u8, 239u8, 202u8, + 176u8, 9u8, 58u8, 234u8, 207u8, 136u8, 248u8, + 126u8, 219u8, 175u8, + ], + ) + } + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + pub fn propose( + &self, + threshold: ::core::primitive::u32, + proposal : runtime_types :: tangle_standalone_runtime :: RuntimeCall, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 36u8, 208u8, 176u8, 11u8, 68u8, 53u8, 167u8, 171u8, + 74u8, 249u8, 241u8, 206u8, 241u8, 16u8, 184u8, + 94u8, 32u8, 44u8, 210u8, 86u8, 54u8, 210u8, 47u8, + 165u8, 192u8, 158u8, 6u8, 224u8, 173u8, 162u8, + 242u8, 27u8, + ], + ) + } + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "## Complexity"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + pub fn vote( + &self, + proposal: ::subxt::utils::H256, + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "vote", + types::Vote { + proposal, + index, + approve, + }, + [ + 108u8, 46u8, 180u8, 148u8, 145u8, 24u8, 173u8, + 56u8, 36u8, 100u8, 216u8, 43u8, 178u8, 202u8, 26u8, + 136u8, 93u8, 84u8, 80u8, 134u8, 14u8, 42u8, 248u8, + 205u8, 68u8, 92u8, 79u8, 11u8, 113u8, 115u8, 157u8, + 100u8, + ], + ) + } + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + pub fn close_old_weight( + &self, + proposal_hash: ::subxt::utils::H256, + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::OldWeight, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Council", + "close_old_weight", + types::CloseOldWeight { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 133u8, 219u8, 90u8, 40u8, 102u8, 95u8, 4u8, 199u8, + 45u8, 234u8, 109u8, 17u8, 162u8, 63u8, 102u8, + 186u8, 95u8, 182u8, 13u8, 123u8, 227u8, 20u8, + 186u8, 207u8, 12u8, 47u8, 87u8, 252u8, 244u8, + 172u8, 60u8, 206u8, + ], + ) + } + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(P) where P is the number of max proposals"] + pub fn disapprove_proposal( + &self, + proposal_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Council", + "disapprove_proposal", + types::DisapproveProposal { proposal_hash }, + [ + 25u8, 123u8, 1u8, 8u8, 74u8, 37u8, 3u8, 40u8, 97u8, + 37u8, 175u8, 224u8, 72u8, 155u8, 123u8, 109u8, + 104u8, 43u8, 91u8, 125u8, 199u8, 51u8, 17u8, 225u8, + 133u8, 38u8, 120u8, 76u8, 164u8, 5u8, 194u8, 201u8, + ], + ) + } + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + pub fn close( + &self, + proposal_hash: ::subxt::utils::H256, + index: ::core::primitive::u32, + proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "close", + types::Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 191u8, 138u8, 89u8, 247u8, 97u8, 51u8, 45u8, 193u8, + 76u8, 16u8, 80u8, 225u8, 197u8, 83u8, 204u8, 133u8, + 169u8, 16u8, 86u8, 32u8, 125u8, 16u8, 116u8, 185u8, + 45u8, 20u8, 76u8, 148u8, 206u8, 163u8, 154u8, 30u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_collective::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + pub struct Proposed { + pub account: ::subxt::utils::AccountId32, + pub proposal_index: ::core::primitive::u32, + pub proposal_hash: ::subxt::utils::H256, + pub threshold: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + pub struct Voted { + pub account: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, + pub voted: ::core::primitive::bool, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was approved by the required threshold."] + pub struct Approved { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was not approved by the required threshold."] + pub struct Disapproved { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Disapproved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Disapproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + pub struct Executed { + pub proposal_hash: ::subxt::utils::H256, + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Executed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + pub struct MemberExecuted { + pub proposal_hash: ::subxt::utils::H256, + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for MemberExecuted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + pub struct Closed { + pub proposal_hash: ::subxt::utils::H256, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Closed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Closed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The hashes of the active proposals."] + pub fn proposals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Proposals", + vec![], + [ + 10u8, 133u8, 82u8, 54u8, 193u8, 41u8, 253u8, 159u8, + 56u8, 96u8, 249u8, 148u8, 43u8, 57u8, 116u8, 43u8, + 222u8, 243u8, 237u8, 231u8, 238u8, 60u8, 26u8, + 225u8, 19u8, 203u8, 213u8, 220u8, 114u8, 217u8, + 100u8, 27u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_standalone_runtime::RuntimeCall, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Council" , "ProposalOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 13u8 , 199u8 , 6u8 , 39u8 , 164u8 , 245u8 , 158u8 , 93u8 , 153u8 , 90u8 , 160u8 , 98u8 , 4u8 , 36u8 , 186u8 , 64u8 , 46u8 , 210u8 , 53u8 , 24u8 , 34u8 , 122u8 , 36u8 , 13u8 , 126u8 , 197u8 , 191u8 , 97u8 , 166u8 , 44u8 , 138u8 ,]) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_standalone_runtime::RuntimeCall, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalOf", + Vec::new(), + [ + 252u8, 13u8, 199u8, 6u8, 39u8, 164u8, 245u8, 158u8, + 93u8, 153u8, 90u8, 160u8, 98u8, 4u8, 36u8, 186u8, + 64u8, 46u8, 210u8, 53u8, 24u8, 34u8, 122u8, 36u8, + 13u8, 126u8, 197u8, 191u8, 97u8, 166u8, 44u8, + 138u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Council" , "Voting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [89u8 , 108u8 , 65u8 , 58u8 , 60u8 , 116u8 , 54u8 , 68u8 , 179u8 , 73u8 , 161u8 , 168u8 , 78u8 , 213u8 , 208u8 , 54u8 , 244u8 , 58u8 , 70u8 , 209u8 , 170u8 , 136u8 , 215u8 , 3u8 , 2u8 , 105u8 , 229u8 , 217u8 , 240u8 , 230u8 , 107u8 , 221u8 ,]) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Voting", + Vec::new(), + [ + 89u8, 108u8, 65u8, 58u8, 60u8, 116u8, 54u8, 68u8, + 179u8, 73u8, 161u8, 168u8, 78u8, 213u8, 208u8, + 54u8, 244u8, 58u8, 70u8, 209u8, 170u8, 136u8, + 215u8, 3u8, 2u8, 105u8, 229u8, 217u8, 240u8, 230u8, + 107u8, 221u8, + ], + ) + } + #[doc = " Proposals so far."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalCount", + vec![], + [ + 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, + 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, + 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, + 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, + 127u8, 160u8, 34u8, 70u8, + ], + ) + } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 162u8, 72u8, 174u8, 204u8, 140u8, 105u8, 205u8, + 176u8, 197u8, 117u8, 206u8, 134u8, 157u8, 110u8, + 139u8, 54u8, 43u8, 233u8, 25u8, 51u8, 36u8, 238u8, + 94u8, 124u8, 221u8, 52u8, 237u8, 71u8, 125u8, 56u8, + 129u8, 222u8, + ], + ) + } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 108u8, 118u8, 54u8, 193u8, 207u8, 227u8, 119u8, + 97u8, 23u8, 239u8, 157u8, 69u8, 56u8, 142u8, 106u8, + 17u8, 215u8, 159u8, 48u8, 42u8, 185u8, 209u8, 49u8, + 159u8, 32u8, 168u8, 111u8, 158u8, 159u8, 217u8, + 244u8, 158u8, + ], + ) + } + } + } + } + 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vest; + impl ::subxt::blocks::StaticExtrinsic for Vest { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VestOther { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for VestOther { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VestedTransfer { pub target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , pub schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } + impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vested_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceVestedTransfer { pub source : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , pub target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , pub schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "force_vested_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MergeSchedules { + pub schedule1_index: ::core::primitive::u32, + pub schedule2_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "merge_schedules"; + } + } + 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::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "vest", + types::Vest {}, + [ + 123u8, 54u8, 10u8, 208u8, 154u8, 24u8, 39u8, 166u8, + 64u8, 27u8, 74u8, 29u8, 243u8, 97u8, 155u8, 5u8, + 130u8, 155u8, 65u8, 181u8, 196u8, 125u8, 45u8, + 133u8, 25u8, 33u8, 3u8, 34u8, 21u8, 167u8, 172u8, + 54u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "vest_other", + types::VestOther { target }, + [ + 243u8, 97u8, 222u8, 101u8, 143u8, 17u8, 184u8, + 191u8, 208u8, 162u8, 31u8, 121u8, 22u8, 88u8, 2u8, + 36u8, 9u8, 22u8, 27u8, 117u8, 236u8, 82u8, 83u8, + 218u8, 166u8, 154u8, 49u8, 141u8, 95u8, 127u8, + 63u8, 13u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Vesting", + "vested_transfer", + types::VestedTransfer { target, schedule }, + [ + 157u8, 78u8, 209u8, 131u8, 29u8, 102u8, 180u8, + 61u8, 212u8, 154u8, 28u8, 3u8, 150u8, 236u8, 22u8, + 116u8, 8u8, 142u8, 174u8, 35u8, 37u8, 167u8, 5u8, + 200u8, 189u8, 227u8, 122u8, 55u8, 188u8, 213u8, + 59u8, 206u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Vesting", + "force_vested_transfer", + types::ForceVestedTransfer { + source, + target, + schedule, + }, + [ + 181u8, 47u8, 44u8, 166u8, 243u8, 122u8, 51u8, 81u8, + 136u8, 192u8, 248u8, 150u8, 149u8, 49u8, 208u8, + 203u8, 156u8, 100u8, 56u8, 133u8, 22u8, 53u8, + 241u8, 237u8, 145u8, 210u8, 25u8, 48u8, 61u8, + 184u8, 112u8, 253u8, + ], + ) + } + #[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: ::core::primitive::u32, + schedule2_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Vesting", + "merge_schedules", + types::MergeSchedules { + schedule1_index, + schedule2_index, + }, + [ + 95u8, 255u8, 147u8, 12u8, 49u8, 25u8, 70u8, 112u8, + 55u8, 154u8, 183u8, 97u8, 56u8, 244u8, 148u8, 61u8, + 107u8, 163u8, 220u8, 31u8, 153u8, 25u8, 193u8, + 251u8, 131u8, 26u8, 166u8, 157u8, 75u8, 4u8, 110u8, + 125u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vesting::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The 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: ::subxt::utils::AccountId32, + pub unvested: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for VestingUpdated { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An \\[account\\] has become fully vested."] + pub struct VestingCompleted { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for VestingCompleted { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingCompleted"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Information regarding the vesting of a given account."] pub fn vesting (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Vesting" , "Vesting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [23u8 , 209u8 , 233u8 , 126u8 , 89u8 , 156u8 , 193u8 , 204u8 , 100u8 , 90u8 , 14u8 , 120u8 , 36u8 , 167u8 , 148u8 , 239u8 , 179u8 , 74u8 , 207u8 , 83u8 , 54u8 , 77u8 , 27u8 , 135u8 , 74u8 , 31u8 , 33u8 , 11u8 , 168u8 , 239u8 , 212u8 , 36u8 ,]) + } + #[doc = " Information regarding the vesting of a given account."] pub fn vesting_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Vesting", + "Vesting", + Vec::new(), + [ + 23u8, 209u8, 233u8, 126u8, 89u8, 156u8, 193u8, + 204u8, 100u8, 90u8, 14u8, 120u8, 36u8, 167u8, + 148u8, 239u8, 179u8, 74u8, 207u8, 83u8, 54u8, 77u8, + 27u8, 135u8, 74u8, 31u8, 33u8, 11u8, 168u8, 239u8, + 212u8, 36u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_vesting::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vesting", + "StorageVersion", + vec![], + [ + 50u8, 143u8, 26u8, 88u8, 129u8, 31u8, 61u8, 118u8, + 19u8, 202u8, 119u8, 160u8, 34u8, 219u8, 60u8, 57u8, + 189u8, 66u8, 93u8, 239u8, 121u8, 114u8, 241u8, + 116u8, 0u8, 122u8, 232u8, 94u8, 189u8, 23u8, 45u8, + 191u8, + ], + ) + } + } + } + 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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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 claims { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_ecdsa_claims::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_ecdsa_claims::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Claim { + pub dest: ::subxt::utils::AccountId32, + pub ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MintClaim { + pub who: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub value: ::core::primitive::u128, + pub vesting_schedule: ::core::option::Option<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + )>, + pub statement: ::core::option::Option< + runtime_types::pallet_ecdsa_claims::StatementKind, + >, + } + impl ::subxt::blocks::StaticExtrinsic for MintClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "mint_claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimAttest { + pub dest: ::subxt::utils::AccountId32, + pub ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, + pub statement: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim_attest"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Attest { + pub statement: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for Attest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "attest"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MoveClaim { + pub old: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub new: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub maybe_preclaim: + ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for MoveClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "move_claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetExpiryConfig { + pub expiry_block: ::core::primitive::u32, + pub dest: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetExpiryConfig { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "force_set_expiry_config"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Make a claim to collect your WEBBs."] + #[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: ::subxt::utils::AccountId32, + ethereum_signature : runtime_types :: pallet_ecdsa_claims :: EcdsaSignature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "claim", + types::Claim { + dest, + ethereum_signature, + }, + [ + 33u8, 63u8, 71u8, 104u8, 200u8, 179u8, 248u8, 38u8, + 193u8, 198u8, 250u8, 49u8, 106u8, 26u8, 109u8, + 183u8, 33u8, 50u8, 217u8, 28u8, 50u8, 107u8, 249u8, + 80u8, 199u8, 10u8, 192u8, 1u8, 54u8, 41u8, 146u8, + 11u8, + ], + ) + } + #[doc = "Mint a new claim to collect WEBBs."] + #[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 WEBBs that will be claimed."] + #[doc = "- `vesting_schedule`: An optional vesting schedule for these WEBBs."] + #[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: runtime_types::pallet_ecdsa_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::pallet_ecdsa_claims::StatementKind, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "mint_claim", + types::MintClaim { + who, + value, + vesting_schedule, + statement, + }, + [ + 213u8, 79u8, 204u8, 40u8, 104u8, 84u8, 82u8, 62u8, + 193u8, 93u8, 246u8, 21u8, 37u8, 244u8, 166u8, + 132u8, 208u8, 18u8, 86u8, 195u8, 156u8, 9u8, 220u8, + 120u8, 40u8, 183u8, 28u8, 103u8, 84u8, 163u8, + 153u8, 110u8, + ], + ) + } + #[doc = "Make a claim to collect your WEBBs 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: ::subxt::utils::AccountId32, + ethereum_signature : runtime_types :: pallet_ecdsa_claims :: EcdsaSignature, + statement: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "claim_attest", + types::ClaimAttest { + dest, + ethereum_signature, + statement, + }, + [ + 255u8, 10u8, 87u8, 106u8, 101u8, 195u8, 249u8, + 25u8, 109u8, 82u8, 213u8, 95u8, 203u8, 145u8, + 224u8, 113u8, 92u8, 141u8, 31u8, 54u8, 218u8, 47u8, + 218u8, 239u8, 211u8, 206u8, 77u8, 176u8, 19u8, + 176u8, 175u8, 135u8, + ], + ) + } + #[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: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "attest", + types::Attest { statement }, + [ + 8u8, 218u8, 97u8, 237u8, 185u8, 61u8, 55u8, 4u8, + 134u8, 18u8, 244u8, 226u8, 40u8, 97u8, 222u8, + 246u8, 221u8, 74u8, 253u8, 22u8, 52u8, 223u8, + 224u8, 83u8, 21u8, 218u8, 248u8, 100u8, 107u8, + 58u8, 247u8, 10u8, + ], + ) + } + pub fn move_claim( + &self, + old: runtime_types::pallet_ecdsa_claims::EthereumAddress, + new: runtime_types::pallet_ecdsa_claims::EthereumAddress, + maybe_preclaim: ::core::option::Option< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "move_claim", + types::MoveClaim { + old, + new, + maybe_preclaim, + }, + [ + 63u8, 48u8, 217u8, 16u8, 161u8, 102u8, 165u8, + 241u8, 57u8, 185u8, 230u8, 161u8, 202u8, 11u8, + 223u8, 15u8, 57u8, 181u8, 34u8, 131u8, 235u8, + 168u8, 227u8, 152u8, 157u8, 4u8, 192u8, 243u8, + 194u8, 120u8, 130u8, 202u8, + ], + ) + } + #[doc = "Set the value for expiryconfig"] + #[doc = "Can only be called by ForceOrigin"] + pub fn force_set_expiry_config( + &self, + expiry_block: ::core::primitive::u32, + dest: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Claims", + "force_set_expiry_config", + types::ForceSetExpiryConfig { expiry_block, dest }, + [ + 96u8, 203u8, 156u8, 78u8, 251u8, 98u8, 253u8, + 234u8, 126u8, 118u8, 89u8, 155u8, 31u8, 231u8, + 118u8, 20u8, 13u8, 117u8, 151u8, 117u8, 8u8, 76u8, + 147u8, 83u8, 80u8, 149u8, 102u8, 199u8, 21u8, + 169u8, 167u8, 43u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_ecdsa_claims::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Someone claimed some WEBBs."] + pub struct Claimed { + pub who: ::subxt::utils::AccountId32, + pub ethereum_address: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "Claims"; + const EVENT: &'static str = "Claimed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn claims( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_ecdsa_claims::EthereumAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Claims" , "Claims" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [36u8 , 247u8 , 169u8 , 171u8 , 103u8 , 176u8 , 70u8 , 213u8 , 255u8 , 175u8 , 97u8 , 142u8 , 231u8 , 70u8 , 90u8 , 213u8 , 128u8 , 67u8 , 50u8 , 37u8 , 51u8 , 184u8 , 72u8 , 27u8 , 193u8 , 254u8 , 12u8 , 253u8 , 91u8 , 60u8 , 88u8 , 182u8 ,]) + } + pub fn claims_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Claims", + Vec::new(), + [ + 36u8, 247u8, 169u8, 171u8, 103u8, 176u8, 70u8, + 213u8, 255u8, 175u8, 97u8, 142u8, 231u8, 70u8, + 90u8, 213u8, 128u8, 67u8, 50u8, 37u8, 51u8, 184u8, + 72u8, 27u8, 193u8, 254u8, 12u8, 253u8, 91u8, 60u8, + 88u8, 182u8, + ], + ) + } + pub fn total( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Total", + vec![], + [ + 162u8, 59u8, 237u8, 63u8, 23u8, 44u8, 74u8, 169u8, + 131u8, 166u8, 174u8, 61u8, 127u8, 165u8, 32u8, + 115u8, 73u8, 171u8, 36u8, 10u8, 6u8, 23u8, 19u8, + 202u8, 3u8, 189u8, 29u8, 169u8, 144u8, 187u8, + 235u8, 77u8, + ], + ) + } + #[doc = " Expiry block and account to deposit expired funds"] + pub fn expiry_config( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::subxt::utils::AccountId32), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "ExpiryConfig", + vec![], + [ + 58u8, 108u8, 2u8, 128u8, 233u8, 203u8, 54u8, 247u8, + 224u8, 2u8, 87u8, 222u8, 114u8, 205u8, 76u8, 197u8, + 190u8, 58u8, 98u8, 47u8, 13u8, 6u8, 208u8, 27u8, + 65u8, 150u8, 251u8, 58u8, 114u8, 36u8, 26u8, 83u8, + ], + ) + } + #[doc = " Vesting schedule for a claim."] + #[doc = " First balance is the total amount that should be held for vesting."] + #[doc = " Second balance is how much should be unlocked per block."] + #[doc = " The block number is when the vesting should start."] + pub fn vesting( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_ecdsa_claims::EthereumAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Claims" , "Vesting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [112u8 , 174u8 , 151u8 , 185u8 , 225u8 , 170u8 , 63u8 , 147u8 , 100u8 , 23u8 , 102u8 , 148u8 , 244u8 , 47u8 , 87u8 , 99u8 , 28u8 , 59u8 , 48u8 , 205u8 , 43u8 , 41u8 , 87u8 , 225u8 , 191u8 , 164u8 , 31u8 , 208u8 , 80u8 , 53u8 , 25u8 , 205u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Vesting", + Vec::new(), + [ + 112u8, 174u8, 151u8, 185u8, 225u8, 170u8, 63u8, + 147u8, 100u8, 23u8, 102u8, 148u8, 244u8, 47u8, + 87u8, 99u8, 28u8, 59u8, 48u8, 205u8, 43u8, 41u8, + 87u8, 225u8, 191u8, 164u8, 31u8, 208u8, 80u8, 53u8, + 25u8, 205u8, + ], + ) + } + #[doc = " The statement kind that must be signed, if any."] + pub fn signing( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_ecdsa_claims::EthereumAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_ecdsa_claims::StatementKind, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Claims" , "Signing" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [51u8 , 184u8 , 211u8 , 207u8 , 13u8 , 194u8 , 181u8 , 153u8 , 25u8 , 212u8 , 106u8 , 189u8 , 149u8 , 14u8 , 19u8 , 61u8 , 210u8 , 109u8 , 23u8 , 168u8 , 191u8 , 74u8 , 112u8 , 190u8 , 242u8 , 112u8 , 183u8 , 17u8 , 30u8 , 125u8 , 85u8 , 107u8 ,]) + } + #[doc = " The statement kind that must be signed, if any."] + pub fn signing_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_ecdsa_claims::StatementKind, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Signing", + Vec::new(), + [ + 51u8, 184u8, 211u8, 207u8, 13u8, 194u8, 181u8, + 153u8, 25u8, 212u8, 106u8, 189u8, 149u8, 14u8, + 19u8, 61u8, 210u8, 109u8, 23u8, 168u8, 191u8, 74u8, + 112u8, 190u8, 242u8, 112u8, 183u8, 17u8, 30u8, + 125u8, 85u8, 107u8, + ], + ) + } + #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] + pub fn preclaims( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_ecdsa_claims::EthereumAddress, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Claims" , "Preclaims" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [149u8 , 61u8 , 170u8 , 170u8 , 60u8 , 212u8 , 29u8 , 214u8 , 141u8 , 136u8 , 207u8 , 248u8 , 51u8 , 135u8 , 242u8 , 105u8 , 121u8 , 91u8 , 186u8 , 30u8 , 0u8 , 173u8 , 154u8 , 133u8 , 20u8 , 244u8 , 58u8 , 184u8 , 133u8 , 214u8 , 67u8 , 95u8 ,]) + } + #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] + pub fn preclaims_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_ecdsa_claims::EthereumAddress, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Preclaims", + Vec::new(), + [ + 149u8, 61u8, 170u8, 170u8, 60u8, 212u8, 29u8, + 214u8, 141u8, 136u8, 207u8, 248u8, 51u8, 135u8, + 242u8, 105u8, 121u8, 91u8, 186u8, 30u8, 0u8, 173u8, + 154u8, 133u8, 20u8, 244u8, 58u8, 184u8, 133u8, + 214u8, 67u8, 95u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn prefix( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<::core::primitive::u8>, + > { + ::subxt::constants::Address::new_static( + "Claims", + "Prefix", + [ + 106u8, 50u8, 57u8, 116u8, 43u8, 202u8, 37u8, 248u8, + 102u8, 22u8, 62u8, 22u8, 242u8, 54u8, 152u8, 168u8, + 107u8, 64u8, 72u8, 172u8, 124u8, 40u8, 42u8, 110u8, + 104u8, 145u8, 31u8, 144u8, 242u8, 189u8, 145u8, + 208u8, + ], + ) + } + } + } + } + pub mod elections { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = + runtime_types::pallet_elections_phragmen::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote { + pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveVoter; + impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_voter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitCandidacy { + #[codec(compact)] + pub candidate_count: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "submit_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RenounceCandidacy { + pub renouncing: + runtime_types::pallet_elections_phragmen::Renouncing, + } + impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "renounce_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveMember { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub slash_bond: ::core::primitive::bool, + pub rerun_election: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CleanDefunctVoters { + pub num_voters: ::core::primitive::u32, + pub num_defunct: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "clean_defunct_voters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] + #[doc = "set the initial votes, or update already existing votes."] + #[doc = ""] + #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] + #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] + #[doc = ""] + #[doc = "The `votes` should:"] + #[doc = " - not be empty."] + #[doc = " - be less than the number of possible candidates. Note that all current members and"] + #[doc = " runners-up are also automatically candidates for the next round."] + #[doc = ""] + #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] + #[doc = "lock and keep some for further operations."] + pub fn vote( + &self, + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "vote", + types::Vote { votes, value }, + [ + 71u8, 90u8, 175u8, 225u8, 51u8, 202u8, 197u8, + 252u8, 183u8, 92u8, 239u8, 83u8, 112u8, 144u8, + 128u8, 211u8, 109u8, 33u8, 252u8, 6u8, 156u8, 15u8, + 91u8, 88u8, 70u8, 19u8, 32u8, 29u8, 224u8, 255u8, + 26u8, 145u8, + ], + ) + } + #[doc = "Remove `origin` as a voter."] + #[doc = ""] + #[doc = "This removes the lock and returns the deposit."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed and be a voter."] + pub fn remove_voter( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_voter", + types::RemoveVoter {}, + [ + 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, + 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, + 161u8, 53u8, 155u8, 130u8, 50u8, 88u8, 149u8, + 255u8, 12u8, 17u8, 85u8, 95u8, 69u8, 153u8, 130u8, + 221u8, 1u8, + ], + ) + } + #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] + #[doc = ""] + #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] + #[doc = "or leave the system while their deposit is slashed."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] + #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] + #[doc = ""] + #[doc = "The number of current candidates must be provided as witness data."] + #[doc = "## Complexity"] + #[doc = "O(C + log(C)) where C is candidate_count."] + pub fn submit_candidacy( + &self, + candidate_count: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Elections", + "submit_candidacy", + types::SubmitCandidacy { candidate_count }, + [ + 228u8, 63u8, 217u8, 99u8, 128u8, 104u8, 175u8, + 10u8, 30u8, 35u8, 47u8, 14u8, 254u8, 122u8, 146u8, + 239u8, 61u8, 145u8, 82u8, 7u8, 181u8, 98u8, 238u8, + 208u8, 23u8, 84u8, 48u8, 255u8, 177u8, 255u8, 84u8, + 83u8, + ], + ) + } + #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] + #[doc = "outcomes exist:"] + #[doc = ""] + #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] + #[doc = " unreserved, returned and origin is removed as a candidate."] + #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] + #[doc = " origin is removed as a runner-up."] + #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] + #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] + #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] + #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] + #[doc = " next round."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] + #[doc = "The type of renouncing must be provided as witness data."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] + #[doc = " - Renouncing::Member: O(1)"] + #[doc = " - Renouncing::RunnerUp: O(1)"] + pub fn renounce_candidacy( + &self, + renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Elections", + "renounce_candidacy", + types::RenounceCandidacy { renouncing }, + [ + 70u8, 72u8, 208u8, 36u8, 80u8, 245u8, 224u8, 75u8, + 60u8, 142u8, 19u8, 49u8, 142u8, 90u8, 14u8, 69u8, + 15u8, 61u8, 170u8, 235u8, 16u8, 252u8, 86u8, 200u8, + 120u8, 127u8, 36u8, 42u8, 143u8, 130u8, 217u8, + 128u8, + ], + ) + } + #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] + #[doc = "the outgoing member is slashed."] + #[doc = ""] + #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] + #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] + #[doc = "started, else, nothing happens."] + #[doc = ""] + #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] + #[doc = "it is returned."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "Note that this does not affect the designated block number of the next election."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] + pub fn remove_member( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + slash_bond: ::core::primitive::bool, + rerun_election: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_member", + types::RemoveMember { + who, + slash_bond, + rerun_election, + }, + [ + 178u8, 90u8, 236u8, 184u8, 2u8, 67u8, 51u8, 162u8, + 83u8, 131u8, 242u8, 137u8, 17u8, 243u8, 209u8, + 110u8, 26u8, 238u8, 178u8, 136u8, 84u8, 74u8, + 216u8, 173u8, 221u8, 82u8, 179u8, 218u8, 162u8, + 159u8, 185u8, 59u8, + ], + ) + } + #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] + #[doc = "deposit of the removed voters are returned."] + #[doc = ""] + #[doc = "This is an root function to be used only for cleaning the state."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check is_defunct_voter() details."] + pub fn clean_defunct_voters( + &self, + num_voters: ::core::primitive::u32, + num_defunct: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Elections", + "clean_defunct_voters", + types::CleanDefunctVoters { + num_voters, + num_defunct, + }, + [ + 198u8, 162u8, 30u8, 249u8, 191u8, 38u8, 141u8, + 123u8, 230u8, 90u8, 213u8, 103u8, 168u8, 28u8, 5u8, + 215u8, 213u8, 152u8, 46u8, 189u8, 238u8, 209u8, + 209u8, 142u8, 159u8, 222u8, 161u8, 26u8, 161u8, + 250u8, 9u8, 100u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_elections_phragmen::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] + pub struct NewTerm { + pub new_members: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + } + impl ::subxt::events::StaticEvent for NewTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "NewTerm"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] + pub struct EmptyTerm; + impl ::subxt::events::StaticEvent for EmptyTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "EmptyTerm"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Internal error happened while trying to perform election."] + pub struct ElectionError; + impl ::subxt::events::StaticEvent for ElectionError { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "ElectionError"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] + pub struct MemberKicked { + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberKicked { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "MemberKicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Someone has renounced their candidacy."] + pub struct Renounced { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Renounced { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "Renounced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] + pub struct CandidateSlashed { + pub candidate: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for CandidateSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "CandidateSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] + pub struct SeatHolderSlashed { + pub seat_holder: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SeatHolderSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "SeatHolderSlashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The current elected members."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Members", + vec![], + [ + 2u8, 182u8, 43u8, 180u8, 87u8, 185u8, 26u8, 79u8, + 196u8, 55u8, 28u8, 26u8, 174u8, 133u8, 158u8, + 221u8, 101u8, 161u8, 83u8, 9u8, 221u8, 175u8, + 221u8, 220u8, 81u8, 80u8, 1u8, 236u8, 74u8, 121u8, + 10u8, 82u8, + ], + ) + } + #[doc = " The current reserved runners-up."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] + #[doc = " last (i.e. _best_) runner-up will be replaced."] + pub fn runners_up( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "RunnersUp", + vec![], + [ + 248u8, 81u8, 190u8, 53u8, 121u8, 49u8, 55u8, 69u8, + 116u8, 177u8, 46u8, 30u8, 131u8, 14u8, 32u8, 198u8, + 10u8, 132u8, 73u8, 117u8, 2u8, 146u8, 188u8, 146u8, + 214u8, 227u8, 97u8, 77u8, 7u8, 131u8, 208u8, 209u8, + ], + ) + } + #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] + #[doc = " and is always implicitly assumed to be a candidate."] + #[doc = ""] + #[doc = " Second element is the deposit."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] + pub fn candidates( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Candidates", + vec![], + [ + 224u8, 107u8, 141u8, 11u8, 54u8, 86u8, 117u8, 45u8, + 195u8, 252u8, 152u8, 21u8, 165u8, 23u8, 198u8, + 117u8, 5u8, 216u8, 183u8, 163u8, 243u8, 56u8, 11u8, + 102u8, 85u8, 107u8, 219u8, 250u8, 45u8, 80u8, + 108u8, 127u8, + ], + ) + } + #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] + pub fn election_rounds( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "ElectionRounds", + vec![], + [ + 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, + 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, + 143u8, 104u8, 253u8, 86u8, 228u8, 68u8, 19u8, + 184u8, 166u8, 214u8, 58u8, 103u8, 176u8, 160u8, + 240u8, 249u8, 117u8, 115u8, + ], + ) + } + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Elections" , "Voting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [9u8 , 135u8 , 76u8 , 194u8 , 240u8 , 182u8 , 111u8 , 207u8 , 102u8 , 37u8 , 126u8 , 36u8 , 84u8 , 112u8 , 26u8 , 216u8 , 175u8 , 5u8 , 14u8 , 189u8 , 83u8 , 185u8 , 136u8 , 39u8 , 171u8 , 221u8 , 147u8 , 20u8 , 168u8 , 126u8 , 111u8 , 137u8 ,]) + } + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] + pub fn voting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Voting", + Vec::new(), + [ + 9u8, 135u8, 76u8, 194u8, 240u8, 182u8, 111u8, + 207u8, 102u8, 37u8, 126u8, 36u8, 84u8, 112u8, 26u8, + 216u8, 175u8, 5u8, 14u8, 189u8, 83u8, 185u8, 136u8, + 39u8, 171u8, 221u8, 147u8, 20u8, 168u8, 126u8, + 111u8, 137u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Identifier for the elections-phragmen pallet's lock"] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> + { + ::subxt::constants::Address::new_static( + "Elections", + "PalletId", + [ + 224u8, 197u8, 247u8, 125u8, 62u8, 180u8, 69u8, + 91u8, 226u8, 36u8, 82u8, 148u8, 70u8, 147u8, 209u8, + 40u8, 210u8, 229u8, 181u8, 191u8, 170u8, 205u8, + 138u8, 97u8, 127u8, 59u8, 124u8, 244u8, 252u8, + 30u8, 213u8, 179u8, + ], + ) + } + #[doc = " How much should be locked up in order to submit one's candidacy."] + pub fn candidacy_bond( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Elections", + "CandidacyBond", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Base deposit associated with voting."] + #[doc = ""] + #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] + #[doc = " creating a gigantic number of votes."] + pub fn voting_bond_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] + pub fn voting_bond_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Number of members to elect."] + pub fn desired_members( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredMembers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of runners_up to keep."] + pub fn desired_runners_up( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredRunnersUp", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How long each seat is kept. This defines the next block number at which an election"] + #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] + #[doc = " be in passive mode."] + pub fn term_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "TermDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of candidates in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When this limit is reached no more candidates are accepted in the election."] + pub fn max_candidates( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "MaxCandidates", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of voters to allow in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When the limit is reached the new voters are ignored."] + pub fn max_voters( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVoters", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum numbers of votes per voter."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + pub fn max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod 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 one variant per dispatchable that can be called by an extrinsic."] + pub type Call = + runtime_types::pallet_election_provider_multi_phase::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } + impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_minimum_untrusted_score"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetEmergencyElectionResult { + pub supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::utils::AccountId32, + >, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_emergency_election_result"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct GovernanceFallback { + pub maybe_max_voters: + ::core::option::Option<::core::primitive::u32>, + pub maybe_max_targets: + ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "governance_fallback"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 >, + witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit_unsigned", + types::SubmitUnsigned { + raw_solution: ::std::boxed::Box::new(raw_solution), + witness, + }, + [ + 100u8, 240u8, 31u8, 34u8, 93u8, 98u8, 93u8, 57u8, + 41u8, 197u8, 97u8, 58u8, 242u8, 10u8, 69u8, 250u8, + 185u8, 169u8, 21u8, 8u8, 202u8, 61u8, 36u8, 25u8, + 4u8, 148u8, 82u8, 56u8, 242u8, 18u8, 27u8, 219u8, + ], + ) + } + #[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: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_minimum_untrusted_score", + types::SetMinimumUntrustedScore { maybe_next_score }, + [ + 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, + 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, + 144u8, 74u8, 106u8, 15u8, 62u8, 196u8, 247u8, 49u8, + 20u8, 48u8, 3u8, 105u8, 85u8, 46u8, 76u8, 4u8, + 67u8, 81u8, + ], + ) + } + #[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: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::utils::AccountId32, + >, + )>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_emergency_election_result", + types::SetEmergencyElectionResult { supports }, + [ + 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, + 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, + 54u8, 63u8, 251u8, 51u8, 214u8, 204u8, 55u8, 112u8, + 46u8, 228u8, 255u8, 250u8, 151u8, 5u8, 44u8, 133u8, + ], + ) + } + #[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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit", + types::Submit { + raw_solution: ::std::boxed::Box::new(raw_solution), + }, + [ + 220u8, 167u8, 40u8, 47u8, 253u8, 244u8, 72u8, + 124u8, 30u8, 123u8, 127u8, 227u8, 2u8, 66u8, 119u8, + 64u8, 211u8, 200u8, 210u8, 98u8, 248u8, 132u8, + 68u8, 25u8, 34u8, 182u8, 230u8, 225u8, 241u8, 58u8, + 193u8, 134u8, + ], + ) + } + #[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: ::core::option::Option< + ::core::primitive::u32, + >, + maybe_max_targets: ::core::option::Option< + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "governance_fallback", + types::GovernanceFallback { + maybe_max_voters, + maybe_max_targets, + }, + [ + 206u8, 247u8, 76u8, 85u8, 7u8, 24u8, 231u8, 226u8, + 192u8, 143u8, 43u8, 67u8, 91u8, 202u8, 88u8, 176u8, + 130u8, 1u8, 83u8, 229u8, 227u8, 200u8, 179u8, 4u8, + 113u8, 60u8, 99u8, 190u8, 53u8, 226u8, 142u8, + 182u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A solution was stored with the given compute."] + #[doc = ""] + #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] + #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] + #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] + #[doc = "room for this one."] + pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub origin : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , pub prev_ejected : :: core :: primitive :: bool , } + impl ::subxt::events::StaticEvent for SolutionStored { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The election has been finalized, with the given computation and score."] + pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } + impl ::subxt::events::StaticEvent for ElectionFinalized { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An election failed."] + #[doc = ""] + #[doc = "Not much can be said about which computes failed in the process."] + pub struct ElectionFailed; + impl ::subxt::events::StaticEvent for ElectionFailed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been rewarded for their signed submission being finalized."] + pub struct Rewarded { + pub account: ::subxt::utils::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been slashed for submitting an invalid signed submission."] + pub struct Slashed { + pub account: ::subxt::utils::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There was a phase transition in a given round."] + pub struct PhaseTransitioned { + pub from: + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + pub to: + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + pub round: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for PhaseTransitioned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "PhaseTransitioned"; + } + } + pub mod storage { + use super::runtime_types; + pub 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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Round", + vec![], + [ + 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, + 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, + 34u8, 44u8, 166u8, 188u8, 199u8, 210u8, 21u8, 19u8, + 70u8, 96u8, 139u8, 8u8, 53u8, 82u8, 165u8, 239u8, + ], + ) + } + #[doc = " Current phase."] + pub fn current_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "CurrentPhase", + vec![], + [ + 236u8, 101u8, 8u8, 52u8, 68u8, 240u8, 74u8, 159u8, + 181u8, 53u8, 153u8, 101u8, 228u8, 81u8, 96u8, + 161u8, 34u8, 67u8, 35u8, 28u8, 121u8, 44u8, 229u8, + 45u8, 196u8, 87u8, 73u8, 125u8, 216u8, 245u8, + 255u8, 15u8, + ], + ) + } + #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: ReadySolution , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "QueuedSolution", + vec![], + [ + 11u8, 152u8, 13u8, 167u8, 204u8, 209u8, 171u8, + 249u8, 59u8, 250u8, 58u8, 152u8, 164u8, 121u8, + 146u8, 112u8, 241u8, 16u8, 159u8, 251u8, 209u8, + 251u8, 114u8, 29u8, 188u8, 30u8, 84u8, 71u8, 136u8, + 173u8, 145u8, 236u8, + ], + ) + } + #[doc = " Snapshot data of the round."] + #[doc = ""] + #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Snapshot", + vec![], + [ + 239u8, 56u8, 191u8, 77u8, 150u8, 224u8, 248u8, + 88u8, 132u8, 224u8, 164u8, 83u8, 253u8, 36u8, 46u8, + 156u8, 72u8, 152u8, 36u8, 206u8, 72u8, 27u8, 226u8, + 87u8, 146u8, 220u8, 93u8, 178u8, 26u8, 115u8, + 232u8, 71u8, + ], + ) + } + #[doc = " Desired number of targets to elect for this round."] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] + pub fn desired_targets( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "DesiredTargets", + vec![], + [ + 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, + 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, + 90u8, 140u8, 31u8, 210u8, 2u8, 116u8, 220u8, 231u8, + 115u8, 112u8, 118u8, 118u8, 68u8, 34u8, 151u8, + 165u8, + ], + ) + } + #[doc = " The metadata of the [`RoundSnapshot`]"] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , :: subxt :: storage :: address :: Yes , () , () >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SnapshotMetadata", + vec![], + [ + 135u8, 122u8, 60u8, 75u8, 194u8, 240u8, 187u8, + 96u8, 240u8, 203u8, 192u8, 22u8, 117u8, 148u8, + 118u8, 24u8, 240u8, 213u8, 94u8, 22u8, 194u8, 47u8, + 181u8, 245u8, 77u8, 149u8, 11u8, 251u8, 117u8, + 220u8, 205u8, 78u8, + ], + ) + } + #[doc = " The next index to be assigned to an incoming signed submission."] + #[doc = ""] + #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] + #[doc = " submission for the duration of the election. On election finalization, the next index is"] + #[doc = " reset to 0."] + #[doc = ""] + #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] + #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] + #[doc = " because iteration is slow. Instead, we store the value here."] + pub fn signed_submission_next_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionNextIndex", + vec![], + [ + 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, + 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, + 59u8, 42u8, 238u8, 115u8, 8u8, 6u8, 137u8, 45u8, + 2u8, 123u8, 187u8, 53u8, 215u8, 19u8, 129u8, 54u8, + 22u8, + ], + ) + } + #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] + #[doc = " value in `SignedSubmissions`."] + #[doc = ""] + #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] + #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] + #[doc = " them one at a time instead of reading and decoding all of them at once."] + pub fn signed_submission_indices( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ( + runtime_types::sp_npos_elections::ElectionScore, + ::core::primitive::u32, + ::core::primitive::u32, + ), + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionIndices", + vec![], + [ + 228u8, 166u8, 94u8, 248u8, 71u8, 26u8, 125u8, 81u8, + 32u8, 22u8, 46u8, 185u8, 209u8, 123u8, 46u8, 17u8, + 152u8, 149u8, 222u8, 125u8, 112u8, 230u8, 29u8, + 177u8, 162u8, 214u8, 66u8, 38u8, 170u8, 121u8, + 129u8, 100u8, + ], + ) + } + #[doc = " Unchecked, signed solutions."] + #[doc = ""] + #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] + #[doc = " allowing us to keep only a single one in memory at a time."] + #[doc = ""] + #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: tangle_standalone_runtime :: NposSolution16 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) + } + #[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_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: tangle_standalone_runtime :: NposSolution16 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionsMap", + Vec::new(), + [ + 84u8, 65u8, 205u8, 191u8, 143u8, 246u8, 239u8, + 27u8, 243u8, 54u8, 250u8, 8u8, 125u8, 32u8, 241u8, + 141u8, 210u8, 225u8, 56u8, 101u8, 241u8, 52u8, + 157u8, 29u8, 13u8, 155u8, 73u8, 132u8, 118u8, 53u8, + 2u8, 135u8, + ], + ) + } + #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] + #[doc = " feasible."] + #[doc = ""] + #[doc = " Can be set via `set_minimum_untrusted_score`."] + pub fn minimum_untrusted_score( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_npos_elections::ElectionScore, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "MinimumUntrustedScore", + vec![], + [ + 77u8, 235u8, 181u8, 45u8, 230u8, 12u8, 0u8, 179u8, + 152u8, 38u8, 74u8, 199u8, 47u8, 84u8, 85u8, 55u8, + 171u8, 226u8, 217u8, 125u8, 17u8, 194u8, 95u8, + 157u8, 73u8, 245u8, 75u8, 130u8, 248u8, 7u8, 53u8, + 226u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Duration of the unsigned phase."] + pub fn unsigned_phase( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "UnsignedPhase", + [ + 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 = " Duration of the signed phase."] + pub fn signed_phase( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedPhase", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Signed phase."] + pub fn better_signed_threshold( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perbill, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterSignedThreshold", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Unsigned phase."] + pub fn better_unsigned_threshold( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perbill, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterUnsignedThreshold", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " The repeat threshold of the offchain worker."] + #[doc = ""] + #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] + #[doc = " to submit the worker's solution."] + pub fn offchain_repeat( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "OffchainRepeat", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] + pub fn miner_tx_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerTxPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, + 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, + 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, + 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, + 239u8, 42u8, 246u8, + ], + ) + } + #[doc = " Maximum number of signed submissions that can be queued."] + #[doc = ""] + #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] + #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] + #[doc = " update this value during an election, you _must_ ensure that"] + #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] + #[doc = " attempts to submit new solutions may cause a runtime panic."] + pub fn signed_max_submissions( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxSubmissions", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum weight of a signed solution."] + #[doc = ""] + #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] + #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] + #[doc = " this value."] + pub fn signed_max_weight( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxWeight", + [ + 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, + 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, + 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, + 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, + 134u8, 106u8, 76u8, + ], + ) + } + #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] + pub fn signed_max_refunds( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxRefunds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Base reward for a signed solution"] + pub fn signed_reward_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedRewardBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Base deposit for a signed solution."] + pub fn signed_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Per-byte deposit for a signed solution."] + pub fn signed_deposit_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " Per-weight deposit for a signed solution."] + pub fn signed_deposit_weight( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositWeight", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] + #[doc = " are only over a single block, but once multi-block elections are introduced they will"] + #[doc = " take place over multiple blocks."] + pub fn max_electing_voters( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxElectingVoters", + [ + 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 electable targets to put in the snapshot."] + pub fn max_electable_targets( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u16> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxElectableTargets", + [ + 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, + ], + ) + } + #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] + #[doc = " implementation."] + #[doc = ""] + #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] + pub fn max_winners( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_weight( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, + > { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWeight", + [ + 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, + 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, + 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, + 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, + 134u8, 106u8, 76u8, + ], + ) + } + pub fn miner_max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod staking { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Bond { + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Bond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtra { + #[codec(compact)] + pub max_additional: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unbond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithdrawUnbonded { + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Validate { + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::blocks::StaticExtrinsic for Validate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "validate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nominate { + pub targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Chill; + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetPayee { + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetPayee { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_payee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetController { + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetController { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_controller"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetValidatorCount { + #[codec(compact)] + pub new: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct IncreaseValidatorCount { + #[codec(compact)] + pub additional: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "increase_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScaleValidatorCount { + pub factor: + runtime_types::sp_arithmetic::per_things::Percent, + } + impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "scale_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNoEras; + impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_no_eras"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNewEra; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetInvulnerables { + pub invulnerables: + ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_invulnerables"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceUnstake { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_unstake"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceNewEraAlways; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era_always"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelDeferredSlash { + pub era: ::core::primitive::u32, + pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "cancel_deferred_slash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PayoutStakers { + pub validator_stash: ::subxt::utils::AccountId32, + pub era: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Rebond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Rebond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "rebond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReapStash { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ReapStash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "reap_stash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Kick { + pub who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Kick { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "kick"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetStakingConfigs { + pub min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + pub min_commission: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_staking_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ChillOther { + pub controller: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ChillOther { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceApplyMinCommission { + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_apply_min_commission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinCommission { + pub new: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_min_commission"; + } + } + 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_ and gets removed as dust."] + pub fn bond( + &self, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond", + types::Bond { + controller, + value, + payee, + }, + [ + 140u8, 13u8, 108u8, 181u8, 212u8, 177u8, 190u8, + 212u8, 163u8, 40u8, 120u8, 232u8, 126u8, 213u8, + 6u8, 181u8, 99u8, 252u8, 58u8, 54u8, 139u8, 64u8, + 67u8, 76u8, 53u8, 226u8, 11u8, 133u8, 235u8, 159u8, + 103u8, 210u8, + ], + ) + } + #[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: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond_extra", + types::BondExtra { max_additional }, + [ + 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, + 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, + 252u8, 15u8, 19u8, 128u8, 11u8, 187u8, 4u8, 151u8, + 103u8, 143u8, 24u8, 33u8, 149u8, 82u8, 35u8, 192u8, + ], + ) + } + #[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: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "unbond", + types::Unbond { value }, + [ + 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, + 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, + 114u8, 230u8, 240u8, 146u8, 14u8, 109u8, 185u8, + 151u8, 148u8, 44u8, 147u8, 182u8, 192u8, 253u8, + 51u8, 87u8, + ], + ) + } + #[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"] + #[doc = "whatever 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 = "## 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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "withdraw_unbonded", + types::WithdrawUnbonded { num_slashing_spans }, + [ + 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, + 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, + 165u8, 192u8, 149u8, 249u8, 158u8, 159u8, 194u8, + 224u8, 118u8, 134u8, 204u8, 157u8, 72u8, 136u8, + 19u8, 193u8, 183u8, 84u8, + ], + ) + } + #[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: runtime_types::pallet_staking::ValidatorPrefs, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "validate", + types::Validate { prefs }, + [ + 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, + 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, + 106u8, 200u8, 172u8, 108u8, 145u8, 194u8, 146u8, + 61u8, 145u8, 233u8, 168u8, 2u8, 26u8, 145u8, 101u8, + 114u8, 157u8, + ], + ) + } + #[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: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "nominate", + types::Nominate { targets }, + [ + 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, + 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, + 129u8, 156u8, 190u8, 83u8, 178u8, 170u8, 116u8, + 27u8, 8u8, 244u8, 56u8, 73u8, 164u8, 223u8, 199u8, + 115u8, 168u8, 83u8, + ], + ) + } + #[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::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, + 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, + 166u8, 230u8, 56u8, 16u8, 222u8, 31u8, 153u8, + 120u8, 62u8, 153u8, 67u8, 220u8, 239u8, 11u8, + 234u8, 127u8, 122u8, + ], + ) + } + #[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: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_payee", + types::SetPayee { payee }, + [ + 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, + 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, + 245u8, 14u8, 171u8, 108u8, 195u8, 250u8, 133u8, + 0u8, 75u8, 192u8, 159u8, 84u8, 220u8, 242u8, 133u8, + 60u8, 62u8, + ], + ) + } + #[doc = "(Re-)set the controller of a stash."] + #[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, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_controller", + types::SetController { controller }, + [ + 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, + 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, + 117u8, 192u8, 143u8, 166u8, 38u8, 235u8, 75u8, + 161u8, 177u8, 229u8, 229u8, 82u8, 95u8, 39u8, 40u8, + 116u8, 9u8, 204u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_validator_count", + types::SetValidatorCount { new }, + [ + 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, + 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, + 187u8, 194u8, 91u8, 15u8, 36u8, 215u8, 36u8, 160u8, + 108u8, 251u8, 60u8, 240u8, 202u8, 249u8, 235u8, + 28u8, 94u8, + ], + ) + } + #[doc = "Increments the ideal number of validators upto 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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "increase_validator_count", + types::IncreaseValidatorCount { additional }, + [ + 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, + 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, + 60u8, 158u8, 8u8, 78u8, 175u8, 219u8, 46u8, 51u8, + 222u8, 193u8, 193u8, 201u8, 78u8, 90u8, 58u8, 86u8, + 196u8, 17u8, + ], + ) + } + #[doc = "Scale up the ideal number of validators by a factor upto 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: runtime_types::sp_arithmetic::per_things::Percent, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "scale_validator_count", + types::ScaleValidatorCount { factor }, + [ + 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, + 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, + 219u8, 167u8, 149u8, 112u8, 49u8, 139u8, 74u8, + 81u8, 172u8, 72u8, 253u8, 224u8, 56u8, 194u8, + 185u8, 90u8, 87u8, 125u8, + ], + ) + } + #[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::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_no_eras", + types::ForceNoEras {}, + [ + 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, + 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, + 91u8, 120u8, 75u8, 24u8, 125u8, 53u8, 9u8, 28u8, + 242u8, 87u8, 245u8, 55u8, 40u8, 103u8, 151u8, + 178u8, + ], + ) + } + #[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::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era", + types::ForceNewEra {}, + [ + 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, + 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, + 126u8, 73u8, 136u8, 162u8, 158u8, 174u8, 201u8, + 213u8, 230u8, 215u8, 44u8, 200u8, 32u8, 75u8, 27u8, + 23u8, 254u8, + ], + ) + } + #[doc = "Set the validators who cannot be slashed (if any)."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + pub fn set_invulnerables( + &self, + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_invulnerables", + types::SetInvulnerables { invulnerables }, + [ + 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, + 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, + 27u8, 76u8, 18u8, 203u8, 206u8, 9u8, 8u8, 81u8, + 35u8, 224u8, 22u8, 133u8, 58u8, 99u8, 103u8, 39u8, + ], + ) + } + #[doc = "Force a current staker to become completely unstaked, immediately."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + pub fn force_unstake( + &self, + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_unstake", + types::ForceUnstake { + stash, + num_slashing_spans, + }, + [ + 94u8, 247u8, 238u8, 47u8, 250u8, 6u8, 96u8, 175u8, + 173u8, 123u8, 161u8, 187u8, 162u8, 214u8, 176u8, + 233u8, 33u8, 33u8, 167u8, 239u8, 40u8, 223u8, 19u8, + 131u8, 230u8, 39u8, 175u8, 200u8, 36u8, 182u8, + 76u8, 207u8, + ], + ) + } + #[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::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era_always", + types::ForceNewEraAlways {}, + [ + 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, + 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, + 117u8, 147u8, 225u8, 118u8, 34u8, 177u8, 197u8, + 158u8, 8u8, 82u8, 202u8, 108u8, 208u8, 26u8, 64u8, + 33u8, 74u8, 43u8, + ], + ) + } + #[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: ::core::primitive::u32, + slash_indices: ::std::vec::Vec<::core::primitive::u32>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "cancel_deferred_slash", + types::CancelDeferredSlash { era, slash_indices }, + [ + 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, + 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, + 106u8, 101u8, 19u8, 88u8, 146u8, 210u8, 171u8, + 44u8, 37u8, 50u8, 65u8, 178u8, 37u8, 223u8, 239u8, + 197u8, 116u8, 168u8, + ], + ) + } + #[doc = "Pay out all the stakers behind a single validator for a single era."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] + #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] + #[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 = "## Complexity"] + #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] + pub fn payout_stakers( + &self, + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "payout_stakers", + types::PayoutStakers { + validator_stash, + era, + }, + [ + 184u8, 194u8, 33u8, 118u8, 7u8, 203u8, 89u8, 119u8, + 214u8, 76u8, 178u8, 20u8, 82u8, 111u8, 57u8, 132u8, + 212u8, 43u8, 232u8, 91u8, 252u8, 49u8, 42u8, 115u8, + 1u8, 181u8, 154u8, 207u8, 144u8, 206u8, 205u8, + 33u8, + ], + ) + } + #[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: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "rebond", + types::Rebond { value }, + [ + 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, + 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, + 253u8, 196u8, 30u8, 234u8, 49u8, 102u8, 68u8, + 145u8, 96u8, 148u8, 219u8, 162u8, 17u8, 177u8, + 184u8, 34u8, 113u8, + ], + ) + } + #[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 = ""] + #[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."] + pub fn reap_stash( + &self, + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "reap_stash", + types::ReapStash { + stash, + num_slashing_spans, + }, + [ + 34u8, 168u8, 120u8, 161u8, 95u8, 199u8, 106u8, + 233u8, 61u8, 240u8, 166u8, 31u8, 183u8, 165u8, + 158u8, 179u8, 32u8, 130u8, 27u8, 164u8, 112u8, + 44u8, 14u8, 125u8, 227u8, 87u8, 70u8, 203u8, 194u8, + 24u8, 212u8, 177u8, + ], + ) + } + #[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: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "kick", + types::Kick { who }, + [ + 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, + 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, + 115u8, 243u8, 166u8, 120u8, 121u8, 70u8, 227u8, + 240u8, 205u8, 240u8, 211u8, 202u8, 251u8, 232u8, + 209u8, 12u8, + ], + ) + } + #[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 : 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 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_staking_configs", + types::SetStakingConfigs { + min_nominator_bond, + min_validator_bond, + max_nominator_count, + max_validator_count, + chill_threshold, + min_commission, + }, + [ + 176u8, 168u8, 155u8, 176u8, 27u8, 79u8, 223u8, + 92u8, 88u8, 93u8, 223u8, 69u8, 179u8, 250u8, 138u8, + 138u8, 87u8, 220u8, 36u8, 3u8, 126u8, 213u8, 16u8, + 68u8, 3u8, 16u8, 218u8, 151u8, 98u8, 169u8, 217u8, + 75u8, + ], + ) + } + #[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, + controller: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill_other", + types::ChillOther { controller }, + [ + 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, + 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, + 220u8, 166u8, 170u8, 135u8, 176u8, 68u8, 228u8, + 14u8, 67u8, 42u8, 52u8, 140u8, 231u8, 62u8, 167u8, + 80u8, 173u8, + ], + ) + } + #[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: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "force_apply_min_commission", + types::ForceApplyMinCommission { validator_stash }, + [ + 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, + 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, + 78u8, 123u8, 229u8, 135u8, 129u8, 241u8, 119u8, + 106u8, 41u8, 182u8, 121u8, 181u8, 242u8, 175u8, + 74u8, 207u8, 64u8, 106u8, + ], + ) + } + #[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: runtime_types::sp_arithmetic::per_things::Perbill, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_min_commission", + types::SetMinCommission { new }, + [ + 62u8, 139u8, 175u8, 245u8, 212u8, 113u8, 117u8, + 130u8, 191u8, 173u8, 78u8, 97u8, 19u8, 104u8, + 185u8, 207u8, 201u8, 14u8, 200u8, 208u8, 184u8, + 195u8, 242u8, 175u8, 158u8, 156u8, 51u8, 58u8, + 118u8, 154u8, 68u8, 221u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] + #[doc = "the remainder from the maximum amount of reward."] + pub struct EraPaid { + pub era_index: ::core::primitive::u32, + pub validator_payout: ::core::primitive::u128, + pub remainder: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for EraPaid { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "EraPaid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The nominator has been rewarded by this amount."] + pub struct Rewarded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A staker (validator or nominator) has been slashed by the given amount."] + pub struct Slashed { + pub staker: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] + #[doc = "era as been reported."] + pub struct SlashReported { + pub validator: ::subxt::utils::AccountId32, + pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, + pub slash_era: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SlashReported { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SlashReported"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An old slashing report from a prior era was discarded because it could"] + #[doc = "not be processed."] + pub struct OldSlashingReportDiscarded { + pub session_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "OldSlashingReportDiscarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new set of stakers was elected."] + pub struct StakersElected; + impl ::subxt::events::StaticEvent for StakersElected { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakersElected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has bonded this amount. \\[stash, amount\\]"] + #[doc = ""] + #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] + #[doc = "it will not be emitted for staking rewards when they are added to stake."] + pub struct Bonded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has unbonded this amount."] + pub struct Unbonded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] + #[doc = "from the unlocking queue."] + pub struct Withdrawn { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A nominator has been kicked from a validator."] + pub struct Kicked { + pub nominator: ::subxt::utils::AccountId32, + pub stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Kicked { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Kicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The election failed. No new era is planned."] + pub struct StakingElectionFailed; + impl ::subxt::events::StaticEvent for StakingElectionFailed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakingElectionFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has stopped participating as either a validator or nominator."] + pub struct Chilled { + pub stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Chilled { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Chilled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The stakers' rewards are getting paid."] + pub struct PayoutStarted { + pub era_index: ::core::primitive::u32, + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for PayoutStarted { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "PayoutStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A validator has set their preferences."] + pub struct ValidatorPrefsSet { + pub stash: ::subxt::utils::AccountId32, + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::events::StaticEvent for ValidatorPrefsSet { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ValidatorPrefsSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new force era mode was set."] + pub struct ForceEra { + pub mode: runtime_types::pallet_staking::Forcing, + } + impl ::subxt::events::StaticEvent for ForceEra { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ForceEra"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The ideal number of active validators."] + pub fn validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorCount", + vec![], + [ + 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, + 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, + 184u8, 207u8, 6u8, 0u8, 126u8, 221u8, 67u8, 125u8, + 218u8, 188u8, 245u8, 156u8, 188u8, 34u8, 85u8, + 208u8, 197u8, + ], + ) + } + #[doc = " Minimum number of staking participants before emergency conditions are imposed."] + pub fn minimum_validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumValidatorCount", + vec![], + [ + 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, + 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, + 175u8, 1u8, 234u8, 162u8, 91u8, 252u8, 127u8, 68u8, + 243u8, 241u8, 13u8, 107u8, 214u8, 70u8, 87u8, + 249u8, + ], + ) + } + #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] + #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] + #[doc = " invulnerables) and restricted to testnets."] + pub fn invulnerables( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Invulnerables", + vec![], + [ + 77u8, 78u8, 63u8, 199u8, 150u8, 167u8, 135u8, + 130u8, 192u8, 51u8, 202u8, 119u8, 68u8, 49u8, + 241u8, 68u8, 82u8, 90u8, 226u8, 201u8, 96u8, 170u8, + 21u8, 173u8, 236u8, 116u8, 148u8, 8u8, 174u8, 92u8, + 7u8, 11u8, + ], + ) + } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn bonded( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Bonded", + Vec::new(), + [ + 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, + 77u8, 15u8, 118u8, 193u8, 155u8, 97u8, 229u8, 36u8, + 119u8, 128u8, 224u8, 162u8, 21u8, 46u8, 199u8, + 221u8, 15u8, 74u8, 59u8, 70u8, 77u8, 218u8, 73u8, + 165u8, + ], + ) + } + #[doc = " The minimum active bond to become and maintain the role of a nominator."] + pub fn min_nominator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinNominatorBond", + vec![], + [ + 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, + 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, + 127u8, 223u8, 58u8, 134u8, 81u8, 165u8, 200u8, + 142u8, 196u8, 158u8, 26u8, 38u8, 165u8, 19u8, 91u8, + 251u8, 119u8, 84u8, + ], + ) + } + #[doc = " The minimum active bond to become and maintain the role of a validator."] + pub fn min_validator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinValidatorBond", + vec![], + [ + 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, + 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, + 66u8, 182u8, 92u8, 20u8, 22u8, 109u8, 155u8, 174u8, + 87u8, 118u8, 242u8, 216u8, 193u8, 154u8, 4u8, 5u8, + 66u8, 56u8, + ], + ) + } + #[doc = " The minimum active nominator stake of the last successful election."] + pub fn minimum_active_stake( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumActiveStake", + vec![], + [ + 172u8, 190u8, 228u8, 47u8, 47u8, 192u8, 182u8, + 59u8, 9u8, 18u8, 103u8, 46u8, 175u8, 54u8, 17u8, + 79u8, 89u8, 107u8, 255u8, 200u8, 182u8, 107u8, + 89u8, 157u8, 55u8, 16u8, 77u8, 46u8, 154u8, 169u8, + 103u8, 151u8, + ], + ) + } + #[doc = " The minimum amount of commission that validators can set."] + #[doc = ""] + #[doc = " If set to `0`, no limit exists."] + pub fn min_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinCommission", + vec![], + [ + 61u8, 101u8, 69u8, 27u8, 220u8, 179u8, 5u8, 71u8, + 66u8, 227u8, 84u8, 98u8, 18u8, 141u8, 183u8, 49u8, + 98u8, 46u8, 123u8, 114u8, 198u8, 85u8, 15u8, 175u8, + 243u8, 239u8, 133u8, 129u8, 146u8, 174u8, 254u8, + 158u8, + ], + ) + } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + pub fn ledger( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) + } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + pub fn ledger_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Ledger", + Vec::new(), + [ + 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, + 33u8, 189u8, 124u8, 120u8, 177u8, 70u8, 27u8, + 242u8, 188u8, 184u8, 204u8, 188u8, 242u8, 140u8, + 128u8, 230u8, 85u8, 99u8, 181u8, 173u8, 67u8, + 252u8, 37u8, 236u8, + ], + ) + } + #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn payee( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Payee", + Vec::new(), + [ + 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, + 187u8, 163u8, 20u8, 230u8, 153u8, 13u8, 189u8, + 232u8, 119u8, 118u8, 107u8, 17u8, 102u8, 245u8, + 36u8, 42u8, 232u8, 137u8, 177u8, 165u8, 169u8, + 246u8, 199u8, 57u8, + ], + ) + } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn validators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Validators", + Vec::new(), + [ + 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, + 43u8, 24u8, 149u8, 164u8, 208u8, 60u8, 144u8, 29u8, + 251u8, 195u8, 236u8, 196u8, 108u8, 58u8, 80u8, + 115u8, 246u8, 66u8, 226u8, 241u8, 201u8, 172u8, + 229u8, 152u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForValidators", + vec![], + [ + 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, + 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, + 112u8, 85u8, 49u8, 78u8, 88u8, 11u8, 8u8, 48u8, + 118u8, 34u8, 62u8, 159u8, 239u8, 122u8, 90u8, 45u8, + ], + ) + } + #[doc = " The maximum validator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_validators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxValidatorsCount", + vec![], + [ + 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, + 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, + 62u8, 131u8, 112u8, 64u8, 26u8, 133u8, 7u8, 130u8, + 1u8, 71u8, 158u8, 14u8, 55u8, 169u8, 239u8, 223u8, + 245u8, + ], + ) + } + #[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 = " [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators"] + #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] + #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] + #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] + #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] + #[doc = ""] + #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] + #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] + #[doc = " number of keys that exist."] + #[doc = ""] + #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn nominators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) + } + #[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 = " [`Config::MaxNominations`] configuration is decreased. 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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Nominators", + Vec::new(), + [ + 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, + 254u8, 19u8, 152u8, 85u8, 164u8, 171u8, 206u8, + 129u8, 184u8, 45u8, 221u8, 181u8, 229u8, 133u8, + 200u8, 231u8, 16u8, 146u8, 247u8, 21u8, 77u8, + 122u8, 165u8, 134u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_nominators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForNominators", + vec![], + [ + 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, + 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, + 40u8, 117u8, 215u8, 46u8, 82u8, 117u8, 225u8, 1u8, + 9u8, 208u8, 83u8, 63u8, 39u8, 187u8, 207u8, 191u8, + ], + ) + } + #[doc = " The maximum nominator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_nominators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxNominatorsCount", + vec![], + [ + 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, + 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, + 32u8, 119u8, 3u8, 73u8, 86u8, 49u8, 104u8, 17u8, + 186u8, 98u8, 221u8, 175u8, 109u8, 254u8, 207u8, + 245u8, 125u8, 179u8, + ], + ) + } + #[doc = " The current era index."] + #[doc = ""] + #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] + #[doc = " set, it might be active or not."] + pub fn current_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentEra", + vec![], + [ + 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, + 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, + 7u8, 10u8, 117u8, 71u8, 240u8, 74u8, 86u8, 36u8, + 198u8, 37u8, 153u8, 93u8, 196u8, 22u8, 192u8, + 243u8, + ], + ) + } + #[doc = " The active era information, it holds index and start."] + #[doc = ""] + #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] + #[doc = " equal to [`SessionInterface::validators`]."] + pub fn active_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ActiveEra", + vec![], + [ + 15u8, 112u8, 251u8, 183u8, 108u8, 61u8, 28u8, 71u8, + 44u8, 150u8, 162u8, 4u8, 143u8, 121u8, 11u8, 37u8, + 83u8, 29u8, 193u8, 21u8, 210u8, 116u8, 190u8, + 236u8, 213u8, 235u8, 49u8, 97u8, 189u8, 142u8, + 251u8, 124u8, + ], + ) + } + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] + pub fn eras_start_session_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) + } + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStartSessionIndex", + Vec::new(), + [ + 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, + 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, + 100u8, 163u8, 91u8, 32u8, 246u8, 122u8, 78u8, + 149u8, 214u8, 103u8, 249u8, 119u8, 20u8, 101u8, + 116u8, 110u8, 185u8, + ], + ) + } + #[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 `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) + } + #[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 `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + Vec::new(), + [ + 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, + 15u8, 139u8, 210u8, 128u8, 65u8, 92u8, 253u8, 43u8, + 35u8, 139u8, 171u8, 73u8, 185u8, 32u8, 78u8, 20u8, + 197u8, 154u8, 90u8, 233u8, 231u8, 23u8, 22u8, + 187u8, 156u8, + ], + ) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_clipped( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + pub fn eras_stakers_clipped_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + Vec::new(), + [ + 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, + 153u8, 26u8, 55u8, 71u8, 119u8, 174u8, 48u8, 158u8, + 45u8, 214u8, 26u8, 136u8, 215u8, 46u8, 161u8, + 185u8, 17u8, 174u8, 204u8, 206u8, 246u8, 49u8, + 87u8, 134u8, 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 `HISTORY_DEPTH` eras."] + pub fn eras_validator_prefs( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) + } + #[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 `HISTORY_DEPTH` eras."] + pub fn eras_validator_prefs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + Vec::new(), + [ + 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, + 129u8, 62u8, 4u8, 56u8, 234u8, 114u8, 141u8, 136u8, + 127u8, 224u8, 142u8, 89u8, 150u8, 33u8, 31u8, 50u8, + 140u8, 108u8, 124u8, 77u8, 188u8, 102u8, 230u8, + 174u8, + ], + ) + } + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) + } + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorReward", + Vec::new(), + [ + 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, + 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, + 179u8, 84u8, 161u8, 223u8, 255u8, 254u8, 107u8, + 52u8, 89u8, 98u8, 169u8, 136u8, 241u8, 104u8, 3u8, + 244u8, 161u8, + ], + ) + } + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) + } + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::AccountId32, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasRewardPoints", + Vec::new(), + [ + 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, + 88u8, 65u8, 24u8, 255u8, 120u8, 178u8, 23u8, 232u8, + 15u8, 64u8, 206u8, 0u8, 170u8, 40u8, 18u8, 149u8, + 45u8, 90u8, 179u8, 127u8, 52u8, 59u8, 37u8, 192u8, + ], + ) + } + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) + } + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasTotalStake", + Vec::new(), + [ + 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, + 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, + 239u8, 1u8, 110u8, 53u8, 11u8, 247u8, 235u8, 142u8, + 234u8, 22u8, 43u8, 24u8, 36u8, 37u8, 43u8, 170u8, + 40u8, + ], + ) + } + #[doc = " Mode of era forcing."] + pub fn force_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Forcing, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, + 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, + 131u8, 214u8, 136u8, 68u8, 156u8, 140u8, 194u8, + 69u8, 151u8, 115u8, 177u8, 92u8, 147u8, 29u8, 40u8, + 41u8, 31u8, + ], + ) + } + #[doc = " The percentage of the slash that is distributed to reporters."] + #[doc = ""] + #[doc = " The rest of the slashed value is handled by the `Slash`."] + pub fn slash_reward_fraction( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashRewardFraction", + vec![], + [ + 167u8, 79u8, 143u8, 202u8, 199u8, 100u8, 129u8, + 162u8, 23u8, 165u8, 106u8, 170u8, 244u8, 86u8, + 144u8, 242u8, 65u8, 207u8, 115u8, 224u8, 231u8, + 155u8, 55u8, 139u8, 101u8, 129u8, 242u8, 196u8, + 130u8, 50u8, 3u8, 117u8, + ], + ) + } + #[doc = " The amount of currency given to reporters of a slash event which was"] + #[doc = " canceled by extraordinary circumstances (e.g. governance)."] + pub fn canceled_slash_payout( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CanceledSlashPayout", + vec![], + [ + 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, + 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, + 156u8, 83u8, 14u8, 91u8, 15u8, 200u8, 170u8, 3u8, + 127u8, 141u8, 139u8, 151u8, 98u8, 74u8, 96u8, + 238u8, 29u8, + ], + ) + } + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) + } + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "UnappliedSlashes", + Vec::new(), + [ + 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, + 47u8, 125u8, 57u8, 0u8, 133u8, 176u8, 130u8, 2u8, + 175u8, 180u8, 167u8, 203u8, 230u8, 82u8, 198u8, + 183u8, 55u8, 82u8, 221u8, 248u8, 100u8, 173u8, + 206u8, 151u8, + ], + ) + } + #[doc = " A mapping from still-bonded eras to the first session index of that era."] + #[doc = ""] + #[doc = " Must contains information for eras for the range:"] + #[doc = " `[active_era - bounding_duration; active_era]`"] + pub fn bonded_eras( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "BondedEras", + vec![], + [ + 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, + 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, + 89u8, 206u8, 2u8, 155u8, 222u8, 154u8, 116u8, + 124u8, 4u8, 119u8, 155u8, 94u8, 248u8, 30u8, 171u8, + 51u8, 78u8, 106u8, + ], + ) + } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + Vec::new(), + [ + 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, + 251u8, 196u8, 85u8, 29u8, 27u8, 151u8, 98u8, 122u8, + 189u8, 147u8, 205u8, 40u8, 202u8, 194u8, 158u8, + 96u8, 138u8, 16u8, 116u8, 71u8, 140u8, 163u8, + 121u8, 197u8, + ], + ) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + Vec::new(), + [ + 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, + 12u8, 53u8, 101u8, 80u8, 96u8, 166u8, 71u8, 239u8, + 23u8, 153u8, 19u8, 152u8, 38u8, 138u8, 136u8, + 221u8, 200u8, 18u8, 165u8, 26u8, 228u8, 195u8, + 199u8, 62u8, 4u8, + ], + ) + } + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) + } + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashingSpans", + Vec::new(), + [ + 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, + 255u8, 204u8, 44u8, 5u8, 66u8, 36u8, 227u8, 252u8, + 86u8, 159u8, 186u8, 152u8, 196u8, 21u8, 74u8, + 201u8, 133u8, 93u8, 142u8, 191u8, 20u8, 27u8, + 218u8, 157u8, + ], + ) + } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + Vec::new(), + [ + 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, + 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, + 116u8, 210u8, 225u8, 230u8, 224u8, 163u8, 103u8, + 157u8, 100u8, 29u8, 86u8, 167u8, 84u8, 217u8, + 109u8, 200u8, + ], + ) + } + #[doc = " The last planned session scheduled by the session pallet."] + #[doc = ""] + #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] + pub fn current_planned_session( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentPlannedSession", + vec![], + [ + 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, + 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, + 190u8, 53u8, 241u8, 11u8, 185u8, 163u8, 227u8, + 10u8, 77u8, 210u8, 64u8, 156u8, 218u8, 105u8, 16u8, + 1u8, 57u8, + ], + ) + } + #[doc = " Indices of validators that have offended in the active era and whether they are currently"] + #[doc = " disabled."] + #[doc = ""] + #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] + #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] + #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] + #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] + #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] + #[doc = " the era ends."] + pub fn offending_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::bool, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "OffendingValidators", + vec![], + [ + 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, + 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, + 82u8, 182u8, 104u8, 167u8, 103u8, 187u8, 168u8, + 86u8, 16u8, 51u8, 235u8, 51u8, 119u8, 38u8, 154u8, + 42u8, 113u8, + ], + ) + } + #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] + #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] + #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] + pub fn chill_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ChillThreshold", + vec![], + [ + 174u8, 165u8, 249u8, 105u8, 24u8, 151u8, 115u8, + 166u8, 199u8, 251u8, 28u8, 5u8, 50u8, 95u8, 144u8, + 110u8, 220u8, 76u8, 14u8, 23u8, 179u8, 41u8, 11u8, + 248u8, 28u8, 154u8, 159u8, 255u8, 156u8, 109u8, + 98u8, 92u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum number of nominations per nominator."] + pub fn max_nominations( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominations", + [ + 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 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`,"] + #[doc = " `StakingLedger.claimed_rewards`."] + #[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.claimed_rewards`. Setting this value lower than"] + #[doc = " the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a migration."] + #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] + pub fn history_depth( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of sessions per era."] + pub fn sessions_per_era( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that staked funds must remain bonded for."] + pub fn bonding_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that slashes are deferred by, after computation."] + #[doc = ""] + #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] + #[doc = " should be applied immediately, without opportunity for intervention."] + pub fn slash_defer_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of nominators rewarded for each validator."] + #[doc = ""] + #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] + #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] + pub fn max_nominator_rewarded_per_validator( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominatorRewardedPerValidator", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] + #[doc = " have. Effectively determines how many unique eras a staker may be"] + #[doc = " unbonding in."] + #[doc = ""] + #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] + #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] + #[doc = " lower than the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] + #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] + #[doc = " this effect."] + pub fn max_unlocking_chunks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetKeys { pub keys : runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys , pub proof : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for SetKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PurgeKeys; + impl ::subxt::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 : runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "set_keys", + types::SetKeys { keys, proof }, + [ + 96u8, 118u8, 0u8, 203u8, 157u8, 82u8, 2u8, 238u8, + 94u8, 39u8, 248u8, 255u8, 155u8, 43u8, 191u8, 64u8, + 200u8, 223u8, 108u8, 198u8, 114u8, 0u8, 53u8, 15u8, + 203u8, 47u8, 205u8, 234u8, 131u8, 177u8, 139u8, + 185u8, + ], + ) + } + #[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::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "purge_keys", + types::PurgeKeys {}, + [ + 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, + 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, + 44u8, 91u8, 31u8, 145u8, 23u8, 213u8, 64u8, 71u8, + 242u8, 207u8, 239u8, 231u8, 37u8, 61u8, 63u8, + 190u8, 35u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_session::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New 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: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NewSession { + const PALLET: &'static str = "Session"; + const EVENT: &'static str = "NewSession"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The current set of validators."] + pub fn validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "Validators", + vec![], + [ + 144u8, 235u8, 200u8, 43u8, 151u8, 57u8, 147u8, + 172u8, 201u8, 202u8, 242u8, 96u8, 57u8, 76u8, + 124u8, 77u8, 42u8, 113u8, 218u8, 220u8, 230u8, + 32u8, 151u8, 152u8, 172u8, 106u8, 60u8, 227u8, + 122u8, 118u8, 137u8, 68u8, + ], + ) + } + #[doc = " Current index of the session."] + pub fn current_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "CurrentIndex", + vec![], + [ + 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, + 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, + 181u8, 191u8, 143u8, 252u8, 227u8, 80u8, 159u8, + 66u8, 194u8, 67u8, 113u8, 74u8, 111u8, 91u8, 218u8, + 187u8, 130u8, 40u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedChanged", + vec![], + [ + 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, + 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, + 202u8, 152u8, 42u8, 50u8, 113u8, 200u8, 247u8, + 59u8, 213u8, 77u8, 195u8, 1u8, 150u8, 220u8, 18u8, + 245u8, 46u8, + ], + ) + } + #[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 :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedKeys", + vec![], + [ + 6u8, 142u8, 45u8, 83u8, 248u8, 49u8, 224u8, 50u8, + 60u8, 233u8, 70u8, 144u8, 29u8, 121u8, 17u8, 65u8, + 76u8, 193u8, 222u8, 91u8, 128u8, 19u8, 85u8, 65u8, + 58u8, 89u8, 159u8, 156u8, 138u8, 76u8, 181u8, + 188u8, + ], + ) + } + #[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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "DisabledValidators", + vec![], + [ + 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, + 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, + 31u8, 20u8, 242u8, 73u8, 104u8, 11u8, 110u8, 214u8, + 34u8, 52u8, 217u8, 106u8, 33u8, 174u8, 174u8, + 198u8, 84u8, + ], + ) + } + #[doc = " The next session keys for a validator."] pub fn next_keys (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [227u8 , 242u8 , 225u8 , 78u8 , 154u8 , 151u8 , 147u8 , 206u8 , 94u8 , 82u8 , 85u8 , 255u8 , 86u8 , 111u8 , 54u8 , 199u8 , 116u8 , 193u8 , 170u8 , 217u8 , 87u8 , 169u8 , 81u8 , 99u8 , 247u8 , 214u8 , 241u8 , 221u8 , 116u8 , 133u8 , 146u8 , 117u8 ,]) + } + #[doc = " The next session keys for a validator."] pub fn next_keys_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: opaque :: SessionKeys , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Session", + "NextKeys", + Vec::new(), + [ + 227u8, 242u8, 225u8, 78u8, 154u8, 151u8, 147u8, + 206u8, 94u8, 82u8, 85u8, 255u8, 86u8, 111u8, 54u8, + 199u8, 116u8, 193u8, 170u8, 217u8, 87u8, 169u8, + 81u8, 99u8, 247u8, 214u8, 241u8, 221u8, 116u8, + 133u8, 146u8, 117u8, + ], + ) + } + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::sp_core::crypto::KeyTypeId, + >, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) + } + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "KeyOwner", + Vec::new(), + [ + 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, + 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, + 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, 0u8, + 148u8, 203u8, 144u8, 149u8, 64u8, 135u8, 254u8, + 242u8, 215u8, + ], + ) + } + } + } + } + pub mod historical { + use super::root_mod; + use super::runtime_types; + } + 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 one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeSpend { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "propose_spend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RejectProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "reject_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ApproveProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "approve_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Spend { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Spend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveApproval { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "remove_approval"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] + #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] + #[doc = "proposal is awarded."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + pub fn propose_spend( + &self, + value: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "propose_spend", + types::ProposeSpend { value, beneficiary }, + [ + 124u8, 32u8, 83u8, 127u8, 240u8, 169u8, 3u8, 190u8, + 235u8, 163u8, 23u8, 29u8, 88u8, 242u8, 238u8, + 187u8, 136u8, 75u8, 193u8, 192u8, 239u8, 2u8, 54u8, + 238u8, 147u8, 42u8, 91u8, 14u8, 244u8, 175u8, 41u8, + 14u8, + ], + ) + } + #[doc = "Reject a proposed spend. The original deposit will be slashed."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + pub fn reject_proposal( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Treasury", + "reject_proposal", + types::RejectProposal { proposal_id }, + [ + 106u8, 223u8, 97u8, 22u8, 111u8, 208u8, 128u8, + 26u8, 198u8, 140u8, 118u8, 126u8, 187u8, 51u8, + 193u8, 50u8, 193u8, 68u8, 143u8, 144u8, 34u8, + 132u8, 44u8, 244u8, 105u8, 186u8, 223u8, 234u8, + 17u8, 145u8, 209u8, 145u8, + ], + ) + } + #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::ApproveOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = " - O(1)."] + pub fn approve_proposal( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Treasury", + "approve_proposal", + types::ApproveProposal { proposal_id }, + [ + 164u8, 229u8, 172u8, 98u8, 129u8, 62u8, 84u8, + 128u8, 47u8, 108u8, 33u8, 120u8, 89u8, 79u8, 57u8, + 121u8, 4u8, 197u8, 170u8, 153u8, 156u8, 17u8, 59u8, + 164u8, 123u8, 227u8, 175u8, 195u8, 220u8, 160u8, + 60u8, 186u8, + ], + ) + } + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + pub fn spend( + &self, + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "spend", + types::Spend { + amount, + beneficiary, + }, + [ + 208u8, 79u8, 96u8, 218u8, 205u8, 209u8, 165u8, + 119u8, 92u8, 208u8, 54u8, 168u8, 83u8, 190u8, 98u8, + 97u8, 6u8, 2u8, 35u8, 249u8, 18u8, 88u8, 193u8, + 51u8, 130u8, 33u8, 28u8, 99u8, 49u8, 194u8, 34u8, + 77u8, + ], + ) + } + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[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 = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] + #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] + #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + pub fn remove_approval( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Treasury", + "remove_approval", + types::RemoveApproval { proposal_id }, + [ + 133u8, 126u8, 181u8, 47u8, 196u8, 243u8, 7u8, 46u8, + 25u8, 251u8, 154u8, 125u8, 217u8, 77u8, 54u8, + 245u8, 240u8, 180u8, 97u8, 34u8, 186u8, 53u8, + 225u8, 144u8, 155u8, 107u8, 172u8, 54u8, 250u8, + 184u8, 178u8, 86u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_treasury::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New proposal."] + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "We have ended a spend period and will now allocate funds."] + pub struct Spending { + pub budget_remaining: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Spending { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been allocated."] + pub struct Awarded { + pub proposal_index: ::core::primitive::u32, + pub award: ::core::primitive::u128, + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was rejected; funds were slashed."] + pub struct Rejected { + pub proposal_index: ::core::primitive::u32, + pub slashed: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rejected"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some of our funds have been burnt."] + pub struct Burnt { + pub burnt_funds: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Burnt { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Burnt"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] + pub struct Rollover { + pub rollover_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rollover { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rollover"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been deposited."] + pub struct Deposit { + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new spend proposal has been approved."] + pub struct SpendApproved { + pub proposal_index: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for SpendApproved { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "SpendApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The inactive funds of the pallet have been updated."] + pub struct UpdatedInactive { + pub reactivated: ::core::primitive::u128, + pub deactivated: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedInactive { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "UpdatedInactive"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of proposals that have been made."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "ProposalCount", + vec![], + [ + 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, + 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, + 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, + 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, + 127u8, 160u8, 34u8, 70u8, + ], + ) + } + #[doc = " Proposals that have been made."] + pub fn proposals( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Treasury" , "Proposals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [62u8 , 223u8 , 55u8 , 209u8 , 151u8 , 134u8 , 122u8 , 65u8 , 207u8 , 38u8 , 113u8 , 213u8 , 237u8 , 48u8 , 129u8 , 32u8 , 91u8 , 228u8 , 108u8 , 91u8 , 37u8 , 49u8 , 94u8 , 4u8 , 75u8 , 122u8 , 25u8 , 34u8 , 198u8 , 224u8 , 246u8 , 160u8 ,]) + } + #[doc = " Proposals that have been made."] + pub fn proposals_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Proposals", + Vec::new(), + [ + 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, + 65u8, 207u8, 38u8, 113u8, 213u8, 237u8, 48u8, + 129u8, 32u8, 91u8, 228u8, 108u8, 91u8, 37u8, 49u8, + 94u8, 4u8, 75u8, 122u8, 25u8, 34u8, 198u8, 224u8, + 246u8, 160u8, + ], + ) + } + #[doc = " The amount which has been reported as inactive to Currency."] + pub fn deactivated( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Deactivated", + vec![], + [ + 159u8, 57u8, 5u8, 85u8, 136u8, 128u8, 70u8, 43u8, + 67u8, 76u8, 123u8, 206u8, 48u8, 253u8, 51u8, 40u8, + 14u8, 35u8, 162u8, 173u8, 127u8, 79u8, 38u8, 235u8, + 9u8, 141u8, 201u8, 37u8, 211u8, 176u8, 119u8, + 106u8, + ], + ) + } + #[doc = " Proposal indices that have been approved but not yet awarded."] + pub fn approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Approvals", + vec![], + [ + 202u8, 106u8, 189u8, 40u8, 127u8, 172u8, 108u8, + 50u8, 193u8, 4u8, 248u8, 226u8, 176u8, 101u8, + 212u8, 222u8, 64u8, 206u8, 244u8, 175u8, 111u8, + 106u8, 86u8, 96u8, 19u8, 109u8, 218u8, 152u8, 30u8, + 59u8, 96u8, 1u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] + #[doc = " An accepted proposal gets these back. A rejected proposal does not."] + pub fn proposal_bond( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 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 amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_maximum( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option<::core::primitive::u128>, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, + 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, + 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, + 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, + 122u8, 60u8, 216u8, + ], + ) + } + #[doc = " Period between successive spends."] + pub fn spend_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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, + ], + ) + } + } + } + } + pub mod bounties { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bounties::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeBounty { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ApproveBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "approve_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnassignCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AcceptCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AwardBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AwardBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "award_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "claim_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CloseBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "close_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExtendBountyExpiry { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::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: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "propose_bounty", + types::ProposeBounty { value, description }, + [ + 99u8, 160u8, 94u8, 74u8, 105u8, 161u8, 123u8, + 239u8, 241u8, 117u8, 97u8, 99u8, 84u8, 101u8, 87u8, + 3u8, 88u8, 175u8, 75u8, 59u8, 114u8, 87u8, 18u8, + 113u8, 126u8, 26u8, 42u8, 104u8, 201u8, 128u8, + 102u8, 219u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "approve_bounty", + types::ApproveBounty { bounty_id }, + [ + 82u8, 228u8, 232u8, 103u8, 198u8, 173u8, 190u8, + 148u8, 159u8, 86u8, 48u8, 4u8, 32u8, 169u8, 1u8, + 129u8, 96u8, 145u8, 235u8, 68u8, 48u8, 34u8, 5u8, + 1u8, 76u8, 26u8, 100u8, 228u8, 92u8, 198u8, 183u8, + 173u8, + ], + ) + } + #[doc = "Assign 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: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "propose_curator", + types::ProposeCurator { + bounty_id, + curator, + fee, + }, + [ + 85u8, 186u8, 206u8, 137u8, 98u8, 87u8, 202u8, 71u8, + 89u8, 241u8, 56u8, 212u8, 89u8, 215u8, 65u8, 97u8, + 202u8, 139u8, 78u8, 66u8, 92u8, 177u8, 163u8, + 111u8, 212u8, 244u8, 41u8, 153u8, 104u8, 129u8, + 112u8, 237u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "unassign_curator", + types::UnassignCurator { bounty_id }, + [ + 218u8, 241u8, 247u8, 89u8, 95u8, 120u8, 93u8, 18u8, + 85u8, 114u8, 158u8, 254u8, 68u8, 77u8, 230u8, + 186u8, 230u8, 201u8, 63u8, 223u8, 28u8, 173u8, + 244u8, 82u8, 113u8, 177u8, 99u8, 27u8, 207u8, + 247u8, 207u8, 213u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "accept_curator", + types::AcceptCurator { bounty_id }, + [ + 106u8, 96u8, 22u8, 67u8, 52u8, 109u8, 180u8, 225u8, + 122u8, 253u8, 209u8, 214u8, 132u8, 131u8, 247u8, + 131u8, 162u8, 51u8, 144u8, 30u8, 12u8, 126u8, 50u8, + 152u8, 229u8, 119u8, 54u8, 116u8, 112u8, 235u8, + 34u8, 166u8, + ], + ) + } + #[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: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "award_bounty", + types::AwardBounty { + bounty_id, + beneficiary, + }, + [ + 7u8, 205u8, 73u8, 45u8, 57u8, 8u8, 24u8, 135u8, + 89u8, 157u8, 35u8, 176u8, 224u8, 106u8, 167u8, + 232u8, 230u8, 153u8, 239u8, 45u8, 210u8, 61u8, + 17u8, 106u8, 220u8, 131u8, 105u8, 136u8, 232u8, + 194u8, 243u8, 48u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "claim_bounty", + types::ClaimBounty { bounty_id }, + [ + 102u8, 95u8, 8u8, 89u8, 4u8, 126u8, 189u8, 28u8, + 241u8, 16u8, 125u8, 218u8, 42u8, 92u8, 177u8, 91u8, + 8u8, 235u8, 33u8, 48u8, 64u8, 115u8, 177u8, 95u8, + 242u8, 97u8, 181u8, 50u8, 68u8, 37u8, 59u8, 85u8, + ], + ) + } + #[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: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "close_bounty", + types::CloseBounty { bounty_id }, + [ + 64u8, 113u8, 151u8, 228u8, 90u8, 55u8, 251u8, 63u8, + 27u8, 211u8, 119u8, 229u8, 137u8, 137u8, 183u8, + 240u8, 241u8, 146u8, 69u8, 169u8, 124u8, 220u8, + 236u8, 111u8, 98u8, 188u8, 100u8, 52u8, 127u8, + 245u8, 244u8, 92u8, + ], + ) + } + #[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: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "extend_bounty_expiry", + types::ExtendBountyExpiry { bounty_id, remark }, + [ + 97u8, 69u8, 157u8, 39u8, 59u8, 72u8, 79u8, 88u8, + 104u8, 119u8, 91u8, 26u8, 73u8, 216u8, 174u8, 95u8, + 254u8, 214u8, 63u8, 138u8, 100u8, 112u8, 185u8, + 81u8, 159u8, 247u8, 221u8, 60u8, 87u8, 40u8, 80u8, + 202u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New bounty proposal."] + pub struct BountyProposed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyProposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty proposal was rejected; funds were slashed."] + pub struct BountyRejected { + pub index: ::core::primitive::u32, + pub bond: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BountyRejected { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyRejected"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty proposal is funded and became active."] + pub struct BountyBecameActive { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyBecameActive { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyBecameActive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is awarded to a beneficiary."] + pub struct BountyAwarded { + pub index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for BountyAwarded { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyAwarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is claimed by beneficiary."] + pub struct BountyClaimed { + pub index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for BountyClaimed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is cancelled."] + pub struct BountyCanceled { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyCanceled { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty expiry is extended."] + pub struct BountyExtended { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyExtended { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of bounty proposals that have been made."] + pub fn bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyCount", + vec![], + [ + 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, + 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, + 178u8, 202u8, 193u8, 41u8, 83u8, 115u8, 253u8, + 182u8, 123u8, 92u8, 138u8, 12u8, 31u8, 31u8, 213u8, + 23u8, 118u8, + ], + ) + } + #[doc = " Bounties that have been made."] + pub fn bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Bounties" , "Bounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [111u8 , 149u8 , 33u8 , 54u8 , 172u8 , 143u8 , 41u8 , 231u8 , 184u8 , 255u8 , 238u8 , 206u8 , 87u8 , 142u8 , 84u8 , 10u8 , 236u8 , 141u8 , 190u8 , 193u8 , 72u8 , 170u8 , 19u8 , 110u8 , 135u8 , 136u8 , 220u8 , 11u8 , 99u8 , 126u8 , 225u8 , 208u8 ,]) + } + #[doc = " Bounties that have been made."] + pub fn bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "Bounties", + Vec::new(), + [ + 111u8, 149u8, 33u8, 54u8, 172u8, 143u8, 41u8, + 231u8, 184u8, 255u8, 238u8, 206u8, 87u8, 142u8, + 84u8, 10u8, 236u8, 141u8, 190u8, 193u8, 72u8, + 170u8, 19u8, 110u8, 135u8, 136u8, 220u8, 11u8, + 99u8, 126u8, 225u8, 208u8, + ], + ) + } + #[doc = " The description of each bounty."] + pub fn bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Bounties" , "BountyDescriptions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 0u8 , 9u8 , 225u8 , 13u8 , 135u8 , 7u8 , 121u8 , 154u8 , 155u8 , 116u8 , 83u8 , 160u8 , 37u8 , 72u8 , 11u8 , 72u8 , 0u8 , 248u8 , 73u8 , 158u8 , 84u8 , 125u8 , 221u8 , 176u8 , 231u8 , 100u8 , 239u8 , 111u8 , 22u8 , 29u8 , 13u8 ,]) + } + #[doc = " The description of each bounty."] + pub fn bounty_descriptions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyDescriptions", + Vec::new(), + [ + 252u8, 0u8, 9u8, 225u8, 13u8, 135u8, 7u8, 121u8, + 154u8, 155u8, 116u8, 83u8, 160u8, 37u8, 72u8, 11u8, + 72u8, 0u8, 248u8, 73u8, 158u8, 84u8, 125u8, 221u8, + 176u8, 231u8, 100u8, 239u8, 111u8, 22u8, 29u8, + 13u8, + ], + ) + } + #[doc = " Bounty indices that have been approved but not yet funded."] + pub fn bounty_approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyApprovals", + vec![], + [ + 64u8, 93u8, 54u8, 94u8, 122u8, 9u8, 246u8, 86u8, + 234u8, 30u8, 125u8, 132u8, 49u8, 128u8, 1u8, 219u8, + 241u8, 13u8, 217u8, 186u8, 48u8, 21u8, 5u8, 227u8, + 71u8, 157u8, 128u8, 226u8, 214u8, 49u8, 249u8, + 183u8, + ], + ) + } + } + } + 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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMultiplier", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, + 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, + 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, + 86u8, 227u8, + ], + ) + } + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] + pub fn curator_deposit_max( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option<::core::primitive::u128>, + > { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, + 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, + 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, + 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, + 122u8, 60u8, 216u8, + ], + ) + } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] + pub fn curator_deposit_min( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option<::core::primitive::u128>, + > { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, + 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, + 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, + 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, + 122u8, 60u8, 216u8, + ], + ) + } + #[doc = " Minimum value for a bounty."] + pub fn bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_child_bounties::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_child_bounties::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "add_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposeCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AcceptCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "award_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "claim_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "close_child_bounty"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "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: ::core::primitive::u32, + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "add_child_bounty", + types::AddChildBounty { + parent_bounty_id, + value, + description, + }, + [ + 210u8, 156u8, 242u8, 121u8, 28u8, 214u8, 212u8, + 203u8, 46u8, 45u8, 110u8, 25u8, 33u8, 138u8, 136u8, + 71u8, 23u8, 102u8, 203u8, 122u8, 77u8, 162u8, + 112u8, 133u8, 43u8, 73u8, 201u8, 176u8, 102u8, + 68u8, 188u8, 8u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "propose_curator", + types::ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, + }, + [ + 147u8, 32u8, 161u8, 72u8, 92u8, 246u8, 250u8, + 138u8, 98u8, 84u8, 229u8, 228u8, 217u8, 128u8, + 168u8, 20u8, 73u8, 113u8, 55u8, 207u8, 117u8, 52u8, + 9u8, 139u8, 223u8, 149u8, 48u8, 1u8, 8u8, 82u8, + 133u8, 112u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "accept_curator", + types::AcceptCurator { + parent_bounty_id, + child_bounty_id, + }, + [ + 112u8, 175u8, 238u8, 54u8, 132u8, 20u8, 206u8, + 59u8, 220u8, 228u8, 207u8, 222u8, 132u8, 240u8, + 188u8, 0u8, 210u8, 225u8, 234u8, 142u8, 232u8, + 53u8, 64u8, 89u8, 220u8, 29u8, 28u8, 123u8, 125u8, + 207u8, 10u8, 52u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "unassign_curator", + types::UnassignCurator { + parent_bounty_id, + child_bounty_id, + }, + [ + 228u8, 189u8, 46u8, 75u8, 121u8, 161u8, 150u8, + 87u8, 207u8, 86u8, 192u8, 50u8, 52u8, 61u8, 49u8, + 88u8, 178u8, 182u8, 89u8, 72u8, 203u8, 45u8, 41u8, + 26u8, 149u8, 114u8, 154u8, 169u8, 118u8, 128u8, + 13u8, 211u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "award_child_bounty", + types::AwardChildBounty { + parent_bounty_id, + child_bounty_id, + beneficiary, + }, + [ + 214u8, 25u8, 53u8, 19u8, 146u8, 11u8, 223u8, 173u8, + 22u8, 235u8, 27u8, 57u8, 90u8, 171u8, 161u8, 45u8, + 102u8, 37u8, 171u8, 110u8, 215u8, 151u8, 46u8, + 136u8, 93u8, 7u8, 254u8, 112u8, 47u8, 42u8, 144u8, + 140u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "claim_child_bounty", + types::ClaimChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 134u8, 243u8, 151u8, 228u8, 38u8, 174u8, 96u8, + 140u8, 104u8, 124u8, 166u8, 206u8, 126u8, 211u8, + 17u8, 100u8, 172u8, 5u8, 234u8, 171u8, 125u8, 2u8, + 191u8, 163u8, 72u8, 29u8, 163u8, 107u8, 65u8, 92u8, + 41u8, 45u8, + ], + ) + } + #[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: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "close_child_bounty", + types::CloseChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 40u8, 0u8, 235u8, 75u8, 36u8, 196u8, 29u8, 26u8, + 30u8, 172u8, 240u8, 44u8, 129u8, 243u8, 55u8, + 211u8, 96u8, 159u8, 72u8, 96u8, 142u8, 68u8, 41u8, + 238u8, 157u8, 167u8, 90u8, 141u8, 213u8, 249u8, + 222u8, 22u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_child_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is added."] + pub struct Added { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is awarded to a beneficiary."] + pub struct Awarded { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is claimed by beneficiary."] + pub struct Claimed { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is cancelled."] + pub struct Canceled { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Canceled"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of total child bounties."] + pub fn child_bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyCount", + vec![], + [ + 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, + 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, + 117u8, 160u8, 214u8, 167u8, 7u8, 109u8, 143u8, + 158u8, 1u8, 200u8, 205u8, 17u8, 93u8, 89u8, 26u8, + 30u8, 95u8, + ], + ) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ParentChildBounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [127u8 , 161u8 , 181u8 , 79u8 , 235u8 , 196u8 , 252u8 , 162u8 , 39u8 , 15u8 , 251u8 , 49u8 , 125u8 , 80u8 , 101u8 , 24u8 , 234u8 , 88u8 , 212u8 , 126u8 , 63u8 , 63u8 , 19u8 , 75u8 , 137u8 , 125u8 , 38u8 , 250u8 , 77u8 , 49u8 , 76u8 , 188u8 ,]) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + Vec::new(), + [ + 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, + 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, + 24u8, 234u8, 88u8, 212u8, 126u8, 63u8, 63u8, 19u8, + 75u8, 137u8, 125u8, 38u8, 250u8, 77u8, 49u8, 76u8, + 188u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildBounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [66u8 , 132u8 , 251u8 , 223u8 , 216u8 , 52u8 , 162u8 , 150u8 , 229u8 , 239u8 , 219u8 , 182u8 , 211u8 , 228u8 , 181u8 , 46u8 , 243u8 , 151u8 , 111u8 , 235u8 , 105u8 , 40u8 , 39u8 , 10u8 , 245u8 , 113u8 , 78u8 , 116u8 , 219u8 , 186u8 , 165u8 , 91u8 ,]) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + Vec::new(), + [ + 66u8, 132u8, 251u8, 223u8, 216u8, 52u8, 162u8, + 150u8, 229u8, 239u8, 219u8, 182u8, 211u8, 228u8, + 181u8, 46u8, 243u8, 151u8, 111u8, 235u8, 105u8, + 40u8, 39u8, 10u8, 245u8, 113u8, 78u8, 116u8, 219u8, + 186u8, 165u8, 91u8, + ], + ) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildBountyDescriptions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [193u8 , 200u8 , 40u8 , 30u8 , 14u8 , 71u8 , 90u8 , 42u8 , 58u8 , 253u8 , 225u8 , 158u8 , 172u8 , 10u8 , 45u8 , 238u8 , 36u8 , 144u8 , 184u8 , 153u8 , 11u8 , 157u8 , 125u8 , 220u8 , 175u8 , 31u8 , 28u8 , 93u8 , 207u8 , 212u8 , 141u8 , 74u8 ,]) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + Vec::new(), + [ + 193u8, 200u8, 40u8, 30u8, 14u8, 71u8, 90u8, 42u8, + 58u8, 253u8, 225u8, 158u8, 172u8, 10u8, 45u8, + 238u8, 36u8, 144u8, 184u8, 153u8, 11u8, 157u8, + 125u8, 220u8, 175u8, 31u8, 28u8, 93u8, 207u8, + 212u8, 141u8, 74u8, + ], + ) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildrenCuratorFees" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [174u8 , 128u8 , 86u8 , 179u8 , 133u8 , 76u8 , 98u8 , 169u8 , 234u8 , 166u8 , 249u8 , 214u8 , 172u8 , 171u8 , 8u8 , 161u8 , 105u8 , 69u8 , 148u8 , 151u8 , 35u8 , 174u8 , 118u8 , 139u8 , 101u8 , 56u8 , 85u8 , 211u8 , 121u8 , 168u8 , 0u8 , 216u8 ,]) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + Vec::new(), + [ + 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, + 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, + 8u8, 161u8, 105u8, 69u8, 148u8, 151u8, 35u8, 174u8, + 118u8, 139u8, 101u8, 56u8, 85u8, 211u8, 121u8, + 168u8, 0u8, 216u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum number of child bounties that can be added to a parent bounty."] + pub fn max_active_child_bounty_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "ChildBounties", + "MaxActiveChildBountyCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Minimum value for a child-bounty."] + pub fn child_bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "ChildBounties", + "ChildBountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, + ], + ) + } + } + } + } + pub mod bags_list { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_bags_list::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_bags_list::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Rebag { + pub dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Rebag { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "rebag"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PutInFrontOf { + pub lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "put_in_front_of"; + } + } + 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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "rebag", + types::Rebag { dislocated }, + [ + 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, + 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, + 116u8, 237u8, 55u8, 151u8, 71u8, 119u8, 42u8, 48u8, + 10u8, 66u8, 167u8, 208u8, 184u8, 228u8, 146u8, + 181u8, 84u8, 70u8, + ], + ) + } + #[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`."] + #[doc = ""] + #[doc = "Only works if"] + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "put_in_front_of", + types::PutInFrontOf { lighter }, + [ + 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, + 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, + 148u8, 76u8, 246u8, 71u8, 246u8, 205u8, 82u8, 32u8, + 186u8, 33u8, 5u8, 183u8, 127u8, 153u8, 232u8, 80u8, + 164u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Moved an account from one bag to another."] + pub struct Rebagged { + pub who: ::subxt::utils::AccountId32, + pub from: ::core::primitive::u64, + pub to: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for Rebagged { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "Rebagged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Updated the score of some account to the given amount."] + pub struct ScoreUpdated { + pub who: ::subxt::utils::AccountId32, + pub new_score: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ScoreUpdated { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "ScoreUpdated"; + } + } + pub mod storage { + use super::runtime_types; + 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( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) + } + #[doc = " A single node, within some bag."] + #[doc = ""] + #[doc = " Nodes store links forward and back within their respective bags."] + pub fn list_nodes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListNodes", + Vec::new(), + [ + 176u8, 186u8, 93u8, 51u8, 100u8, 184u8, 240u8, + 29u8, 70u8, 3u8, 117u8, 47u8, 23u8, 66u8, 231u8, + 234u8, 53u8, 8u8, 234u8, 175u8, 181u8, 8u8, 161u8, + 154u8, 48u8, 178u8, 147u8, 227u8, 122u8, 115u8, + 57u8, 97u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_list_nodes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "CounterForListNodes", + vec![], + [ + 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, + 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, + 210u8, 131u8, 87u8, 0u8, 241u8, 230u8, 160u8, + 142u8, 128u8, 153u8, 83u8, 36u8, 88u8, 247u8, 70u8, + 130u8, + ], + ) + } + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) + } + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListBags", + Vec::new(), + [ + 38u8, 86u8, 63u8, 92u8, 85u8, 59u8, 225u8, 244u8, + 14u8, 155u8, 76u8, 249u8, 153u8, 140u8, 179u8, 7u8, + 96u8, 170u8, 236u8, 179u8, 4u8, 18u8, 232u8, 146u8, + 216u8, 51u8, 135u8, 116u8, 196u8, 117u8, 143u8, + 153u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The list of thresholds separating the various bags."] + #[doc = ""] + #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] + #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] + #[doc = " is less than or equal to its upper threshold."] + #[doc = ""] + #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] + #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] + #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] + #[doc = ""] + #[doc = " # Expressing the constant"] + #[doc = ""] + #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] + #[doc = " permitted."] + #[doc = ""] + #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] + #[doc = " specified within the bag. For any two threshold lists, if one ends with"] + #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] + #[doc = " lists will behave identically."] + #[doc = ""] + #[doc = " # Calculation"] + #[doc = ""] + #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] + #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] + #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] + #[doc = ""] + #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] + #[doc = ""] + #[doc = " # Examples"] + #[doc = ""] + #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] + #[doc = " iteration is strictly in insertion order."] + #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is equal to 2."] + #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] + #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] + #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] + #[doc = ""] + #[doc = " # Migration"] + #[doc = ""] + #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] + #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] + pub fn bag_thresholds( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<::core::primitive::u64>, + > { + ::subxt::constants::Address::new_static( + "BagsList", + "BagThresholds", + [ + 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, + 172u8, 112u8, 234u8, 25u8, 175u8, 178u8, 19u8, + 251u8, 73u8, 91u8, 192u8, 227u8, 81u8, 249u8, 45u8, + 126u8, 116u8, 7u8, 37u8, 9u8, 200u8, 167u8, 182u8, + 12u8, 131u8, + ], + ) + } + } + } + } + pub mod nomination_pools { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Join { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Join { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "join"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtra { + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimPayout; + impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unbond { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub unbonding_points: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PoolWithdrawUnbonded { + pub pool_id: ::core::primitive::u32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "pool_withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithdrawUnbonded { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CreateWithPoolId { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create_with_pool_id"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nominate { + pub pool_id: ::core::primitive::u32, + pub validators: + ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetState { + pub pool_id: ::core::primitive::u32, + pub state: + runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::blocks::StaticExtrinsic for SetState { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_state"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { + pub pool_id: ::core::primitive::u32, + pub metadata: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetConfigs { + pub min_join_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub min_create_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub max_pools: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members_per_pool: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetConfigs { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UpdateRoles { + pub pool_id: ::core::primitive::u32, + pub new_root: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_nominator: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_bouncer: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "update_roles"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Chill { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "chill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtraOther { + pub member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetClaimPermission { + pub permission: + runtime_types::pallet_nomination_pools::ClaimPermission, + } + impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_claim_permission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimPayoutOther { + pub other: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout_other"; + } + } + 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: ::core::primitive::u128, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "join", + types::Join { amount, pool_id }, + [ + 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, + 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, + 197u8, 20u8, 75u8, 226u8, 29u8, 118u8, 208u8, 60u8, + 192u8, 247u8, 222u8, 100u8, 69u8, 80u8, 172u8, + 13u8, 69u8, 250u8, + ], + ) + } + #[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: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra", + types::BondExtra { extra }, + [ + 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, + 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, + 197u8, 34u8, 21u8, 188u8, 248u8, 191u8, 11u8, 10u8, + 236u8, 161u8, 168u8, 37u8, 38u8, 238u8, 61u8, + 183u8, 86u8, 55u8, + ], + ) + } + #[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 there 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 caim rewards on bahalf of some `other` pool member."] + pub fn claim_payout( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout", + types::ClaimPayout {}, + [ + 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, + 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, + 221u8, 218u8, 1u8, 222u8, 5u8, 236u8, 32u8, 88u8, + 0u8, 198u8, 72u8, 196u8, 181u8, 104u8, 16u8, 212u8, + 29u8, + ], + ) + } + #[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: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + unbonding_points: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "unbond", + types::Unbond { + member_account, + unbonding_points, + }, + [ + 139u8, 71u8, 78u8, 184u8, 141u8, 89u8, 179u8, + 123u8, 153u8, 30u8, 116u8, 186u8, 148u8, 49u8, + 48u8, 98u8, 33u8, 21u8, 29u8, 106u8, 180u8, 212u8, + 37u8, 251u8, 237u8, 21u8, 255u8, 13u8, 236u8, 73u8, + 250u8, 57u8, + ], + ) + } + #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] + #[doc = ""] + #[doc = "This is useful if their 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: ::core::primitive::u32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "pool_withdraw_unbonded", + types::PoolWithdrawUnbonded { + pool_id, + num_slashing_spans, + }, + [ + 152u8, 245u8, 131u8, 247u8, 106u8, 214u8, 154u8, + 8u8, 7u8, 210u8, 149u8, 218u8, 118u8, 46u8, 242u8, + 182u8, 191u8, 119u8, 28u8, 199u8, 36u8, 49u8, + 219u8, 123u8, 58u8, 203u8, 211u8, 226u8, 217u8, + 36u8, 56u8, 0u8, + ], + ) + } + #[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."] + pub fn withdraw_unbonded( + &self, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "withdraw_unbonded", + types::WithdrawUnbonded { + member_account, + num_slashing_spans, + }, + [ + 192u8, 183u8, 121u8, 87u8, 176u8, 70u8, 91u8, + 226u8, 156u8, 79u8, 87u8, 34u8, 227u8, 84u8, 22u8, + 235u8, 3u8, 181u8, 166u8, 194u8, 147u8, 72u8, 27u8, + 221u8, 57u8, 14u8, 44u8, 70u8, 253u8, 236u8, 44u8, + 84u8, + ], + ) + } + #[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` transferrable."] + pub fn create( + &self, + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create", + types::Create { + amount, + root, + nominator, + bouncer, + }, + [ + 19u8, 83u8, 115u8, 108u8, 192u8, 96u8, 44u8, 77u8, + 251u8, 152u8, 61u8, 103u8, 209u8, 17u8, 84u8, + 245u8, 153u8, 174u8, 124u8, 92u8, 236u8, 72u8, + 225u8, 73u8, 89u8, 236u8, 174u8, 180u8, 60u8, + 140u8, 198u8, 59u8, + ], + ) + } + #[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: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create_with_pool_id", + types::CreateWithPoolId { + amount, + root, + nominator, + bouncer, + pool_id, + }, + [ + 81u8, 185u8, 201u8, 99u8, 26u8, 96u8, 149u8, 43u8, + 181u8, 3u8, 149u8, 110u8, 158u8, 178u8, 138u8, + 205u8, 79u8, 251u8, 86u8, 18u8, 128u8, 117u8, 66u8, + 220u8, 222u8, 238u8, 122u8, 177u8, 63u8, 117u8, + 104u8, 54u8, + ], + ) + } + #[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."] + pub fn nominate( + &self, + pool_id: ::core::primitive::u32, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "nominate", + types::Nominate { + pool_id, + validators, + }, + [ + 10u8, 235u8, 64u8, 157u8, 36u8, 249u8, 186u8, 27u8, + 79u8, 172u8, 25u8, 3u8, 203u8, 19u8, 192u8, 182u8, + 36u8, 103u8, 13u8, 20u8, 89u8, 140u8, 159u8, 4u8, + 132u8, 242u8, 192u8, 146u8, 55u8, 251u8, 216u8, + 255u8, + ], + ) + } + #[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: ::core::primitive::u32, + state: runtime_types::pallet_nomination_pools::PoolState, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_state", + types::SetState { pool_id, state }, + [ + 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, + 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, + 151u8, 25u8, 194u8, 192u8, 187u8, 39u8, 170u8, + 212u8, 125u8, 75u8, 250u8, 248u8, 175u8, 159u8, + 161u8, 151u8, 162u8, + ], + ) + } + #[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"] + #[doc = "of the pool."] + pub fn set_metadata( + &self, + pool_id: ::core::primitive::u32, + metadata: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_metadata", + types::SetMetadata { pool_id, metadata }, + [ + 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, + 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, + 1u8, 6u8, 26u8, 168u8, 7u8, 8u8, 115u8, 158u8, + 151u8, 30u8, 211u8, 52u8, 177u8, 234u8, 87u8, + 125u8, 127u8, + ], + ) + } + #[doc = "Update configurations for the nomination pools. The origin for this call must be"] + #[doc = "Root."] + #[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`]."] + pub fn set_configs( + &self, + 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 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_configs", + types::SetConfigs { + min_join_bond, + min_create_bond, + max_pools, + max_members, + max_members_per_pool, + }, + [ + 143u8, 196u8, 211u8, 30u8, 71u8, 15u8, 150u8, + 243u8, 7u8, 178u8, 179u8, 168u8, 40u8, 116u8, + 220u8, 140u8, 18u8, 206u8, 6u8, 189u8, 190u8, 37u8, + 68u8, 41u8, 45u8, 233u8, 247u8, 172u8, 185u8, 34u8, + 243u8, 187u8, + ], + ) + } + #[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: ::core::primitive::u32, + new_root: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, + new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "update_roles", + types::UpdateRoles { + pool_id, + new_root, + new_nominator, + new_bouncer, + }, + [ + 15u8, 154u8, 204u8, 28u8, 204u8, 120u8, 174u8, + 203u8, 186u8, 33u8, 123u8, 201u8, 143u8, 120u8, + 193u8, 49u8, 164u8, 178u8, 55u8, 234u8, 126u8, + 247u8, 123u8, 73u8, 147u8, 107u8, 43u8, 72u8, + 217u8, 4u8, 199u8, 253u8, + ], + ) + } + #[doc = "Chill 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, same as [`Pallet::nominate`]."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] + pub fn chill( + &self, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "chill", + types::Chill { pool_id }, + [ + 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, + 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, + 240u8, 172u8, 229u8, 132u8, 64u8, 175u8, 87u8, + 217u8, 27u8, 11u8, 124u8, 1u8, 140u8, 40u8, 191u8, + 187u8, 36u8, + ], + ) + } + #[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 = "`PermissionlessAll` or `PermissionlessCompound`."] + pub fn bond_extra_other( + &self, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra_other", + types::BondExtraOther { member, extra }, + [ + 1u8, 73u8, 186u8, 39u8, 247u8, 130u8, 155u8, 185u8, + 212u8, 110u8, 151u8, 12u8, 18u8, 195u8, 106u8, + 28u8, 194u8, 130u8, 54u8, 59u8, 184u8, 192u8, + 141u8, 227u8, 102u8, 210u8, 76u8, 41u8, 196u8, + 90u8, 215u8, 84u8, + ], + ) + } + #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] + #[doc = "bonding and withdrawing."] + #[doc = ""] + #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] + #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] + #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] + #[doc = "pool."] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "* `origin` - Member of a pool."] + #[doc = "* `actor` - Account to claim reward. // improve this"] + pub fn set_claim_permission( + &self, + permission : runtime_types :: pallet_nomination_pools :: ClaimPermission, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_claim_permission", + types::SetClaimPermission { permission }, + [ + 23u8, 253u8, 135u8, 53u8, 83u8, 71u8, 182u8, 223u8, + 123u8, 57u8, 93u8, 154u8, 110u8, 91u8, 63u8, 241u8, + 144u8, 218u8, 129u8, 238u8, 169u8, 9u8, 215u8, + 76u8, 65u8, 168u8, 103u8, 44u8, 40u8, 39u8, 34u8, + 16u8, + ], + ) + } + #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] + #[doc = ""] + #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] + #[doc = "for this call to be successful."] + pub fn claim_payout_other( + &self, + other: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout_other", + types::ClaimPayoutOther { other }, + [ + 52u8, 165u8, 191u8, 125u8, 180u8, 54u8, 27u8, + 235u8, 195u8, 22u8, 55u8, 183u8, 209u8, 63u8, + 116u8, 88u8, 154u8, 74u8, 100u8, 103u8, 88u8, 76u8, + 35u8, 14u8, 39u8, 156u8, 219u8, 253u8, 123u8, + 104u8, 168u8, 76u8, + ], + ) + } + } + } + #[doc = "Events of this pallet."] + pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool has been created."] + pub struct Created { + pub depositor: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has became bonded in a pool."] + pub struct Bonded { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub bonded: ::core::primitive::u128, + pub joined: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A payout has been made to a member."] + pub struct PaidOut { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PaidOut { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PaidOut"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] + #[doc = "requested to be unbonded."] + pub struct Unbonded { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + pub points: ::core::primitive::u128, + pub era: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] + pub struct Withdrawn { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + pub points: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool has been destroyed."] + pub struct Destroyed { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The state of a pool has changed"] + pub struct StateChanged { + pub pool_id: ::core::primitive::u32, + pub new_state: + runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::events::StaticEvent for StateChanged { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "StateChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] + pub struct MemberRemoved { + pub pool_id: ::core::primitive::u32, + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MemberRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] + #[doc = "can never change."] + pub struct RolesUpdated { + pub root: ::core::option::Option<::subxt::utils::AccountId32>, + pub bouncer: + ::core::option::Option<::subxt::utils::AccountId32>, + pub nominator: + ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for RolesUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "RolesUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] + pub struct PoolSlashed { + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] + pub struct UnbondingPoolSlashed { + pub pool_id: ::core::primitive::u32, + pub era: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "UnbondingPoolSlashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Minimum amount to bond to join a pool."] + pub fn min_join_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinJoinBond", + vec![], + [ + 125u8, 239u8, 45u8, 225u8, 74u8, 129u8, 247u8, + 184u8, 205u8, 58u8, 45u8, 186u8, 126u8, 170u8, + 112u8, 120u8, 23u8, 190u8, 247u8, 97u8, 131u8, + 126u8, 215u8, 44u8, 147u8, 122u8, 132u8, 212u8, + 217u8, 84u8, 240u8, 91u8, + ], + ) + } + #[doc = " Minimum bond required to create a pool."] + #[doc = ""] + #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] + #[doc = " indication of \"skin in the game\"."] + #[doc = ""] + #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] + #[doc = " while all other accounts leave."] + pub fn min_create_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinCreateBond", + vec![], + [ + 31u8, 208u8, 240u8, 158u8, 23u8, 218u8, 212u8, + 138u8, 92u8, 210u8, 207u8, 170u8, 32u8, 60u8, 5u8, + 21u8, 84u8, 162u8, 1u8, 111u8, 181u8, 243u8, 24u8, + 148u8, 193u8, 253u8, 248u8, 190u8, 16u8, 222u8, + 219u8, 67u8, + ], + ) + } + #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] + #[doc = " pools can exist."] + pub fn max_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPools", + vec![], + [ + 216u8, 111u8, 68u8, 103u8, 33u8, 50u8, 109u8, 3u8, + 176u8, 195u8, 23u8, 73u8, 112u8, 138u8, 9u8, 194u8, + 233u8, 73u8, 68u8, 215u8, 162u8, 255u8, 217u8, + 173u8, 141u8, 27u8, 72u8, 199u8, 7u8, 240u8, 25u8, + 34u8, + ], + ) + } + #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] + #[doc = " members are not bound on a system wide basis."] + pub fn max_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembers", + vec![], + [ + 82u8, 217u8, 26u8, 234u8, 223u8, 241u8, 66u8, + 182u8, 43u8, 233u8, 59u8, 242u8, 202u8, 254u8, + 69u8, 50u8, 254u8, 196u8, 166u8, 89u8, 120u8, 87u8, + 76u8, 148u8, 31u8, 197u8, 49u8, 88u8, 206u8, 41u8, + 242u8, 62u8, + ], + ) + } + #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] + #[doc = " members is not bound on a per pool basis."] + pub fn max_pool_members_per_pool( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembersPerPool", + vec![], + [ + 93u8, 241u8, 16u8, 169u8, 138u8, 199u8, 128u8, + 149u8, 65u8, 30u8, 55u8, 11u8, 41u8, 252u8, 83u8, + 250u8, 9u8, 33u8, 152u8, 239u8, 195u8, 147u8, 16u8, + 248u8, 180u8, 153u8, 88u8, 231u8, 248u8, 169u8, + 186u8, 48u8, + ], + ) + } + #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn pool_members( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) + } + #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn pool_members_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "PoolMembers", + Vec::new(), + [ + 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, + 144u8, 5u8, 108u8, 70u8, 30u8, 177u8, 232u8, 253u8, + 237u8, 211u8, 91u8, 63u8, 62u8, 155u8, 151u8, + 153u8, 165u8, 206u8, 53u8, 111u8, 31u8, 60u8, + 120u8, 100u8, 249u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForPoolMembers", + vec![], + [ + 114u8, 126u8, 27u8, 138u8, 119u8, 44u8, 45u8, + 129u8, 84u8, 107u8, 171u8, 206u8, 117u8, 141u8, + 20u8, 75u8, 229u8, 237u8, 31u8, 229u8, 124u8, + 190u8, 27u8, 124u8, 63u8, 59u8, 167u8, 42u8, 62u8, + 212u8, 160u8, 2u8, + ], + ) + } + #[doc = " Storage for bonded pools."] + pub fn bonded_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [212u8 , 206u8 , 61u8 , 226u8 , 20u8 , 35u8 , 147u8 , 132u8 , 46u8 , 199u8 , 141u8 , 175u8 , 77u8 , 16u8 , 253u8 , 92u8 , 6u8 , 197u8 , 209u8 , 39u8 , 192u8 , 226u8 , 188u8 , 67u8 , 47u8 , 196u8 , 249u8 , 68u8 , 148u8 , 193u8 , 203u8 , 81u8 ,]) + } + #[doc = " Storage for bonded pools."] + pub fn bonded_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "BondedPools", + Vec::new(), + [ + 212u8, 206u8, 61u8, 226u8, 20u8, 35u8, 147u8, + 132u8, 46u8, 199u8, 141u8, 175u8, 77u8, 16u8, + 253u8, 92u8, 6u8, 197u8, 209u8, 39u8, 192u8, 226u8, + 188u8, 67u8, 47u8, 196u8, 249u8, 68u8, 148u8, + 193u8, 203u8, 81u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_bonded_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForBondedPools", + vec![], + [ + 134u8, 94u8, 199u8, 73u8, 174u8, 253u8, 66u8, + 242u8, 233u8, 244u8, 140u8, 170u8, 242u8, 40u8, + 41u8, 185u8, 183u8, 151u8, 58u8, 111u8, 221u8, + 225u8, 81u8, 71u8, 169u8, 219u8, 223u8, 135u8, 8u8, + 171u8, 180u8, 236u8, + ], + ) + } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] + #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) + } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] + #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "RewardPools", + Vec::new(), + [ + 139u8, 123u8, 46u8, 107u8, 9u8, 83u8, 141u8, 12u8, + 188u8, 225u8, 170u8, 215u8, 154u8, 21u8, 100u8, + 95u8, 237u8, 245u8, 46u8, 216u8, 199u8, 184u8, + 187u8, 155u8, 8u8, 16u8, 34u8, 177u8, 153u8, 65u8, + 109u8, 198u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reward_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForRewardPools", + vec![], + [ + 209u8, 139u8, 212u8, 116u8, 210u8, 178u8, 213u8, + 38u8, 75u8, 23u8, 188u8, 57u8, 253u8, 213u8, 95u8, + 118u8, 182u8, 250u8, 45u8, 205u8, 17u8, 175u8, + 17u8, 201u8, 234u8, 14u8, 98u8, 49u8, 143u8, 135u8, + 201u8, 81u8, + ], + ) + } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] + #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) + } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] + #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "SubPoolsStorage", + Vec::new(), + [ + 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, + 134u8, 224u8, 196u8, 94u8, 201u8, 229u8, 29u8, + 155u8, 211u8, 163u8, 150u8, 157u8, 34u8, 68u8, + 238u8, 55u8, 4u8, 222u8, 96u8, 186u8, 29u8, 205u8, + 237u8, 80u8, 42u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_sub_pools_storage( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForSubPoolsStorage", + vec![], + [ + 212u8, 145u8, 212u8, 226u8, 234u8, 31u8, 26u8, + 240u8, 107u8, 91u8, 171u8, 120u8, 41u8, 195u8, + 16u8, 86u8, 55u8, 127u8, 103u8, 93u8, 128u8, 48u8, + 69u8, 104u8, 168u8, 236u8, 81u8, 54u8, 2u8, 184u8, + 215u8, 51u8, + ], + ) + } + #[doc = " Metadata for the pool."] + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) + } + #[doc = " Metadata for the pool."] + pub fn metadata_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "Metadata", + Vec::new(), + [ + 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, + 62u8, 97u8, 163u8, 161u8, 215u8, 171u8, 225u8, + 49u8, 18u8, 37u8, 200u8, 143u8, 254u8, 136u8, 26u8, + 54u8, 187u8, 39u8, 3u8, 216u8, 24u8, 188u8, 25u8, + 243u8, 251u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForMetadata", + vec![], + [ + 190u8, 232u8, 77u8, 134u8, 245u8, 89u8, 160u8, + 187u8, 163u8, 68u8, 188u8, 204u8, 31u8, 145u8, + 219u8, 165u8, 213u8, 1u8, 167u8, 90u8, 175u8, + 218u8, 147u8, 144u8, 158u8, 226u8, 23u8, 233u8, + 55u8, 168u8, 161u8, 237u8, + ], + ) + } + #[doc = " Ever increasing number of all pools created so far."] + pub fn last_pool_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "LastPoolId", + vec![], + [ + 50u8, 254u8, 218u8, 41u8, 213u8, 184u8, 170u8, + 166u8, 31u8, 29u8, 196u8, 57u8, 215u8, 20u8, 40u8, + 40u8, 19u8, 22u8, 9u8, 184u8, 11u8, 21u8, 21u8, + 125u8, 97u8, 38u8, 219u8, 209u8, 2u8, 238u8, 247u8, + 51u8, + ], + ) + } + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) + } + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ReversePoolIdLookup", + Vec::new(), + [ + 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, + 236u8, 159u8, 36u8, 237u8, 120u8, 128u8, 6u8, + 191u8, 41u8, 159u8, 94u8, 178u8, 174u8, 235u8, + 221u8, 173u8, 44u8, 81u8, 211u8, 255u8, 231u8, + 81u8, 16u8, 87u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reverse_pool_id_lookup( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForReversePoolIdLookup", + vec![], + [ + 148u8, 83u8, 81u8, 33u8, 188u8, 72u8, 148u8, 208u8, + 245u8, 178u8, 52u8, 245u8, 229u8, 140u8, 100u8, + 152u8, 8u8, 217u8, 161u8, 80u8, 226u8, 42u8, 15u8, + 252u8, 90u8, 197u8, 120u8, 114u8, 144u8, 90u8, + 199u8, 123u8, + ], + ) + } + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ClaimPermissions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [23u8 , 124u8 , 83u8 , 109u8 , 174u8 , 228u8 , 170u8 , 25u8 , 124u8 , 91u8 , 224u8 , 66u8 , 55u8 , 127u8 , 190u8 , 226u8 , 163u8 , 16u8 , 81u8 , 231u8 , 241u8 , 214u8 , 209u8 , 137u8 , 101u8 , 206u8 , 104u8 , 138u8 , 49u8 , 56u8 , 152u8 , 228u8 ,]) + } + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + Vec::new(), + [ + 23u8, 124u8, 83u8, 109u8, 174u8, 228u8, 170u8, + 25u8, 124u8, 91u8, 224u8, 66u8, 55u8, 127u8, 190u8, + 226u8, 163u8, 16u8, 81u8, 231u8, 241u8, 214u8, + 209u8, 137u8, 101u8, 206u8, 104u8, 138u8, 49u8, + 56u8, 152u8, 228u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The nomination pool's pallet id."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] + #[doc = ""] + #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] + #[doc = " ratio becomes disproportional."] + #[doc = ""] + #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] + #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] + #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] + #[doc = " the chain, in the absolute worse case."] + #[doc = ""] + #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] + #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] + pub fn max_points_to_balance( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> + { + ::subxt::constants::Address::new_static( + "NominationPools", + "MaxPointsToBalance", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, + 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, + 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, + 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, + 228u8, 183u8, 165u8, + ], + ) + } + } + } + } + pub mod scheduler { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_scheduler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Schedule { + pub when: ::core::primitive::u32, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Schedule { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Cancel { + pub when: ::core::primitive::u32, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScheduleNamed { + pub id: [::core::primitive::u8; 32usize], + pub when: ::core::primitive::u32, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelNamed { + pub id: [::core::primitive::u8; 32usize], + } + impl ::subxt::blocks::StaticExtrinsic for CancelNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_named"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScheduleAfter { + pub after: ::core::primitive::u32, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_after"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ScheduleNamedAfter { + pub id: [::core::primitive::u8; 32usize], + pub after: ::core::primitive::u32, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named_after"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Anonymously schedule a task."] + pub fn schedule( + &self, + when: ::core::primitive::u32, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule", + types::Schedule { + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 125u8, 9u8, 140u8, 235u8, 141u8, 83u8, 76u8, 211u8, + 67u8, 188u8, 79u8, 131u8, 202u8, 60u8, 219u8, + 115u8, 140u8, 50u8, 212u8, 165u8, 26u8, 137u8, + 201u8, 83u8, 243u8, 227u8, 57u8, 175u8, 202u8, + 72u8, 236u8, 117u8, + ], + ) + } + #[doc = "Cancel an anonymously scheduled task."] + pub fn cancel( + &self, + when: ::core::primitive::u32, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel", + types::Cancel { when, index }, + [ + 81u8, 251u8, 234u8, 17u8, 214u8, 75u8, 19u8, 59u8, + 19u8, 30u8, 89u8, 74u8, 6u8, 216u8, 238u8, 165u8, + 7u8, 19u8, 153u8, 253u8, 161u8, 103u8, 178u8, + 227u8, 152u8, 180u8, 80u8, 156u8, 82u8, 126u8, + 132u8, 120u8, + ], + ) + } + #[doc = "Schedule a named task."] + pub fn schedule_named( + &self, + 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: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named", + types::ScheduleNamed { + id, + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 0u8, 26u8, 255u8, 209u8, 138u8, 36u8, 157u8, 14u8, + 243u8, 53u8, 206u8, 170u8, 3u8, 103u8, 228u8, 11u8, + 176u8, 245u8, 102u8, 106u8, 138u8, 73u8, 174u8, + 61u8, 213u8, 194u8, 80u8, 71u8, 15u8, 42u8, 168u8, + 79u8, + ], + ) + } + #[doc = "Cancel a named scheduled task."] + pub fn cancel_named( + &self, + id: [::core::primitive::u8; 32usize], + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel_named", + types::CancelNamed { id }, + [ + 51u8, 3u8, 140u8, 50u8, 214u8, 211u8, 50u8, 4u8, + 19u8, 43u8, 230u8, 114u8, 18u8, 108u8, 138u8, 67u8, + 99u8, 24u8, 255u8, 11u8, 246u8, 37u8, 192u8, 207u8, + 90u8, 157u8, 171u8, 93u8, 233u8, 189u8, 64u8, + 180u8, + ], + ) + } + #[doc = "Anonymously schedule a task after a delay."] + pub fn schedule_after( + &self, + after: ::core::primitive::u32, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_after", + types::ScheduleAfter { + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 201u8, 73u8, 254u8, 138u8, 209u8, 177u8, 84u8, + 178u8, 121u8, 88u8, 206u8, 52u8, 130u8, 132u8, + 178u8, 179u8, 95u8, 95u8, 85u8, 152u8, 3u8, 53u8, + 255u8, 43u8, 180u8, 229u8, 211u8, 68u8, 10u8, 9u8, + 210u8, 145u8, + ], + ) + } + #[doc = "Schedule a named task after a delay."] + pub fn schedule_named_after( + &self, + 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: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named_after", + types::ScheduleNamedAfter { + id, + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 215u8, 217u8, 155u8, 97u8, 105u8, 29u8, 5u8, 179u8, + 108u8, 92u8, 130u8, 162u8, 23u8, 227u8, 149u8, + 215u8, 70u8, 239u8, 34u8, 135u8, 127u8, 50u8, + 237u8, 147u8, 238u8, 99u8, 3u8, 254u8, 184u8, + 245u8, 89u8, 176u8, + ], + ) + } + } + } + #[doc = "Events type."] + pub type Event = runtime_types::pallet_scheduler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Scheduled some task."] + pub struct Scheduled { + pub when: ::core::primitive::u32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Scheduled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Canceled some task."] + pub struct Canceled { + pub when: ::core::primitive::u32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Dispatched some task."] + pub struct Dispatched { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for Dispatched { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The call for the provided hash was not found so the task has been aborted."] + pub struct CallUnavailable { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for CallUnavailable { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "CallUnavailable"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] + pub struct PeriodicFailed { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PeriodicFailed { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PeriodicFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given task can never be executed since it is overweight."] + pub struct PermanentlyOverweight { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PermanentlyOverweight { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PermanentlyOverweight"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn incomplete_since( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "IncompleteSince", + vec![], + [ + 149u8, 66u8, 239u8, 67u8, 235u8, 219u8, 101u8, + 182u8, 145u8, 56u8, 252u8, 150u8, 253u8, 221u8, + 125u8, 57u8, 38u8, 152u8, 153u8, 31u8, 92u8, 238u8, + 66u8, 246u8, 104u8, 163u8, 94u8, 73u8, 222u8, + 168u8, 193u8, 227u8, + ], + ) + } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , 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 :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Scheduler" , "Agenda" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [77u8 , 74u8 , 230u8 , 122u8 , 183u8 , 192u8 , 24u8 , 80u8 , 140u8 , 147u8 , 26u8 , 72u8 , 134u8 , 148u8 , 90u8 , 69u8 , 72u8 , 100u8 , 81u8 , 179u8 , 236u8 , 142u8 , 37u8 , 210u8 , 106u8 , 225u8 , 12u8 , 76u8 , 127u8 , 140u8 , 178u8 , 86u8 ,]) + } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , 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 :: tangle_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Agenda", + Vec::new(), + [ + 77u8, 74u8, 230u8, 122u8, 183u8, 192u8, 24u8, 80u8, + 140u8, 147u8, 26u8, 72u8, 134u8, 148u8, 90u8, 69u8, + 72u8, 100u8, 81u8, 179u8, 236u8, 142u8, 37u8, + 210u8, 106u8, 225u8, 12u8, 76u8, 127u8, 140u8, + 178u8, 86u8, + ], + ) + } + #[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 ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Scheduler" , "Lookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [82u8 , 20u8 , 178u8 , 101u8 , 108u8 , 198u8 , 71u8 , 99u8 , 16u8 , 175u8 , 15u8 , 187u8 , 229u8 , 243u8 , 140u8 , 200u8 , 99u8 , 77u8 , 248u8 , 178u8 , 45u8 , 121u8 , 193u8 , 67u8 , 165u8 , 43u8 , 234u8 , 211u8 , 158u8 , 250u8 , 103u8 , 243u8 ,]) + } + #[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_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Lookup", + Vec::new(), + [ + 82u8, 20u8, 178u8, 101u8, 108u8, 198u8, 71u8, 99u8, + 16u8, 175u8, 15u8, 187u8, 229u8, 243u8, 140u8, + 200u8, 99u8, 77u8, 248u8, 178u8, 45u8, 121u8, + 193u8, 67u8, 165u8, 43u8, 234u8, 211u8, 158u8, + 250u8, 103u8, 243u8, + ], + ) + } + } + } + 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::constants::Address< + runtime_types::sp_weights::weight_v2::Weight, + > { + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", + [ + 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, + 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, + 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, + 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, + 134u8, 106u8, 76u8, + ], + ) + } + #[doc = " The maximum number of scheduled calls in the queue for a single block."] + pub fn max_scheduled_per_block( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_preimage::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct NotePreimage { + pub bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for NotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "note_preimage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnnotePreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unnote_preimage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RequestPreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "request_preimage"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnrequestPreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unrequest_preimage"; + } + } + 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: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Preimage", + "note_preimage", + types::NotePreimage { bytes }, + [ + 77u8, 48u8, 104u8, 3u8, 254u8, 65u8, 106u8, 95u8, + 204u8, 89u8, 149u8, 29u8, 144u8, 188u8, 99u8, 23u8, + 146u8, 142u8, 35u8, 17u8, 125u8, 130u8, 31u8, + 206u8, 106u8, 83u8, 163u8, 192u8, 81u8, 23u8, + 232u8, 230u8, + ], + ) + } + #[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: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Preimage", + "unnote_preimage", + types::UnnotePreimage { hash }, + [ + 211u8, 204u8, 205u8, 58u8, 33u8, 179u8, 68u8, 74u8, + 149u8, 138u8, 213u8, 45u8, 140u8, 27u8, 106u8, + 81u8, 68u8, 212u8, 147u8, 116u8, 27u8, 130u8, 84u8, + 34u8, 231u8, 197u8, 135u8, 8u8, 19u8, 242u8, 207u8, + 17u8, + ], + ) + } + #[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: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Preimage", + "request_preimage", + types::RequestPreimage { hash }, + [ + 195u8, 26u8, 146u8, 255u8, 79u8, 43u8, 73u8, 60u8, + 115u8, 78u8, 99u8, 197u8, 137u8, 95u8, 139u8, + 141u8, 79u8, 213u8, 170u8, 169u8, 127u8, 30u8, + 236u8, 65u8, 38u8, 16u8, 118u8, 228u8, 141u8, 83u8, + 162u8, 233u8, + ], + ) + } + #[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: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Preimage", + "unrequest_preimage", + types::UnrequestPreimage { hash }, + [ + 143u8, 225u8, 239u8, 44u8, 237u8, 83u8, 18u8, + 105u8, 101u8, 68u8, 111u8, 116u8, 66u8, 212u8, + 63u8, 190u8, 38u8, 32u8, 105u8, 152u8, 69u8, 177u8, + 193u8, 15u8, 60u8, 26u8, 95u8, 130u8, 11u8, 113u8, + 187u8, 108u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_preimage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A preimage has been noted."] + pub struct Noted { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Noted { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Noted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A preimage has been requested."] + pub struct Requested { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Requested { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Requested"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A preimage has ben cleared."] + pub struct Cleared { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Cleared { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Cleared"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The request status of a given hash."] + pub fn status_for( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Preimage" , "StatusFor" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [103u8 , 208u8 , 88u8 , 167u8 , 244u8 , 198u8 , 129u8 , 134u8 , 182u8 , 80u8 , 71u8 , 192u8 , 73u8 , 92u8 , 190u8 , 15u8 , 20u8 , 132u8 , 37u8 , 108u8 , 88u8 , 233u8 , 18u8 , 145u8 , 9u8 , 235u8 , 5u8 , 132u8 , 42u8 , 17u8 , 227u8 , 56u8 ,]) + } + #[doc = " The request status of a given hash."] + pub fn status_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "StatusFor", + Vec::new(), + [ + 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, + 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, + 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, + 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, + 56u8, + ], + ) + } + pub fn preimage_for( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Preimage" , "PreimageFor" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [96u8 , 74u8 , 30u8 , 112u8 , 120u8 , 41u8 , 52u8 , 187u8 , 252u8 , 68u8 , 42u8 , 5u8 , 61u8 , 228u8 , 250u8 , 192u8 , 224u8 , 61u8 , 53u8 , 222u8 , 95u8 , 148u8 , 6u8 , 53u8 , 43u8 , 152u8 , 88u8 , 58u8 , 185u8 , 234u8 , 131u8 , 124u8 ,]) + } + pub fn preimage_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "PreimageFor", + Vec::new(), + [ + 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, + 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, + 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, + 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, + 124u8, + ], + ) + } + } + } + } + pub mod offences { + use super::root_mod; + use super::runtime_types; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] + #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] + #[doc = "\\[kind, timeslot\\]."] + pub struct Offence { + pub kind: [::core::primitive::u8; 16usize], + pub timeslot: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Offences" , "Reports" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [144u8 , 30u8 , 66u8 , 199u8 , 102u8 , 236u8 , 175u8 , 201u8 , 206u8 , 170u8 , 55u8 , 162u8 , 137u8 , 120u8 , 220u8 , 213u8 , 57u8 , 252u8 , 0u8 , 88u8 , 210u8 , 68u8 , 5u8 , 25u8 , 77u8 , 114u8 , 204u8 , 23u8 , 190u8 , 32u8 , 211u8 , 30u8 ,]) + } + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + Vec::new(), + [ + 144u8, 30u8, 66u8, 199u8, 102u8, 236u8, 175u8, + 201u8, 206u8, 170u8, 55u8, 162u8, 137u8, 120u8, + 220u8, 213u8, 57u8, 252u8, 0u8, 88u8, 210u8, 68u8, + 5u8, 25u8, 77u8, 114u8, 204u8, 23u8, 190u8, 32u8, + 211u8, 30u8, + ], + ) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::H256>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Offences" , "ConcurrentReportsIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [106u8 , 21u8 , 104u8 , 5u8 , 4u8 , 66u8 , 28u8 , 70u8 , 161u8 , 195u8 , 238u8 , 28u8 , 69u8 , 241u8 , 221u8 , 113u8 , 140u8 , 103u8 , 181u8 , 143u8 , 60u8 , 177u8 , 13u8 , 129u8 , 224u8 , 149u8 , 77u8 , 32u8 , 75u8 , 74u8 , 101u8 , 65u8 ,]) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::H256>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + Vec::new(), + [ + 106u8, 21u8, 104u8, 5u8, 4u8, 66u8, 28u8, 70u8, + 161u8, 195u8, 238u8, 28u8, 69u8, 241u8, 221u8, + 113u8, 140u8, 103u8, 181u8, 143u8, 60u8, 177u8, + 13u8, 129u8, 224u8, 149u8, 77u8, 32u8, 75u8, 74u8, + 101u8, 65u8, + ], + ) + } + #[doc = " Enumerates all reports of a kind along with the time they happened."] + #[doc = ""] + #[doc = " All reports are sorted by the time of offence."] + #[doc = ""] + #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] + #[doc = " different types are not supported at the moment so we are doing the manual serialization."] + pub fn reports_by_kind_index( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Offences" , "ReportsByKindIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [162u8 , 66u8 , 131u8 , 48u8 , 250u8 , 237u8 , 179u8 , 214u8 , 36u8 , 137u8 , 226u8 , 136u8 , 120u8 , 61u8 , 215u8 , 43u8 , 164u8 , 50u8 , 91u8 , 164u8 , 20u8 , 96u8 , 189u8 , 100u8 , 242u8 , 106u8 , 21u8 , 136u8 , 98u8 , 215u8 , 180u8 , 145u8 ,]) + } + #[doc = " Enumerates all reports of a kind along with the time they happened."] + #[doc = ""] + #[doc = " All reports are sorted by the time of offence."] + #[doc = ""] + #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] + #[doc = " different types are not supported at the moment so we are doing the manual serialization."] + pub fn reports_by_kind_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ReportsByKindIndex", + Vec::new(), + [ + 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, + 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, + 215u8, 43u8, 164u8, 50u8, 91u8, 164u8, 20u8, 96u8, + 189u8, 100u8, 242u8, 106u8, 21u8, 136u8, 98u8, + 215u8, 180u8, 145u8, + ], + ) + } + } + } + } + pub mod hasher_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_hasher::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_hasher::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetParameters { pub parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { + const PALLET: &'static str = "HasherBn254"; + const CALL: &'static str = "force_set_parameters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn force_set_parameters( + &self, + parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "HasherBn254", + "force_set_parameters", + types::ForceSetParameters { parameters }, + [ + 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, + 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, + 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, + 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, + 75u8, 166u8, 90u8, 127u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_hasher::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters"] + pub fn parameters( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "HasherBn254", + "Parameters", + vec![], + [ + 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, + 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, + 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, + 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, + 110u8, 163u8, 192u8, + ], + ) + } + } + } + } + pub mod asset_registry { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_asset_registry::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_asset_registry::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Register { pub name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , pub existential_deposit : :: core :: primitive :: u128 , } + impl ::subxt::blocks::StaticExtrinsic for Register { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "register"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Update { pub asset_id : :: core :: primitive :: u32 , pub bounded_name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , pub existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } + impl ::subxt::blocks::StaticExtrinsic for Update { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "update"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMetadata { pub asset_id : :: core :: primitive :: u32 , pub symbol : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub decimals : :: core :: primitive :: u8 , } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetLocation { + pub asset_id: ::core::primitive::u32, + pub location: (), + } + impl ::subxt::blocks::StaticExtrinsic for SetLocation { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "set_location"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddAssetToPool { pub pool : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_id : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for AddAssetToPool { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "add_asset_to_pool"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DeleteAssetFromPool { pub pool : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_id : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for DeleteAssetFromPool { + const PALLET: &'static str = "AssetRegistry"; + const CALL: &'static str = "delete_asset_from_pool"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Register a new asset."] + #[doc = ""] + #[doc = "Asset is identified by `name` and the name must not be used to"] + #[doc = "register another asset."] + #[doc = ""] + #[doc = "New asset is given `NextAssetId` - sequential asset id"] + #[doc = ""] + #[doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] + #[doc = "be retrieved by name too (Note: this approach is used in AMM"] + #[doc = "implementation (xyk))"] + #[doc = ""] + #[doc = "Emits 'Registered` event when successful."] + pub fn register( + &self, + name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool >, + existential_deposit: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "register", + types::Register { + name, + asset_type, + existential_deposit, + }, + [ + 252u8, 45u8, 222u8, 83u8, 254u8, 164u8, 199u8, + 163u8, 77u8, 255u8, 2u8, 143u8, 50u8, 226u8, 47u8, + 91u8, 89u8, 75u8, 143u8, 234u8, 96u8, 83u8, 255u8, + 78u8, 146u8, 32u8, 217u8, 112u8, 52u8, 190u8, + 107u8, 187u8, + ], + ) + } + #[doc = "Update registered asset."] + #[doc = ""] + #[doc = "Updates also mapping between name and asset id if provided name is"] + #[doc = "different than currently registered."] + #[doc = ""] + #[doc = "Emits `Updated` event when successful."] + pub fn update( + &self, + asset_id: ::core::primitive::u32, + bounded_name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool >, + existential_deposit: ::core::option::Option< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "update", + types::Update { + asset_id, + bounded_name, + asset_type, + existential_deposit, + }, + [ + 71u8, 166u8, 66u8, 176u8, 128u8, 130u8, 47u8, + 243u8, 184u8, 119u8, 22u8, 2u8, 97u8, 59u8, 228u8, + 103u8, 144u8, 189u8, 83u8, 74u8, 190u8, 103u8, + 139u8, 217u8, 184u8, 92u8, 157u8, 83u8, 185u8, + 83u8, 34u8, 186u8, + ], + ) + } + #[doc = "Set metadata for an asset."] + #[doc = ""] + #[doc = "- `asset_id`: Asset identifier."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet` event when successful."] + pub fn set_metadata( + &self, + asset_id: ::core::primitive::u32, + symbol : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + decimals: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "set_metadata", + types::SetMetadata { + asset_id, + symbol, + decimals, + }, + [ + 9u8, 120u8, 57u8, 240u8, 115u8, 83u8, 59u8, 131u8, + 253u8, 150u8, 149u8, 66u8, 75u8, 74u8, 35u8, 97u8, + 62u8, 134u8, 103u8, 15u8, 121u8, 202u8, 35u8, + 240u8, 138u8, 20u8, 146u8, 174u8, 99u8, 252u8, + 110u8, 194u8, + ], + ) + } + #[doc = "Set asset native location."] + #[doc = ""] + #[doc = "Adds mapping between native location and local asset id and vice"] + #[doc = "versa."] + #[doc = ""] + #[doc = "Mainly used in XCM."] + #[doc = ""] + #[doc = "Emits `LocationSet` event when successful."] + pub fn set_location( + &self, + asset_id: ::core::primitive::u32, + location: (), + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "set_location", + types::SetLocation { asset_id, location }, + [ + 149u8, 8u8, 90u8, 77u8, 144u8, 123u8, 175u8, 178u8, + 191u8, 230u8, 6u8, 245u8, 117u8, 20u8, 20u8, 182u8, + 135u8, 65u8, 23u8, 152u8, 88u8, 247u8, 210u8, + 130u8, 120u8, 124u8, 46u8, 20u8, 143u8, 175u8, + 196u8, 35u8, + ], + ) + } + #[doc = "Add an asset to an existing pool."] + pub fn add_asset_to_pool( + &self, + pool : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "add_asset_to_pool", + types::AddAssetToPool { pool, asset_id }, + [ + 150u8, 36u8, 8u8, 105u8, 253u8, 91u8, 165u8, 163u8, + 178u8, 235u8, 110u8, 227u8, 183u8, 8u8, 126u8, + 217u8, 243u8, 37u8, 13u8, 66u8, 72u8, 239u8, 2u8, + 178u8, 152u8, 26u8, 39u8, 131u8, 225u8, 10u8, + 123u8, 134u8, + ], + ) + } + #[doc = "Remove an asset from an existing pool."] + pub fn delete_asset_from_pool( + &self, + pool : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + asset_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "AssetRegistry", + "delete_asset_from_pool", + types::DeleteAssetFromPool { pool, asset_id }, + [ + 41u8, 72u8, 157u8, 129u8, 82u8, 30u8, 47u8, 66u8, + 180u8, 182u8, 0u8, 171u8, 251u8, 195u8, 72u8, + 181u8, 1u8, 45u8, 233u8, 220u8, 7u8, 45u8, 43u8, + 68u8, 164u8, 107u8, 196u8, 34u8, 225u8, 174u8, + 22u8, 102u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_asset_registry::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Asset was registered."] + pub struct Registered { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } + impl ::subxt::events::StaticEvent for Registered { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "Registered"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Asset was updated."] + pub struct Updated { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } + impl ::subxt::events::StaticEvent for Updated { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "Updated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata set for an asset."] + pub struct MetadataSet { + pub asset_id: ::core::primitive::u32, + pub symbol: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub decimals: ::core::primitive::u8, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Native location set for an asset."] + pub struct LocationSet { + pub asset_id: ::core::primitive::u32, + pub location: (), + } + impl ::subxt::events::StaticEvent for LocationSet { + const PALLET: &'static str = "AssetRegistry"; + const EVENT: &'static str = "LocationSet"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of an asset."] pub fn assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "Assets" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [182u8 , 114u8 , 167u8 , 11u8 , 64u8 , 250u8 , 48u8 , 87u8 , 231u8 , 111u8 , 138u8 , 236u8 , 205u8 , 82u8 , 37u8 , 218u8 , 41u8 , 136u8 , 38u8 , 62u8 , 215u8 , 152u8 , 76u8 , 17u8 , 209u8 , 60u8 , 196u8 , 247u8 , 99u8 , 45u8 , 32u8 , 224u8 ,]) + } + #[doc = " Details of an asset."] pub fn assets_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "Assets", + Vec::new(), + [ + 182u8, 114u8, 167u8, 11u8, 64u8, 250u8, 48u8, 87u8, + 231u8, 111u8, 138u8, 236u8, 205u8, 82u8, 37u8, + 218u8, 41u8, 136u8, 38u8, 62u8, 215u8, 152u8, 76u8, + 17u8, 209u8, 60u8, 196u8, 247u8, 99u8, 45u8, 32u8, + 224u8, + ], + ) + } + #[doc = " Next available asset id. This is sequential id assigned for each new"] + #[doc = " registered asset."] + pub fn next_asset_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "NextAssetId", + vec![], + [ + 130u8, 214u8, 178u8, 195u8, 222u8, 57u8, 89u8, + 143u8, 138u8, 218u8, 234u8, 251u8, 36u8, 221u8, + 51u8, 213u8, 130u8, 249u8, 153u8, 24u8, 245u8, + 51u8, 126u8, 71u8, 51u8, 148u8, 167u8, 143u8, 33u8, + 15u8, 44u8, 115u8, + ], + ) + } + #[doc = " Mapping between asset name and asset id."] + pub fn asset_ids( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetIds" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [142u8 , 138u8 , 84u8 , 162u8 , 209u8 , 97u8 , 173u8 , 83u8 , 185u8 , 226u8 , 233u8 , 40u8 , 74u8 , 97u8 , 166u8 , 13u8 , 199u8 , 229u8 , 235u8 , 15u8 , 6u8 , 196u8 , 7u8 , 35u8 , 87u8 , 202u8 , 4u8 , 101u8 , 212u8 , 84u8 , 250u8 , 251u8 ,]) + } + #[doc = " Mapping between asset name and asset id."] + pub fn asset_ids_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "AssetIds", + Vec::new(), + [ + 142u8, 138u8, 84u8, 162u8, 209u8, 97u8, 173u8, + 83u8, 185u8, 226u8, 233u8, 40u8, 74u8, 97u8, 166u8, + 13u8, 199u8, 229u8, 235u8, 15u8, 6u8, 196u8, 7u8, + 35u8, 87u8, 202u8, 4u8, 101u8, 212u8, 84u8, 250u8, + 251u8, + ], + ) + } + #[doc = " Native location of an asset."] + pub fn asset_locations( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetLocations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [169u8 , 79u8 , 50u8 , 164u8 , 46u8 , 141u8 , 174u8 , 174u8 , 82u8 , 143u8 , 167u8 , 94u8 , 217u8 , 48u8 , 12u8 , 124u8 , 203u8 , 11u8 , 167u8 , 212u8 , 231u8 , 216u8 , 141u8 , 115u8 , 124u8 , 229u8 , 102u8 , 232u8 , 27u8 , 83u8 , 133u8 , 214u8 ,]) + } + #[doc = " Native location of an asset."] + pub fn asset_locations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "AssetLocations", + Vec::new(), + [ + 169u8, 79u8, 50u8, 164u8, 46u8, 141u8, 174u8, + 174u8, 82u8, 143u8, 167u8, 94u8, 217u8, 48u8, 12u8, + 124u8, 203u8, 11u8, 167u8, 212u8, 231u8, 216u8, + 141u8, 115u8, 124u8, 229u8, 102u8, 232u8, 27u8, + 83u8, 133u8, 214u8, + ], + ) + } + #[doc = " Local asset for native location."] + pub fn location_assets( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "LocationAssets", + vec![], + [ + 105u8, 29u8, 241u8, 196u8, 166u8, 76u8, 46u8, + 247u8, 210u8, 198u8, 45u8, 89u8, 151u8, 86u8, 5u8, + 206u8, 235u8, 188u8, 219u8, 145u8, 191u8, 146u8, + 231u8, 132u8, 129u8, 61u8, 134u8, 27u8, 217u8, + 72u8, 228u8, 226u8, + ], + ) + } + #[doc = " Local asset for native location."] + pub fn location_assets_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "LocationAssets", + Vec::new(), + [ + 105u8, 29u8, 241u8, 196u8, 166u8, 76u8, 46u8, + 247u8, 210u8, 198u8, 45u8, 89u8, 151u8, 86u8, 5u8, + 206u8, 235u8, 188u8, 219u8, 145u8, 191u8, 146u8, + 231u8, 132u8, 129u8, 61u8, 134u8, 27u8, 217u8, + 72u8, 228u8, 226u8, + ], + ) + } + #[doc = " Metadata of an asset."] pub fn asset_metadata_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetMetadataMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [44u8 , 143u8 , 207u8 , 24u8 , 27u8 , 113u8 , 207u8 , 155u8 , 211u8 , 232u8 , 91u8 , 255u8 , 153u8 , 141u8 , 196u8 , 195u8 , 124u8 , 164u8 , 72u8 , 41u8 , 185u8 , 232u8 , 190u8 , 195u8 , 205u8 , 146u8 , 56u8 , 154u8 , 1u8 , 113u8 , 54u8 , 86u8 ,]) + } + #[doc = " Metadata of an asset."] pub fn asset_metadata_map_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "AssetRegistry", + "AssetMetadataMap", + Vec::new(), + [ + 44u8, 143u8, 207u8, 24u8, 27u8, 113u8, 207u8, + 155u8, 211u8, 232u8, 91u8, 255u8, 153u8, 141u8, + 196u8, 195u8, 124u8, 164u8, 72u8, 41u8, 185u8, + 232u8, 190u8, 195u8, 205u8, 146u8, 56u8, 154u8, + 1u8, 113u8, 54u8, 86u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Native Asset Id"] + pub fn native_asset_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "AssetRegistry", + "NativeAssetId", + [ + 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 currencies { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::orml_currencies::module::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::orml_currencies::module::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Currencies"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferNativeCurrency { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferNativeCurrency { + const PALLET: &'static str = "Currencies"; + const CALL: &'static str = "transfer_native_currency"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UpdateBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + pub amount: ::core::primitive::i128, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateBalance { + const PALLET: &'static str = "Currencies"; + const CALL: &'static str = "update_balance"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Transfer some balance to another account under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Currencies", + "transfer", + types::Transfer { + dest, + currency_id, + amount, + }, + [ + 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, + 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, + 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, + 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, + 176u8, 62u8, + ], + ) + } + #[doc = "Transfer some native currency to another account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + pub fn transfer_native_currency( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Currencies", + "transfer_native_currency", + types::TransferNativeCurrency { dest, amount }, + [ + 212u8, 113u8, 64u8, 214u8, 137u8, 16u8, 101u8, + 17u8, 123u8, 43u8, 143u8, 69u8, 53u8, 22u8, 227u8, + 62u8, 117u8, 160u8, 162u8, 73u8, 195u8, 177u8, + 99u8, 75u8, 48u8, 237u8, 145u8, 164u8, 72u8, 47u8, + 215u8, 117u8, + ], + ) + } + #[doc = "update amount of account `who` under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + pub fn update_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::i128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Currencies", + "update_balance", + types::UpdateBalance { + who, + currency_id, + amount, + }, + [ + 10u8, 79u8, 233u8, 250u8, 126u8, 190u8, 236u8, + 106u8, 73u8, 243u8, 163u8, 187u8, 206u8, 132u8, + 241u8, 254u8, 76u8, 0u8, 38u8, 159u8, 147u8, 102u8, + 126u8, 6u8, 36u8, 129u8, 235u8, 240u8, 233u8, + 100u8, 81u8, 8u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn get_native_currency_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Currencies", + "GetNativeCurrencyId", + [ + 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 tokens { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::orml_tokens::module::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::orml_tokens::module::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "transfer_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub currency_id: ::core::primitive::u32, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub new_reserved: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetBalance { + const PALLET: &'static str = "Tokens"; + const CALL: &'static str = "set_balance"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] + #[doc = "It will decrease the total issuance of the system by the"] + #[doc = "`TransferFee`. If the sender's account is below the existential"] + #[doc = "deposit as a result of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Tokens", + "transfer", + types::Transfer { + dest, + currency_id, + amount, + }, + [ + 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, + 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, + 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, + 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, + 176u8, 62u8, + ], + ) + } + #[doc = "Transfer all remaining balance to the given account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_"] + #[doc = "balances. This means that any locked, reserved, or existential"] + #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] + #[doc = "this function. To ensure that this function results in a killed"] + #[doc = "account, you might need to prepare the account by removing any"] + #[doc = "reference counters, storage deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] + #[doc = " operation should send all of the funds the account has, causing"] + #[doc = " the sender account to be killed (false), or transfer everything"] + #[doc = " except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true)."] + pub fn transfer_all( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + keep_alive: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Tokens", + "transfer_all", + types::TransferAll { + dest, + currency_id, + keep_alive, + }, + [ + 83u8, 119u8, 29u8, 13u8, 126u8, 23u8, 51u8, 229u8, + 26u8, 65u8, 104u8, 86u8, 68u8, 42u8, 83u8, 171u8, + 177u8, 241u8, 88u8, 235u8, 122u8, 180u8, 216u8, + 118u8, 52u8, 210u8, 95u8, 234u8, 9u8, 188u8, 122u8, + 34u8, + ], + ) + } + #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] + #[doc = "will not kill the origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + pub fn transfer_keep_alive( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Tokens", + "transfer_keep_alive", + types::TransferKeepAlive { + dest, + currency_id, + amount, + }, + [ + 76u8, 132u8, 171u8, 42u8, 174u8, 55u8, 166u8, + 171u8, 22u8, 191u8, 234u8, 185u8, 156u8, 22u8, + 210u8, 10u8, 104u8, 253u8, 183u8, 231u8, 42u8, + 95u8, 204u8, 28u8, 177u8, 5u8, 147u8, 51u8, 160u8, + 132u8, 194u8, 74u8, + ], + ) + } + #[doc = "Exactly as `transfer`, except the origin must be root and the source"] + #[doc = "account may be specified."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The sender of the transfer."] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + pub fn force_transfer( + &self, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Tokens", + "force_transfer", + types::ForceTransfer { + source, + dest, + currency_id, + amount, + }, + [ + 196u8, 35u8, 25u8, 247u8, 46u8, 2u8, 11u8, 188u8, + 120u8, 147u8, 123u8, 147u8, 174u8, 111u8, 237u8, + 23u8, 25u8, 50u8, 34u8, 69u8, 189u8, 211u8, 235u8, + 61u8, 183u8, 42u8, 110u8, 62u8, 44u8, 20u8, 43u8, + 214u8, + ], + ) + } + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] + #[doc = "will also decrease the total issuance of the system"] + #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] + #[doc = "existential deposit, it will reap the `AccountInfo`."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + pub fn set_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + new_free: ::core::primitive::u128, + new_reserved: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Tokens", + "set_balance", + types::SetBalance { + who, + currency_id, + new_free, + new_reserved, + }, + [ + 155u8, 189u8, 114u8, 37u8, 193u8, 38u8, 48u8, 39u8, + 149u8, 224u8, 232u8, 189u8, 205u8, 248u8, 215u8, + 97u8, 50u8, 171u8, 118u8, 214u8, 47u8, 13u8, 104u8, + 3u8, 77u8, 34u8, 37u8, 135u8, 56u8, 94u8, 17u8, + 213u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::orml_tokens::module::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Endowed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was removed whose balance was non-zero but below"] + #[doc = "ExistentialDeposit, resulting in an outright loss."] + pub struct DustLost { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "DustLost"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub currency_id: ::core::primitive::u32, + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was reserved (moved from free to reserved)."] + pub struct Reserved { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Reserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was unreserved (moved from reserved to free)."] + pub struct Unreserved { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Unreserved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some reserved balance was repatriated (moved from reserved to"] + #[doc = "another account)."] + pub struct ReserveRepatriated { pub currency_id : :: core :: primitive :: u32 , pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "ReserveRepatriated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A balance was set by root."] + pub struct BalanceSet { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub free: ::core::primitive::u128, + pub reserved: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "BalanceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The total issuance of an currency has been set"] + pub struct TotalIssuanceSet { + pub currency_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for TotalIssuanceSet { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "TotalIssuanceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] + pub struct Withdrawn { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balances were slashed (e.g. due to mis-behavior)"] + pub struct Slashed { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub free_amount: ::core::primitive::u128, + pub reserved_amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Deposited some balance into an account"] + pub struct Deposited { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposited { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Deposited"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds are locked"] + pub struct LockSet { + pub lock_id: [::core::primitive::u8; 8usize], + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for LockSet { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "LockSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some locked funds were unlocked"] + pub struct LockRemoved { + pub lock_id: [::core::primitive::u8; 8usize], + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for LockRemoved { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "LockRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some free balance was locked."] + pub struct Locked { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Locked { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Locked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some locked balance was freed."] + pub struct Unlocked { + pub currency_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unlocked { + const PALLET: &'static str = "Tokens"; + const EVENT: &'static str = "Unlocked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The total issuance of a token type."] + pub fn total_issuance( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "TotalIssuance" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [98u8 , 233u8 , 210u8 , 150u8 , 87u8 , 41u8 , 162u8 , 54u8 , 32u8 , 221u8 , 211u8 , 10u8 , 170u8 , 237u8 , 65u8 , 73u8 , 46u8 , 4u8 , 5u8 , 209u8 , 170u8 , 13u8 , 231u8 , 113u8 , 196u8 , 133u8 , 38u8 , 213u8 , 225u8 , 160u8 , 31u8 , 122u8 ,]) + } + #[doc = " The total issuance of a token type."] + pub fn total_issuance_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "TotalIssuance", + Vec::new(), + [ + 98u8, 233u8, 210u8, 150u8, 87u8, 41u8, 162u8, 54u8, + 32u8, 221u8, 211u8, 10u8, 170u8, 237u8, 65u8, 73u8, + 46u8, 4u8, 5u8, 209u8, 170u8, 13u8, 231u8, 113u8, + 196u8, 133u8, 38u8, 213u8, 225u8, 160u8, 31u8, + 122u8, + ], + ) + } + #[doc = " Any liquidity locks of a token type under an account."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + pub fn locks( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::orml_tokens::BalanceLock< + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [69u8 , 159u8 , 129u8 , 252u8 , 160u8 , 61u8 , 216u8 , 240u8 , 79u8 , 172u8 , 194u8 , 168u8 , 1u8 , 214u8 , 69u8 , 208u8 , 56u8 , 220u8 , 176u8 , 5u8 , 196u8 , 19u8 , 70u8 , 60u8 , 229u8 , 79u8 , 223u8 , 11u8 , 253u8 , 150u8 , 5u8 , 99u8 ,]) + } + #[doc = " Any liquidity locks of a token type under an account."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + pub fn locks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::orml_tokens::BalanceLock< + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "Locks", + Vec::new(), + [ + 69u8, 159u8, 129u8, 252u8, 160u8, 61u8, 216u8, + 240u8, 79u8, 172u8, 194u8, 168u8, 1u8, 214u8, 69u8, + 208u8, 56u8, 220u8, 176u8, 5u8, 196u8, 19u8, 70u8, + 60u8, 229u8, 79u8, 223u8, 11u8, 253u8, 150u8, 5u8, + 99u8, + ], + ) + } + #[doc = " The balance of a token type under an account."] + #[doc = ""] + #[doc = " NOTE: If the total is ever zero, decrease account ref account."] + #[doc = ""] + #[doc = " NOTE: This is only used in the case that this module is used to store"] + #[doc = " balances."] + pub fn accounts( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::orml_tokens::AccountData< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [136u8 , 147u8 , 98u8 , 221u8 , 153u8 , 10u8 , 206u8 , 218u8 , 153u8 , 159u8 , 62u8 , 152u8 , 110u8 , 198u8 , 125u8 , 15u8 , 127u8 , 21u8 , 31u8 , 191u8 , 241u8 , 167u8 , 124u8 , 77u8 , 138u8 , 133u8 , 204u8 , 30u8 , 180u8 , 253u8 , 126u8 , 214u8 ,]) + } + #[doc = " The balance of a token type under an account."] + #[doc = ""] + #[doc = " NOTE: If the total is ever zero, decrease account ref account."] + #[doc = ""] + #[doc = " NOTE: This is only used in the case that this module is used to store"] + #[doc = " balances."] + pub fn accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::orml_tokens::AccountData< + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "Accounts", + Vec::new(), + [ + 136u8, 147u8, 98u8, 221u8, 153u8, 10u8, 206u8, + 218u8, 153u8, 159u8, 62u8, 152u8, 110u8, 198u8, + 125u8, 15u8, 127u8, 21u8, 31u8, 191u8, 241u8, + 167u8, 124u8, 77u8, 138u8, 133u8, 204u8, 30u8, + 180u8, 253u8, 126u8, 214u8, + ], + ) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::orml_tokens::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [103u8 , 137u8 , 30u8 , 231u8 , 144u8 , 86u8 , 36u8 , 246u8 , 38u8 , 138u8 , 76u8 , 9u8 , 82u8 , 232u8 , 100u8 , 7u8 , 48u8 , 111u8 , 249u8 , 59u8 , 57u8 , 60u8 , 5u8 , 70u8 , 144u8 , 190u8 , 122u8 , 205u8 , 36u8 , 237u8 , 57u8 , 254u8 ,]) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::orml_tokens::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Tokens", + "Reserves", + Vec::new(), + [ + 103u8, 137u8, 30u8, 231u8, 144u8, 86u8, 36u8, + 246u8, 38u8, 138u8, 76u8, 9u8, 82u8, 232u8, 100u8, + 7u8, 48u8, 111u8, 249u8, 59u8, 57u8, 60u8, 5u8, + 70u8, 144u8, 190u8, 122u8, 205u8, 36u8, 237u8, + 57u8, 254u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn max_locks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Tokens", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of named reserves that can exist on an account."] + pub fn max_reserves( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Tokens", + "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, + ], + ) + } + } + } + } + pub mod token_wrapper { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_token_wrapper::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_token_wrapper::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetWrappingFee { + pub fee: ::core::primitive::u128, + pub into_pool_share_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetWrappingFee { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "set_wrapping_fee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetFeeRecipient { + pub pool_share_id: ::core::primitive::u32, + pub fee_recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetFeeRecipient { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "set_fee_recipient"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Wrap { + pub from_asset_id: ::core::primitive::u32, + pub into_pool_share_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for Wrap { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "wrap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Unwrap { + pub from_pool_share_id: ::core::primitive::u32, + pub into_asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for Unwrap { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "unwrap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RescueTokens { + pub from_pool_share_id: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RescueTokens { + const PALLET: &'static str = "TokenWrapper"; + const CALL: &'static str = "rescue_tokens"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn set_wrapping_fee( + &self, + fee: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "set_wrapping_fee", + types::SetWrappingFee { + fee, + into_pool_share_id, + nonce, + }, + [ + 60u8, 135u8, 246u8, 184u8, 70u8, 22u8, 245u8, 60u8, + 190u8, 224u8, 114u8, 168u8, 238u8, 146u8, 49u8, + 213u8, 85u8, 107u8, 221u8, 241u8, 218u8, 121u8, + 170u8, 227u8, 254u8, 146u8, 84u8, 21u8, 249u8, + 65u8, 1u8, 73u8, + ], + ) + } + pub fn set_fee_recipient( + &self, + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "set_fee_recipient", + types::SetFeeRecipient { + pool_share_id, + fee_recipient, + nonce, + }, + [ + 4u8, 219u8, 75u8, 151u8, 219u8, 115u8, 91u8, 35u8, + 73u8, 226u8, 132u8, 46u8, 137u8, 243u8, 186u8, + 25u8, 49u8, 233u8, 67u8, 218u8, 187u8, 182u8, 52u8, + 11u8, 139u8, 91u8, 69u8, 112u8, 141u8, 80u8, 141u8, + 210u8, + ], + ) + } + pub fn wrap( + &self, + from_asset_id: ::core::primitive::u32, + into_pool_share_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "wrap", + types::Wrap { + from_asset_id, + into_pool_share_id, + amount, + recipient, + }, + [ + 151u8, 42u8, 129u8, 19u8, 51u8, 10u8, 96u8, 207u8, + 223u8, 91u8, 43u8, 25u8, 221u8, 146u8, 64u8, 244u8, + 239u8, 74u8, 177u8, 62u8, 28u8, 41u8, 125u8, 63u8, + 191u8, 218u8, 188u8, 23u8, 196u8, 98u8, 201u8, + 82u8, + ], + ) + } + pub fn unwrap( + &self, + from_pool_share_id: ::core::primitive::u32, + into_asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "unwrap", + types::Unwrap { + from_pool_share_id, + into_asset_id, + amount, + recipient, + }, + [ + 3u8, 113u8, 42u8, 230u8, 32u8, 79u8, 31u8, 174u8, + 5u8, 72u8, 213u8, 19u8, 44u8, 117u8, 75u8, 170u8, + 14u8, 1u8, 18u8, 30u8, 32u8, 142u8, 2u8, 3u8, + 218u8, 244u8, 201u8, 16u8, 192u8, 142u8, 194u8, + 6u8, + ], + ) + } + pub fn rescue_tokens( + &self, + from_pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TokenWrapper", + "rescue_tokens", + types::RescueTokens { + from_pool_share_id, + asset_id, + amount, + recipient, + nonce, + }, + [ + 253u8, 87u8, 167u8, 31u8, 39u8, 125u8, 110u8, 56u8, + 163u8, 190u8, 120u8, 179u8, 145u8, 82u8, 214u8, + 146u8, 61u8, 70u8, 48u8, 19u8, 156u8, 21u8, 176u8, + 146u8, 195u8, 127u8, 118u8, 61u8, 170u8, 119u8, + 187u8, 106u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_token_wrapper::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WrappedToken { + pub pool_share_asset: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for WrappedToken { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "WrappedToken"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnwrappedToken { + pub pool_share_asset: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for UnwrappedToken { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "UnwrappedToken"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdatedWrappingFeePercent { + pub into_pool_share_id: ::core::primitive::u32, + pub wrapping_fee_percent: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "UpdatedWrappingFeePercent"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdatedFeeRecipient { + pub fee_recipient: ::subxt::utils::AccountId32, + pub pool_share_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for UpdatedFeeRecipient { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "UpdatedFeeRecipient"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TokensRescued { + pub from_pool_share_id: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for TokensRescued { + const PALLET: &'static str = "TokenWrapper"; + const EVENT: &'static str = "TokensRescued"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Percentage of amount to be used as wrapping fee"] + pub fn wrapping_fee_percent( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "WrappingFeePercent" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 126u8 , 185u8 , 195u8 , 250u8 , 224u8 , 247u8 , 225u8 , 251u8 , 232u8 , 118u8 , 36u8 , 104u8 , 42u8 , 118u8 , 184u8 , 232u8 , 148u8 , 238u8 , 142u8 , 123u8 , 71u8 , 37u8 , 218u8 , 200u8 , 216u8 , 84u8 , 184u8 , 4u8 , 56u8 , 13u8 , 94u8 ,]) + } + #[doc = " Percentage of amount to be used as wrapping fee"] + pub fn wrapping_fee_percent_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TokenWrapper", + "WrappingFeePercent", + Vec::new(), + [ + 31u8, 126u8, 185u8, 195u8, 250u8, 224u8, 247u8, + 225u8, 251u8, 232u8, 118u8, 36u8, 104u8, 42u8, + 118u8, 184u8, 232u8, 148u8, 238u8, 142u8, 123u8, + 71u8, 37u8, 218u8, 200u8, 216u8, 84u8, 184u8, 4u8, + 56u8, 13u8, 94u8, + ], + ) + } + #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] + pub fn fee_recipient( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "FeeRecipient" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [79u8 , 99u8 , 123u8 , 161u8 , 162u8 , 129u8 , 150u8 , 254u8 , 231u8 , 49u8 , 234u8 , 102u8 , 25u8 , 234u8 , 86u8 , 145u8 , 97u8 , 30u8 , 37u8 , 85u8 , 223u8 , 139u8 , 16u8 , 16u8 , 12u8 , 70u8 , 12u8 , 113u8 , 95u8 , 141u8 , 134u8 , 142u8 ,]) + } + #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] + pub fn fee_recipient_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TokenWrapper", + "FeeRecipient", + Vec::new(), + [ + 79u8, 99u8, 123u8, 161u8, 162u8, 129u8, 150u8, + 254u8, 231u8, 49u8, 234u8, 102u8, 25u8, 234u8, + 86u8, 145u8, 97u8, 30u8, 37u8, 85u8, 223u8, 139u8, + 16u8, 16u8, 12u8, 70u8, 12u8, 113u8, 95u8, 141u8, + 134u8, 142u8, + ], + ) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "ProposalNonce" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [255u8 , 130u8 , 216u8 , 75u8 , 22u8 , 132u8 , 182u8 , 54u8 , 158u8 , 158u8 , 6u8 , 185u8 , 86u8 , 163u8 , 142u8 , 247u8 , 135u8 , 96u8 , 187u8 , 53u8 , 18u8 , 142u8 , 28u8 , 247u8 , 190u8 , 42u8 , 246u8 , 180u8 , 25u8 , 163u8 , 134u8 , 228u8 ,]) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TokenWrapper", + "ProposalNonce", + Vec::new(), + [ + 255u8, 130u8, 216u8, 75u8, 22u8, 132u8, 182u8, + 54u8, 158u8, 158u8, 6u8, 185u8, 86u8, 163u8, 142u8, + 247u8, 135u8, 96u8, 187u8, 53u8, 18u8, 142u8, 28u8, + 247u8, 190u8, 42u8, 246u8, 180u8, 25u8, 163u8, + 134u8, 228u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "TokenWrapper", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + pub fn treasury_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "TokenWrapper", + "TreasuryId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + pub fn wrapping_fee_divider( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "TokenWrapper", + "WrappingFeeDivider", + [ + 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 mixer_verifier_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_verifier::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_verifier::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetParameters { pub parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { + const PALLET: &'static str = "MixerVerifierBn254"; + const CALL: &'static str = "force_set_parameters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn force_set_parameters( + &self, + parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "MixerVerifierBn254", + "force_set_parameters", + types::ForceSetParameters { parameters }, + [ + 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, + 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, + 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, + 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, + 75u8, 166u8, 90u8, 127u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_verifier::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters"] + pub fn parameters( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MixerVerifierBn254", + "Parameters", + vec![], + [ + 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, + 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, + 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, + 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, + 110u8, 163u8, 192u8, + ], + ) + } + } + } + } + pub mod merkle_tree_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_mt::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_mt::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub depth: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "MerkleTreeBn254"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Insert { pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } + impl ::subxt::blocks::StaticExtrinsic for Insert { + const PALLET: &'static str = "MerkleTreeBn254"; + const CALL: &'static str = "insert"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetDefaultHashes { pub default_hashes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetDefaultHashes { + const PALLET: &'static str = "MerkleTreeBn254"; + const CALL: &'static str = "force_set_default_hashes"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + depth: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MerkleTreeBn254", + "create", + types::Create { depth }, + [ + 101u8, 141u8, 101u8, 131u8, 97u8, 194u8, 160u8, + 159u8, 181u8, 29u8, 158u8, 167u8, 174u8, 21u8, 2u8, + 191u8, 254u8, 131u8, 228u8, 162u8, 70u8, 187u8, + 140u8, 95u8, 113u8, 138u8, 81u8, 219u8, 109u8, + 176u8, 131u8, 58u8, + ], + ) + } + pub fn insert( + &self, + tree_id: ::core::primitive::u32, + leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MerkleTreeBn254", + "insert", + types::Insert { tree_id, leaf }, + [ + 151u8, 86u8, 79u8, 4u8, 158u8, 170u8, 235u8, 236u8, + 161u8, 51u8, 108u8, 207u8, 113u8, 70u8, 64u8, 5u8, + 94u8, 5u8, 147u8, 87u8, 250u8, 27u8, 111u8, 46u8, + 141u8, 67u8, 223u8, 254u8, 177u8, 171u8, 111u8, + 103u8, + ], + ) + } + pub fn force_set_default_hashes( + &self, + default_hashes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "MerkleTreeBn254", + "force_set_default_hashes", + types::ForceSetDefaultHashes { default_hashes }, + [ + 39u8, 13u8, 28u8, 236u8, 30u8, 33u8, 206u8, 43u8, + 40u8, 220u8, 116u8, 91u8, 123u8, 161u8, 227u8, + 42u8, 155u8, 46u8, 27u8, 13u8, 101u8, 23u8, 103u8, + 151u8, 216u8, 71u8, 97u8, 160u8, 209u8, 76u8, 71u8, + 74u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_mt::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct TreeCreation { + pub tree_id: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for TreeCreation { + const PALLET: &'static str = "MerkleTreeBn254"; + const EVENT: &'static str = "TreeCreation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New leaf inserted"] + pub struct LeafInsertion { pub tree_id : :: core :: primitive :: u32 , pub leaf_index : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } + impl ::subxt::events::StaticEvent for LeafInsertion { + const PALLET: &'static str = "MerkleTreeBn254"; + const EVENT: &'static str = "LeafInsertion"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters"] + pub fn deposit( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_primitives::types::DepositDetails< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "Deposit", + vec![], + [ + 175u8, 238u8, 72u8, 65u8, 101u8, 152u8, 252u8, + 101u8, 127u8, 181u8, 93u8, 29u8, 16u8, 241u8, + 243u8, 226u8, 128u8, 149u8, 202u8, 94u8, 15u8, + 35u8, 11u8, 240u8, 16u8, 177u8, 120u8, 193u8, + 213u8, 236u8, 151u8, 36u8, + ], + ) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_tree_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "NextTreeId", + vec![], + [ + 173u8, 89u8, 80u8, 58u8, 200u8, 64u8, 201u8, 3u8, + 169u8, 139u8, 75u8, 117u8, 56u8, 52u8, 163u8, 25u8, + 83u8, 189u8, 66u8, 245u8, 249u8, 30u8, 211u8, + 225u8, 16u8, 47u8, 232u8, 148u8, 75u8, 156u8, + 233u8, 74u8, + ], + ) + } + #[doc = " The map of trees to their metadata"] pub fn trees (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_mt :: types :: TreeMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxEdges > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "Trees" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [64u8 , 52u8 , 2u8 , 9u8 , 150u8 , 70u8 , 94u8 , 245u8 , 245u8 , 212u8 , 230u8 , 204u8 , 106u8 , 58u8 , 79u8 , 64u8 , 17u8 , 36u8 , 212u8 , 85u8 , 67u8 , 39u8 , 90u8 , 194u8 , 193u8 , 110u8 , 85u8 , 133u8 , 224u8 , 193u8 , 13u8 , 46u8 ,]) + } + #[doc = " The map of trees to their metadata"] pub fn trees_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_mt :: types :: TreeMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxEdges > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "Trees", + Vec::new(), + [ + 64u8, 52u8, 2u8, 9u8, 150u8, 70u8, 94u8, 245u8, + 245u8, 212u8, 230u8, 204u8, 106u8, 58u8, 79u8, + 64u8, 17u8, 36u8, 212u8, 85u8, 67u8, 39u8, 90u8, + 194u8, 193u8, 110u8, 85u8, 133u8, 224u8, 193u8, + 13u8, 46u8, + ], + ) + } + #[doc = " The default hashes for this tree pallet"] pub fn default_hashes (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "DefaultHashes", + vec![], + [ + 5u8, 167u8, 42u8, 194u8, 16u8, 7u8, 44u8, 239u8, + 119u8, 4u8, 126u8, 229u8, 53u8, 70u8, 117u8, 18u8, + 91u8, 186u8, 181u8, 55u8, 188u8, 230u8, 11u8, + 196u8, 247u8, 30u8, 98u8, 58u8, 193u8, 76u8, 9u8, + 212u8, + ], + ) + } + #[doc = " The map of (tree_id, index) to the leaf commitment"] pub fn leaves (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "Leaves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [254u8 , 175u8 , 119u8 , 127u8 , 20u8 , 24u8 , 100u8 , 16u8 , 25u8 , 49u8 , 82u8 , 151u8 , 73u8 , 145u8 , 127u8 , 130u8 , 154u8 , 198u8 , 137u8 , 37u8 , 202u8 , 114u8 , 151u8 , 31u8 , 246u8 , 162u8 , 210u8 , 127u8 , 139u8 , 44u8 , 35u8 , 13u8 ,]) + } + #[doc = " The map of (tree_id, index) to the leaf commitment"] pub fn leaves_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "Leaves", + Vec::new(), + [ + 254u8, 175u8, 119u8, 127u8, 20u8, 24u8, 100u8, + 16u8, 25u8, 49u8, 82u8, 151u8, 73u8, 145u8, 127u8, + 130u8, 154u8, 198u8, 137u8, 37u8, 202u8, 114u8, + 151u8, 31u8, 246u8, 162u8, 210u8, 127u8, 139u8, + 44u8, 35u8, 13u8, + ], + ) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_root_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "NextRootIndex", + vec![], + [ + 175u8, 70u8, 212u8, 119u8, 231u8, 181u8, 88u8, + 15u8, 186u8, 22u8, 1u8, 117u8, 56u8, 178u8, 191u8, + 154u8, 150u8, 203u8, 131u8, 128u8, 22u8, 141u8, + 171u8, 148u8, 160u8, 177u8, 38u8, 48u8, 76u8, + 198u8, 224u8, 126u8, + ], + ) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_leaf_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "NextLeafIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [50u8 , 243u8 , 135u8 , 181u8 , 149u8 , 69u8 , 42u8 , 31u8 , 72u8 , 206u8 , 86u8 , 230u8 , 207u8 , 247u8 , 60u8 , 27u8 , 91u8 , 95u8 , 103u8 , 48u8 , 101u8 , 252u8 , 136u8 , 220u8 , 56u8 , 246u8 , 184u8 , 208u8 , 140u8 , 82u8 , 250u8 , 22u8 ,]) + } + #[doc = " The next tree identifier up for grabs"] + pub fn next_leaf_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "NextLeafIndex", + Vec::new(), + [ + 50u8, 243u8, 135u8, 181u8, 149u8, 69u8, 42u8, 31u8, + 72u8, 206u8, 86u8, 230u8, 207u8, 247u8, 60u8, 27u8, + 91u8, 95u8, 103u8, 48u8, 101u8, 252u8, 136u8, + 220u8, 56u8, 246u8, 184u8, 208u8, 140u8, 82u8, + 250u8, 22u8, + ], + ) + } + #[doc = " Map of root history from tree id to root index to root values"] pub fn cached_roots (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "CachedRoots" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [60u8 , 183u8 , 112u8 , 98u8 , 129u8 , 52u8 , 122u8 , 187u8 , 82u8 , 235u8 , 222u8 , 75u8 , 72u8 , 150u8 , 53u8 , 69u8 , 76u8 , 144u8 , 11u8 , 131u8 , 140u8 , 152u8 , 243u8 , 122u8 , 168u8 , 92u8 , 219u8 , 42u8 , 229u8 , 208u8 , 78u8 , 105u8 ,]) + } + #[doc = " Map of root history from tree id to root index to root values"] pub fn cached_roots_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "MerkleTreeBn254", + "CachedRoots", + Vec::new(), + [ + 60u8, 183u8, 112u8, 98u8, 129u8, 52u8, 122u8, + 187u8, 82u8, 235u8, 222u8, 75u8, 72u8, 150u8, 53u8, + 69u8, 76u8, 144u8, 11u8, 131u8, 140u8, 152u8, + 243u8, 122u8, 168u8, 92u8, 219u8, 42u8, 229u8, + 208u8, 78u8, 105u8, + ], + ) + } + } + } + } + pub mod linkable_tree_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_linkable_tree::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_linkable_tree::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub max_edges: ::core::primitive::u32, + pub depth: ::core::primitive::u8, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "LinkableTreeBn254"; + const CALL: &'static str = "create"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + max_edges: ::core::primitive::u32, + depth: ::core::primitive::u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "LinkableTreeBn254", + "create", + types::Create { max_edges, depth }, + [ + 95u8, 217u8, 213u8, 178u8, 133u8, 233u8, 101u8, + 67u8, 62u8, 233u8, 188u8, 150u8, 111u8, 88u8, 0u8, + 241u8, 215u8, 208u8, 245u8, 191u8, 52u8, 162u8, + 79u8, 231u8, 228u8, 232u8, 49u8, 103u8, 178u8, + 96u8, 176u8, 206u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_linkable_tree::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct LinkableTreeCreation { + pub tree_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for LinkableTreeCreation { + const PALLET: &'static str = "LinkableTreeBn254"; + const EVENT: &'static str = "LinkableTreeCreation"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of trees to the maximum number of anchor edges they can have"] + pub fn max_edges( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "MaxEdges" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [198u8 , 254u8 , 155u8 , 234u8 , 177u8 , 109u8 , 109u8 , 57u8 , 207u8 , 37u8 , 12u8 , 234u8 , 187u8 , 187u8 , 77u8 , 227u8 , 100u8 , 135u8 , 111u8 , 195u8 , 194u8 , 104u8 , 52u8 , 186u8 , 10u8 , 128u8 , 248u8 , 88u8 , 87u8 , 154u8 , 229u8 , 90u8 ,]) + } + #[doc = " The map of trees to the maximum number of anchor edges they can have"] + pub fn max_edges_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "MaxEdges", + Vec::new(), + [ + 198u8, 254u8, 155u8, 234u8, 177u8, 109u8, 109u8, + 57u8, 207u8, 37u8, 12u8, 234u8, 187u8, 187u8, 77u8, + 227u8, 100u8, 135u8, 111u8, 195u8, 194u8, 104u8, + 52u8, 186u8, 10u8, 128u8, 248u8, 88u8, 87u8, 154u8, + 229u8, 90u8, + ], + ) + } + #[doc = " The map of trees and chain ids to their edge metadata"] pub fn edge_list (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_linkable_tree :: types :: EdgeMetadata < :: core :: primitive :: u64 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "EdgeList" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [129u8 , 93u8 , 177u8 , 204u8 , 167u8 , 37u8 , 32u8 , 189u8 , 47u8 , 99u8 , 19u8 , 161u8 , 55u8 , 2u8 , 224u8 , 1u8 , 223u8 , 145u8 , 51u8 , 138u8 , 243u8 , 185u8 , 255u8 , 32u8 , 6u8 , 123u8 , 244u8 , 248u8 , 133u8 , 189u8 , 97u8 , 159u8 ,]) + } + #[doc = " The map of trees and chain ids to their edge metadata"] pub fn edge_list_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_linkable_tree :: types :: EdgeMetadata < :: core :: primitive :: u64 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: core :: primitive :: u32 > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "EdgeList", + Vec::new(), + [ + 129u8, 93u8, 177u8, 204u8, 167u8, 37u8, 32u8, + 189u8, 47u8, 99u8, 19u8, 161u8, 55u8, 2u8, 224u8, + 1u8, 223u8, 145u8, 51u8, 138u8, 243u8, 185u8, + 255u8, 32u8, 6u8, 123u8, 244u8, 248u8, 133u8, + 189u8, 97u8, 159u8, + ], + ) + } + #[doc = " A helper map for denoting whether an tree is bridged to given chain"] + pub fn linkable_tree_has_edge( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "LinkableTreeHasEdge" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [159u8 , 137u8 , 120u8 , 239u8 , 119u8 , 134u8 , 14u8 , 74u8 , 253u8 , 30u8 , 22u8 , 29u8 , 177u8 , 255u8 , 4u8 , 81u8 , 86u8 , 20u8 , 141u8 , 192u8 , 23u8 , 16u8 , 200u8 , 87u8 , 93u8 , 252u8 , 91u8 , 240u8 , 162u8 , 163u8 , 146u8 , 163u8 ,]) + } + #[doc = " A helper map for denoting whether an tree is bridged to given chain"] + pub fn linkable_tree_has_edge_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "LinkableTreeHasEdge", + Vec::new(), + [ + 159u8, 137u8, 120u8, 239u8, 119u8, 134u8, 14u8, + 74u8, 253u8, 30u8, 22u8, 29u8, 177u8, 255u8, 4u8, + 81u8, 86u8, 20u8, 141u8, 192u8, 23u8, 16u8, 200u8, + 87u8, 93u8, 252u8, 91u8, 240u8, 162u8, 163u8, + 146u8, 163u8, + ], + ) + } + #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] pub fn neighbor_roots (& self , _0 : impl :: std :: borrow :: Borrow < (:: core :: primitive :: u32 , :: core :: primitive :: u64 ,) > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "NeighborRoots" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [240u8 , 198u8 , 38u8 , 115u8 , 71u8 , 53u8 , 46u8 , 249u8 , 243u8 , 197u8 , 50u8 , 11u8 , 181u8 , 11u8 , 183u8 , 61u8 , 213u8 , 66u8 , 191u8 , 220u8 , 225u8 , 203u8 , 3u8 , 190u8 , 131u8 , 47u8 , 66u8 , 12u8 , 68u8 , 201u8 , 181u8 , 99u8 ,]) + } + #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] pub fn neighbor_roots_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "NeighborRoots", + Vec::new(), + [ + 240u8, 198u8, 38u8, 115u8, 71u8, 53u8, 46u8, 249u8, + 243u8, 197u8, 50u8, 11u8, 181u8, 11u8, 183u8, 61u8, + 213u8, 66u8, 191u8, 220u8, 225u8, 203u8, 3u8, + 190u8, 131u8, 47u8, 66u8, 12u8, 68u8, 201u8, 181u8, + 99u8, + ], + ) + } + #[doc = " The next neighbor root index to store the merkle root update record"] + pub fn current_neighbor_root_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "CurrentNeighborRootIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [114u8 , 40u8 , 99u8 , 72u8 , 241u8 , 89u8 , 253u8 , 122u8 , 226u8 , 181u8 , 168u8 , 58u8 , 70u8 , 0u8 , 110u8 , 141u8 , 58u8 , 12u8 , 177u8 , 129u8 , 103u8 , 45u8 , 160u8 , 139u8 , 99u8 , 198u8 , 181u8 , 154u8 , 78u8 , 62u8 , 201u8 , 227u8 ,]) + } + #[doc = " The next neighbor root index to store the merkle root update record"] + pub fn current_neighbor_root_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "LinkableTreeBn254", + "CurrentNeighborRootIndex", + Vec::new(), + [ + 114u8, 40u8, 99u8, 72u8, 241u8, 89u8, 253u8, 122u8, + 226u8, 181u8, 168u8, 58u8, 70u8, 0u8, 110u8, 141u8, + 58u8, 12u8, 177u8, 129u8, 103u8, 45u8, 160u8, + 139u8, 99u8, 198u8, 181u8, 154u8, 78u8, 62u8, + 201u8, 227u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " ChainID type for this chain"] + pub fn chain_type( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 2usize]> + { + ::subxt::constants::Address::new_static( + "LinkableTreeBn254", + "ChainType", + [ + 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, + 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, + 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, + 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, + 240u8, 86u8, + ], + ) + } + pub fn chain_identifier( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "LinkableTreeBn254", + "ChainIdentifier", + [ + 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 pruning length for neighbor root histories"] + pub fn history_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "LinkableTreeBn254", + "HistoryLength", + [ + 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 mixer_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_mixer::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_mixer::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub deposit_size: ::core::primitive::u128, + pub depth: ::core::primitive::u8, + pub asset: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "MixerBn254"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Deposit { pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } + impl ::subxt::blocks::StaticExtrinsic for Deposit { + const PALLET: &'static str = "MixerBn254"; + const CALL: &'static str = "deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Withdraw { pub id : :: core :: primitive :: u32 , pub proof_bytes : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , pub nullifier_hash : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , pub recipient : :: subxt :: utils :: AccountId32 , pub relayer : :: subxt :: utils :: AccountId32 , pub fee : :: core :: primitive :: u128 , pub refund : :: core :: primitive :: u128 , } + impl ::subxt::blocks::StaticExtrinsic for Withdraw { + const PALLET: &'static str = "MixerBn254"; + const CALL: &'static str = "withdraw"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + deposit_size: ::core::primitive::u128, + depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MixerBn254", + "create", + types::Create { + deposit_size, + depth, + asset, + }, + [ + 53u8, 217u8, 41u8, 250u8, 195u8, 125u8, 121u8, + 239u8, 62u8, 136u8, 254u8, 202u8, 250u8, 97u8, + 183u8, 23u8, 85u8, 249u8, 212u8, 217u8, 218u8, + 162u8, 212u8, 89u8, 76u8, 95u8, 239u8, 34u8, 76u8, + 231u8, 27u8, 151u8, + ], + ) + } + pub fn deposit( + &self, + tree_id: ::core::primitive::u32, + leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MixerBn254", + "deposit", + types::Deposit { tree_id, leaf }, + [ + 104u8, 199u8, 158u8, 83u8, 100u8, 27u8, 207u8, + 32u8, 124u8, 162u8, 5u8, 227u8, 125u8, 197u8, + 251u8, 180u8, 199u8, 250u8, 95u8, 69u8, 174u8, + 124u8, 66u8, 95u8, 122u8, 84u8, 231u8, 8u8, 205u8, + 71u8, 23u8, 224u8, + ], + ) + } + pub fn withdraw( + &self, + id: ::core::primitive::u32, + proof_bytes: ::std::vec::Vec<::core::primitive::u8>, + root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, + nullifier_hash : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, + recipient: ::subxt::utils::AccountId32, + relayer: ::subxt::utils::AccountId32, + fee: ::core::primitive::u128, + refund: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MixerBn254", + "withdraw", + types::Withdraw { + id, + proof_bytes, + root, + nullifier_hash, + recipient, + relayer, + fee, + refund, + }, + [ + 30u8, 228u8, 205u8, 113u8, 251u8, 11u8, 150u8, + 32u8, 63u8, 227u8, 217u8, 126u8, 154u8, 250u8, + 95u8, 192u8, 203u8, 107u8, 241u8, 221u8, 251u8, + 83u8, 70u8, 84u8, 69u8, 190u8, 222u8, 57u8, 29u8, + 183u8, 17u8, 68u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_mixer::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct MixerCreation { + pub tree_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for MixerCreation { + const PALLET: &'static str = "MixerBn254"; + const EVENT: &'static str = "MixerCreation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Deposit { pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "MixerBn254"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Withdraw { + pub tree_id: ::core::primitive::u32, + pub recipient: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "MixerBn254"; + const EVENT: &'static str = "Withdraw"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of trees to their mixer metadata"] + pub fn mixers( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_mixer::types::MixerMetadata< + ::core::primitive::u128, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MixerBn254" , "Mixers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [30u8 , 216u8 , 0u8 , 53u8 , 203u8 , 108u8 , 202u8 , 45u8 , 173u8 , 173u8 , 108u8 , 254u8 , 29u8 , 23u8 , 97u8 , 163u8 , 102u8 , 196u8 , 204u8 , 14u8 , 30u8 , 68u8 , 217u8 , 162u8 , 175u8 , 88u8 , 138u8 , 153u8 , 228u8 , 74u8 , 125u8 , 11u8 ,]) + } + #[doc = " The map of trees to their mixer metadata"] + pub fn mixers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_mixer::types::MixerMetadata< + ::core::primitive::u128, + ::core::primitive::u32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MixerBn254", + "Mixers", + Vec::new(), + [ + 30u8, 216u8, 0u8, 53u8, 203u8, 108u8, 202u8, 45u8, + 173u8, 173u8, 108u8, 254u8, 29u8, 23u8, 97u8, + 163u8, 102u8, 196u8, 204u8, 14u8, 30u8, 68u8, + 217u8, 162u8, 175u8, 88u8, 138u8, 153u8, 228u8, + 74u8, 125u8, 11u8, + ], + ) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1 : impl :: std :: borrow :: Borrow < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("MixerBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MixerBn254", + "NullifierHashes", + Vec::new(), + [ + 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, + 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, + 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, + 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, + 185u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "MixerBn254", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[doc = " Native currency id"] + pub fn native_currency_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "MixerBn254", + "NativeCurrencyId", + [ + 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 signature_bridge { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_signature_bridge::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_signature_bridge::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMaintainer { pub message : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for SetMaintainer { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "set_maintainer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetMaintainer { pub nonce : :: core :: primitive :: u32 , pub new_maintainer : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetMaintainer { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "force_set_maintainer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for SetResource { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "set_resource"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveResource { + pub id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveResource { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "remove_resource"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WhitelistChain { + pub id: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "whitelist_chain"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetResourceWithSignature { pub src_id : :: core :: primitive :: u64 , pub proposal_data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for SetResourceWithSignature { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "set_resource_with_signature"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteProposal { pub src_id : :: core :: primitive :: u64 , pub proposal_data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ExecuteProposal { + const PALLET: &'static str = "SignatureBridge"; + const CALL: &'static str = "execute_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Sets the maintainer."] + pub fn set_maintainer( + &self, + message : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "set_maintainer", + types::SetMaintainer { message, signature }, + [ + 132u8, 42u8, 94u8, 104u8, 168u8, 131u8, 130u8, + 157u8, 33u8, 175u8, 220u8, 71u8, 33u8, 117u8, + 255u8, 142u8, 5u8, 101u8, 176u8, 48u8, 222u8, + 220u8, 24u8, 87u8, 34u8, 29u8, 104u8, 35u8, 245u8, + 119u8, 109u8, 20u8, + ], + ) + } + pub fn force_set_maintainer( + &self, + nonce: ::core::primitive::u32, + new_maintainer : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "force_set_maintainer", + types::ForceSetMaintainer { + nonce, + new_maintainer, + }, + [ + 172u8, 54u8, 216u8, 12u8, 194u8, 151u8, 209u8, + 122u8, 232u8, 194u8, 137u8, 135u8, 126u8, 150u8, + 144u8, 41u8, 26u8, 244u8, 43u8, 49u8, 161u8, 209u8, + 85u8, 212u8, 86u8, 59u8, 57u8, 120u8, 157u8, 38u8, + 180u8, 254u8, + ], + ) + } + #[doc = "Stores a method name on chain under an associated resource ID."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) write"] + #[doc = "# "] + pub fn set_resource( + &self, + id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "set_resource", + types::SetResource { id }, + [ + 100u8, 124u8, 197u8, 183u8, 34u8, 42u8, 154u8, + 55u8, 12u8, 151u8, 135u8, 152u8, 211u8, 151u8, + 33u8, 14u8, 67u8, 222u8, 3u8, 109u8, 144u8, 235u8, + 253u8, 116u8, 76u8, 145u8, 90u8, 158u8, 138u8, + 33u8, 204u8, 170u8, + ], + ) + } + #[doc = "Removes a resource ID from the resource mapping."] + #[doc = ""] + #[doc = "After this call, bridge transfers with the associated resource ID"] + #[doc = "will be rejected."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) removal"] + #[doc = "# "] + pub fn remove_resource( + &self, + id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "remove_resource", + types::RemoveResource { id }, + [ + 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, + 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, + 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, + 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, + 172u8, 92u8, 67u8, + ], + ) + } + #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1) lookup and insert"] + #[doc = "# "] + pub fn whitelist_chain( + &self, + id: ::core::primitive::u64, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "whitelist_chain", + types::WhitelistChain { id }, + [ + 230u8, 109u8, 92u8, 10u8, 127u8, 214u8, 167u8, + 56u8, 125u8, 37u8, 161u8, 108u8, 98u8, 250u8, 3u8, + 146u8, 224u8, 178u8, 139u8, 72u8, 21u8, 159u8, + 54u8, 225u8, 172u8, 88u8, 214u8, 162u8, 235u8, + 87u8, 125u8, 23u8, + ], + ) + } + #[doc = "@param origin"] + #[doc = "@param src_id"] + #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] + #[doc = "@param signature: a signature over the proposal_data"] + #[doc = ""] + #[doc = "We check:"] + #[doc = "1. That the signature is actually over the proposal data"] + #[doc = "2. Add ResourceId to the Storage"] + #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] + #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] + #[doc = "indeed this chain's id type"] + #[doc = ""] + #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] + #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] + #[doc = "the anchor-handler or token-wrapper-handler pallet."] + #[doc = ""] + #[doc = "There are a few TODOs left in the function."] + #[doc = ""] + #[doc = "In the set_resource_with_signature"] + #[doc = "# "] + #[doc = "- weight of proposed call, regardless of whether execution is performed"] + #[doc = "# "] + pub fn set_resource_with_signature( + &self, + src_id: ::core::primitive::u64, + proposal_data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "set_resource_with_signature", + types::SetResourceWithSignature { + src_id, + proposal_data, + signature, + }, + [ + 77u8, 91u8, 104u8, 22u8, 207u8, 86u8, 57u8, 238u8, + 168u8, 243u8, 218u8, 73u8, 192u8, 133u8, 163u8, + 164u8, 252u8, 145u8, 103u8, 1u8, 0u8, 128u8, 145u8, + 83u8, 213u8, 58u8, 228u8, 190u8, 46u8, 114u8, + 227u8, 86u8, + ], + ) + } + #[doc = "@param origin"] + #[doc = "@param src_id"] + #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] + #[doc = "@param signature: a signature over the proposal_data"] + #[doc = ""] + #[doc = "We check:"] + #[doc = "1. That the signature is actually over the proposal data"] + #[doc = "2. That the r_id parsed from the proposal data exists"] + #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] + #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] + #[doc = "indeed this chain's id type"] + #[doc = ""] + #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] + #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] + #[doc = "the anchor-handler or token-wrapper-handler pallet."] + #[doc = ""] + #[doc = "There are a few TODOs left in the function."] + #[doc = ""] + #[doc = "In the execute_proposal"] + #[doc = "# "] + #[doc = "- weight of proposed call, regardless of whether execution is performed"] + #[doc = "# "] + pub fn execute_proposal( + &self, + src_id: ::core::primitive::u64, + proposal_data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "SignatureBridge", + "execute_proposal", + types::ExecuteProposal { + src_id, + proposal_data, + signature, + }, + [ + 206u8, 23u8, 14u8, 145u8, 199u8, 21u8, 242u8, 83u8, + 4u8, 46u8, 238u8, 210u8, 121u8, 48u8, 75u8, 151u8, + 188u8, 20u8, 165u8, 177u8, 67u8, 34u8, 129u8, 92u8, + 155u8, 141u8, 199u8, 127u8, 227u8, 255u8, 237u8, + 128u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_signature_bridge::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Maintainer is set"] + pub struct MaintainerSet { + pub old_maintainer: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub new_maintainer: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + impl ::subxt::events::StaticEvent for MaintainerSet { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "MaintainerSet"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Chain now available for transfers (chain_id)"] + pub struct ChainWhitelisted { + pub chain_id: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ChainWhitelisted { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ChainWhitelisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Proposal has been approved"] + pub struct ProposalApproved { + pub chain_id: ::core::primitive::u64, + pub proposal_nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalApproved { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ProposalApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Execution of call succeeded"] + pub struct ProposalSucceeded { + pub chain_id: ::core::primitive::u64, + pub proposal_nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalSucceeded { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ProposalSucceeded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Execution of call failed"] + pub struct ProposalFailed { + pub chain_id: ::core::primitive::u64, + pub proposal_nonce: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalFailed { + const PALLET: &'static str = "SignatureBridge"; + const EVENT: &'static str = "ProposalFailed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The parameter maintainer who can change the parameters"] + pub fn maintainer( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "Maintainer", + vec![], + [ + 104u8, 164u8, 76u8, 22u8, 55u8, 166u8, 230u8, 23u8, + 129u8, 166u8, 199u8, 31u8, 66u8, 142u8, 10u8, + 119u8, 72u8, 63u8, 10u8, 213u8, 69u8, 49u8, 243u8, + 128u8, 212u8, 125u8, 202u8, 208u8, 180u8, 62u8, + 84u8, 157u8, + ], + ) + } + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("SignatureBridge" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [46u8 , 115u8 , 113u8 , 107u8 , 117u8 , 64u8 , 44u8 , 249u8 , 225u8 , 85u8 , 228u8 , 126u8 , 121u8 , 101u8 , 13u8 , 244u8 , 174u8 , 210u8 , 21u8 , 34u8 , 248u8 , 203u8 , 38u8 , 35u8 , 113u8 , 149u8 , 100u8 , 157u8 , 8u8 , 100u8 , 113u8 , 68u8 ,]) + } + #[doc = " All whitelisted chains and their respective transaction counts"] + pub fn chain_nonces_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "ChainNonces", + Vec::new(), + [ + 46u8, 115u8, 113u8, 107u8, 117u8, 64u8, 44u8, + 249u8, 225u8, 85u8, 228u8, 126u8, 121u8, 101u8, + 13u8, 244u8, 174u8, 210u8, 21u8, 34u8, 248u8, + 203u8, 38u8, 35u8, 113u8, 149u8, 100u8, 157u8, 8u8, + 100u8, 113u8, 68u8, + ], + ) + } + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("SignatureBridge" , "Resources" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [244u8 , 76u8 , 108u8 , 200u8 , 197u8 , 2u8 , 102u8 , 136u8 , 158u8 , 135u8 , 102u8 , 251u8 , 56u8 , 170u8 , 225u8 , 248u8 , 37u8 , 168u8 , 49u8 , 184u8 , 241u8 , 15u8 , 4u8 , 100u8 , 144u8 , 154u8 , 29u8 , 128u8 , 69u8 , 188u8 , 80u8 , 121u8 ,]) + } + #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] + pub fn resources_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "Resources", + Vec::new(), + [ + 244u8, 76u8, 108u8, 200u8, 197u8, 2u8, 102u8, + 136u8, 158u8, 135u8, 102u8, 251u8, 56u8, 170u8, + 225u8, 248u8, 37u8, 168u8, 49u8, 184u8, 241u8, + 15u8, 4u8, 100u8, 144u8, 154u8, 29u8, 128u8, 69u8, + 188u8, 80u8, 121u8, + ], + ) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "ProposalNonce", + vec![], + [ + 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, + 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, + 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, + 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, + ], + ) + } + pub fn maintainer_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "SignatureBridge", + "MaintainerNonce", + vec![], + [ + 139u8, 246u8, 239u8, 180u8, 188u8, 73u8, 234u8, + 114u8, 211u8, 68u8, 84u8, 178u8, 142u8, 49u8, 24u8, + 160u8, 32u8, 180u8, 211u8, 16u8, 75u8, 91u8, 40u8, + 132u8, 120u8, 68u8, 221u8, 167u8, 138u8, 53u8, + 71u8, 250u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The identifier for this chain."] + #[doc = " This must be unique and must not collide with existing IDs within a"] + #[doc = " set of bridged chains."] + pub fn chain_identifier( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "ChainIdentifier", + [ + 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 chain type for this chain."] + #[doc = " This is either a standalone Substrate chain, relay chain, or parachain"] + pub fn chain_type( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 2usize]> + { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "ChainType", + [ + 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, + 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, + 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, + 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, + 240u8, 86u8, + ], + ) + } + pub fn proposal_lifetime( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "ProposalLifetime", + [ + 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 bridge_account_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "SignatureBridge", + "BridgeAccountId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + } + } + } + pub mod v_anchor_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_vanchor::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_vanchor::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Create { + pub max_edges: ::core::primitive::u32, + pub depth: ::core::primitive::u8, + pub asset: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Transact { pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } + impl ::subxt::blocks::StaticExtrinsic for Transact { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "transact"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RegisterAndTransact { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } + impl ::subxt::blocks::StaticExtrinsic for RegisterAndTransact { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "register_and_transact"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMaxDepositAmount { + pub max_deposit_amount: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMaxDepositAmount { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "set_max_deposit_amount"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinWithdrawAmount { + pub min_withdraw_amount: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinWithdrawAmount { + const PALLET: &'static str = "VAnchorBn254"; + const CALL: &'static str = "set_min_withdraw_amount"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn create( + &self, + max_edges: ::core::primitive::u32, + depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "create", + types::Create { + max_edges, + depth, + asset, + }, + [ + 179u8, 67u8, 213u8, 88u8, 4u8, 208u8, 165u8, 229u8, + 106u8, 59u8, 181u8, 181u8, 67u8, 139u8, 48u8, + 227u8, 237u8, 190u8, 95u8, 118u8, 70u8, 177u8, + 106u8, 67u8, 253u8, 70u8, 125u8, 78u8, 22u8, 142u8, + 161u8, 100u8, + ], + ) + } + pub fn transact( + &self, + id: ::core::primitive::u32, + proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, + ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "transact", + types::Transact { + id, + proof_data, + ext_data, + }, + [ + 157u8, 31u8, 193u8, 175u8, 45u8, 95u8, 117u8, + 197u8, 158u8, 109u8, 20u8, 9u8, 148u8, 218u8, + 112u8, 129u8, 151u8, 106u8, 221u8, 47u8, 172u8, + 114u8, 172u8, 173u8, 2u8, 7u8, 145u8, 32u8, 157u8, + 61u8, 215u8, 176u8, + ], + ) + } + pub fn register_and_transact( + &self, + owner: ::subxt::utils::AccountId32, + public_key: ::std::vec::Vec<::core::primitive::u8>, + id: ::core::primitive::u32, + proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, + ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "register_and_transact", + types::RegisterAndTransact { + owner, + public_key, + id, + proof_data, + ext_data, + }, + [ + 21u8, 243u8, 134u8, 214u8, 148u8, 56u8, 53u8, 92u8, + 137u8, 39u8, 119u8, 189u8, 110u8, 72u8, 76u8, 84u8, + 233u8, 62u8, 147u8, 247u8, 172u8, 9u8, 69u8, 49u8, + 141u8, 145u8, 161u8, 32u8, 86u8, 13u8, 74u8, 119u8, + ], + ) + } + pub fn set_max_deposit_amount( + &self, + max_deposit_amount: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "set_max_deposit_amount", + types::SetMaxDepositAmount { + max_deposit_amount, + nonce, + }, + [ + 176u8, 129u8, 140u8, 194u8, 38u8, 99u8, 96u8, + 123u8, 223u8, 127u8, 142u8, 201u8, 168u8, 229u8, + 117u8, 84u8, 88u8, 187u8, 141u8, 17u8, 227u8, + 250u8, 61u8, 213u8, 138u8, 191u8, 79u8, 233u8, + 219u8, 157u8, 162u8, 131u8, + ], + ) + } + pub fn set_min_withdraw_amount( + &self, + min_withdraw_amount: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorBn254", + "set_min_withdraw_amount", + types::SetMinWithdrawAmount { + min_withdraw_amount, + nonce, + }, + [ + 57u8, 249u8, 24u8, 174u8, 12u8, 147u8, 47u8, 89u8, + 196u8, 217u8, 27u8, 19u8, 74u8, 241u8, 51u8, 27u8, + 209u8, 252u8, 129u8, 50u8, 7u8, 162u8, 115u8, 60u8, + 92u8, 168u8, 238u8, 168u8, 139u8, 240u8, 58u8, + 16u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vanchor::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New tree created"] + pub struct VAnchorCreation { + pub tree_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for VAnchorCreation { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "VAnchorCreation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Transaction has been made"] + pub struct Transaction { pub transactor : :: subxt :: utils :: AccountId32 , pub tree_id : :: core :: primitive :: u32 , pub leafs : :: std :: vec :: Vec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , pub encrypted_output1 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub encrypted_output2 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub amount : :: core :: primitive :: i128 , } + impl ::subxt::events::StaticEvent for Transaction { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "Transaction"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Deposit hook has executed successfully"] + pub struct Deposit { pub depositor : :: subxt :: utils :: AccountId32 , pub tree_id : :: core :: primitive :: u32 , pub leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxDepositAmountChanged { + pub max_deposit_amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for MaxDepositAmountChanged { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "MaxDepositAmountChanged"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MinWithdrawAmountChanged { + pub min_withdraw_amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for MinWithdrawAmountChanged { + const PALLET: &'static str = "VAnchorBn254"; + const EVENT: &'static str = "MinWithdrawAmountChanged"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn max_deposit_amount( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "MaxDepositAmount", + vec![], + [ + 103u8, 143u8, 218u8, 145u8, 13u8, 227u8, 200u8, + 72u8, 147u8, 151u8, 21u8, 63u8, 38u8, 101u8, 23u8, + 45u8, 67u8, 250u8, 184u8, 206u8, 10u8, 184u8, 98u8, + 179u8, 120u8, 62u8, 92u8, 199u8, 30u8, 255u8, 26u8, + 84u8, + ], + ) + } + pub fn min_withdraw_amount( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "MinWithdrawAmount", + vec![], + [ + 217u8, 143u8, 57u8, 19u8, 253u8, 60u8, 103u8, + 182u8, 70u8, 55u8, 27u8, 66u8, 117u8, 86u8, 196u8, + 163u8, 41u8, 18u8, 117u8, 125u8, 232u8, 109u8, + 197u8, 177u8, 54u8, 157u8, 165u8, 251u8, 16u8, + 49u8, 113u8, 240u8, + ], + ) + } + #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("VAnchorBn254" , "VAnchors" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [36u8 , 134u8 , 67u8 , 39u8 , 166u8 , 66u8 , 25u8 , 61u8 , 47u8 , 227u8 , 59u8 , 137u8 , 206u8 , 140u8 , 252u8 , 38u8 , 69u8 , 243u8 , 65u8 , 15u8 , 127u8 , 65u8 , 200u8 , 12u8 , 60u8 , 140u8 , 19u8 , 168u8 , 135u8 , 135u8 , 38u8 , 219u8 ,]) + } + #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "VAnchors", + Vec::new(), + [ + 36u8, 134u8, 67u8, 39u8, 166u8, 66u8, 25u8, 61u8, + 47u8, 227u8, 59u8, 137u8, 206u8, 140u8, 252u8, + 38u8, 69u8, 243u8, 65u8, 15u8, 127u8, 65u8, 200u8, + 12u8, 60u8, 140u8, 19u8, 168u8, 135u8, 135u8, 38u8, + 219u8, + ], + ) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1 : impl :: std :: borrow :: Borrow < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("VAnchorBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) + } + #[doc = " The map of trees to their spent nullifier hashes"] + pub fn nullifier_hashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "NullifierHashes", + Vec::new(), + [ + 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, + 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, + 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, + 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, + 185u8, + ], + ) + } + #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] + pub fn proposal_nonce( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VAnchorBn254", + "ProposalNonce", + vec![], + [ + 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, + 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, + 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, + 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "VAnchorBn254", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + #[doc = " Native currency id"] + pub fn native_currency_id( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "VAnchorBn254", + "NativeCurrencyId", + [ + 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 v_anchor_handler_bn254 { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_vanchor_handler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_vanchor_handler::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteVanchorCreateProposal { + pub src_chain_id: ::core::primitive::u64, + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub max_edges: ::core::primitive::u32, + pub tree_depth: ::core::primitive::u8, + pub asset: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteVanchorCreateProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_vanchor_create_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteVanchorUpdateProposal { pub r_id : runtime_types :: webb_proposals :: header :: ResourceId , pub merkle_root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , pub src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId , pub nonce : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for ExecuteVanchorUpdateProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_vanchor_update_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetResourceProposal { + pub r_id: runtime_types::webb_proposals::header::ResourceId, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetResourceProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = "execute_set_resource_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetMaxDepositLimitProposal { + pub max_deposit_limit: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetMaxDepositLimitProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_set_max_deposit_limit_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetMinWithdrawalLimitProposal { + pub min_withdraw_limit: ::core::primitive::u128, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetMinWithdrawalLimitProposal { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const CALL: &'static str = + "execute_set_min_withdrawal_limit_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "This will be called by bridge when proposal to create a"] + #[doc = "vanchor has been successfully voted on."] + pub fn execute_vanchor_create_proposal( + &self, + src_chain_id: ::core::primitive::u64, + r_id: runtime_types::webb_proposals::header::ResourceId, + max_edges: ::core::primitive::u32, + tree_depth: ::core::primitive::u8, + asset: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_vanchor_create_proposal", + types::ExecuteVanchorCreateProposal { + src_chain_id, + r_id, + max_edges, + tree_depth, + asset, + nonce, + }, + [ + 87u8, 197u8, 136u8, 226u8, 195u8, 230u8, 78u8, + 200u8, 62u8, 131u8, 194u8, 106u8, 230u8, 87u8, + 105u8, 141u8, 52u8, 10u8, 34u8, 132u8, 152u8, 12u8, + 182u8, 110u8, 124u8, 248u8, 42u8, 37u8, 184u8, + 160u8, 30u8, 239u8, + ], + ) + } + #[doc = "This will be called by bridge when proposal to add/update edge of a"] + #[doc = "vanchor has been successfully voted on."] + pub fn execute_vanchor_update_proposal( + &self, + r_id: runtime_types::webb_proposals::header::ResourceId, + merkle_root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element, + src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_vanchor_update_proposal", + types::ExecuteVanchorUpdateProposal { + r_id, + merkle_root, + src_resource_id, + nonce, + }, + [ + 248u8, 213u8, 40u8, 228u8, 156u8, 188u8, 16u8, + 104u8, 13u8, 176u8, 140u8, 155u8, 185u8, 97u8, + 109u8, 27u8, 12u8, 209u8, 41u8, 174u8, 158u8, + 208u8, 85u8, 120u8, 128u8, 218u8, 147u8, 71u8, + 165u8, 153u8, 7u8, 249u8, + ], + ) + } + #[doc = "This will by called by bridge when proposal to set new resource for"] + #[doc = "handler has been successfully voted on."] + pub fn execute_set_resource_proposal( + &self, + r_id: runtime_types::webb_proposals::header::ResourceId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_set_resource_proposal", + types::ExecuteSetResourceProposal { r_id }, + [ + 228u8, 152u8, 137u8, 216u8, 49u8, 178u8, 221u8, + 163u8, 89u8, 90u8, 63u8, 173u8, 170u8, 175u8, 30u8, + 31u8, 77u8, 198u8, 214u8, 169u8, 52u8, 13u8, 63u8, + 98u8, 218u8, 108u8, 82u8, 222u8, 224u8, 50u8, + 151u8, 247u8, + ], + ) + } + #[doc = "Execute set max deposit limit proposal."] + #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] + #[doc = "anchor system."] + pub fn execute_set_max_deposit_limit_proposal( + &self, + max_deposit_limit: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload< + types::ExecuteSetMaxDepositLimitProposal, + > { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_set_max_deposit_limit_proposal", + types::ExecuteSetMaxDepositLimitProposal { + max_deposit_limit, + nonce, + }, + [ + 60u8, 64u8, 168u8, 137u8, 52u8, 27u8, 152u8, 36u8, + 248u8, 102u8, 189u8, 30u8, 35u8, 149u8, 173u8, + 199u8, 22u8, 113u8, 146u8, 120u8, 59u8, 222u8, + 215u8, 146u8, 165u8, 220u8, 17u8, 107u8, 118u8, + 224u8, 13u8, 47u8, + ], + ) + } + #[doc = "Execute set min withdrawal limit proposal."] + #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] + #[doc = "variable anchor system."] + pub fn execute_set_min_withdrawal_limit_proposal( + &self, + min_withdraw_limit: ::core::primitive::u128, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload< + types::ExecuteSetMinWithdrawalLimitProposal, + > { + ::subxt::tx::Payload::new_static( + "VAnchorHandlerBn254", + "execute_set_min_withdrawal_limit_proposal", + types::ExecuteSetMinWithdrawalLimitProposal { + min_withdraw_limit, + nonce, + }, + [ + 53u8, 181u8, 146u8, 2u8, 51u8, 158u8, 29u8, 5u8, + 70u8, 72u8, 54u8, 41u8, 190u8, 172u8, 173u8, 239u8, + 53u8, 244u8, 186u8, 76u8, 58u8, 162u8, 227u8, + 128u8, 174u8, 199u8, 121u8, 162u8, 88u8, 92u8, + 207u8, 128u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vanchor_handler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AnchorCreated; + impl ::subxt::events::StaticEvent for AnchorCreated { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "AnchorCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AnchorEdgeAdded; + impl ::subxt::events::StaticEvent for AnchorEdgeAdded { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "AnchorEdgeAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AnchorEdgeUpdated; + impl ::subxt::events::StaticEvent for AnchorEdgeUpdated { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "AnchorEdgeUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ResourceAnchored; + impl ::subxt::events::StaticEvent for ResourceAnchored { + const PALLET: &'static str = "VAnchorHandlerBn254"; + const EVENT: &'static str = "ResourceAnchored"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of trees to their anchor metadata"] + pub fn anchor_list( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::ResourceId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("VAnchorHandlerBn254" , "AnchorList" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [208u8 , 135u8 , 255u8 , 171u8 , 144u8 , 24u8 , 220u8 , 50u8 , 12u8 , 31u8 , 90u8 , 255u8 , 252u8 , 78u8 , 107u8 , 239u8 , 162u8 , 141u8 , 248u8 , 201u8 , 149u8 , 98u8 , 234u8 , 116u8 , 212u8 , 184u8 , 249u8 , 242u8 , 41u8 , 40u8 , 66u8 , 72u8 ,]) + } + #[doc = " The map of trees to their anchor metadata"] + pub fn anchor_list_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VAnchorHandlerBn254", + "AnchorList", + Vec::new(), + [ + 208u8, 135u8, 255u8, 171u8, 144u8, 24u8, 220u8, + 50u8, 12u8, 31u8, 90u8, 255u8, 252u8, 78u8, 107u8, + 239u8, 162u8, 141u8, 248u8, 201u8, 149u8, 98u8, + 234u8, 116u8, 212u8, 184u8, 249u8, 242u8, 41u8, + 40u8, 66u8, 72u8, + ], + ) + } + } + } + } + pub mod token_wrapper_handler { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = + runtime_types::pallet_token_wrapper_handler::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = + runtime_types::pallet_token_wrapper_handler::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteWrappingFeeProposal { + pub wrapping_fee_percent: ::core::primitive::u128, + pub into_pool_share_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteWrappingFeeProposal { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = "execute_wrapping_fee_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteAddTokenToPoolShare { + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub asset_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteAddTokenToPoolShare { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = + "execute_add_token_to_pool_share"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteRemoveTokenFromPoolShare { + pub name: ::std::vec::Vec<::core::primitive::u8>, + pub asset_id: ::core::primitive::u32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteRemoveTokenFromPoolShare { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = + "execute_remove_token_from_pool_share"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteSetFeeRecipientProposal { + pub pool_share_id: ::core::primitive::u32, + pub fee_recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteSetFeeRecipientProposal { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = + "execute_set_fee_recipient_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecuteRescueTokensProposal { + pub pool_share_id: ::core::primitive::u32, + pub asset_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub recipient: ::subxt::utils::AccountId32, + pub nonce: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteRescueTokensProposal { + const PALLET: &'static str = "TokenWrapperHandler"; + const CALL: &'static str = "execute_rescue_tokens_proposal"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] + #[doc = "method. Ensures that only the bridge can call this function."] + pub fn execute_wrapping_fee_proposal( + &self, + wrapping_fee_percent: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_wrapping_fee_proposal", + types::ExecuteWrappingFeeProposal { + wrapping_fee_percent, + into_pool_share_id, + nonce, + }, + [ + 151u8, 198u8, 139u8, 120u8, 128u8, 232u8, 69u8, + 120u8, 115u8, 47u8, 107u8, 79u8, 227u8, 240u8, + 115u8, 75u8, 93u8, 122u8, 216u8, 5u8, 163u8, 45u8, + 124u8, 42u8, 108u8, 171u8, 164u8, 75u8, 81u8, + 105u8, 156u8, 63u8, + ], + ) + } + pub fn execute_add_token_to_pool_share( + &self, + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_add_token_to_pool_share", + types::ExecuteAddTokenToPoolShare { + name, + asset_id, + nonce, + }, + [ + 100u8, 68u8, 240u8, 86u8, 44u8, 153u8, 29u8, 25u8, + 97u8, 95u8, 237u8, 202u8, 172u8, 150u8, 40u8, + 206u8, 67u8, 115u8, 11u8, 48u8, 2u8, 97u8, 41u8, + 2u8, 22u8, 172u8, 6u8, 11u8, 251u8, 248u8, 193u8, + 11u8, + ], + ) + } + pub fn execute_remove_token_from_pool_share( + &self, + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_remove_token_from_pool_share", + types::ExecuteRemoveTokenFromPoolShare { + name, + asset_id, + nonce, + }, + [ + 174u8, 253u8, 31u8, 62u8, 240u8, 34u8, 230u8, + 165u8, 169u8, 90u8, 189u8, 44u8, 12u8, 169u8, + 136u8, 98u8, 192u8, 79u8, 223u8, 153u8, 239u8, + 84u8, 71u8, 108u8, 178u8, 143u8, 61u8, 148u8, 6u8, + 204u8, 105u8, 144u8, + ], + ) + } + #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] + #[doc = "who will be receiving wrapping fee cost for given asset."] + #[doc = "Ensures that only the bridge can call this function."] + pub fn execute_set_fee_recipient_proposal( + &self, + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_set_fee_recipient_proposal", + types::ExecuteSetFeeRecipientProposal { + pool_share_id, + fee_recipient, + nonce, + }, + [ + 5u8, 50u8, 89u8, 17u8, 97u8, 30u8, 250u8, 167u8, + 227u8, 198u8, 222u8, 211u8, 6u8, 165u8, 94u8, + 252u8, 151u8, 49u8, 74u8, 244u8, 131u8, 196u8, + 234u8, 202u8, 19u8, 92u8, 247u8, 183u8, 242u8, + 89u8, 98u8, 40u8, + ], + ) + } + #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] + #[doc = "fee recipient to given recipient address from given asset."] + #[doc = "Ensures that only the bridge can call this function."] + pub fn execute_rescue_tokens_proposal( + &self, + pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TokenWrapperHandler", + "execute_rescue_tokens_proposal", + types::ExecuteRescueTokensProposal { + pool_share_id, + asset_id, + amount, + recipient, + nonce, + }, + [ + 152u8, 151u8, 76u8, 65u8, 60u8, 153u8, 36u8, 0u8, + 46u8, 254u8, 155u8, 205u8, 61u8, 153u8, 8u8, 137u8, + 53u8, 66u8, 49u8, 14u8, 53u8, 250u8, 95u8, 98u8, + 148u8, 141u8, 135u8, 142u8, 163u8, 123u8, 250u8, + 235u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = + runtime_types::pallet_token_wrapper_handler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdatedWrappingFeePercent { + pub wrapping_fee_percent: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { + const PALLET: &'static str = "TokenWrapperHandler"; + const EVENT: &'static str = "UpdatedWrappingFeePercent"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi {} + } + } + pub mod key_storage { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_key_storage::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_key_storage::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Register { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for Register { + const PALLET: &'static str = "KeyStorage"; + const CALL: &'static str = "register"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn register( + &self, + owner: ::subxt::utils::AccountId32, + public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "KeyStorage", + "register", + types::Register { owner, public_key }, + [ + 171u8, 208u8, 174u8, 130u8, 196u8, 84u8, 27u8, 8u8, + 186u8, 246u8, 169u8, 204u8, 151u8, 151u8, 172u8, + 47u8, 198u8, 250u8, 162u8, 161u8, 37u8, 144u8, + 193u8, 107u8, 125u8, 202u8, 8u8, 209u8, 244u8, + 108u8, 81u8, 62u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_key_storage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Public key registration"] + pub struct PublicKeyRegistration { + pub owner: ::subxt::utils::AccountId32, + pub public_key: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + impl ::subxt::events::StaticEvent for PublicKeyRegistration { + const PALLET: &'static str = "KeyStorage"; + const EVENT: &'static str = "PublicKeyRegistration"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The map of owners to public keys"] pub fn public_key_owners (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "KeyStorage", + "PublicKeyOwners", + vec![], + [ + 45u8, 68u8, 75u8, 191u8, 222u8, 164u8, 64u8, 224u8, + 76u8, 232u8, 244u8, 187u8, 33u8, 179u8, 192u8, + 168u8, 172u8, 102u8, 222u8, 81u8, 68u8, 213u8, + 182u8, 173u8, 161u8, 126u8, 247u8, 9u8, 226u8, + 119u8, 185u8, 18u8, + ], + ) + } + } + } + } + pub mod v_anchor_verifier { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_vanchor_verifier::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_vanchor_verifier::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceSetParameters { pub configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , pub parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { + const PALLET: &'static str = "VAnchorVerifier"; + const CALL: &'static str = "force_set_parameters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn force_set_parameters( + &self, + configuration: ( + ::core::primitive::u8, + ::core::primitive::u8, + ), + parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "VAnchorVerifier", + "force_set_parameters", + types::ForceSetParameters { + configuration, + parameters, + }, + [ + 21u8, 13u8, 77u8, 47u8, 51u8, 143u8, 238u8, 56u8, + 197u8, 27u8, 184u8, 112u8, 150u8, 225u8, 90u8, + 114u8, 85u8, 223u8, 80u8, 180u8, 87u8, 224u8, 88u8, + 240u8, 31u8, 155u8, 173u8, 71u8, 22u8, 223u8, + 162u8, 180u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_vanchor_verifier::pallet::Event; + pub mod events { + use super::runtime_types; + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of the module's parameters for different vanchor configurations"] + pub fn parameters( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u8>, + _1: impl ::std::borrow::Borrow<::core::primitive::u8>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("VAnchorVerifier" , "Parameters" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [158u8 , 70u8 , 6u8 , 255u8 , 76u8 , 199u8 , 208u8 , 93u8 , 218u8 , 86u8 , 190u8 , 70u8 , 232u8 , 57u8 , 91u8 , 148u8 , 223u8 , 50u8 , 229u8 , 94u8 , 50u8 , 78u8 , 22u8 , 207u8 , 30u8 , 179u8 , 158u8 , 85u8 , 139u8 , 166u8 , 240u8 , 136u8 ,]) + } + #[doc = " Details of the module's parameters for different vanchor configurations"] + pub fn parameters_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VAnchorVerifier", + "Parameters", + Vec::new(), + [ + 158u8, 70u8, 6u8, 255u8, 76u8, 199u8, 208u8, 93u8, + 218u8, 86u8, 190u8, 70u8, 232u8, 57u8, 91u8, 148u8, + 223u8, 50u8, 229u8, 94u8, 50u8, 78u8, 22u8, 207u8, + 30u8, 179u8, 158u8, 85u8, 139u8, 166u8, 240u8, + 136u8, + ], + ) + } + } + } + } + pub mod transaction_pause { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_transaction_pause::module::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_transaction_pause::module::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PauseTransaction { + pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, + pub function_name: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for PauseTransaction { + const PALLET: &'static str = "TransactionPause"; + const CALL: &'static str = "pause_transaction"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnpauseTransaction { + pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, + pub function_name: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for UnpauseTransaction { + const PALLET: &'static str = "TransactionPause"; + const CALL: &'static str = "unpause_transaction"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn pause_transaction( + &self, + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TransactionPause", + "pause_transaction", + types::PauseTransaction { + pallet_name, + function_name, + }, + [ + 191u8, 46u8, 160u8, 98u8, 234u8, 205u8, 136u8, + 130u8, 220u8, 76u8, 88u8, 162u8, 142u8, 251u8, + 70u8, 224u8, 228u8, 253u8, 154u8, 46u8, 154u8, + 231u8, 142u8, 91u8, 147u8, 113u8, 2u8, 225u8, 7u8, + 139u8, 23u8, 90u8, + ], + ) + } + pub fn unpause_transaction( + &self, + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "TransactionPause", + "unpause_transaction", + types::UnpauseTransaction { + pallet_name, + function_name, + }, + [ + 215u8, 194u8, 64u8, 170u8, 108u8, 9u8, 37u8, 99u8, + 46u8, 201u8, 227u8, 73u8, 184u8, 32u8, 58u8, 255u8, + 181u8, 184u8, 79u8, 240u8, 39u8, 146u8, 239u8, + 12u8, 18u8, 77u8, 76u8, 218u8, 10u8, 23u8, 69u8, + 209u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_transaction_pause::module::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Paused transaction"] + pub struct TransactionPaused { + pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for TransactionPaused { + const PALLET: &'static str = "TransactionPause"; + const EVENT: &'static str = "TransactionPaused"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Unpaused transaction"] + pub struct TransactionUnpaused { + pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for TransactionUnpaused { + const PALLET: &'static str = "TransactionPause"; + const EVENT: &'static str = "TransactionUnpaused"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The paused transaction map"] + #[doc = ""] + #[doc = " map (PalletNameBytes, FunctionNameBytes) => Option<()>"] + pub fn paused_transactions( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("TransactionPause" , "PausedTransactions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [202u8 , 146u8 , 231u8 , 118u8 , 39u8 , 102u8 , 215u8 , 91u8 , 137u8 , 31u8 , 182u8 , 136u8 , 192u8 , 97u8 , 2u8 , 247u8 , 216u8 , 154u8 , 110u8 , 47u8 , 134u8 , 1u8 , 18u8 , 122u8 , 91u8 , 237u8 , 111u8 , 43u8 , 74u8 , 247u8 , 173u8 , 202u8 ,]) + } + #[doc = " The paused transaction map"] + #[doc = ""] + #[doc = " map (PalletNameBytes, FunctionNameBytes) => Option<()>"] + pub fn paused_transactions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TransactionPause", + "PausedTransactions", + Vec::new(), + [ + 202u8, 146u8, 231u8, 118u8, 39u8, 102u8, 215u8, + 91u8, 137u8, 31u8, 182u8, 136u8, 192u8, 97u8, 2u8, + 247u8, 216u8, 154u8, 110u8, 47u8, 134u8, 1u8, 18u8, + 122u8, 91u8, 237u8, 111u8, 43u8, 74u8, 247u8, + 173u8, 202u8, + ], + ) + } + } + } + } + pub mod im_online { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_im_online::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } + impl ::subxt::blocks::StaticExtrinsic for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "## Complexity:"] + #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] + #[doc = " `heartbeat.network_state.external_address`"] + #[doc = " - `O(K)`: decoding of length `K`"] + #[doc = " - `O(E)`: decoding/encoding of length `E`"] + pub fn heartbeat( + &self, + heartbeat: runtime_types::pallet_im_online::Heartbeat< + ::core::primitive::u32, + >, + signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ImOnline", + "heartbeat", + types::Heartbeat { + heartbeat, + signature, + }, + [ + 212u8, 23u8, 174u8, 246u8, 60u8, 220u8, 178u8, + 137u8, 53u8, 146u8, 165u8, 225u8, 179u8, 209u8, + 233u8, 152u8, 129u8, 210u8, 126u8, 32u8, 216u8, + 22u8, 76u8, 196u8, 255u8, 128u8, 246u8, 161u8, + 30u8, 186u8, 249u8, 34u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new heartbeat was received from `AuthorityId`."] + pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } + impl ::subxt::events::StaticEvent for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, no offence was committed."] + pub struct AllGood; + impl ::subxt::events::StaticEvent for AllGood { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, at least one validator was found to be offline."] + pub struct SomeOffline { + pub offline: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + )>, + } + impl ::subxt::events::StaticEvent for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The block number after which it's ok to send heartbeats in the current"] + #[doc = " session."] + #[doc = ""] + #[doc = " At the beginning of each session we set this to a value that should fall"] + #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] + #[doc = " the validators to produce a block in the current session, so that the"] + #[doc = " heartbeat later on will not be necessary."] + #[doc = ""] + #[doc = " This value will only be used as a fallback if we fail to get a proper session"] + #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] + #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] + pub fn heartbeat_after( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "HeartbeatAfter", + vec![], + [ + 108u8, 100u8, 85u8, 198u8, 226u8, 122u8, 94u8, + 225u8, 97u8, 154u8, 135u8, 95u8, 106u8, 28u8, + 185u8, 78u8, 192u8, 196u8, 35u8, 191u8, 12u8, 19u8, + 163u8, 46u8, 232u8, 235u8, 193u8, 81u8, 126u8, + 204u8, 25u8, 228u8, + ], + ) + } + #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 6u8, 198u8, 221u8, 58u8, 14u8, 166u8, 245u8, 103u8, + 191u8, 20u8, 69u8, 233u8, 147u8, 245u8, 24u8, 64u8, + 207u8, 180u8, 39u8, 208u8, 252u8, 236u8, 247u8, + 112u8, 187u8, 97u8, 70u8, 11u8, 248u8, 148u8, + 208u8, 106u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] + #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] + #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , () , () , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + Vec::new(), + [ + 233u8, 128u8, 140u8, 233u8, 55u8, 146u8, 172u8, + 54u8, 54u8, 57u8, 141u8, 106u8, 168u8, 59u8, 147u8, + 253u8, 119u8, 48u8, 50u8, 251u8, 242u8, 109u8, + 251u8, 2u8, 136u8, 80u8, 146u8, 121u8, 180u8, + 219u8, 245u8, 37u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + Vec::new(), + [ + 50u8, 4u8, 242u8, 240u8, 247u8, 184u8, 114u8, + 245u8, 233u8, 170u8, 24u8, 197u8, 18u8, 245u8, 8u8, + 28u8, 33u8, 115u8, 166u8, 245u8, 221u8, 223u8, + 56u8, 144u8, 33u8, 139u8, 10u8, 227u8, 228u8, + 223u8, 103u8, 151u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = ""] + #[doc = " This is exposed so that it can be tuned for particular runtime, when"] + #[doc = " multiple pallets send unsigned transactions."] + pub fn unsigned_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::new_static( + "ImOnline", + "UnsignedPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, + 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, + 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, + 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, + 239u8, 42u8, 246u8, + ], + ) + } + } + } + } + pub mod identity { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_identity::pallet::Error; + #[doc = "Identity pallet declaration."] + pub type Call = runtime_types::pallet_identity::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddRegistrar { + pub account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_registrar"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetIdentity { + pub info: ::std::boxed::Box< + runtime_types::pallet_identity::types::IdentityInfo, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetSubs { + pub subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetSubs { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_subs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClearIdentity; + impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "clear_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RequestJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + #[codec(compact)] + pub max_fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "request_judgement"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CancelRequest { + pub reg_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelRequest { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "cancel_request"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetFee { + #[codec(compact)] + pub index: ::core::primitive::u32, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetAccountId { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetAccountId { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_account_id"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetFields { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetFields { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fields"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProvideJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub judgement: + runtime_types::pallet_identity::types::Judgement< + ::core::primitive::u128, + >, + pub identity: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "provide_judgement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KillIdentity { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for KillIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "kill_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AddSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for AddSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RenameSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for RenameSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "rename_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RemoveSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct QuitSub; + impl ::subxt::blocks::StaticExtrinsic for QuitSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "quit_sub"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "Add a registrar to the system."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] + #[doc = ""] + #[doc = "- `account`: the account of the registrar."] + #[doc = ""] + #[doc = "Emits `RegistrarAdded` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] + pub fn add_registrar( + &self, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "add_registrar", + types::AddRegistrar { account }, + [ + 96u8, 200u8, 92u8, 23u8, 3u8, 144u8, 56u8, 53u8, + 245u8, 210u8, 33u8, 36u8, 183u8, 233u8, 41u8, 1u8, + 127u8, 2u8, 25u8, 5u8, 15u8, 133u8, 4u8, 107u8, + 206u8, 155u8, 114u8, 39u8, 14u8, 235u8, 115u8, + 172u8, + ], + ) + } + #[doc = "Set an account's identity information and reserve the appropriate deposit."] + #[doc = ""] + #[doc = "If the account already has identity information, the deposit is taken as part payment"] + #[doc = "for the new deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `info`: The identity information."] + #[doc = ""] + #[doc = "Emits `IdentitySet` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(X + X' + R)`"] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] + #[doc = " - where `R` judgements-count (registrar-count-bounded)"] + pub fn set_identity( + &self, + info: runtime_types::pallet_identity::types::IdentityInfo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_identity", + types::SetIdentity { + info: ::std::boxed::Box::new(info), + }, + [ + 130u8, 89u8, 118u8, 6u8, 134u8, 166u8, 35u8, 192u8, + 73u8, 6u8, 171u8, 20u8, 225u8, 255u8, 152u8, 142u8, + 111u8, 8u8, 206u8, 200u8, 64u8, 52u8, 110u8, 123u8, + 42u8, 101u8, 191u8, 242u8, 133u8, 139u8, 154u8, + 205u8, + ], + ) + } + #[doc = "Set the sub-accounts of the sender."] + #[doc = ""] + #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] + #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "identity."] + #[doc = ""] + #[doc = "- `subs`: The identity's (new) sub-accounts."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(P + S)`"] + #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] + #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] + pub fn set_subs( + &self, + subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_subs", + types::SetSubs { subs }, + [ + 177u8, 219u8, 84u8, 183u8, 5u8, 32u8, 192u8, 82u8, + 174u8, 68u8, 198u8, 224u8, 56u8, 85u8, 134u8, + 171u8, 30u8, 132u8, 140u8, 236u8, 117u8, 24u8, + 150u8, 218u8, 146u8, 194u8, 144u8, 92u8, 103u8, + 206u8, 46u8, 90u8, + ], + ) + } + #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] + #[doc = ""] + #[doc = "Payment: All reserved balances on the account are returned."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "identity."] + #[doc = ""] + #[doc = "Emits `IdentityCleared` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R + S + X)`"] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + pub fn clear_identity( + &self, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Identity", + "clear_identity", + types::ClearIdentity {}, + [ + 75u8, 44u8, 74u8, 122u8, 149u8, 202u8, 114u8, + 230u8, 0u8, 255u8, 140u8, 122u8, 14u8, 196u8, + 205u8, 249u8, 220u8, 94u8, 216u8, 34u8, 63u8, 14u8, + 8u8, 205u8, 74u8, 23u8, 181u8, 129u8, 252u8, 110u8, + 231u8, 114u8, + ], + ) + } + #[doc = "Request a judgement from a registrar."] + #[doc = ""] + #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] + #[doc = "given."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] + #[doc = "registered identity."] + #[doc = ""] + #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] + #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] + #[doc = ""] + #[doc = "```nocompile"] + #[doc = "Self::registrars().get(reg_index).unwrap().fee"] + #[doc = "```"] + #[doc = ""] + #[doc = "Emits `JudgementRequested` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R + X)`."] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + pub fn request_judgement( + &self, + reg_index: ::core::primitive::u32, + max_fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Identity", + "request_judgement", + types::RequestJudgement { reg_index, max_fee }, + [ + 186u8, 149u8, 61u8, 54u8, 159u8, 194u8, 77u8, + 161u8, 220u8, 157u8, 3u8, 216u8, 23u8, 105u8, + 119u8, 76u8, 144u8, 198u8, 157u8, 45u8, 235u8, + 139u8, 87u8, 82u8, 81u8, 12u8, 25u8, 134u8, 225u8, + 92u8, 182u8, 101u8, + ], + ) + } + #[doc = "Cancel a previous request."] + #[doc = ""] + #[doc = "Payment: A previously reserved deposit is returned on success."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] + #[doc = "registered identity."] + #[doc = ""] + #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] + #[doc = ""] + #[doc = "Emits `JudgementUnrequested` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R + X)`."] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + pub fn cancel_request( + &self, + reg_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Identity", + "cancel_request", + types::CancelRequest { reg_index }, + [ + 83u8, 180u8, 239u8, 126u8, 32u8, 51u8, 17u8, 20u8, + 180u8, 3u8, 59u8, 96u8, 24u8, 32u8, 136u8, 92u8, + 58u8, 254u8, 68u8, 70u8, 50u8, 11u8, 51u8, 91u8, + 180u8, 79u8, 81u8, 84u8, 216u8, 138u8, 6u8, 215u8, + ], + ) + } + #[doc = "Set the fee required for a judgement to be requested from a registrar."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] + #[doc = "of the registrar whose index is `index`."] + #[doc = ""] + #[doc = "- `index`: the index of the registrar whose fee is to be set."] + #[doc = "- `fee`: the new fee."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R)`."] + #[doc = " - where `R` registrar-count (governance-bounded)."] + pub fn set_fee( + &self, + index: ::core::primitive::u32, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_fee", + types::SetFee { index, fee }, + [ + 21u8, 157u8, 123u8, 182u8, 160u8, 190u8, 117u8, + 37u8, 136u8, 133u8, 104u8, 234u8, 31u8, 145u8, + 115u8, 154u8, 125u8, 40u8, 2u8, 87u8, 118u8, 56u8, + 247u8, 73u8, 89u8, 0u8, 251u8, 3u8, 58u8, 105u8, + 239u8, 211u8, + ], + ) + } + #[doc = "Change the account associated with a registrar."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] + #[doc = "of the registrar whose index is `index`."] + #[doc = ""] + #[doc = "- `index`: the index of the registrar whose fee is to be set."] + #[doc = "- `new`: the new account ID."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R)`."] + #[doc = " - where `R` registrar-count (governance-bounded)."] + pub fn set_account_id( + &self, + index: ::core::primitive::u32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_account_id", + types::SetAccountId { index, new }, + [ + 14u8, 154u8, 84u8, 48u8, 59u8, 133u8, 45u8, 204u8, + 255u8, 85u8, 157u8, 88u8, 56u8, 207u8, 113u8, + 184u8, 233u8, 139u8, 129u8, 118u8, 59u8, 9u8, + 211u8, 184u8, 32u8, 141u8, 126u8, 208u8, 179u8, + 4u8, 2u8, 95u8, + ], + ) + } + #[doc = "Set the field information for a registrar."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] + #[doc = "of the registrar whose index is `index`."] + #[doc = ""] + #[doc = "- `index`: the index of the registrar whose fee is to be set."] + #[doc = "- `fields`: the fields that the registrar concerns themselves with."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R)`."] + #[doc = " - where `R` registrar-count (governance-bounded)."] + pub fn set_fields( + &self, + index: ::core::primitive::u32, + fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_fields", + types::SetFields { index, fields }, + [ + 50u8, 196u8, 179u8, 71u8, 66u8, 65u8, 235u8, 7u8, + 51u8, 14u8, 81u8, 173u8, 201u8, 58u8, 6u8, 151u8, + 174u8, 245u8, 102u8, 184u8, 28u8, 84u8, 125u8, + 93u8, 126u8, 134u8, 92u8, 203u8, 200u8, 129u8, + 240u8, 252u8, + ], + ) + } + #[doc = "Provide a judgement for an account's identity."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] + #[doc = "of the registrar whose index is `reg_index`."] + #[doc = ""] + #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] + #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] + #[doc = " with a registered identity."] + #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] + #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] + #[doc = ""] + #[doc = "Emits `JudgementGiven` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R + X)`."] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + pub fn provide_judgement( + &self, + reg_index: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + judgement: runtime_types::pallet_identity::types::Judgement< + ::core::primitive::u128, + >, + identity: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Identity", + "provide_judgement", + types::ProvideJudgement { + reg_index, + target, + judgement, + identity, + }, + [ + 83u8, 253u8, 77u8, 208u8, 198u8, 25u8, 202u8, + 213u8, 223u8, 184u8, 231u8, 185u8, 186u8, 216u8, + 54u8, 62u8, 3u8, 7u8, 107u8, 152u8, 126u8, 195u8, + 175u8, 221u8, 134u8, 169u8, 199u8, 124u8, 232u8, + 157u8, 67u8, 75u8, + ], + ) + } + #[doc = "Remove an account's identity and sub-account information and slash the deposits."] + #[doc = ""] + #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] + #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] + #[doc = "manually using `cancel_request`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] + #[doc = ""] + #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] + #[doc = " with a registered identity."] + #[doc = ""] + #[doc = "Emits `IdentityKilled` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(R + S + X)`"] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + pub fn kill_identity( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "kill_identity", + types::KillIdentity { target }, + [ + 65u8, 106u8, 116u8, 209u8, 219u8, 181u8, 185u8, + 75u8, 146u8, 194u8, 187u8, 170u8, 7u8, 34u8, 140u8, + 87u8, 107u8, 112u8, 229u8, 34u8, 65u8, 71u8, 58u8, + 152u8, 74u8, 253u8, 137u8, 69u8, 149u8, 214u8, + 158u8, 19u8, + ], + ) + } + #[doc = "Add the given account to the sender's subs."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] + pub fn add_sub( + &self, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + data: runtime_types::pallet_identity::types::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "add_sub", + types::AddSub { sub, data }, + [ + 206u8, 112u8, 143u8, 96u8, 152u8, 12u8, 174u8, + 226u8, 23u8, 27u8, 154u8, 188u8, 195u8, 233u8, + 185u8, 180u8, 246u8, 218u8, 154u8, 129u8, 138u8, + 52u8, 212u8, 109u8, 54u8, 211u8, 219u8, 255u8, + 39u8, 79u8, 154u8, 123u8, + ], + ) + } + #[doc = "Alter the associated name of the given sub-account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] + pub fn rename_sub( + &self, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + data: runtime_types::pallet_identity::types::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "rename_sub", + types::RenameSub { sub, data }, + [ + 110u8, 28u8, 134u8, 225u8, 44u8, 242u8, 20u8, 22u8, + 197u8, 49u8, 173u8, 178u8, 106u8, 181u8, 103u8, + 90u8, 27u8, 73u8, 102u8, 130u8, 2u8, 216u8, 172u8, + 186u8, 124u8, 244u8, 128u8, 6u8, 112u8, 128u8, + 25u8, 245u8, + ], + ) + } + #[doc = "Remove the given account from the sender's subs."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] + pub fn remove_sub( + &self, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "remove_sub", + types::RemoveSub { sub }, + [ + 92u8, 201u8, 70u8, 170u8, 248u8, 110u8, 179u8, + 186u8, 213u8, 197u8, 150u8, 156u8, 156u8, 50u8, + 19u8, 158u8, 186u8, 61u8, 106u8, 64u8, 84u8, 38u8, + 73u8, 134u8, 132u8, 233u8, 50u8, 152u8, 40u8, 18u8, + 212u8, 121u8, + ], + ) + } + #[doc = "Remove the sender as a sub-account."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender (*not* the original depositor)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "super-identity."] + #[doc = ""] + #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] + #[doc = "controller of an account is maliciously registered as a sub-account."] + pub fn quit_sub(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "quit_sub", + types::QuitSub {}, + [ + 62u8, 57u8, 73u8, 72u8, 119u8, 216u8, 250u8, 155u8, + 57u8, 169u8, 157u8, 44u8, 87u8, 51u8, 63u8, 231u8, + 77u8, 7u8, 0u8, 119u8, 244u8, 42u8, 179u8, 51u8, + 254u8, 240u8, 55u8, 25u8, 142u8, 38u8, 87u8, 44u8, + ], + ) + } + } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_identity::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A name was set or reset (which will remove all judgements)."] + pub struct IdentitySet { + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for IdentitySet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentitySet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A name was cleared, and the given balance returned."] + pub struct IdentityCleared { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for IdentityCleared { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A name was removed and the given balance slashed."] + pub struct IdentityKilled { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for IdentityKilled { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityKilled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A judgement was asked from a registrar."] + pub struct JudgementRequested { + pub who: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for JudgementRequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementRequested"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A judgement request was retracted."] + pub struct JudgementUnrequested { + pub who: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for JudgementUnrequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementUnrequested"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A judgement was given by a registrar."] + pub struct JudgementGiven { + pub target: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for JudgementGiven { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementGiven"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A registrar was added."] + pub struct RegistrarAdded { + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for RegistrarAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "RegistrarAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sub-identity was added to an identity and the deposit paid."] + pub struct SubIdentityAdded { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sub-identity was removed from an identity and the deposit freed."] + pub struct SubIdentityRemoved { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityRemoved { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] + #[doc = "main identity account to the sub-identity account."] + pub struct SubIdentityRevoked { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityRevoked { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRevoked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn identity_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration< + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Identity" , "IdentityOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [193u8 , 195u8 , 180u8 , 188u8 , 129u8 , 250u8 , 180u8 , 219u8 , 22u8 , 95u8 , 175u8 , 170u8 , 143u8 , 188u8 , 80u8 , 124u8 , 234u8 , 228u8 , 245u8 , 39u8 , 72u8 , 153u8 , 107u8 , 199u8 , 23u8 , 75u8 , 47u8 , 247u8 , 104u8 , 208u8 , 171u8 , 82u8 ,]) + } + #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn identity_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration< + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "IdentityOf", + Vec::new(), + [ + 193u8, 195u8, 180u8, 188u8, 129u8, 250u8, 180u8, + 219u8, 22u8, 95u8, 175u8, 170u8, 143u8, 188u8, + 80u8, 124u8, 234u8, 228u8, 245u8, 39u8, 72u8, + 153u8, 107u8, 199u8, 23u8, 75u8, 47u8, 247u8, + 104u8, 208u8, 171u8, 82u8, + ], + ) } - pub mod header { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Header<_0, _1> { - pub parent_hash: ::subxt::utils::H256, - #[codec(compact)] - pub number: _0, - pub state_root: ::subxt::utils::H256, - pub extrinsics_root: ::subxt::utils::H256, - pub digest: - runtime_types::sp_runtime::generic::digest::Digest, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] + pub fn super_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SuperOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [170u8 , 249u8 , 112u8 , 249u8 , 75u8 , 176u8 , 21u8 , 29u8 , 152u8 , 149u8 , 69u8 , 113u8 , 20u8 , 92u8 , 113u8 , 130u8 , 135u8 , 62u8 , 18u8 , 204u8 , 166u8 , 193u8 , 133u8 , 167u8 , 248u8 , 117u8 , 80u8 , 137u8 , 158u8 , 111u8 , 100u8 , 137u8 ,]) + } + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] + pub fn super_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "SuperOf", + Vec::new(), + [ + 170u8, 249u8, 112u8, 249u8, 75u8, 176u8, 21u8, + 29u8, 152u8, 149u8, 69u8, 113u8, 20u8, 92u8, 113u8, + 130u8, 135u8, 62u8, 18u8, 204u8, 166u8, 193u8, + 133u8, 167u8, 248u8, 117u8, 80u8, 137u8, 158u8, + 111u8, 100u8, 137u8, + ], + ) + } + #[doc = " Alternative \"sub\" identities of this account."] + #[doc = ""] + #[doc = " The first item is the deposit, the second is a vector of the accounts."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SubsOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [128u8 , 15u8 , 175u8 , 155u8 , 216u8 , 225u8 , 200u8 , 169u8 , 215u8 , 206u8 , 110u8 , 22u8 , 204u8 , 89u8 , 212u8 , 210u8 , 159u8 , 169u8 , 53u8 , 7u8 , 44u8 , 164u8 , 91u8 , 151u8 , 7u8 , 227u8 , 38u8 , 230u8 , 175u8 , 84u8 , 6u8 , 4u8 ,]) + } + #[doc = " Alternative \"sub\" identities of this account."] + #[doc = ""] + #[doc = " The first item is the deposit, the second is a vector of the accounts."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "Identity", + "SubsOf", + Vec::new(), + [ + 128u8, 15u8, 175u8, 155u8, 216u8, 225u8, 200u8, + 169u8, 215u8, 206u8, 110u8, 22u8, 204u8, 89u8, + 212u8, 210u8, 159u8, 169u8, 53u8, 7u8, 44u8, 164u8, + 91u8, 151u8, 7u8, 227u8, 38u8, 230u8, 175u8, 84u8, + 6u8, 4u8, + ], + ) + } + #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] + #[doc = " special origin (likely a council motion)."] + #[doc = ""] + #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + ::subxt::storage::address::Address::new_static( + "Identity", + "Registrars", + vec![], + [ + 157u8, 87u8, 39u8, 240u8, 154u8, 54u8, 241u8, + 229u8, 76u8, 9u8, 62u8, 252u8, 40u8, 143u8, 186u8, + 182u8, 233u8, 187u8, 251u8, 61u8, 236u8, 229u8, + 19u8, 55u8, 42u8, 36u8, 82u8, 173u8, 215u8, 155u8, + 229u8, 111u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The amount held on deposit for a registered identity"] + pub fn basic_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Identity", + "BasicDeposit", + [ + 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 additional field for a registered identity."] + pub fn field_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Identity", + "FieldDeposit", + [ + 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 for a registered subaccount. This should account for the fact"] + #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] + #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] + pub fn sub_account_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Identity", + "SubAccountDeposit", + [ + 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 sub-accounts allowed per identified account."] + pub fn max_sub_accounts( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Identity", + "MaxSubAccounts", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] + #[doc = " required to access an identity, but can be pretty high."] + pub fn max_additional_fields( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Identity", + "MaxAdditionalFields", + [ + 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 = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] + #[doc = " of, e.g., updating judgements."] + pub fn max_registrars( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Identity", + "MaxRegistrars", + [ + 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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_utility::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_utility::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Batch { + pub calls: ::std::vec::Vec< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Batch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AsDerivative { + pub index: ::core::primitive::u16, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AsDerivative { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BatchAll { + pub calls: ::std::vec::Vec< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BatchAll { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DispatchAs { + pub as_origin: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::OriginCaller, + >, + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for DispatchAs { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ForceBatch { + pub calls: ::std::vec::Vec< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, } - pub mod unchecked_extrinsic { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct UncheckedExtrinsic<_0, _1, _2, _3>( - pub ::std::vec::Vec<::core::primitive::u8>, - #[codec(skip)] - pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, - ); + impl ::subxt::blocks::StaticExtrinsic for ForceBatch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; } - } - pub mod traits { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct BlakeTwo256; + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WithWeight { + pub call: ::std::boxed::Box< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for WithWeight { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "with_weight"; + } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ArithmeticError { - #[codec(index = 0)] - Underflow, - #[codec(index = 1)] - Overflow, - #[codec(index = 2)] - DivisionByZero, + 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: ::std::vec::Vec< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 158u8, 178u8, 167u8, 206u8, 156u8, 246u8, 129u8, + 234u8, 14u8, 129u8, 105u8, 225u8, 210u8, 104u8, + 119u8, 215u8, 153u8, 8u8, 156u8, 105u8, 226u8, + 143u8, 90u8, 60u8, 145u8, 58u8, 67u8, 210u8, 252u8, + 153u8, 32u8, 90u8, + ], + ) + } + #[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: ::core::primitive::u16, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "as_derivative", + types::AsDerivative { + index, + call: ::std::boxed::Box::new(call), + }, + [ + 189u8, 10u8, 36u8, 89u8, 191u8, 206u8, 235u8, 67u8, + 215u8, 49u8, 94u8, 175u8, 240u8, 54u8, 164u8, + 180u8, 206u8, 29u8, 25u8, 44u8, 121u8, 45u8, 4u8, + 60u8, 94u8, 70u8, 196u8, 83u8, 137u8, 235u8, 248u8, + 214u8, + ], + ) + } + #[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: ::std::vec::Vec< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch_all", + types::BatchAll { calls }, + [ + 216u8, 165u8, 34u8, 3u8, 178u8, 186u8, 225u8, 68u8, + 6u8, 157u8, 135u8, 42u8, 180u8, 126u8, 50u8, 230u8, + 216u8, 246u8, 115u8, 3u8, 83u8, 57u8, 217u8, 228u8, + 14u8, 144u8, 131u8, 75u8, 227u8, 199u8, 50u8, 11u8, + ], + ) + } + #[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 : runtime_types :: tangle_standalone_runtime :: OriginCaller, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "dispatch_as", + types::DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), + }, + [ + 71u8, 209u8, 144u8, 247u8, 216u8, 110u8, 234u8, + 53u8, 182u8, 75u8, 74u8, 124u8, 112u8, 186u8, + 154u8, 134u8, 57u8, 177u8, 249u8, 169u8, 201u8, + 96u8, 155u8, 237u8, 181u8, 68u8, 115u8, 197u8, + 153u8, 227u8, 198u8, 204u8, + ], + ) + } + #[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: ::std::vec::Vec< + runtime_types::tangle_standalone_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "force_batch", + types::ForceBatch { calls }, + [ + 12u8, 63u8, 90u8, 131u8, 217u8, 112u8, 202u8, + 242u8, 90u8, 188u8, 203u8, 195u8, 251u8, 155u8, + 137u8, 129u8, 150u8, 62u8, 139u8, 142u8, 102u8, + 223u8, 116u8, 80u8, 183u8, 163u8, 47u8, 81u8, 68u8, + 49u8, 50u8, 230u8, + ], + ) + } + #[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: runtime_types::tangle_standalone_runtime::RuntimeCall, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "with_weight", + types::WithWeight { + call: ::std::boxed::Box::new(call), + weight, + }, + [ + 11u8, 254u8, 223u8, 220u8, 248u8, 87u8, 236u8, + 183u8, 166u8, 240u8, 62u8, 104u8, 240u8, 174u8, + 83u8, 67u8, 214u8, 188u8, 167u8, 146u8, 195u8, + 176u8, 222u8, 159u8, 242u8, 50u8, 141u8, 5u8, + 236u8, 95u8, 31u8, 114u8, + ], + ) + } } + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_utility::pallet::Event; + pub mod events { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - 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_runtime::ArithmeticError), - #[codec(index = 9)] - Transactional(runtime_types::sp_runtime::TransactionalError), - #[codec(index = 10)] - Exhausted, - #[codec(index = 11)] - Corruption, - #[codec(index = 12)] - Unavailable, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] + #[doc = "well as the error."] + pub struct BatchInterrupted { + pub index: ::core::primitive::u32, + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct ModuleError { - pub index: ::core::primitive::u8, - pub error: [::core::primitive::u8; 4usize], + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches completed fully with no error."] + pub struct BatchCompleted; + impl ::subxt::events::StaticEvent for BatchCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum MultiSignature { - #[codec(index = 0)] - Ed25519(runtime_types::sp_core::ed25519::Signature), - #[codec(index = 1)] - Sr25519(runtime_types::sp_core::sr25519::Signature), - #[codec(index = 2)] - Ecdsa(runtime_types::sp_core::ecdsa::Signature), + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches completed but has errors."] + pub struct BatchCompletedWithErrors; + impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompletedWithErrors"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum TokenError { - #[codec(index = 0)] - NoFunds, - #[codec(index = 1)] - WouldDie, - #[codec(index = 2)] - BelowMinimum, - #[codec(index = 3)] - CannotCreate, - #[codec(index = 4)] - UnknownAsset, - #[codec(index = 5)] - Frozen, - #[codec(index = 6)] - Unsupported, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single item within a Batch of dispatches has completed with no error."] + pub struct ItemCompleted; + impl ::subxt::events::StaticEvent for ItemCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum TransactionalError { - #[codec(index = 0)] - LimitReached, - #[codec(index = 1)] - NoLayer, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single item within a Batch of dispatches has completed with error."] + pub struct ItemFailed { + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for ItemFailed { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; } - } - pub mod sp_session { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct MembershipProof { - pub session: ::core::primitive::u32, - pub trie_nodes: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - pub validator_count: ::core::primitive::u32, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A call was dispatched."] + pub struct DispatchedAs { + pub result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + } + impl ::subxt::events::StaticEvent for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; } } - pub mod sp_staking { + pub mod constants { use super::runtime_types; - pub mod offence { + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The limit on the number of batched calls."] + pub fn batched_calls_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod eth2_client { + use super::root_mod; + use super::runtime_types; + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub type Error = runtime_types::pallet_eth2_light_client::pallet::Error; + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub type Call = runtime_types::pallet_eth2_light_client::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct OffenceDetails<_0, _1> { - pub offender: _1, - pub reporters: ::std::vec::Vec<_0>, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Init { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub args: ::std::boxed::Box< + runtime_types::eth_types::pallet::InitInput< + ::subxt::utils::AccountId32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Init { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "init"; } - } - } - pub mod sp_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct RuntimeVersion { - pub spec_name: ::std::string::String, - pub impl_name: ::std::string::String, - pub authoring_version: ::core::primitive::u32, - pub spec_version: ::core::primitive::u32, - pub impl_version: ::core::primitive::u32, - pub apis: ::std::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 :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct Weight { - #[codec(compact)] - pub ref_time: ::core::primitive::u64, - #[codec(compact)] - pub proof_size: ::core::primitive::u64, + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RegisterSubmitter { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + } + impl ::subxt::blocks::StaticExtrinsic for RegisterSubmitter { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "register_submitter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UnregisterSubmitter { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + } + impl ::subxt::blocks::StaticExtrinsic for UnregisterSubmitter { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "unregister_submitter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitBeaconChainLightClientUpdate { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub light_client_update: + runtime_types::eth_types::eth2::LightClientUpdate, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitBeaconChainLightClientUpdate { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = + "submit_beacon_chain_light_client_update"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SubmitExecutionHeader { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub block_header: runtime_types::eth_types::BlockHeader, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitExecutionHeader { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "submit_execution_header"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UpdateTrustedSigner { + pub trusted_signer: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateTrustedSigner { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "update_trusted_signer"; + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn init( + &self, + typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + args: runtime_types::eth_types::pallet::InitInput< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "init", + types::Init { + typed_chain_id, + args: ::std::boxed::Box::new(args), + }, + [ + 206u8, 239u8, 164u8, 149u8, 149u8, 206u8, 155u8, + 22u8, 185u8, 46u8, 237u8, 12u8, 179u8, 117u8, + 150u8, 179u8, 146u8, 173u8, 248u8, 234u8, 178u8, + 9u8, 33u8, 82u8, 202u8, 36u8, 162u8, 45u8, 109u8, + 12u8, 251u8, 42u8, + ], + ) + } + pub fn register_submitter( + &self, + typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "register_submitter", + types::RegisterSubmitter { typed_chain_id }, + [ + 103u8, 140u8, 4u8, 58u8, 34u8, 7u8, 94u8, 156u8, + 54u8, 42u8, 12u8, 104u8, 30u8, 235u8, 43u8, 129u8, + 88u8, 155u8, 58u8, 4u8, 133u8, 201u8, 91u8, 34u8, + 166u8, 84u8, 75u8, 11u8, 151u8, 55u8, 125u8, 30u8, + ], + ) + } + pub fn unregister_submitter( + &self, + typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "unregister_submitter", + types::UnregisterSubmitter { typed_chain_id }, + [ + 118u8, 212u8, 239u8, 32u8, 132u8, 204u8, 144u8, + 51u8, 233u8, 97u8, 1u8, 200u8, 189u8, 107u8, 70u8, + 112u8, 230u8, 35u8, 22u8, 70u8, 182u8, 167u8, 7u8, + 72u8, 239u8, 240u8, 103u8, 2u8, 191u8, 240u8, + 184u8, 127u8, + ], + ) + } + pub fn submit_beacon_chain_light_client_update( + &self, + typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + light_client_update : runtime_types :: eth_types :: eth2 :: LightClientUpdate, + ) -> ::subxt::tx::Payload< + types::SubmitBeaconChainLightClientUpdate, + > { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "submit_beacon_chain_light_client_update", + types::SubmitBeaconChainLightClientUpdate { + typed_chain_id, + light_client_update, + }, + [ + 99u8, 27u8, 35u8, 92u8, 56u8, 89u8, 101u8, 215u8, + 193u8, 2u8, 65u8, 74u8, 70u8, 80u8, 84u8, 8u8, + 200u8, 15u8, 165u8, 2u8, 216u8, 121u8, 121u8, + 221u8, 229u8, 254u8, 49u8, 59u8, 254u8, 17u8, 77u8, + 225u8, + ], + ) + } + pub fn submit_execution_header( + &self, + typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, + block_header: runtime_types::eth_types::BlockHeader, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "submit_execution_header", + types::SubmitExecutionHeader { + typed_chain_id, + block_header, + }, + [ + 42u8, 228u8, 96u8, 129u8, 33u8, 45u8, 48u8, 225u8, + 51u8, 87u8, 196u8, 231u8, 95u8, 44u8, 46u8, 81u8, + 17u8, 253u8, 30u8, 164u8, 90u8, 143u8, 239u8, 27u8, + 39u8, 83u8, 242u8, 52u8, 173u8, 59u8, 213u8, 7u8, + ], + ) + } + pub fn update_trusted_signer( + &self, + trusted_signer: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "update_trusted_signer", + types::UpdateTrustedSigner { trusted_signer }, + [ + 237u8, 184u8, 230u8, 1u8, 219u8, 8u8, 250u8, 144u8, + 217u8, 51u8, 209u8, 64u8, 204u8, 141u8, 9u8, 152u8, + 41u8, 241u8, 23u8, 78u8, 42u8, 131u8, 108u8, 212u8, + 8u8, 233u8, 106u8, 218u8, 41u8, 194u8, 43u8, 56u8, + ], + ) } } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct OldWeight(pub ::core::primitive::u64); + } + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub type Event = runtime_types::pallet_eth2_light_client::pallet::Event; + pub mod events { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct RuntimeDbWeight { - pub read: ::core::primitive::u64, - pub write: ::core::primitive::u64, - } - } - pub mod tangle_standalone_runtime { - use super::runtime_types; - pub mod opaque { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct SessionKeys { pub aura : runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public , pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub dkg : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Init { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub header_info: + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, } - pub mod protocol_substrate_config { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Element(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MaxAssetIdInPool; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct MaxEdges; + impl ::subxt::events::StaticEvent for Init { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "Init"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct MaxVotes; + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RegisterSubmitter { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub submitter: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for RegisterSubmitter { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "RegisterSubmitter"; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct NposSolution16 { - pub votes1: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes2: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ), - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes3: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 2usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes4: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 3usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes5: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 4usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes6: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 5usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes7: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 6usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes8: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 7usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes9: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 8usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes10: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 9usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes11: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 10usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes12: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 11usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes13: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 12usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes14: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 13usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes15: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 14usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes16: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 15usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnregisterSubmitter { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub submitter: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for UnregisterSubmitter { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "UnregisterSubmitter"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub enum OriginCaller { - #[codec(index = 0)] - system( - runtime_types::frame_support::dispatch::RawOrigin< + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitBeaconChainLightClientUpdate { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub submitter: ::subxt::utils::AccountId32, + pub beacon_block_header: + runtime_types::eth_types::eth2::BeaconBlockHeader, + } + impl ::subxt::events::StaticEvent for SubmitBeaconChainLightClientUpdate { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = + "SubmitBeaconChainLightClientUpdate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitExecutionHeader { + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub header_info: + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::events::StaticEvent for SubmitExecutionHeader { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "SubmitExecutionHeader"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdateTrustedSigner { + pub trusted_signer: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for UpdateTrustedSigner { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "UpdateTrustedSigner"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " If set, only light client updates by the trusted signer will be accepted"] + pub fn trusted_signer( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "TrustedSigner", + vec![], + [ + 106u8, 170u8, 214u8, 183u8, 202u8, 137u8, 72u8, + 85u8, 202u8, 161u8, 181u8, 51u8, 66u8, 225u8, + 160u8, 219u8, 4u8, 54u8, 166u8, 66u8, 103u8, 186u8, + 9u8, 243u8, 35u8, 6u8, 188u8, 25u8, 48u8, 141u8, + 161u8, 144u8, + ], + ) + } + #[doc = " Mask determining all paused functions"] + pub fn paused( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "Paused" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 76u8 , 208u8 , 126u8 , 194u8 , 25u8 , 17u8 , 112u8 , 79u8 , 98u8 , 246u8 , 87u8 , 195u8 , 92u8 , 249u8 , 205u8 , 208u8 , 96u8 , 165u8 , 221u8 , 240u8 , 49u8 , 252u8 , 217u8 , 175u8 , 3u8 , 8u8 , 6u8 , 142u8 , 188u8 , 223u8 , 58u8 ,]) + } + #[doc = " Mask determining all paused functions"] + pub fn paused_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "Paused", + Vec::new(), + [ + 246u8, 76u8, 208u8, 126u8, 194u8, 25u8, 17u8, + 112u8, 79u8, 98u8, 246u8, 87u8, 195u8, 92u8, 249u8, + 205u8, 208u8, 96u8, 165u8, 221u8, 240u8, 49u8, + 252u8, 217u8, 175u8, 3u8, 8u8, 6u8, 142u8, 188u8, + 223u8, 58u8, + ], + ) + } + #[doc = " Whether the client validates the updates."] + #[doc = " Should only be set to `false` for debugging, testing, and diagnostic purposes"] + pub fn validate_updates( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "ValidateUpdates" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [86u8 , 26u8 , 173u8 , 110u8 , 231u8 , 9u8 , 36u8 , 254u8 , 82u8 , 80u8 , 78u8 , 249u8 , 56u8 , 23u8 , 202u8 , 19u8 , 24u8 , 116u8 , 171u8 , 126u8 , 81u8 , 8u8 , 54u8 , 180u8 , 6u8 , 57u8 , 202u8 , 40u8 , 254u8 , 124u8 , 92u8 , 36u8 ,]) + } + #[doc = " Whether the client validates the updates."] + #[doc = " Should only be set to `false` for debugging, testing, and diagnostic purposes"] + pub fn validate_updates_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "ValidateUpdates", + Vec::new(), + [ + 86u8, 26u8, 173u8, 110u8, 231u8, 9u8, 36u8, 254u8, + 82u8, 80u8, 78u8, 249u8, 56u8, 23u8, 202u8, 19u8, + 24u8, 116u8, 171u8, 126u8, 81u8, 8u8, 54u8, 180u8, + 6u8, 57u8, 202u8, 40u8, 254u8, 124u8, 92u8, 36u8, + ], + ) + } + #[doc = " Whether the client verifies BLS signatures."] + pub fn verify_bls_signatures( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "VerifyBlsSignatures" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [174u8 , 194u8 , 4u8 , 89u8 , 235u8 , 196u8 , 39u8 , 161u8 , 124u8 , 161u8 , 182u8 , 156u8 , 170u8 , 60u8 , 170u8 , 233u8 , 244u8 , 133u8 , 75u8 , 69u8 , 26u8 , 207u8 , 133u8 , 140u8 , 119u8 , 132u8 , 244u8 , 20u8 , 81u8 , 25u8 , 24u8 , 217u8 ,]) + } + #[doc = " Whether the client verifies BLS signatures."] + pub fn verify_bls_signatures_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "VerifyBlsSignatures", + Vec::new(), + [ + 174u8, 194u8, 4u8, 89u8, 235u8, 196u8, 39u8, 161u8, + 124u8, 161u8, 182u8, 156u8, 170u8, 60u8, 170u8, + 233u8, 244u8, 133u8, 75u8, 69u8, 26u8, 207u8, + 133u8, 140u8, 119u8, 132u8, 244u8, 20u8, 81u8, + 25u8, 24u8, 217u8, + ], + ) + } + #[doc = " We store the hashes of the blocks for the past `hashes_gc_threshold` headers."] + #[doc = " Events that happen past this threshold cannot be verified by the client."] + #[doc = " It is desirable that this number is larger than 7 days' worth of headers, which is roughly"] + #[doc = " 51k Ethereum blocks. So this number should be 51k in production."] + pub fn hashes_gc_threshold( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "HashesGcThreshold" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [220u8 , 238u8 , 33u8 , 21u8 , 96u8 , 160u8 , 110u8 , 211u8 , 35u8 , 8u8 , 6u8 , 98u8 , 10u8 , 53u8 , 189u8 , 154u8 , 171u8 , 27u8 , 245u8 , 152u8 , 177u8 , 142u8 , 113u8 , 56u8 , 187u8 , 159u8 , 192u8 , 114u8 , 175u8 , 24u8 , 237u8 , 149u8 ,]) + } + #[doc = " We store the hashes of the blocks for the past `hashes_gc_threshold` headers."] + #[doc = " Events that happen past this threshold cannot be verified by the client."] + #[doc = " It is desirable that this number is larger than 7 days' worth of headers, which is roughly"] + #[doc = " 51k Ethereum blocks. So this number should be 51k in production."] + pub fn hashes_gc_threshold_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "HashesGcThreshold", + Vec::new(), + [ + 220u8, 238u8, 33u8, 21u8, 96u8, 160u8, 110u8, + 211u8, 35u8, 8u8, 6u8, 98u8, 10u8, 53u8, 189u8, + 154u8, 171u8, 27u8, 245u8, 152u8, 177u8, 142u8, + 113u8, 56u8, 187u8, 159u8, 192u8, 114u8, 175u8, + 24u8, 237u8, 149u8, + ], + ) + } + #[doc = " Hashes of the finalized execution blocks mapped to their numbers. Stores up to"] + #[doc = " `hashes_gc_threshold` entries. Execution block number -> execution block hash"] + pub fn finalized_execution_blocks( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::H256, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "FinalizedExecutionBlocks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [220u8 , 176u8 , 213u8 , 243u8 , 245u8 , 60u8 , 148u8 , 53u8 , 2u8 , 141u8 , 66u8 , 175u8 , 248u8 , 177u8 , 86u8 , 10u8 , 163u8 , 100u8 , 235u8 , 179u8 , 145u8 , 140u8 , 231u8 , 240u8 , 220u8 , 72u8 , 113u8 , 164u8 , 95u8 , 131u8 , 246u8 , 74u8 ,]) + } + #[doc = " Hashes of the finalized execution blocks mapped to their numbers. Stores up to"] + #[doc = " `hashes_gc_threshold` entries. Execution block number -> execution block hash"] + pub fn finalized_execution_blocks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::H256, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedExecutionBlocks", + Vec::new(), + [ + 220u8, 176u8, 213u8, 243u8, 245u8, 60u8, 148u8, + 53u8, 2u8, 141u8, 66u8, 175u8, 248u8, 177u8, 86u8, + 10u8, 163u8, 100u8, 235u8, 179u8, 145u8, 140u8, + 231u8, 240u8, 220u8, 72u8, 113u8, 164u8, 95u8, + 131u8, 246u8, 74u8, + ], + ) + } + #[doc = " All unfinalized execution blocks' headers hashes mapped to their `HeaderInfo`."] + #[doc = " Execution block hash -> ExecutionHeaderInfo object"] + pub fn unfinalized_headers( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "UnfinalizedHeaders" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [238u8 , 34u8 , 164u8 , 119u8 , 175u8 , 88u8 , 205u8 , 239u8 , 141u8 , 70u8 , 43u8 , 2u8 , 20u8 , 5u8 , 64u8 , 134u8 , 69u8 , 53u8 , 248u8 , 115u8 , 241u8 , 165u8 , 162u8 , 207u8 , 233u8 , 31u8 , 88u8 , 5u8 , 47u8 , 16u8 , 44u8 , 159u8 ,]) + } + #[doc = " All unfinalized execution blocks' headers hashes mapped to their `HeaderInfo`."] + #[doc = " Execution block hash -> ExecutionHeaderInfo object"] + pub fn unfinalized_headers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "UnfinalizedHeaders", + Vec::new(), + [ + 238u8, 34u8, 164u8, 119u8, 175u8, 88u8, 205u8, + 239u8, 141u8, 70u8, 43u8, 2u8, 20u8, 5u8, 64u8, + 134u8, 69u8, 53u8, 248u8, 115u8, 241u8, 165u8, + 162u8, 207u8, 233u8, 31u8, 88u8, 5u8, 47u8, 16u8, + 44u8, 159u8, + ], + ) + } + #[doc = " `AccountId`s mapped to their number of submitted headers."] + #[doc = " Submitter account -> Num of submitted headers"] + pub fn submitters( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "Submitters" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [138u8 , 84u8 , 90u8 , 113u8 , 200u8 , 222u8 , 59u8 , 174u8 , 139u8 , 218u8 , 80u8 , 215u8 , 195u8 , 196u8 , 156u8 , 93u8 , 156u8 , 224u8 , 95u8 , 49u8 , 22u8 , 26u8 , 48u8 , 27u8 , 216u8 , 77u8 , 246u8 , 19u8 , 102u8 , 108u8 , 125u8 , 115u8 ,]) + } + #[doc = " `AccountId`s mapped to their number of submitted headers."] + #[doc = " Submitter account -> Num of submitted headers"] + pub fn submitters_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "Submitters", + Vec::new(), + [ + 138u8, 84u8, 90u8, 113u8, 200u8, 222u8, 59u8, + 174u8, 139u8, 218u8, 80u8, 215u8, 195u8, 196u8, + 156u8, 93u8, 156u8, 224u8, 95u8, 49u8, 22u8, 26u8, + 48u8, 27u8, 216u8, 77u8, 246u8, 19u8, 102u8, 108u8, + 125u8, 115u8, + ], + ) + } + #[doc = " Max number of unfinalized blocks allowed to be stored by one submitter account"] + #[doc = " This value should be at least 32 blocks (1 epoch), but the recommended value is 1024 (32"] + #[doc = " epochs"] + pub fn max_unfinalized_blocks_per_submitter( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "MaxUnfinalizedBlocksPerSubmitter" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [38u8 , 27u8 , 213u8 , 127u8 , 48u8 , 21u8 , 109u8 , 75u8 , 138u8 , 130u8 , 212u8 , 220u8 , 233u8 , 207u8 , 235u8 , 28u8 , 187u8 , 166u8 , 114u8 , 181u8 , 162u8 , 147u8 , 80u8 , 119u8 , 212u8 , 107u8 , 190u8 , 12u8 , 27u8 , 53u8 , 175u8 , 220u8 ,]) + } + #[doc = " Max number of unfinalized blocks allowed to be stored by one submitter account"] + #[doc = " This value should be at least 32 blocks (1 epoch), but the recommended value is 1024 (32"] + #[doc = " epochs"] + pub fn max_unfinalized_blocks_per_submitter_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "MaxUnfinalizedBlocksPerSubmitter", + Vec::new(), + [ + 38u8, 27u8, 213u8, 127u8, 48u8, 21u8, 109u8, 75u8, + 138u8, 130u8, 212u8, 220u8, 233u8, 207u8, 235u8, + 28u8, 187u8, 166u8, 114u8, 181u8, 162u8, 147u8, + 80u8, 119u8, 212u8, 107u8, 190u8, 12u8, 27u8, 53u8, + 175u8, 220u8, + ], + ) + } + #[doc = " The minimum balance that should be attached to register a new submitter account"] + pub fn min_submitter_balance( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "MinSubmitterBalance" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [231u8 , 115u8 , 41u8 , 207u8 , 67u8 , 71u8 , 203u8 , 11u8 , 233u8 , 115u8 , 16u8 , 105u8 , 104u8 , 32u8 , 94u8 , 2u8 , 209u8 , 94u8 , 233u8 , 219u8 , 111u8 , 118u8 , 184u8 , 144u8 , 54u8 , 104u8 , 117u8 , 8u8 , 49u8 , 164u8 , 103u8 , 196u8 ,]) + } + #[doc = " The minimum balance that should be attached to register a new submitter account"] + pub fn min_submitter_balance_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "MinSubmitterBalance", + Vec::new(), + [ + 231u8, 115u8, 41u8, 207u8, 67u8, 71u8, 203u8, 11u8, + 233u8, 115u8, 16u8, 105u8, 104u8, 32u8, 94u8, 2u8, + 209u8, 94u8, 233u8, 219u8, 111u8, 118u8, 184u8, + 144u8, 54u8, 104u8, 117u8, 8u8, 49u8, 164u8, 103u8, + 196u8, + ], + ) + } + #[doc = " Light client state"] + pub fn finalized_beacon_header( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::ExtendedBeaconBlockHeader, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "FinalizedBeaconHeader" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [218u8 , 228u8 , 178u8 , 233u8 , 200u8 , 20u8 , 96u8 , 4u8 , 29u8 , 225u8 , 232u8 , 224u8 , 140u8 , 32u8 , 92u8 , 188u8 , 43u8 , 104u8 , 25u8 , 18u8 , 203u8 , 23u8 , 158u8 , 143u8 , 109u8 , 60u8 , 242u8 , 65u8 , 131u8 , 251u8 , 164u8 , 12u8 ,]) + } + #[doc = " Light client state"] + pub fn finalized_beacon_header_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::ExtendedBeaconBlockHeader, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedBeaconHeader", + Vec::new(), + [ + 218u8, 228u8, 178u8, 233u8, 200u8, 20u8, 96u8, 4u8, + 29u8, 225u8, 232u8, 224u8, 140u8, 32u8, 92u8, + 188u8, 43u8, 104u8, 25u8, 18u8, 203u8, 23u8, 158u8, + 143u8, 109u8, 60u8, 242u8, 65u8, 131u8, 251u8, + 164u8, 12u8, + ], + ) + } + pub fn finalized_execution_header( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< ::subxt::utils::AccountId32, >, - ), - #[codec(index = 15)] - Council( - runtime_types::pallet_collective::RawOrigin< + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "FinalizedExecutionHeader" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [163u8 , 134u8 , 92u8 , 104u8 , 29u8 , 88u8 , 15u8 , 156u8 , 128u8 , 62u8 , 223u8 , 182u8 , 236u8 , 34u8 , 75u8 , 104u8 , 220u8 , 164u8 , 7u8 , 255u8 , 242u8 , 119u8 , 148u8 , 94u8 , 110u8 , 80u8 , 242u8 , 208u8 , 83u8 , 191u8 , 126u8 , 4u8 ,]) + } + pub fn finalized_execution_header_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< ::subxt::utils::AccountId32, >, - ), - #[codec(index = 2)] - Void(runtime_types::sp_core::Void), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Runtime; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RuntimeCall { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 2)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 4)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 6)] Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , # [codec (index = 8)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 9)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Call ,) , # [codec (index = 10)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Call ,) , # [codec (index = 11)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Call ,) , # [codec (index = 12)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Call ,) , # [codec (index = 13)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 14)] Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 16)] Vesting (runtime_types :: pallet_vesting :: pallet :: Call ,) , # [codec (index = 17)] Claims (runtime_types :: pallet_ecdsa_claims :: pallet :: Call ,) , # [codec (index = 18)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , # [codec (index = 19)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 20)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 21)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 23)] Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , # [codec (index = 24)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 25)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 26)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 27)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 28)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 29)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 31)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Call ,) , # [codec (index = 32)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Call ,) , # [codec (index = 33)] Currencies (runtime_types :: orml_currencies :: module :: Call ,) , # [codec (index = 34)] Tokens (runtime_types :: orml_tokens :: module :: Call ,) , # [codec (index = 35)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Call ,) , # [codec (index = 36)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Call ,) , # [codec (index = 37)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Call ,) , # [codec (index = 38)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Call ,) , # [codec (index = 39)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Call ,) , # [codec (index = 40)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Call ,) , # [codec (index = 41)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Call ,) , # [codec (index = 42)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Call ,) , # [codec (index = 43)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Call ,) , # [codec (index = 44)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Call ,) , # [codec (index = 45)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Call ,) , # [codec (index = 46)] TransactionPause (runtime_types :: pallet_transaction_pause :: module :: Call ,) , # [codec (index = 47)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 48)] Identity (runtime_types :: pallet_identity :: pallet :: Call ,) , # [codec (index = 49)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 50)] Eth2Client (runtime_types :: pallet_eth2_light_client :: pallet :: Call ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum RuntimeEvent { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 2)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 4)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 5)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 8)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 9)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Event ,) , # [codec (index = 10)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Event ,) , # [codec (index = 11)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Event ,) , # [codec (index = 12)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Event ,) , # [codec (index = 13)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 14)] Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 16)] Vesting (runtime_types :: pallet_vesting :: pallet :: Event ,) , # [codec (index = 17)] Claims (runtime_types :: pallet_ecdsa_claims :: pallet :: Event ,) , # [codec (index = 18)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , # [codec (index = 19)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 20)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 21)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 23)] Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , # [codec (index = 24)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 25)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 26)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 27)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 28)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 29)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 30)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 31)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Event ,) , # [codec (index = 32)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Event ,) , # [codec (index = 34)] Tokens (runtime_types :: orml_tokens :: module :: Event ,) , # [codec (index = 35)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Event ,) , # [codec (index = 36)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Event ,) , # [codec (index = 37)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Event ,) , # [codec (index = 38)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Event ,) , # [codec (index = 39)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Event ,) , # [codec (index = 40)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Event ,) , # [codec (index = 41)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Event ,) , # [codec (index = 42)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Event ,) , # [codec (index = 43)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Event ,) , # [codec (index = 44)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Event ,) , # [codec (index = 45)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Event ,) , # [codec (index = 46)] TransactionPause (runtime_types :: pallet_transaction_pause :: module :: Event ,) , # [codec (index = 47)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 48)] Identity (runtime_types :: pallet_identity :: pallet :: Event ,) , # [codec (index = 49)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 50)] Eth2Client (runtime_types :: pallet_eth2_light_client :: pallet :: Event ,) , } - } - pub mod webb_primitives { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod vanchor { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ExtData<_0, _1, _2, _3> { - pub recipient: _0, - pub relayer: _0, - pub ext_amount: _1, - pub fee: _2, - pub refund: _2, - pub token: _3, - pub encrypted_output1: - ::std::vec::Vec<::core::primitive::u8>, - pub encrypted_output2: - ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ProofData<_0> { - pub proof: ::std::vec::Vec<::core::primitive::u8>, - pub public_amount: _0, - pub roots: ::std::vec::Vec<_0>, - pub input_nullifiers: ::std::vec::Vec<_0>, - pub output_commitments: ::std::vec::Vec<_0>, - pub ext_data_hash: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct VAnchorMetadata<_0, _1> { - pub creator: ::core::option::Option<_0>, - pub asset: _1, - } + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedExecutionHeader", + Vec::new(), + [ + 163u8, 134u8, 92u8, 104u8, 29u8, 88u8, 15u8, 156u8, + 128u8, 62u8, 223u8, 182u8, 236u8, 34u8, 75u8, + 104u8, 220u8, 164u8, 7u8, 255u8, 242u8, 119u8, + 148u8, 94u8, 110u8, 80u8, 242u8, 208u8, 83u8, + 191u8, 126u8, 4u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct DepositDetails<_0, _1> { - pub depositor: _0, - pub deposit: _1, + pub fn current_sync_committee( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "CurrentSyncCommittee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [249u8 , 118u8 , 4u8 , 81u8 , 56u8 , 158u8 , 131u8 , 244u8 , 221u8 , 44u8 , 175u8 , 40u8 , 174u8 , 72u8 , 47u8 , 95u8 , 0u8 , 42u8 , 154u8 , 166u8 , 244u8 , 54u8 , 222u8 , 88u8 , 35u8 , 162u8 , 37u8 , 202u8 , 126u8 , 213u8 , 41u8 , 190u8 ,]) } - } - } - pub mod webb_proposals { - use super::runtime_types; - pub mod header { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct ResourceId(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum TypedChainId { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Evm(::core::primitive::u32), - #[codec(index = 2)] - Substrate(::core::primitive::u32), - #[codec(index = 3)] - PolkadotParachain(::core::primitive::u32), - #[codec(index = 4)] - KusamaParachain(::core::primitive::u32), - #[codec(index = 5)] - RococoParachain(::core::primitive::u32), - #[codec(index = 6)] - Cosmos(::core::primitive::u32), - #[codec(index = 7)] - Solana(::core::primitive::u32), - #[codec(index = 8)] - Ink(::core::primitive::u32), + pub fn current_sync_committee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "CurrentSyncCommittee", + Vec::new(), + [ + 249u8, 118u8, 4u8, 81u8, 56u8, 158u8, 131u8, 244u8, + 221u8, 44u8, 175u8, 40u8, 174u8, 72u8, 47u8, 95u8, + 0u8, 42u8, 154u8, 166u8, 244u8, 54u8, 222u8, 88u8, + 35u8, 162u8, 37u8, 202u8, 126u8, 213u8, 41u8, + 190u8, + ], + ) } - } - pub mod nonce { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct Nonce(pub ::core::primitive::u32); - } - pub mod proposal { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum Proposal<_0> { - # [codec (index = 0)] Signed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] Unsigned { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum ProposalKind { - #[codec(index = 0)] - Refresh, - #[codec(index = 1)] - ProposerSetUpdate, - #[codec(index = 2)] - EVM, - #[codec(index = 3)] - AnchorCreate, - #[codec(index = 4)] - AnchorUpdate, - #[codec(index = 5)] - TokenAdd, - #[codec(index = 6)] - TokenRemove, - #[codec(index = 7)] - WrappingFeeUpdate, - #[codec(index = 8)] - ResourceIdUpdate, - #[codec(index = 9)] - RescueTokens, - #[codec(index = 10)] - MaxDepositLimitUpdate, - #[codec(index = 11)] - MinWithdrawalLimitUpdate, - #[codec(index = 12)] - SetVerifier, - #[codec(index = 13)] - SetTreasuryHandler, - #[codec(index = 14)] - FeeRecipientUpdate, + pub fn next_sync_committee( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "NextSyncCommittee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 230u8 , 100u8 , 169u8 , 186u8 , 249u8 , 30u8 , 104u8 , 139u8 , 104u8 , 107u8 , 240u8 , 24u8 , 205u8 , 221u8 , 23u8 , 2u8 , 211u8 , 183u8 , 103u8 , 166u8 , 35u8 , 236u8 , 229u8 , 54u8 , 215u8 , 91u8 , 41u8 , 11u8 , 165u8 , 225u8 , 252u8 ,]) } - } - } - } - #[doc = r" The default error type returned when there is a runtime issue,"] - #[doc = r" exposed here for ease of use."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - pub fn constants() -> ConstantsApi { - ConstantsApi - } - pub fn storage() -> StorageApi { - StorageApi - } - pub fn tx() -> TransactionApi { - TransactionApi - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::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 authorship(&self) -> authorship::constants::ConstantsApi { - authorship::constants::ConstantsApi - } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi - } - pub fn dkg(&self) -> dkg::constants::ConstantsApi { - dkg::constants::ConstantsApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::constants::ConstantsApi { - dkg_proposals::constants::ConstantsApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::constants::ConstantsApi { - dkg_proposal_handler::constants::ConstantsApi - } - pub fn bridge_registry( - &self, - ) -> bridge_registry::constants::ConstantsApi { - bridge_registry::constants::ConstantsApi - } - pub fn indices(&self) -> indices::constants::ConstantsApi { - indices::constants::ConstantsApi - } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi - } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi - } - pub fn claims(&self) -> claims::constants::ConstantsApi { - claims::constants::ConstantsApi - } - pub fn elections(&self) -> elections::constants::ConstantsApi { - elections::constants::ConstantsApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::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 bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi - } - pub fn asset_registry( - &self, - ) -> asset_registry::constants::ConstantsApi { - asset_registry::constants::ConstantsApi - } - pub fn currencies(&self) -> currencies::constants::ConstantsApi { - currencies::constants::ConstantsApi - } - pub fn tokens(&self) -> tokens::constants::ConstantsApi { - tokens::constants::ConstantsApi - } - pub fn token_wrapper(&self) -> token_wrapper::constants::ConstantsApi { - token_wrapper::constants::ConstantsApi - } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::constants::ConstantsApi { - linkable_tree_bn254::constants::ConstantsApi - } - pub fn mixer_bn254(&self) -> mixer_bn254::constants::ConstantsApi { - mixer_bn254::constants::ConstantsApi - } - pub fn signature_bridge( - &self, - ) -> signature_bridge::constants::ConstantsApi { - signature_bridge::constants::ConstantsApi - } - pub fn v_anchor_bn254( - &self, - ) -> v_anchor_bn254::constants::ConstantsApi { - v_anchor_bn254::constants::ConstantsApi - } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi - } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi - } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi + pub fn next_sync_committee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "NextSyncCommittee", + Vec::new(), + [ + 35u8, 230u8, 100u8, 169u8, 186u8, 249u8, 30u8, + 104u8, 139u8, 104u8, 107u8, 240u8, 24u8, 205u8, + 221u8, 23u8, 2u8, 211u8, 183u8, 103u8, 166u8, 35u8, + 236u8, 229u8, 54u8, 215u8, 91u8, 41u8, 11u8, 165u8, + 225u8, 252u8, + ], + ) + } + pub fn genesis_validators_root( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 32usize], + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "GenesisValidatorsRoot" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [247u8 , 224u8 , 24u8 , 126u8 , 232u8 , 218u8 , 254u8 , 228u8 , 34u8 , 195u8 , 158u8 , 195u8 , 197u8 , 115u8 , 108u8 , 67u8 , 115u8 , 253u8 , 210u8 , 222u8 , 157u8 , 92u8 , 133u8 , 15u8 , 183u8 , 170u8 , 65u8 , 70u8 , 233u8 , 151u8 , 54u8 , 146u8 ,]) + } + pub fn genesis_validators_root_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 32usize], + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "GenesisValidatorsRoot", + Vec::new(), + [ + 247u8, 224u8, 24u8, 126u8, 232u8, 218u8, 254u8, + 228u8, 34u8, 195u8, 158u8, 195u8, 197u8, 115u8, + 108u8, 67u8, 115u8, 253u8, 210u8, 222u8, 157u8, + 92u8, 133u8, 15u8, 183u8, 170u8, 65u8, 70u8, 233u8, + 151u8, 54u8, 146u8, + ], + ) + } + pub fn bellatrix_fork_version( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 4usize], + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "BellatrixForkVersion" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [191u8 , 28u8 , 47u8 , 88u8 , 255u8 , 118u8 , 70u8 , 15u8 , 64u8 , 126u8 , 37u8 , 208u8 , 149u8 , 60u8 , 92u8 , 246u8 , 28u8 , 127u8 , 162u8 , 235u8 , 57u8 , 83u8 , 70u8 , 195u8 , 50u8 , 237u8 , 230u8 , 0u8 , 49u8 , 23u8 , 57u8 , 27u8 ,]) + } + pub fn bellatrix_fork_version_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 4usize], + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "BellatrixForkVersion", + Vec::new(), + [ + 191u8, 28u8, 47u8, 88u8, 255u8, 118u8, 70u8, 15u8, + 64u8, 126u8, 37u8, 208u8, 149u8, 60u8, 92u8, 246u8, + 28u8, 127u8, 162u8, 235u8, 57u8, 83u8, 70u8, 195u8, + 50u8, 237u8, 230u8, 0u8, 49u8, 23u8, 57u8, 27u8, + ], + ) + } + pub fn bellatrix_fork_epoch( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::webb_proposals::header::TypedChainId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("Eth2Client" , "BellatrixForkEpoch" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [245u8 , 202u8 , 36u8 , 65u8 , 145u8 , 126u8 , 3u8 , 235u8 , 6u8 , 233u8 , 182u8 , 68u8 , 45u8 , 244u8 , 38u8 , 73u8 , 188u8 , 247u8 , 26u8 , 229u8 , 228u8 , 141u8 , 83u8 , 42u8 , 222u8 , 180u8 , 2u8 , 173u8 , 168u8 , 23u8 , 41u8 , 159u8 ,]) + } + pub fn bellatrix_fork_epoch_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "BellatrixForkEpoch", + Vec::new(), + [ + 245u8, 202u8, 36u8, 65u8, 145u8, 126u8, 3u8, 235u8, + 6u8, 233u8, 182u8, 68u8, 45u8, 244u8, 38u8, 73u8, + 188u8, 247u8, 26u8, 229u8, 228u8, 141u8, 83u8, + 42u8, 222u8, 180u8, 2u8, 173u8, 168u8, 23u8, 41u8, + 159u8, + ], + ) + } + } } - pub fn eth2_client(&self) -> eth2_client::constants::ConstantsApi { - eth2_client::constants::ConstantsApi + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address< + runtime_types::frame_support::PalletId, + > { + ::subxt::constants::Address::new_static( + "Eth2Client", + "PalletId", + [ + 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, + 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, + 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, + 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, + 39u8, + ], + ) + } + } } } - pub struct StorageApi; - impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { - system::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn randomness_collective_flip( - &self, - ) -> randomness_collective_flip::storage::StorageApi { - randomness_collective_flip::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 aura(&self) -> aura::storage::StorageApi { - aura::storage::StorageApi - } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { - grandpa::storage::StorageApi - } - pub fn dkg(&self) -> dkg::storage::StorageApi { - dkg::storage::StorageApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::storage::StorageApi { - dkg_proposals::storage::StorageApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::storage::StorageApi { - dkg_proposal_handler::storage::StorageApi - } - pub fn bridge_registry(&self) -> bridge_registry::storage::StorageApi { - bridge_registry::storage::StorageApi - } - pub fn indices(&self) -> indices::storage::StorageApi { - indices::storage::StorageApi - } - pub fn democracy(&self) -> democracy::storage::StorageApi { - democracy::storage::StorageApi - } - pub fn council(&self) -> council::storage::StorageApi { - council::storage::StorageApi - } - pub fn vesting(&self) -> vesting::storage::StorageApi { - vesting::storage::StorageApi - } - pub fn claims(&self) -> claims::storage::StorageApi { - claims::storage::StorageApi - } - pub fn elections(&self) -> elections::storage::StorageApi { - elections::storage::StorageApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi { - election_provider_multi_phase::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn treasury(&self) -> treasury::storage::StorageApi { - treasury::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 bags_list(&self) -> bags_list::storage::StorageApi { - bags_list::storage::StorageApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi + pub mod runtime_types { + use super::runtime_types; + pub mod bounded_collections { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedBTreeMap<_0, _1>( + pub ::subxt::utils::KeyedVec<_0, _1>, + ); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi + pub mod dkg_runtime_primitives { + use super::runtime_types; + pub mod crypto { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub runtime_types::sp_core::ecdsa::Public); + } + pub mod proposal { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DKGPayloadKey { + #[codec(index = 0)] + EVMProposal(runtime_types::webb_proposals::nonce::Nonce), + #[codec(index = 1)] + RefreshVote(runtime_types::webb_proposals::nonce::Nonce), + #[codec(index = 2)] + ProposerSetUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 3)] + AnchorCreateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 4)] + AnchorUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 5)] + TokenAddProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 6)] + TokenRemoveProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 7)] + WrappingFeeUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 8)] + ResourceIdUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 9)] + RescueTokensProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 10)] + MaxDepositLimitUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 11)] + MinWithdrawalLimitUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 12)] + SetVerifierProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 13)] + SetTreasuryHandlerProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + #[codec(index = 14)] + FeeRecipientUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RefreshProposalSigned { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub signature: ::std::vec::Vec<::core::primitive::u8>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct StoredUnsignedProposal<_0, _1> { + pub proposal: + runtime_types::webb_proposals::proposal::Proposal<_1>, + pub timestamp: _0, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AggregatedMisbehaviourReports < _0 , _1 , _2 > { pub misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , pub session_id : :: core :: primitive :: u64 , pub offender : _0 , pub reporters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub signatures : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_1 , _2) > } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AggregatedPublicKeys { + pub keys_and_signatures: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CustomU32Getter; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MisbehaviourType { + #[codec(index = 0)] + Keygen, + #[codec(index = 1)] + Sign, + } } - pub fn preimage(&self) -> preimage::storage::StorageApi { - preimage::storage::StorageApi + pub mod eth_types { + use super::runtime_types; + pub mod eth2 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BeaconBlockHeader { + pub slot: ::core::primitive::u64, + pub proposer_index: ::core::primitive::u64, + pub parent_root: runtime_types::eth_types::H256, + pub state_root: runtime_types::eth_types::H256, + pub body_root: runtime_types::eth_types::H256, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExtendedBeaconBlockHeader { + pub header: + runtime_types::eth_types::eth2::BeaconBlockHeader, + pub beacon_block_root: runtime_types::eth_types::H256, + pub execution_block_hash: runtime_types::eth_types::H256, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FinalizedHeaderUpdate { + pub header_update: + runtime_types::eth_types::eth2::HeaderUpdate, + pub finality_branch: + ::std::vec::Vec, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct HeaderUpdate { + pub beacon_header: + runtime_types::eth_types::eth2::BeaconBlockHeader, + pub execution_block_hash: runtime_types::eth_types::H256, + pub execution_hash_branch: + ::std::vec::Vec, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct LightClientUpdate { + pub attested_beacon_header: + runtime_types::eth_types::eth2::BeaconBlockHeader, + pub sync_aggregate: + runtime_types::eth_types::eth2::SyncAggregate, + pub signature_slot: ::core::primitive::u64, + pub finality_update: + runtime_types::eth_types::eth2::FinalizedHeaderUpdate, + pub sync_committee_update: ::core::option::Option< + runtime_types::eth_types::eth2::SyncCommitteeUpdate, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PublicKeyBytes(pub [::core::primitive::u8; 48usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SignatureBytes(pub [::core::primitive::u8; 96usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SyncAggregate { + pub sync_committee_bits: + runtime_types::eth_types::eth2::SyncCommitteeBits, + pub sync_committee_signature: + runtime_types::eth_types::eth2::SignatureBytes, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SyncCommittee { + pub pubkeys: + runtime_types::eth_types::eth2::SyncCommitteePublicKeys, + pub aggregate_pubkey: + runtime_types::eth_types::eth2::PublicKeyBytes, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SyncCommitteeBits( + pub [::core::primitive::u8; 64usize], + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SyncCommitteePublicKeys( + pub ::std::vec::Vec< + runtime_types::eth_types::eth2::PublicKeyBytes, + >, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SyncCommitteeUpdate { + pub next_sync_committee: + runtime_types::eth_types::eth2::SyncCommittee, + pub next_sync_committee_branch: + ::std::vec::Vec, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExecutionHeaderInfo<_0> { + pub parent_hash: ::subxt::utils::H256, + pub block_number: ::core::primitive::u64, + pub submitter: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct InitInput < _0 > { pub finalized_execution_header : runtime_types :: eth_types :: BlockHeader , pub finalized_beacon_header : runtime_types :: eth_types :: eth2 :: ExtendedBeaconBlockHeader , pub current_sync_committee : runtime_types :: eth_types :: eth2 :: SyncCommittee , pub next_sync_committee : runtime_types :: eth_types :: eth2 :: SyncCommittee , pub validate_updates : :: core :: primitive :: bool , pub verify_bls_signatures : :: core :: primitive :: bool , pub hashes_gc_threshold : :: core :: primitive :: u64 , pub max_submitted_blocks_by_account : :: core :: primitive :: u32 , pub trusted_signer : :: core :: option :: Option < _0 > , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BlockHeader { + pub parent_hash: runtime_types::eth_types::H256, + pub uncles_hash: runtime_types::eth_types::H256, + pub author: runtime_types::eth_types::H160, + pub state_root: runtime_types::eth_types::H256, + pub transactions_root: runtime_types::eth_types::H256, + pub receipts_root: runtime_types::eth_types::H256, + pub log_bloom: runtime_types::eth_types::Bloom, + pub difficulty: runtime_types::eth_types::U256, + pub number: ::core::primitive::u64, + pub gas_limit: runtime_types::eth_types::U256, + pub gas_used: runtime_types::eth_types::U256, + pub timestamp: ::core::primitive::u64, + pub extra_data: ::std::vec::Vec<::core::primitive::u8>, + pub mix_hash: runtime_types::eth_types::H256, + pub nonce: runtime_types::eth_types::H64, + pub base_fee_per_gas: ::core::primitive::u64, + pub hash: + ::core::option::Option, + pub partial_hash: + ::core::option::Option, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bloom(pub runtime_types::ethbloom::Bloom); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H160(pub ::subxt::utils::H160); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H256(pub ::subxt::utils::H256); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H64(pub runtime_types::ethereum_types::hash::H64); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct U256(pub runtime_types::primitive_types::U256); } - pub fn offences(&self) -> offences::storage::StorageApi { - offences::storage::StorageApi + pub mod ethbloom { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bloom(pub [::core::primitive::u8; 256usize]); } - pub fn hasher_bn254(&self) -> hasher_bn254::storage::StorageApi { - hasher_bn254::storage::StorageApi + pub mod ethereum_types { + use super::runtime_types; + pub mod hash { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct H64(pub [::core::primitive::u8; 8usize]); + } } - pub fn asset_registry(&self) -> asset_registry::storage::StorageApi { - asset_registry::storage::StorageApi + pub mod finality_grandpa { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } } - pub fn tokens(&self) -> tokens::storage::StorageApi { - tokens::storage::StorageApi + pub mod frame_support { + use super::runtime_types; + pub mod dispatch { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DispatchClass { + #[codec(index = 0)] + Normal, + #[codec(index = 1)] + Operational, + #[codec(index = 2)] + Mandatory, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Pays { + #[codec(index = 0)] + Yes, + #[codec(index = 1)] + No, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Root, + #[codec(index = 1)] + Signed(_0), + #[codec(index = 2)] + None, + } + } + pub mod traits { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WrapperOpaque<_0>( + #[codec(compact)] pub ::core::primitive::u32, + pub _0, + ); + } + pub mod preimages { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Bounded<_0> { + # [codec (index = 0)] Legacy { hash : :: subxt :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } + } + pub mod tokens { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum BalanceStatus { + #[codec(index = 0)] + Free, + #[codec(index = 1)] + Reserved, + } + } + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PalletId(pub [::core::primitive::u8; 8usize]); } - pub fn token_wrapper(&self) -> token_wrapper::storage::StorageApi { - token_wrapper::storage::StorageApi + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckGenesis; + } + pub mod check_mortality { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckNonZeroSender; + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckNonce( + #[codec(compact)] pub ::core::primitive::u32, + ); + } + pub mod check_spec_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckSpecVersion; + } + pub mod check_tx_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckTxVersion; + } + pub mod check_weight { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckWeight; + } + } + pub mod limits { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`"] + remark { + remark: ::std::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."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + set_code { + code: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 3)] + #[doc = "Set the new runtime code without doing any checks of the given `code`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(C)` where `C` length of `code`"] + set_code_without_checks { + code: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 4)] + #[doc = "Set some items of storage."] + set_storage { + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + }, + #[codec(index = 5)] + #[doc = "Kill some items from storage."] + kill_storage { + keys: ::std::vec::Vec< + ::std::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: ::std::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: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the 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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Event 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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountInfo<_0, _1> { + pub nonce: _0, + pub consumers: _0, + pub providers: _0, + pub sufficients: _0, + pub data: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EventRecord<_0, _1> { + pub phase: runtime_types::frame_system::Phase, + pub event: _0, + pub topics: ::std::vec::Vec<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LastRuntimeUpgradeInfo { + #[codec(compact)] + pub spec_version: ::core::primitive::u32, + pub spec_name: ::std::string::String, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase { + #[codec(index = 0)] + ApplyExtrinsic(::core::primitive::u32), + #[codec(index = 1)] + Finalization, + #[codec(index = 2)] + Initialization, + } } - pub fn mixer_verifier_bn254( - &self, - ) -> mixer_verifier_bn254::storage::StorageApi { - mixer_verifier_bn254::storage::StorageApi + pub mod orml_currencies { + use super::runtime_types; + pub mod module { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Transfer some balance to another account under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Transfer some native currency to another account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + transfer_native_currency { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "update amount of account `who` under `currency_id`."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + update_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + amount: ::core::primitive::i128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Unable to convert the Amount type into Balance."] + AmountIntoBalanceFailed, + #[codec(index = 1)] + #[doc = "Balance is too low."] + BalanceTooLow, + #[codec(index = 2)] + #[doc = "Deposit result is not expected"] + DepositFailed, + } + } } - pub fn merkle_tree_bn254( - &self, - ) -> merkle_tree_bn254::storage::StorageApi { - merkle_tree_bn254::storage::StorageApi + pub mod orml_tokens { + use super::runtime_types; + pub mod module { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] + #[doc = "It will decrease the total issuance of the system by the"] + #[doc = "`TransferFee`. If the sender's account is below the existential"] + #[doc = "deposit as a result of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Transfer all remaining balance to the given account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_"] + #[doc = "balances. This means that any locked, reserved, or existential"] + #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] + #[doc = "this function. To ensure that this function results in a killed"] + #[doc = "account, you might need to prepare the account by removing any"] + #[doc = "reference counters, storage deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] + #[doc = " operation should send all of the funds the account has, causing"] + #[doc = " the sender account to be killed (false), or transfer everything"] + #[doc = " except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true)."] + transfer_all { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + keep_alive: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] + #[doc = "will not kill the origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the"] + #[doc = "transactor."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Exactly as `transfer`, except the origin must be root and the source"] + #[doc = "account may be specified."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The sender of the transfer."] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `currency_id`: currency type."] + #[doc = "- `amount`: free balance amount to tranfer."] + force_transfer { + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] + #[doc = "will also decrease the total issuance of the system"] + #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] + #[doc = "existential deposit, it will reap the `AccountInfo`."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + currency_id: ::core::primitive::u32, + #[codec(compact)] + new_free: ::core::primitive::u128, + #[codec(compact)] + new_reserved: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "The balance is too low"] + BalanceTooLow, + #[codec(index = 1)] + #[doc = "Cannot convert Amount into Balance type"] + AmountIntoBalanceFailed, + #[codec(index = 2)] + #[doc = "Failed because liquidity restrictions due to locking"] + LiquidityRestrictions, + #[codec(index = 3)] + #[doc = "Failed because the maximum locks was exceeded"] + MaxLocksExceeded, + #[codec(index = 4)] + #[doc = "Transfer/payment would kill account"] + KeepAlive, + #[codec(index = 5)] + #[doc = "Value too low to create account due to existential deposit"] + ExistentialDeposit, + #[codec(index = 6)] + #[doc = "Beneficiary account must pre-exist"] + DeadAccount, + #[codec(index = 7)] + TooManyReserves, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below"] # [doc = "ExistentialDeposit, resulting in an outright loss."] DustLost { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some reserved balance was repatriated (moved from reserved to"] # [doc = "another account)."] ReserveRepatriated { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 6)] # [doc = "A balance was set by root."] BalanceSet { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "The total issuance of an currency has been set"] TotalIssuanceSet { currency_id : :: core :: primitive :: u32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] Withdrawn { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some balances were slashed (e.g. due to mis-behavior)"] Slashed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free_amount : :: core :: primitive :: u128 , reserved_amount : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Deposited some balance into an account"] Deposited { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Some funds are locked"] LockSet { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "Some locked funds were unlocked"] LockRemoved { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "Some free balance was locked."] Locked { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 14)] # [doc = "Some locked balance was freed."] Unlocked { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub frozen: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::storage::StorageApi { - linkable_tree_bn254::storage::StorageApi + pub mod pallet_asset_registry { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Register a new asset."] # [doc = ""] # [doc = "Asset is identified by `name` and the name must not be used to"] # [doc = "register another asset."] # [doc = ""] # [doc = "New asset is given `NextAssetId` - sequential asset id"] # [doc = ""] # [doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] # [doc = "be retrieved by name too (Note: this approach is used in AMM"] # [doc = "implementation (xyk))"] # [doc = ""] # [doc = "Emits 'Registered` event when successful."] register { name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , existential_deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Update registered asset."] # [doc = ""] # [doc = "Updates also mapping between name and asset id if provided name is"] # [doc = "different than currently registered."] # [doc = ""] # [doc = "Emits `Updated` event when successful."] update { asset_id : :: core :: primitive :: u32 , bounded_name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } , # [codec (index = 2)] # [doc = "Set metadata for an asset."] # [doc = ""] # [doc = "- `asset_id`: Asset identifier."] # [doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] # [doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] # [doc = ""] # [doc = "Emits `MetadataSet` event when successful."] set_metadata { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Set asset native location."] # [doc = ""] # [doc = "Adds mapping between native location and local asset id and vice"] # [doc = "versa."] # [doc = ""] # [doc = "Mainly used in XCM."] # [doc = ""] # [doc = "Emits `LocationSet` event when successful."] set_location { asset_id : :: core :: primitive :: u32 , location : () , } , # [codec (index = 4)] # [doc = "Add an asset to an existing pool."] add_asset_to_pool { pool : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Remove an asset from an existing pool."] delete_asset_from_pool { pool : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Asset Id is not available. This only happens when it reaches the MAX"] + #[doc = "value of given id type."] + NoIdAvailable, + #[codec(index = 1)] + #[doc = "Invalid asset name or symbol."] + AssetNotFound, + #[codec(index = 2)] + #[doc = "Invalid asset name or symbol."] + TooLong, + #[codec(index = 3)] + #[doc = "Asset ID is not registered in the asset-registry."] + AssetNotRegistered, + #[codec(index = 4)] + #[doc = "Asset is already registered."] + AssetAlreadyRegistered, + #[codec(index = 5)] + #[doc = "Incorrect number of assets provided to create shared asset."] + InvalidSharedAssetLen, + #[codec(index = 6)] + #[doc = "Asset exists in to pool"] + AssetExistsInPool, + #[codec(index = 7)] + #[doc = "Asset not found in pool"] + AssetNotFoundInPool, + #[codec(index = 8)] + #[doc = "Max number of assets in pool is reached"] + MaxAssetIdInPoolReached, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Asset was registered."] Registered { asset_id : :: core :: primitive :: u32 , name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } , # [codec (index = 1)] # [doc = "Asset was updated."] Updated { asset_id : :: core :: primitive :: u32 , name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: MaxAssetIdInPool > , } , # [codec (index = 2)] # [doc = "Metadata set for an asset."] MetadataSet { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Native location set for an asset."] LocationSet { asset_id : :: core :: primitive :: u32 , location : () , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetDetails<_0, _1, _2, _3> { + pub name: _2, + pub asset_type: + runtime_types::pallet_asset_registry::types::AssetType< + _0, + _3, + >, + pub existential_deposit: _1, + pub locked: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct AssetMetadata<_0> { + pub symbol: _0, + pub decimals: ::core::primitive::u8, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum AssetType<_0, _1> { + # [codec (index = 0)] Token , # [codec (index = 1)] PoolShare (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > ,) , __Ignore (:: core :: marker :: PhantomData < _1 >) , } + } } - pub fn mixer_bn254(&self) -> mixer_bn254::storage::StorageApi { - mixer_bn254::storage::StorageApi + pub mod pallet_bags_list { + use super::runtime_types; + pub mod list { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Bag { + pub head: + ::core::option::Option<::subxt::utils::AccountId32>, + pub tail: + ::core::option::Option<::subxt::utils::AccountId32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ListError { + #[codec(index = 0)] + Duplicate, + #[codec(index = 1)] + NotHeavier, + #[codec(index = 2)] + NotInSameBag, + #[codec(index = 3)] + NodeNotFound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Node { + pub id: ::subxt::utils::AccountId32, + pub prev: + ::core::option::Option<::subxt::utils::AccountId32>, + pub next: + ::core::option::Option<::subxt::utils::AccountId32>, + pub bag_upper: ::core::primitive::u64, + pub score: ::core::primitive::u64, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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`."] + #[doc = ""] + #[doc = "Only works if"] + #[doc = "- both nodes are within the same bag,"] + #[doc = "- and `origin` has a greater `Score` than `lighter`."] + put_in_front_of { + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "A error in the list interface implementation."] + List(runtime_types::pallet_bags_list::list::ListError), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Moved an account from one bag to another."] + Rebagged { + who: ::subxt::utils::AccountId32, + from: ::core::primitive::u64, + to: ::core::primitive::u64, + }, + #[codec(index = 1)] + #[doc = "Updated the score of some account to the given amount."] + ScoreUpdated { + who: ::subxt::utils::AccountId32, + new_score: ::core::primitive::u64, + }, + } + } } - pub fn signature_bridge( - &self, - ) -> signature_bridge::storage::StorageApi { - signature_bridge::storage::StorageApi + pub mod pallet_balances { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` 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."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] + #[doc = " types. See related functions below."] + #[doc = "- It contains a limited number of reads and writes internally and no complex"] + #[doc = " computation."] + #[doc = ""] + #[doc = "Related functions:"] + #[doc = ""] + #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] + #[doc = " - Transferring balances to accounts that did not exist before will cause"] + #[doc = " `T::OnNewAccount::on_new_account` to be called."] + #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] + #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] + #[doc = " that the transfer will not kill the origin account."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] + #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] + #[doc = "If the new free or reserved balance is below the existential deposit,"] + #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + new_free: ::core::primitive::u128, + #[codec(compact)] + new_reserved: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] + #[doc = "specified."] + #[doc = "## Complexity"] + #[doc = "- Same as transfer, but additional read and write because the source account is not"] + #[doc = " assumed to be in the overlay."] + force_transfer { + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] + #[doc = "origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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). ## Complexity"] + #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] + transfer_all { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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"] + KeepAlive, + #[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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub misc_frozen: _0, + pub fee_frozen: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::Reasons, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } } - pub fn v_anchor_bn254(&self) -> v_anchor_bn254::storage::StorageApi { - v_anchor_bn254::storage::StorageApi + pub mod pallet_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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: ::std::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 = "Assign 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "A bounty is claimed by beneficiary."] + BountyClaimed { + index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::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 }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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 fn v_anchor_handler_bn254( - &self, - ) -> v_anchor_handler_bn254::storage::StorageApi { - v_anchor_handler_bn254::storage::StorageApi + pub mod pallet_bridge_registry { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_metadata { bridge_index : :: core :: primitive :: u32 , info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } , # [codec (index = 1)] force_reset_indices { resource_ids : :: std :: vec :: Vec < runtime_types :: webb_proposals :: header :: ResourceId > , bridge_index : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + ParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during verification"] + VerifyError, + #[codec(index = 2)] + #[doc = "Proposal is not signed and should not be processed"] + ProposalNotSigned, + #[codec(index = 3)] + #[doc = "Resources map to different bridge indices"] + BridgeIndexError, + #[codec(index = 4)] + #[doc = "Too many additional fields."] + TooManyFields, + #[codec(index = 5)] + #[doc = "Bridge does not exist."] + BridgeNotFound, + #[codec(index = 6)] + #[doc = "Too many resources."] + TooManyResources, + #[codec(index = 7)] + #[doc = "Input out of bounds"] + OutOfBounds, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BridgeInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_bridge_registry :: types :: SerdeData , runtime_types :: pallet_bridge_registry :: types :: SerdeData ,) > , pub display : runtime_types :: pallet_bridge_registry :: types :: SerdeData , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BridgeMetadata { pub resource_ids : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: webb_proposals :: header :: ResourceId > , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SerdeData( + pub runtime_types::pallet_identity::types::Data, + ); + } } - pub fn token_wrapper_handler( - &self, - ) -> token_wrapper_handler::storage::StorageApi { - token_wrapper_handler::storage::StorageApi + pub mod pallet_child_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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: ::std::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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::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::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A child-bounty is cancelled."] + Canceled { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChildBounty<_0, _1, _2> { + pub parent_bounty: _2, + pub value: _1, + pub fee: _1, + pub curator_deposit: _1, + pub status: + runtime_types::pallet_child_bounties::ChildBountyStatus< + _0, + _2, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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 fn key_storage(&self) -> key_storage::storage::StorageApi { - key_storage::storage::StorageApi + pub mod pallet_collective { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Set the collective's membership."] # [doc = ""] # [doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] # [doc = "- `prime`: The prime member whose vote sets the default."] # [doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] # [doc = " weight estimation."] # [doc = ""] # [doc = "The dispatch of this call must be `SetMembersOrigin`."] # [doc = ""] # [doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] # [doc = " the weight estimations rely on it to estimate dispatchable weight."] # [doc = ""] # [doc = "# WARNING:"] # [doc = ""] # [doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] # [doc = "implementation of the trait [`ChangeMembers`]."] # [doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] # [doc = "with other logic managing the member set."] # [doc = ""] # [doc = "## Complexity:"] # [doc = "- `O(MP + N)` where:"] # [doc = " - `M` old-members-count (code- and governance-bounded)"] # [doc = " - `N` new-members-count (code- and governance-bounded)"] # [doc = " - `P` proposals-count (code-bounded)"] set_members { new_members : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , prime : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , old_count : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Dispatch a proposal from a member using the `Member` origin."] # [doc = ""] # [doc = "Origin must be a member of the collective."] # [doc = ""] # [doc = "## Complexity:"] # [doc = "- `O(B + M + P)` where:"] # [doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = "- `M` members-count (code-bounded)"] # [doc = "- `P` complexity of dispatching `proposal`"] execute { proposal : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Add a new proposal to either be voted on or executed directly."] # [doc = ""] # [doc = "Requires the sender to be member."] # [doc = ""] # [doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] # [doc = "or put up for voting."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] # [doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = " - `M` is members-count (code- and governance-bounded)"] # [doc = " - branching is influenced by `threshold` where:"] # [doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] # [doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] propose { # [codec (compact)] threshold : :: core :: primitive :: u32 , proposal : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Add an aye or nay vote for the sender to the given proposal."] # [doc = ""] # [doc = "Requires the sender to be a member."] # [doc = ""] # [doc = "Transaction fees will be waived if the member is voting on any particular proposal"] # [doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] # [doc = "fee."] # [doc = "## Complexity"] # [doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] vote { proposal : :: subxt :: utils :: H256 , # [codec (compact)] index : :: core :: primitive :: u32 , approve : :: core :: primitive :: bool , } , # [codec (index = 4)] # [doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] # [doc = ""] # [doc = "May be called by any signed account in order to finish voting and close the proposal."] # [doc = ""] # [doc = "If called before the end of the voting period it will only close the vote if it is"] # [doc = "has enough votes to be approved or disapproved."] # [doc = ""] # [doc = "If called after the end of the voting period abstentions are counted as rejections"] # [doc = "unless there is a prime member set and the prime member cast an approval."] # [doc = ""] # [doc = "If the close operation completes successfully with disapproval, the transaction fee will"] # [doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] # [doc = ""] # [doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] # [doc = "proposal."] # [doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] # [doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(B + M + P1 + P2)` where:"] # [doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = " - `M` is members-count (code- and governance-bounded)"] # [doc = " - `P1` is the complexity of `proposal` preimage."] # [doc = " - `P2` is proposal-count (code-bounded)"] close_old_weight { proposal_hash : :: subxt :: utils :: H256 , # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] proposal_weight_bound : runtime_types :: sp_weights :: OldWeight , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] # [doc = "state."] # [doc = ""] # [doc = "Must be called by the Root origin."] # [doc = ""] # [doc = "Parameters:"] # [doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(P) where P is the number of max proposals"] disapprove_proposal { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 6)] # [doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] # [doc = ""] # [doc = "May be called by any signed account in order to finish voting and close the proposal."] # [doc = ""] # [doc = "If called before the end of the voting period it will only close the vote if it is"] # [doc = "has enough votes to be approved or disapproved."] # [doc = ""] # [doc = "If called after the end of the voting period abstentions are counted as rejections"] # [doc = "unless there is a prime member set and the prime member cast an approval."] # [doc = ""] # [doc = "If the close operation completes successfully with disapproval, the transaction fee will"] # [doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] # [doc = ""] # [doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] # [doc = "proposal."] # [doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] # [doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(B + M + P1 + P2)` where:"] # [doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] # [doc = " - `M` is members-count (code- and governance-bounded)"] # [doc = " - `P1` is the complexity of `proposal` preimage."] # [doc = " - `P2` is proposal-count (code-bounded)"] close { proposal_hash : :: subxt :: utils :: H256 , # [codec (compact)] index : :: core :: primitive :: u32 , proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight , # [codec (compact)] length_bound : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account is not a member"] + NotMember, + #[codec(index = 1)] + #[doc = "Duplicate proposals not allowed"] + DuplicateProposal, + #[codec(index = 2)] + #[doc = "Proposal must exist"] + ProposalMissing, + #[codec(index = 3)] + #[doc = "Mismatched index"] + WrongIndex, + #[codec(index = 4)] + #[doc = "Duplicate vote ignored"] + DuplicateVote, + #[codec(index = 5)] + #[doc = "Members are already initialized!"] + AlreadyInitialized, + #[codec(index = 6)] + #[doc = "The close call was made too early, before the end of the voting."] + TooEarly, + #[codec(index = 7)] + #[doc = "There can only be a maximum of `MaxProposals` active proposals."] + TooManyProposals, + #[codec(index = 8)] + #[doc = "The given weight bound for the proposal was too low."] + WrongProposalWeight, + #[codec(index = 9)] + #[doc = "The given length bound for the proposal was too low."] + WrongProposalLength, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + Proposed { + account: ::subxt::utils::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::utils::H256, + threshold: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + Voted { + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "A motion was approved by the required threshold."] + Approved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + #[doc = "A motion was not approved by the required threshold."] + Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + Executed { + proposal_hash: ::subxt::utils::H256, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 5)] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + MemberExecuted { + proposal_hash: ::subxt::utils::H256, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 6)] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + Closed { + proposal_hash: ::subxt::utils::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Members(::core::primitive::u32, ::core::primitive::u32), + #[codec(index = 1)] + Member(_0), + #[codec(index = 2)] + _Phantom, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Votes<_0, _1> { + pub index: _1, + pub threshold: _1, + pub ayes: ::std::vec::Vec<_0>, + pub nays: ::std::vec::Vec<_0>, + pub end: _1, + } } - pub fn v_anchor_verifier( - &self, - ) -> v_anchor_verifier::storage::StorageApi { - v_anchor_verifier::storage::StorageApi + pub mod pallet_democracy { + use super::runtime_types; + pub mod conviction { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Conviction { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Locked1x, + #[codec(index = 2)] + Locked2x, + #[codec(index = 3)] + Locked3x, + #[codec(index = 4)] + Locked4x, + #[codec(index = 5)] + Locked5x, + #[codec(index = 6)] + Locked6x, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Propose a sensitive action to be taken."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender must"] # [doc = "have funds to cover the deposit."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the proposal preimage."] # [doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] # [doc = ""] # [doc = "Emits `Proposed`."] propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Signals agreement with a particular proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender"] # [doc = "must have funds to cover the deposit, equal to the original deposit."] # [doc = ""] # [doc = "- `proposal`: The index of the proposal to second."] second { # [codec (compact)] proposal : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] # [doc = "- `vote`: The vote configuration."] vote { # [codec (compact)] ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 3)] # [doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancellationOrigin`."] # [doc = ""] # [doc = "-`ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "Weight: `O(1)`."] emergency_cancel { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `ExternalOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] # [doc = "an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_majority { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] # [doc = "schedule an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_default { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] # [doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] # [doc = "but it is not a majority-carries referendum then it fails."] # [doc = ""] # [doc = "The dispatch of this call must be `FastTrackOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the current external proposal."] # [doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] # [doc = "\tMust be always greater than zero."] # [doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] # [doc = "- `delay`: The number of block after voting has ended in approval and this should be"] # [doc = " enacted. This doesn't have a minimum amount."] # [doc = ""] # [doc = "Emits `Started`."] # [doc = ""] # [doc = "Weight: `O(1)`"] fast_track { proposal_hash : :: subxt :: utils :: H256 , voting_period : :: core :: primitive :: u32 , delay : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Veto and blacklist the external proposal hash."] # [doc = ""] # [doc = "The dispatch origin of this call must be `VetoOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] # [doc = ""] # [doc = "Emits `Vetoed`."] # [doc = ""] # [doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Remove a referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "- `ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "# Weight: `O(1)`."] cancel_referendum { # [codec (compact)] ref_index : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Delegate the voting power (with some given conviction) of the sending account."] # [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/consolidated"] # [doc = " through `reap_vote` or `unvote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [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 referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] delegate { to : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , balance : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Undelegate the voting power of the sending account."] # [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."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] undelegate , # [codec (index = 12)] # [doc = "Clears all public proposals."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "Weight: `O(1)`."] clear_public_proposals , # [codec (index = 13)] # [doc = "Unlock tokens that have an expired lock."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] unlock { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove a vote for a referendum."] # [doc = ""] # [doc = "If:"] # [doc = "- the referendum was cancelled, or"] # [doc = "- the referendum is ongoing, or"] # [doc = "- the referendum 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 referendum 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 referendum `index`."] # [doc = ""] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_vote { index : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Remove a vote for a referendum."] # [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 referendum was cancelled, because the voter lost the referendum 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"] # [doc = " referendum `index`."] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , index : :: core :: primitive :: u32 , } , # [codec (index = 16)] # [doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] # [doc = "proposed again."] # [doc = ""] # [doc = "If called on a queued public or external proposal, then this will result in it being"] # [doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] # [doc = "then it will be cancelled."] # [doc = ""] # [doc = "The dispatch origin of this call must be `BlacklistOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] # [doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] # [doc = "cancelled."] # [doc = ""] # [doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] # [doc = " reasonable value)."] blacklist { proposal_hash : :: subxt :: utils :: H256 , maybe_ref_index : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 17)] # [doc = "Remove a proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] # [doc = ""] # [doc = "- `prop_index`: The index of the proposal to cancel."] # [doc = ""] # [doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { # [codec (compact)] prop_index : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "Set or clear a metadata of a proposal or a referendum."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: Must correspond to the `MetadataOwner`."] # [doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] # [doc = " threshold."] # [doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] # [doc = " threshold."] # [doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] # [doc = " threshold."] # [doc = " - `Signed` by a creator for a public proposal."] # [doc = " - `Signed` to clear a metadata for a finished referendum."] # [doc = " - `Root` to set a metadata for an ongoing referendum."] # [doc = "- `owner`: an identifier of a metadata owner."] # [doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] set_metadata { owner : runtime_types :: pallet_democracy :: types :: MetadataOwner , maybe_hash : :: core :: option :: Option < :: subxt :: utils :: H256 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Value too low"] + ValueLow, + #[codec(index = 1)] + #[doc = "Proposal does not exist"] + ProposalMissing, + #[codec(index = 2)] + #[doc = "Cannot cancel the same proposal twice"] + AlreadyCanceled, + #[codec(index = 3)] + #[doc = "Proposal already made"] + DuplicateProposal, + #[codec(index = 4)] + #[doc = "Proposal still blacklisted"] + ProposalBlacklisted, + #[codec(index = 5)] + #[doc = "Next external proposal not simple majority"] + NotSimpleMajority, + #[codec(index = 6)] + #[doc = "Invalid hash"] + InvalidHash, + #[codec(index = 7)] + #[doc = "No external proposal"] + NoProposal, + #[codec(index = 8)] + #[doc = "Identity may not veto a proposal twice"] + AlreadyVetoed, + #[codec(index = 9)] + #[doc = "Vote given for invalid referendum"] + ReferendumInvalid, + #[codec(index = 10)] + #[doc = "No proposals waiting"] + NoneWaiting, + #[codec(index = 11)] + #[doc = "The given account did not vote on the referendum."] + NotVoter, + #[codec(index = 12)] + #[doc = "The actor has no permission to conduct the action."] + NoPermission, + #[codec(index = 13)] + #[doc = "The account is already delegating."] + AlreadyDelegating, + #[codec(index = 14)] + #[doc = "Too high a balance was provided that the account cannot afford."] + InsufficientFunds, + #[codec(index = 15)] + #[doc = "The account is not currently delegating."] + NotDelegating, + #[codec(index = 16)] + #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] + #[doc = "these are removed, either through `unvote` or `reap_vote`."] + VotesExist, + #[codec(index = 17)] + #[doc = "The instant referendum origin is currently disallowed."] + InstantNotAllowed, + #[codec(index = 18)] + #[doc = "Delegation to oneself makes no sense."] + Nonsense, + #[codec(index = 19)] + #[doc = "Invalid upper bound."] + WrongUpperBound, + #[codec(index = 20)] + #[doc = "Maximum number of votes reached."] + MaxVotesReached, + #[codec(index = 21)] + #[doc = "Maximum number of items reached."] + TooMany, + #[codec(index = 22)] + #[doc = "Voting period too low"] + VotingPeriodLow, + #[codec(index = 23)] + #[doc = "The preimage does not exist."] + PreimageNotExist, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "A motion has been proposed by a public account."] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "An external proposal has been tabled."] ExternalTabled , # [codec (index = 3)] # [doc = "A referendum has begun."] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] # [doc = "A proposal has been approved by referendum."] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proposal has been rejected by referendum."] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A referendum has been cancelled."] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "An account has delegated their vote to another account."] Delegated { who : :: subxt :: utils :: AccountId32 , target : :: subxt :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An account has cancelled a previous delegation operation."] Undelegated { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An external proposal has been vetoed."] Vetoed { who : :: subxt :: utils :: AccountId32 , proposal_hash : :: subxt :: utils :: H256 , until : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 11)] # [doc = "An account has voted in a referendum"] Voted { voter : :: subxt :: utils :: AccountId32 , ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 12)] # [doc = "An account has secconded a proposal"] Seconded { seconder : :: subxt :: utils :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , # [codec (index = 13)] # [doc = "A proposal got canceled."] ProposalCanceled { prop_index : :: core :: primitive :: u32 , } , # [codec (index = 14)] # [doc = "Metadata for a proposal or a referendum has been set."] MetadataSet { owner : runtime_types :: pallet_democracy :: types :: MetadataOwner , hash : :: subxt :: utils :: H256 , } , # [codec (index = 15)] # [doc = "Metadata for a proposal or a referendum has been cleared."] MetadataCleared { owner : runtime_types :: pallet_democracy :: types :: MetadataOwner , hash : :: subxt :: utils :: H256 , } , # [codec (index = 16)] # [doc = "Metadata has been transferred to new owner."] MetadataTransferred { prev_owner : runtime_types :: pallet_democracy :: types :: MetadataOwner , owner : runtime_types :: pallet_democracy :: types :: MetadataOwner , hash : :: subxt :: utils :: H256 , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Delegations<_0> { + pub votes: _0, + pub capital: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum MetadataOwner { + #[codec(index = 0)] + External, + #[codec(index = 1)] + Proposal(::core::primitive::u32), + #[codec(index = 2)] + Referendum(::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ReferendumInfo<_0, _1, _2> { + # [codec (index = 0)] Ongoing (runtime_types :: pallet_democracy :: types :: ReferendumStatus < _0 , _1 , _2 > ,) , # [codec (index = 1)] Finished { approved : :: core :: primitive :: bool , end : _0 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ReferendumStatus < _0 , _1 , _2 > { pub end : _0 , pub proposal : _1 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , pub delay : _0 , pub tally : runtime_types :: pallet_democracy :: types :: Tally < _2 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Tally<_0> { + pub ayes: _0, + pub nays: _0, + pub turnout: _0, + } + } + pub mod vote { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum AccountVote<_0> { + #[codec(index = 0)] + Standard { + vote: runtime_types::pallet_democracy::vote::Vote, + balance: _0, + }, + #[codec(index = 1)] + Split { aye: _0, nay: _0 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PriorLock<_0, _1>(pub _0, pub _1); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Vote(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Voting<_0, _1, _2> { + # [codec (index = 0)] Direct { votes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (_2 , runtime_types :: pallet_democracy :: vote :: AccountVote < _0 > ,) > , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , # [codec (index = 1)] Delegating { balance : _0 , target : _1 , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , } + } + pub mod vote_threshold { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum VoteThreshold { + #[codec(index = 0)] + SuperMajorityApprove, + #[codec(index = 1)] + SuperMajorityAgainst, + #[codec(index = 2)] + SimpleMajority, + } + } } - pub fn transaction_pause( - &self, - ) -> transaction_pause::storage::StorageApi { - transaction_pause::storage::StorageApi + pub mod pallet_dkg_metadata { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Set the pending signature threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new signature threshold for the DKG."] set_signature_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 1)] # [doc = "Set the pending keygen threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new keygen threshold for the DKG."] set_keygen_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] # [doc = "proposal queue."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] # [doc = " unsigned refresh proposal to the unsigned proposal queue."] set_refresh_delay { new_delay : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Submits and stores the active public key for the genesis session into the on-chain"] # [doc = "storage. This is primarily used to separate the genesis public key submission from"] # [doc = "non-genesis rounds."] # [doc = ""] # [doc = "Can only be submitted by the current authorities. It is also required that a"] # [doc = "`SignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] # [doc = " DKG public keys."] submit_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 4)] # [doc = "Submits and stores the next public key for the next session into the on-chain storage."] # [doc = ""] # [doc = "Can only be submitted by the next authorities. It is also required that a"] # [doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] # [doc = " DKG public keys."] submit_next_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 5)] # [doc = "Submits the public key signature for the key refresh/rotation process."] # [doc = ""] # [doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] # [doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] # [doc = "DKG's public key. Successful storage of this public key signature also removes"] # [doc = "the unsigned `RefreshProposal` from the unsigned queue."] # [doc = ""] # [doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] # [doc = "the keys are immediately refreshed and the authority set is immediately rotated"] # [doc = "and incremented."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] # [doc = " and nonce."] submit_public_key_signature { signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } , # [codec (index = 6)] # [doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] # [doc = "verified against the current or next authorities depending on the type of misbehaviour."] # [doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] # [doc = "- Signing: Verifies against the current authorities, since they are doing signing."] # [doc = ""] # [doc = "Verifies the reports against the respective thresholds and if enough reports are met"] # [doc = "begins to jail and decrease the reputation of the offending authority."] # [doc = ""] # [doc = "The misbehaviour reputation update is:"] # [doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] # [doc = ""] # [doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] # [doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] # [doc = "accordingly."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] # [doc = " authority"] submit_misbehaviour_reports { reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] # [doc = "This can only be called by the controller of the authority in jail. The"] # [doc = "origin must map directly to the authority in jail."] # [doc = ""] # [doc = "The authority's jail sentence for either keygen or signing must be elapsed"] # [doc = "for the authority to be removed from the jail."] # [doc = ""] # [doc = "* `origin` - The account origin."] unjail , # [codec (index = 8)] # [doc = "Force removes an authority from keygen jail."] # [doc = ""] # [doc = "Can only be called by DKG"] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the keygen jail."] force_unjail_keygen { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 9)] # [doc = "Force removes an authority from signing jail."] # [doc = ""] # [doc = "Can only be called by the root origin."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the signing jail."] force_unjail_signing { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 10)] # [doc = "Forcefully rotate the DKG"] # [doc = ""] # [doc = "This forces the next authorities into the current authority spot and"] # [doc = "automatically increments the authority ID. It uses `change_authorities`"] # [doc = "to execute the rotation forcefully."] force_change_authorities , # [codec (index = 11)] # [doc = "Triggers an Emergency Keygen Porotocol."] # [doc = ""] # [doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] # [doc = "storage, which will be picked up by the on chain worker and stored on chain."] # [doc = ""] # [doc = "Note that, this will clear the next public key and its signature, if any."] trigger_emergency_keygen , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "No mapped account to authority"] + NoMappedAccount, + #[codec(index = 1)] + #[doc = "Invalid threshold"] + InvalidThreshold, + #[codec(index = 2)] + #[doc = "Must be queued to become an authority"] + MustBeAQueuedAuthority, + #[codec(index = 3)] + #[doc = "Must be an an authority"] + MustBeAnActiveAuthority, + #[codec(index = 4)] + #[doc = "Refresh delay should be in the range of 0% - 100%"] + InvalidRefreshDelay, + #[codec(index = 5)] + #[doc = "Invalid public key submission"] + InvalidPublicKeys, + #[codec(index = 6)] + #[doc = "Already submitted a public key"] + AlreadySubmittedPublicKey, + #[codec(index = 7)] + #[doc = "Already submitted a public key signature"] + AlreadySubmittedSignature, + #[codec(index = 8)] + #[doc = "Used signature from past sessions"] + UsedSignature, + #[codec(index = 9)] + #[doc = "Invalid public key signature submission"] + InvalidSignature, + #[codec(index = 10)] + #[doc = "Invalid Nonece used, must be greater than [`refresh_nonce`]."] + InvalidNonce, + #[codec(index = 11)] + #[doc = "Invalid misbehaviour reports"] + InvalidMisbehaviourReports, + #[codec(index = 12)] + #[doc = "DKG Refresh is already in progress."] + RefreshInProgress, + #[codec(index = 13)] + #[doc = "No NextPublicKey stored on-chain."] + NoNextPublicKey, + #[codec(index = 14)] + #[doc = "Must be calling from the controller account"] + InvalidControllerAccount, + #[codec(index = 15)] + #[doc = "Input is out of bounds"] + OutOfBounds, + #[codec(index = 16)] + #[doc = "Cannot retreive signer from ecdsa signature"] + CannotRetreiveSigner, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Current public key submitted"] PublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Next public key submitted"] NextPublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Next public key signature submitted"] NextPublicKeySignatureSubmitted { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Current Public Key Changed."] PublicKeyChanged { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Current Public Key Signature Changed."] PublicKeySignatureChanged { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Misbehaviour reports submitted"] MisbehaviourReportsSubmitted { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , reporters : :: std :: vec :: Vec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , offender : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 6)] # [doc = "Refresh DKG Keys Finished (forcefully)."] RefreshKeysFinished { next_authority_set_id : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "NextKeygenThreshold updated"] NextKeygenThresholdUpdated { next_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 8)] # [doc = "NextSignatureThreshold updated"] NextSignatureThresholdUpdated { next_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 9)] # [doc = "PendingKeygenThreshold updated"] PendingKeygenThresholdUpdated { pending_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 10)] # [doc = "PendingSignatureThreshold updated"] PendingSignatureThresholdUpdated { pending_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 11)] # [doc = "An Emergency Keygen Protocol was triggered."] EmergencyKeygenTriggered , # [codec (index = 12)] # [doc = "An authority has been jailed for misbehaviour"] AuthorityJailed { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 13)] # [doc = "An authority has been unjailed"] AuthorityUnJailed { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RoundMetadata < _0 , _1 > { pub curr_round_pub_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub next_round_pub_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub refresh_signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_0 , _1) > } + } } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi + pub mod pallet_dkg_proposal_handler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] submit_signed_proposals { props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } , # [codec (index = 1)] # [doc = "Force submit an unsigned proposal to the DKG"] # [doc = ""] # [doc = "There are certain proposals we'd like to be proposable only"] # [doc = "through root actions. The currently supported proposals are"] # [doc = "\t1. Updating"] force_submit_unsigned_proposal { prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Error names should be descriptive."] + NoneValue, + #[codec(index = 1)] + #[doc = "Errors should have helpful documentation associated with them."] + StorageOverflow, + #[codec(index = 2)] + #[doc = "Proposal format is invalid"] + ProposalFormatInvalid, + #[codec(index = 3)] + #[doc = "Proposal must be unsigned"] + ProposalMustBeUnsigned, + #[codec(index = 4)] + #[doc = "Proposal bytes length is invalid"] + InvalidProposalBytesLength, + #[codec(index = 5)] + #[doc = "Proposal signature is invalid"] + ProposalSignatureInvalid, + #[codec(index = 6)] + #[doc = "No proposal with the ID was found"] + ProposalDoesNotExists, + #[codec(index = 7)] + #[doc = "Proposal with the ID has already been submitted"] + ProposalAlreadyExists, + #[codec(index = 8)] + #[doc = "Chain id is invalid"] + ChainIdInvalid, + #[codec(index = 9)] + #[doc = "Proposal length exceeds max allowed per batch"] + ProposalsLengthOverflow, + #[codec(index = 10)] + #[doc = "Proposal out of bounds"] + ProposalOutOfBounds, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] InvalidProposalSignature { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , invalid_signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , expected_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , actual_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 1)] # [doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] ProposalAdded { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] ProposalRemoved { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , expired : :: core :: primitive :: bool , } , # [codec (index = 3)] # [doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] ProposalSigned { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , } + } } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi + pub mod pallet_dkg_proposals { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Sets the vote threshold for proposals."] # [doc = ""] # [doc = "This threshold is used to determine how many votes are required"] # [doc = "before a proposal is executed."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] set_threshold { threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , method : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 4)] # [doc = "Adds a new proposer to the proposer set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] add_proposer { native_account : :: subxt :: utils :: AccountId32 , external_account : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "Removes an existing proposer from the set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and removal"] # [doc = "# "] remove_proposer { v : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Commits a vote in favour of the provided proposal."] # [doc = ""] # [doc = "If a proposal with the given nonce and source chain ID does not"] # [doc = "already exist, it will be created with an initial vote in favour"] # [doc = "from the caller."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] acknowledge_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Commits a vote against a provided proposal."] # [doc = ""] # [doc = "# "] # [doc = "- Fixed, since execution of proposal should not be included"] # [doc = "# "] reject_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 8)] # [doc = "Evaluate the state of a proposal given the current vote threshold."] # [doc = ""] # [doc = "A proposal with enough votes will be either executed or cancelled,"] # [doc = "and the status will be updated accordingly."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] eval_vote_state { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Proposer threshold not set"] + ThresholdNotSet, + #[codec(index = 2)] + #[doc = "Provided chain Id is not valid"] + InvalidChainId, + #[codec(index = 3)] + #[doc = "Proposer threshold cannot be 0"] + InvalidThreshold, + #[codec(index = 4)] + #[doc = "Interactions with this chain is not permitted"] + ChainNotWhitelisted, + #[codec(index = 5)] + #[doc = "Chain has already been enabled"] + ChainAlreadyWhitelisted, + #[codec(index = 6)] + #[doc = "Resource ID provided isn't mapped to anything"] + ResourceDoesNotExist, + #[codec(index = 7)] + #[doc = "Proposer already in set"] + ProposerAlreadyExists, + #[codec(index = 8)] + #[doc = "Provided accountId is not a proposer"] + ProposerInvalid, + #[codec(index = 9)] + #[doc = "Protected operation, must be performed by proposer"] + MustBeProposer, + #[codec(index = 10)] + #[doc = "Proposer has already submitted some vote for this proposal"] + ProposerAlreadyVoted, + #[codec(index = 11)] + #[doc = "A proposal with these parameters has already been submitted"] + ProposalAlreadyExists, + #[codec(index = 12)] + #[doc = "No proposal with the ID was found"] + ProposalDoesNotExist, + #[codec(index = 13)] + #[doc = "Cannot complete proposal, needs more votes"] + ProposalNotComplete, + #[codec(index = 14)] + #[doc = "Proposal has either failed or succeeded"] + ProposalAlreadyComplete, + #[codec(index = 15)] + #[doc = "Lifetime of proposal has been exceeded"] + ProposalExpired, + #[codec(index = 16)] + #[doc = "Proposer Count is Zero"] + ProposerCountIsZero, + #[codec(index = 17)] + #[doc = "Input is out of bounds"] + OutOfBounds, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Vote threshold has changed (new_threshold)"] ProposerThresholdChanged { new_threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 2)] # [doc = "Proposer added to set"] ProposerAdded { proposer_id : :: subxt :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "Proposer removed from set"] ProposerRemoved { proposer_id : :: subxt :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "Vote submitted in favour of proposal"] VoteFor { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "Vot submitted against proposal"] VoteAgainst { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Voting successful for a proposal"] ProposalApproved { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 7)] # [doc = "Voting rejected a proposal"] ProposalRejected { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 8)] # [doc = "Execution of call succeeded"] ProposalSucceeded { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 9)] # [doc = "Execution of call failed"] ProposalFailed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 10)] # [doc = "Proposers have been reset"] AuthorityProposersReset { proposers : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ProposalStatus { + #[codec(index = 0)] + Initiated, + #[codec(index = 1)] + Approved, + #[codec(index = 2)] + Rejected, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProposalVotes < _0 , _1 , _2 > { pub votes_for : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub votes_against : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub status : runtime_types :: pallet_dkg_proposals :: types :: ProposalStatus , pub expiry : _1 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _2 > } + } } - pub fn eth2_client(&self) -> eth2_client::storage::StorageApi { - eth2_client::storage::StorageApi + pub mod pallet_ecdsa_claims { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Make a claim to collect your WEBBs."] + #[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::utils::AccountId32, + ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, + }, + #[codec(index = 1)] + #[doc = "Mint a new claim to collect WEBBs."] + #[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 WEBBs that will be claimed."] + #[doc = "- `vesting_schedule`: An optional vesting schedule for these WEBBs."] + #[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::pallet_ecdsa_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::pallet_ecdsa_claims::StatementKind, + >, + }, + #[codec(index = 2)] + #[doc = "Make a claim to collect your WEBBs 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::utils::AccountId32, + ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, + statement: ::std::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: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 4)] + move_claim { + old: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + new: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + maybe_preclaim: + ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 5)] + #[doc = "Set the value for expiryconfig"] + #[doc = "Can only be called by ForceOrigin"] + force_set_expiry_config { + expiry_block: ::core::primitive::u32, + dest: ::subxt::utils::AccountId32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid Ethereum signature."] + InvalidEthereumSignature, + #[codec(index = 1)] + #[doc = "Ethereum address has no claim."] + SignerHasNoClaim, + #[codec(index = 2)] + #[doc = "Account ID sending transaction has no claim."] + SenderHasNoClaim, + #[codec(index = 3)] + #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] + #[doc = "logic error."] + PotUnderflow, + #[codec(index = 4)] + #[doc = "A needed statement was not included."] + InvalidStatement, + #[codec(index = 5)] + #[doc = "The account already has a vested balance."] + VestedBalanceExists, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Someone claimed some WEBBs."] + Claimed { + who: ::subxt::utils::AccountId32, + ethereum_address: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + amount: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum StatementKind { + #[codec(index = 0)] + Regular, + #[codec(index = 1)] + Saft, + } } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi + pub mod pallet_election_provider_multi_phase { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error of the pallet that can be returned in response to dispatches."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Submission was too early."] + PreDispatchEarlySubmission, + #[codec(index = 1)] + #[doc = "Wrong number of winners presented."] + PreDispatchWrongWinnerCount, + #[codec(index = 2)] + #[doc = "Submission was too weak, score-wise."] + PreDispatchWeakSubmission, + #[codec(index = 3)] + #[doc = "The queue was full, and the solution was not better than any of the existing ones."] + SignedQueueFull, + #[codec(index = 4)] + #[doc = "The origin failed to pay the deposit."] + SignedCannotPayDeposit, + #[codec(index = 5)] + #[doc = "Witness data to dispatchable is invalid."] + SignedInvalidWitness, + #[codec(index = 6)] + #[doc = "The signed submission consumes too much weight"] + SignedTooMuchWeight, + #[codec(index = 7)] + #[doc = "OCW submitted solution for wrong round"] + OcwCallWrongEra, + #[codec(index = 8)] + #[doc = "Snapshot metadata should exist but didn't."] + MissingSnapshotMetadata, + #[codec(index = 9)] + #[doc = "`Self::insert_submission` returned an invalid index."] + InvalidSubmissionIndex, + #[codec(index = 10)] + #[doc = "The call is not allowed at this point."] + CallNotAllowed, + #[codec(index = 11)] + #[doc = "The fallback failed"] + FallbackFailed, + #[codec(index = 12)] + #[doc = "Some bound not met"] + BoundNotMet, + #[codec(index = 13)] + #[doc = "Submitted solution has too many winners"] + TooManyWinners, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] # [doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] # [doc = "Otherwise, the solution was stored either during the unsigned phase or by"] # [doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] # [doc = "room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , origin : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "There was a phase transition in a given round."] PhaseTransitioned { from : runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > , to : runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > , round : :: core :: primitive :: u32 , } , } + } + pub mod signed { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ElectionCompute { + #[codec(index = 0)] + OnChain, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned, + #[codec(index = 3)] + Fallback, + #[codec(index = 4)] + Emergency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase<_0> { + #[codec(index = 0)] + Off, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned((::core::primitive::bool, _0)), + #[codec(index = 3)] + Emergency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RawSolution<_0> { + pub solution: _0, + pub score: runtime_types::sp_npos_elections::ElectionScore, + pub round: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReadySolution { pub supports : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RoundSnapshot { + pub voters: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + )>, + pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SolutionOrSnapshotSize { + #[codec(compact)] + pub voters: ::core::primitive::u32, + #[codec(compact)] + pub targets: ::core::primitive::u32, + } } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi + pub mod pallet_elections_phragmen { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] # [doc = "set the initial votes, or update already existing votes."] # [doc = ""] # [doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] # [doc = "reserved. The deposit is based on the number of votes and can be updated over time."] # [doc = ""] # [doc = "The `votes` should:"] # [doc = " - not be empty."] # [doc = " - be less than the number of possible candidates. Note that all current members and"] # [doc = " runners-up are also automatically candidates for the next round."] # [doc = ""] # [doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] # [doc = "lock and keep some for further operations."] vote { votes : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Remove `origin` as a voter."] # [doc = ""] # [doc = "This removes the lock and returns the deposit."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter , # [codec (index = 2)] # [doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] # [doc = ""] # [doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] # [doc = "or leave the system while their deposit is slashed."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] # [doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] # [doc = ""] # [doc = "The number of current candidates must be provided as witness data."] # [doc = "## Complexity"] # [doc = "O(C + log(C)) where C is candidate_count."] submit_candidacy { # [codec (compact)] candidate_count : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] # [doc = "outcomes exist:"] # [doc = ""] # [doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] # [doc = " unreserved, returned and origin is removed as a candidate."] # [doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] # [doc = " origin is removed as a runner-up."] # [doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] # [doc = " removed as a member, consequently not being a candidate for the next round anymore."] # [doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] # [doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] # [doc = " next round."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed, and have one of the above roles."] # [doc = "The type of renouncing must be provided as witness data."] # [doc = ""] # [doc = "## Complexity"] # [doc = " - Renouncing::Candidate(count): O(count + log(count))"] # [doc = " - Renouncing::Member: O(1)"] # [doc = " - Renouncing::RunnerUp: O(1)"] renounce_candidacy { renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing , } , # [codec (index = 4)] # [doc = "Remove a particular member from the set. This is effective immediately and the bond of"] # [doc = "the outgoing member is slashed."] # [doc = ""] # [doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] # [doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] # [doc = "started, else, nothing happens."] # [doc = ""] # [doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] # [doc = "it is returned."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "Note that this does not affect the designated block number of the next election."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Check details of remove_and_replace_member() and do_phragmen()."] remove_member { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , slash_bond : :: core :: primitive :: bool , rerun_election : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] # [doc = "deposit of the removed voters are returned."] # [doc = ""] # [doc = "This is an root function to be used only for cleaning the state."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Check is_defunct_voter() details."] clean_defunct_voters { num_voters : :: core :: primitive :: u32 , num_defunct : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Cannot vote when no candidates or members exist."] + UnableToVote, + #[codec(index = 1)] + #[doc = "Must vote for at least one candidate."] + NoVotes, + #[codec(index = 2)] + #[doc = "Cannot vote more than candidates."] + TooManyVotes, + #[codec(index = 3)] + #[doc = "Cannot vote more than maximum allowed."] + MaximumVotesExceeded, + #[codec(index = 4)] + #[doc = "Cannot vote with stake less than minimum balance."] + LowBalance, + #[codec(index = 5)] + #[doc = "Voter can not pay voting bond."] + UnableToPayBond, + #[codec(index = 6)] + #[doc = "Must be a voter."] + MustBeVoter, + #[codec(index = 7)] + #[doc = "Duplicated candidate submission."] + DuplicatedCandidate, + #[codec(index = 8)] + #[doc = "Too many candidates have been created."] + TooManyCandidates, + #[codec(index = 9)] + #[doc = "Member cannot re-submit candidacy."] + MemberSubmit, + #[codec(index = 10)] + #[doc = "Runner cannot re-submit candidacy."] + RunnerUpSubmit, + #[codec(index = 11)] + #[doc = "Candidate does not have enough funds."] + InsufficientCandidateFunds, + #[codec(index = 12)] + #[doc = "Not a member."] + NotMember, + #[codec(index = 13)] + #[doc = "The provided count of number of candidates is incorrect."] + InvalidWitnessData, + #[codec(index = 14)] + #[doc = "The provided count of number of votes is incorrect."] + InvalidVoteCount, + #[codec(index = 15)] + #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] + InvalidRenouncing, + #[codec(index = 16)] + #[doc = "Prediction regarding replacement after member removal is wrong."] + InvalidReplacement, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] + NewTerm { + new_members: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + }, + #[codec(index = 1)] + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] + EmptyTerm, + #[codec(index = 2)] + #[doc = "Internal error happened while trying to perform election."] + ElectionError, + #[codec(index = 3)] + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] + MemberKicked { member: ::subxt::utils::AccountId32 }, + #[codec(index = 4)] + #[doc = "Someone has renounced their candidacy."] + Renounced { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] + CandidateSlashed { + candidate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] + SeatHolderSlashed { + seat_holder: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Renouncing { + #[codec(index = 0)] + Member, + #[codec(index = 1)] + RunnerUp, + #[codec(index = 2)] + Candidate(#[codec(compact)] ::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SeatHolder<_0, _1> { + pub who: _0, + pub stake: _1, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Voter<_0, _1> { + pub votes: ::std::vec::Vec<_0>, + pub stake: _1, + pub deposit: _1, + } } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi + pub mod pallet_eth2_light_client { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + init { + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + args: ::std::boxed::Box< + runtime_types::eth_types::pallet::InitInput< + ::subxt::utils::AccountId32, + >, + >, + }, + #[codec(index = 1)] + register_submitter { + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + }, + #[codec(index = 2)] + unregister_submitter { + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + }, + #[codec(index = 3)] + submit_beacon_chain_light_client_update { + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + light_client_update: + runtime_types::eth_types::eth2::LightClientUpdate, + }, + #[codec(index = 4)] + submit_execution_header { + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + block_header: runtime_types::eth_types::BlockHeader, + }, + #[codec(index = 5)] + update_trusted_signer { + trusted_signer: ::subxt::utils::AccountId32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "The light client is already initialized for the typed chain ID"] + AlreadyInitialized, + #[codec(index = 1)] + #[doc = "For attempting to register"] + SubmitterAlreadyRegistered, + #[codec(index = 2)] + #[doc = "For attempting to unregister"] + SubmitterNotRegistered, + #[codec(index = 3)] + #[doc = "For attempting to unregister"] + SubmitterHasUsedStorage, + #[codec(index = 4)] + #[doc = "For attempting to update the light client"] + LightClientUpdateNotAllowed, + #[codec(index = 5)] + #[doc = "Block already submitted"] + BlockAlreadySubmitted, + #[codec(index = 6)] + #[doc = "Unknown parent block header hash"] + UnknownParentHeader, + #[codec(index = 7)] + #[doc = "Self-explanatory"] + NotTrustedSigner, + #[codec(index = 8)] + #[doc = "The updates validation can't be disabled for mainnet"] + ValidateUpdatesParameterError, + #[codec(index = 9)] + #[doc = "The client can't be executed in the trustless mode without BLS sigs verification on"] + #[doc = "Mainnet"] + TrustlessModeError, + #[codec(index = 10)] + InvalidSyncCommitteeBitsSum, + #[codec(index = 11)] + SyncCommitteeBitsSumLessThanThreshold, + #[codec(index = 12)] + ForkVersionNotFound, + #[codec(index = 13)] + ForkEpochNotFound, + #[codec(index = 14)] + GenesisValidatorsRootNotFound, + #[codec(index = 15)] + InvalidBlsSignature, + #[codec(index = 16)] + InvalidExecutionBlock, + #[codec(index = 17)] + ActiveHeaderSlotNumberLessThanFinalizedSlot, + #[codec(index = 18)] + InvalidUpdatePeriod, + #[codec(index = 19)] + InvalidFinalityProof, + #[codec(index = 20)] + InvalidExecutionBlockHashProof, + #[codec(index = 21)] + NextSyncCommitteeNotPresent, + #[codec(index = 22)] + InvalidNextSyncCommitteeProof, + #[codec(index = 23)] + FinalizedExecutionHeaderNotPresent, + #[codec(index = 24)] + FinalizedBeaconHeaderNotPresent, + #[codec(index = 25)] + UnfinalizedHeaderNotPresent, + #[codec(index = 26)] + SyncCommitteeUpdateNotPresent, + #[codec(index = 27)] + SubmitterExhaustedLimit, + #[codec(index = 28)] + HeaderHashDoesNotExist, + #[codec(index = 29)] + BlockHashesDoNotMatch, + #[codec(index = 30)] + InvalidSignaturePeriod, + #[codec(index = 31)] + CurrentSyncCommitteeNotSet, + #[codec(index = 32)] + NextSyncCommitteeNotSet, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] Init { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , header_info : runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 1)] RegisterSubmitter { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , submitter : :: subxt :: utils :: AccountId32 , } , # [codec (index = 2)] UnregisterSubmitter { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , submitter : :: subxt :: utils :: AccountId32 , } , # [codec (index = 3)] SubmitBeaconChainLightClientUpdate { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , submitter : :: subxt :: utils :: AccountId32 , beacon_block_header : runtime_types :: eth_types :: eth2 :: BeaconBlockHeader , } , # [codec (index = 4)] SubmitExecutionHeader { typed_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , header_info : runtime_types :: eth_types :: pallet :: ExecutionHeaderInfo < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 5)] UpdateTrustedSigner { trusted_signer : :: subxt :: utils :: AccountId32 , } , } + } } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi + pub mod pallet_grandpa { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New authority set has been applied."] + NewAuthorities { + authority_set: ::std::vec::Vec<( + runtime_types::sp_finality_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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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 fn authorship(&self) -> authorship::calls::TransactionApi { - authorship::calls::TransactionApi + pub mod pallet_hasher { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + HashingParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during hashing"] + HashError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { - grandpa::calls::TransactionApi + pub mod pallet_identity { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Identity pallet declaration."] + pub enum Call { + # [codec (index = 0)] # [doc = "Add a registrar to the system."] # [doc = ""] # [doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] # [doc = ""] # [doc = "- `account`: the account of the registrar."] # [doc = ""] # [doc = "Emits `RegistrarAdded` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] add_registrar { account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `IdentitySet` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(X + X' + R)`"] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] # [doc = " - where `R` judgements-count (registrar-count-bounded)"] set_identity { info : :: std :: boxed :: Box < runtime_types :: pallet_identity :: types :: IdentityInfo > , } , # [codec (index = 2)] # [doc = "Set the sub-accounts of the sender."] # [doc = ""] # [doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] # [doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "- `subs`: The identity's (new) sub-accounts."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(P + S)`"] # [doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] set_subs { subs : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , } , # [codec (index = 3)] # [doc = "Clear an account's identity info and all sub-accounts and return all deposits."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "Emits `IdentityCleared` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] clear_identity , # [codec (index = 4)] # [doc = "Request a judgement from a registrar."] # [doc = ""] # [doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] # [doc = "given."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is requested."] # [doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] # [doc = ""] # [doc = "```nocompile"] # [doc = "Self::registrars().get(reg_index).unwrap().fee"] # [doc = "```"] # [doc = ""] # [doc = "Emits `JudgementRequested` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] request_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , # [codec (compact)] max_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Cancel a previous request."] # [doc = ""] # [doc = "Payment: A previously reserved deposit is returned on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] # [doc = ""] # [doc = "Emits `JudgementUnrequested` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] cancel_request { reg_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the fee required for a judgement to be requested from a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fee`: the new fee."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_fee { # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "Change the account associated with a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `new`: the new account ID."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_account_id { # [codec (compact)] index : :: core :: primitive :: u32 , new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 8)] # [doc = "Set the field information for a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fields`: the fields that the registrar concerns themselves with."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_fields { # [codec (compact)] index : :: core :: primitive :: u32 , fields : runtime_types :: pallet_identity :: types :: BitFlags < runtime_types :: pallet_identity :: types :: IdentityField > , } , # [codec (index = 9)] # [doc = "Provide a judgement for an account's identity."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `reg_index`."] # [doc = ""] # [doc = "- `reg_index`: the index of the registrar whose judgement is being made."] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] # [doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] # [doc = ""] # [doc = "Emits `JudgementGiven` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] provide_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , judgement : runtime_types :: pallet_identity :: types :: Judgement < :: core :: primitive :: u128 > , identity : :: subxt :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Remove an account's identity and sub-account information and slash the deposits."] # [doc = ""] # [doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] # [doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] # [doc = "manually using `cancel_request`."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] # [doc = ""] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = ""] # [doc = "Emits `IdentityKilled` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] kill_identity { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 11)] # [doc = "Add the given account to the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] add_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 12)] # [doc = "Alter the associated name of the given sub-account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] rename_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 13)] # [doc = "Remove the given account from the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] remove_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove the sender as a sub-account."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender (*not* the original depositor)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "super-identity."] # [doc = ""] # [doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] # [doc = "controller of an account is maliciously registered as a sub-account."] quit_sub , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Too many subs-accounts."] + TooManySubAccounts, + #[codec(index = 1)] + #[doc = "Account isn't found."] + NotFound, + #[codec(index = 2)] + #[doc = "Account isn't named."] + NotNamed, + #[codec(index = 3)] + #[doc = "Empty index."] + EmptyIndex, + #[codec(index = 4)] + #[doc = "Fee is changed."] + FeeChanged, + #[codec(index = 5)] + #[doc = "No identity found."] + NoIdentity, + #[codec(index = 6)] + #[doc = "Sticky judgement."] + StickyJudgement, + #[codec(index = 7)] + #[doc = "Judgement given."] + JudgementGiven, + #[codec(index = 8)] + #[doc = "Invalid judgement."] + InvalidJudgement, + #[codec(index = 9)] + #[doc = "The index is invalid."] + InvalidIndex, + #[codec(index = 10)] + #[doc = "The target is invalid."] + InvalidTarget, + #[codec(index = 11)] + #[doc = "Too many additional fields."] + TooManyFields, + #[codec(index = 12)] + #[doc = "Maximum amount of registrars reached. Cannot add any more."] + TooManyRegistrars, + #[codec(index = 13)] + #[doc = "Account ID is already named."] + AlreadyClaimed, + #[codec(index = 14)] + #[doc = "Sender is not a sub-account."] + NotSub, + #[codec(index = 15)] + #[doc = "Sub-account isn't owned by sender."] + NotOwned, + #[codec(index = 16)] + #[doc = "The provided judgement was for a different identity."] + JudgementForDifferentIdentity, + #[codec(index = 17)] + #[doc = "Error that occurs when there is an issue paying for judgement."] + JudgementPaymentFailed, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A name was set or reset (which will remove all judgements)."] + IdentitySet { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "A name was cleared, and the given balance returned."] + IdentityCleared { + who: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "A name was removed and the given balance slashed."] + IdentityKilled { + who: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A judgement was asked from a registrar."] + JudgementRequested { + who: ::subxt::utils::AccountId32, + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "A judgement request was retracted."] + JudgementUnrequested { + who: ::subxt::utils::AccountId32, + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "A judgement was given by a registrar."] + JudgementGiven { + target: ::subxt::utils::AccountId32, + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "A registrar was added."] + RegistrarAdded { + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 7)] + #[doc = "A sub-identity was added to an identity and the deposit paid."] + SubIdentityAdded { + sub: ::subxt::utils::AccountId32, + main: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "A sub-identity was removed from an identity and the deposit freed."] + SubIdentityRemoved { + sub: ::subxt::utils::AccountId32, + main: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 9)] + #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] + #[doc = "main identity account to the sub-identity account."] + SubIdentityRevoked { + sub: ::subxt::utils::AccountId32, + main: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BitFlags<_0>( + pub ::core::primitive::u64, + #[codec(skip)] pub ::core::marker::PhantomData<_0>, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Data { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Raw0([::core::primitive::u8; 0usize]), + #[codec(index = 2)] + Raw1([::core::primitive::u8; 1usize]), + #[codec(index = 3)] + Raw2([::core::primitive::u8; 2usize]), + #[codec(index = 4)] + Raw3([::core::primitive::u8; 3usize]), + #[codec(index = 5)] + Raw4([::core::primitive::u8; 4usize]), + #[codec(index = 6)] + Raw5([::core::primitive::u8; 5usize]), + #[codec(index = 7)] + Raw6([::core::primitive::u8; 6usize]), + #[codec(index = 8)] + Raw7([::core::primitive::u8; 7usize]), + #[codec(index = 9)] + Raw8([::core::primitive::u8; 8usize]), + #[codec(index = 10)] + Raw9([::core::primitive::u8; 9usize]), + #[codec(index = 11)] + Raw10([::core::primitive::u8; 10usize]), + #[codec(index = 12)] + Raw11([::core::primitive::u8; 11usize]), + #[codec(index = 13)] + Raw12([::core::primitive::u8; 12usize]), + #[codec(index = 14)] + Raw13([::core::primitive::u8; 13usize]), + #[codec(index = 15)] + Raw14([::core::primitive::u8; 14usize]), + #[codec(index = 16)] + Raw15([::core::primitive::u8; 15usize]), + #[codec(index = 17)] + Raw16([::core::primitive::u8; 16usize]), + #[codec(index = 18)] + Raw17([::core::primitive::u8; 17usize]), + #[codec(index = 19)] + Raw18([::core::primitive::u8; 18usize]), + #[codec(index = 20)] + Raw19([::core::primitive::u8; 19usize]), + #[codec(index = 21)] + Raw20([::core::primitive::u8; 20usize]), + #[codec(index = 22)] + Raw21([::core::primitive::u8; 21usize]), + #[codec(index = 23)] + Raw22([::core::primitive::u8; 22usize]), + #[codec(index = 24)] + Raw23([::core::primitive::u8; 23usize]), + #[codec(index = 25)] + Raw24([::core::primitive::u8; 24usize]), + #[codec(index = 26)] + Raw25([::core::primitive::u8; 25usize]), + #[codec(index = 27)] + Raw26([::core::primitive::u8; 26usize]), + #[codec(index = 28)] + Raw27([::core::primitive::u8; 27usize]), + #[codec(index = 29)] + Raw28([::core::primitive::u8; 28usize]), + #[codec(index = 30)] + Raw29([::core::primitive::u8; 29usize]), + #[codec(index = 31)] + Raw30([::core::primitive::u8; 30usize]), + #[codec(index = 32)] + Raw31([::core::primitive::u8; 31usize]), + #[codec(index = 33)] + Raw32([::core::primitive::u8; 32usize]), + #[codec(index = 34)] + BlakeTwo256([::core::primitive::u8; 32usize]), + #[codec(index = 35)] + Sha256([::core::primitive::u8; 32usize]), + #[codec(index = 36)] + Keccak256([::core::primitive::u8; 32usize]), + #[codec(index = 37)] + ShaThree256([::core::primitive::u8; 32usize]), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum IdentityField { + #[codec(index = 1)] + Display, + #[codec(index = 2)] + Legal, + #[codec(index = 4)] + Web, + #[codec(index = 8)] + Riot, + #[codec(index = 16)] + Email, + #[codec(index = 32)] + PgpFingerprint, + #[codec(index = 64)] + Image, + #[codec(index = 128)] + Twitter, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct IdentityInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub legal : runtime_types :: pallet_identity :: types :: Data , pub web : runtime_types :: pallet_identity :: types :: Data , pub riot : runtime_types :: pallet_identity :: types :: Data , pub email : runtime_types :: pallet_identity :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_identity :: types :: Data , pub twitter : runtime_types :: pallet_identity :: types :: Data , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Judgement<_0> { + #[codec(index = 0)] + Unknown, + #[codec(index = 1)] + FeePaid(_0), + #[codec(index = 2)] + Reasonable, + #[codec(index = 3)] + KnownGood, + #[codec(index = 4)] + OutOfDate, + #[codec(index = 5)] + LowQuality, + #[codec(index = 6)] + Erroneous, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct RegistrarInfo<_0, _1> { + pub account: _1, + pub fee: _0, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Registration < _0 > { pub judgements : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_identity :: types :: Judgement < _0 > ,) > , pub deposit : _0 , pub info : runtime_types :: pallet_identity :: types :: IdentityInfo , } + } } - pub fn dkg(&self) -> dkg::calls::TransactionApi { - dkg::calls::TransactionApi + pub mod pallet_im_online { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "## Complexity:"] # [doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] # [doc = " `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Non existent public key."] + InvalidKey, + #[codec(index = 1)] + #[doc = "Duplicated heartbeat."] + DuplicatedHeartbeat, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } + } + pub mod sr25519 { + use super::runtime_types; + pub mod app_sr25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public( + pub runtime_types::sp_core::sr25519::Public, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature( + pub runtime_types::sp_core::sr25519::Signature, + ); + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Heartbeat<_0> { + pub block_number: _0, + pub network_state: + runtime_types::sp_core::offchain::OpaqueNetworkState, + pub session_index: _0, + pub authority_index: _0, + pub validators_len: _0, + } } - pub fn dkg_proposals(&self) -> dkg_proposals::calls::TransactionApi { - dkg_proposals::calls::TransactionApi + pub mod pallet_indices { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A account index was assigned."] + IndexAssigned { + who: ::subxt::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::utils::AccountId32, + }, + } + } } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::calls::TransactionApi { - dkg_proposal_handler::calls::TransactionApi + pub mod pallet_key_storage { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] register { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + PubKeyOutOfBounds, + #[codec(index = 1)] + MaxPubkeyOwnersExceeded, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Public key registration"] PublicKeyRegistration { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + } } - pub fn bridge_registry( - &self, - ) -> bridge_registry::calls::TransactionApi { - bridge_registry::calls::TransactionApi + pub mod pallet_linkable_tree { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + create { + max_edges: ::core::primitive::u32, + depth: ::core::primitive::u8, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + UnknownRoot, + #[codec(index = 1)] + #[doc = "Invalid Merkle Roots"] + InvalidMerkleRoots, + #[codec(index = 2)] + #[doc = "Invalid neighbor root passed in withdrawal"] + #[doc = "(neighbor root is not in neighbor history)"] + InvalidNeighborWithdrawRoot, + #[codec(index = 3)] + #[doc = "Anchor is at maximum number of edges for the given tree"] + TooManyEdges, + #[codec(index = 4)] + #[doc = "Edge already exists"] + EdgeAlreadyExists, + #[codec(index = 5)] + #[doc = "Edge does not exist"] + EdgeDoesntExists, + #[codec(index = 6)] + #[doc = "Invalid latest leaf index"] + InvalidLatestLeafIndex, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New tree created"] + LinkableTreeCreation { tree_id: ::core::primitive::u32 }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct EdgeMetadata<_0, _1, _2> { + pub src_chain_id: _0, + pub root: _1, + pub latest_leaf_index: _2, + pub src_resource_id: + runtime_types::webb_proposals::header::ResourceId, + } + } } - pub fn indices(&self) -> indices::calls::TransactionApi { - indices::calls::TransactionApi + pub mod pallet_mixer { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] create { deposit_size : :: core :: primitive :: u128 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] deposit { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 2)] withdraw { id : :: core :: primitive :: u32 , proof_bytes : :: std :: vec :: Vec < :: core :: primitive :: u8 > , root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , nullifier_hash : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , recipient : :: subxt :: utils :: AccountId32 , relayer : :: subxt :: utils :: AccountId32 , fee : :: core :: primitive :: u128 , refund : :: core :: primitive :: u128 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Invalid withdraw proof"] + InvalidWithdrawProof, + #[codec(index = 2)] + #[doc = "Invalid nullifier that is already used"] + #[doc = "(this error is returned when a nullifier is used twice)"] + AlreadyRevealedNullifier, + #[codec(index = 3)] + InvalidArbitraryData, + #[codec(index = 4)] + #[doc = "Invalid root"] + UnknownRoot, + #[codec(index = 5)] + #[doc = "No mixer found"] + NoMixerFound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "New tree created"] MixerCreation { tree_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] Deposit { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 2)] Withdraw { tree_id : :: core :: primitive :: u32 , recipient : :: subxt :: utils :: AccountId32 , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MixerMetadata<_0, _1> { + pub deposit_size: _0, + pub asset: _1, + } + } } - pub fn democracy(&self) -> democracy::calls::TransactionApi { - democracy::calls::TransactionApi + pub mod pallet_mt { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] create { depth : :: core :: primitive :: u8 , } , # [codec (index = 1)] insert { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 2)] force_set_default_hashes { default_hashes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Invalid depth of the tree specified"] + InvalidTreeDepth, + #[codec(index = 2)] + #[doc = "Invalid leaf index, either taken or too large"] + InvalidLeafIndex, + #[codec(index = 3)] + #[doc = "Tree is full"] + ExceedsMaxLeaves, + #[codec(index = 4)] + #[doc = "Tree doesnt exist"] + TreeDoesntExist, + #[codec(index = 5)] + #[doc = "Invalid length for default hashes"] + ExceedsMaxDefaultHashes, + #[codec(index = 6)] + #[doc = "Invalid length for edges"] + ExceedsMaxEdges, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "New tree created"] TreeCreation { tree_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "New leaf inserted"] LeafInsertion { tree_id : :: core :: primitive :: u32 , leaf_index : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct TreeMetadata < _0 , _1 , _2 , _3 > { pub creator : :: core :: option :: Option < _0 > , pub paused : :: core :: primitive :: bool , pub leaf_count : _1 , pub max_leaves : _1 , pub depth : :: core :: primitive :: u8 , pub root : _2 , pub edge_nodes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _2 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } + } } - pub fn council(&self) -> council::calls::TransactionApi { - council::calls::TransactionApi + pub mod pallet_nomination_pools { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 there 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 caim rewards on bahalf 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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [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 their 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."] withdraw_unbonded { member_account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , 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` transferrable."] create { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 7)] # [doc = "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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "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."] nominate { pool_id : :: core :: primitive :: u32 , validators : :: std :: vec :: Vec < :: subxt :: 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"] # [doc = "of the pool."] set_metadata { pool_id : :: core :: primitive :: u32 , metadata : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 11)] # [doc = "Update configurations for the nomination pools. The origin for this call must be"] # [doc = "Root."] # [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`]."] 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 > , } , # [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 :: utils :: AccountId32 > , new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 > , new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 13)] # [doc = "Chill 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, same as [`Pallet::nominate`]."] # [doc = ""] # [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 = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { member : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , extra : runtime_types :: pallet_nomination_pools :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 15)] # [doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] # [doc = "bonding and withdrawing."] # [doc = ""] # [doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] # [doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] # [doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] # [doc = "pool."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - Member of a pool."] # [doc = "* `actor` - Account to claim reward. // improve this"] 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 `PermissionlessAll` or `PermissionlessWithdraw` in order"] # [doc = "for this call to be successful."] claim_payout_other { other : :: subxt :: utils :: AccountId32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DefensiveError { + #[codec(index = 0)] + NotEnoughSpaceInUnbondPool, + #[codec(index = 1)] + PoolNotFound, + #[codec(index = 2)] + RewardPoolNotFound, + #[codec(index = 3)] + SubPoolsNotFound, + #[codec(index = 4)] + BondedStashKilledPrematurely, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , # [codec (index = 23)] # [doc = "Bonding extra is restricted to the exact pending reward amount."] BondExtraRestricted , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Events of this pallet."] + pub enum Event { + #[codec(index = 0)] + #[doc = "A pool has been created."] + Created { + depositor: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A member has became bonded in a pool."] + Bonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + bonded: ::core::primitive::u128, + joined: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "A payout has been made to a member."] + PaidOut { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + payout: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] + #[doc = "requested to be unbonded."] + Unbonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + era: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] + Withdrawn { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "A pool has been destroyed."] + Destroyed { pool_id: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "The state of a pool has changed"] + StateChanged { + pool_id: ::core::primitive::u32, + new_state: + runtime_types::pallet_nomination_pools::PoolState, + }, + #[codec(index = 7)] + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] + MemberRemoved { + pool_id: ::core::primitive::u32, + member: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] + #[doc = "can never change."] + RolesUpdated { + root: + ::core::option::Option<::subxt::utils::AccountId32>, + bouncer: + ::core::option::Option<::subxt::utils::AccountId32>, + nominator: + ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 9)] + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] + PoolSlashed { + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + #[codec(index = 10)] + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] + UnbondingPoolSlashed { + pool_id: ::core::primitive::u32, + era: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BondExtra<_0> { + #[codec(index = 0)] + FreeBalance(_0), + #[codec(index = 1)] + Rewards, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondedPoolInner { + pub points: ::core::primitive::u128, + pub state: runtime_types::pallet_nomination_pools::PoolState, + pub member_counter: ::core::primitive::u32, + pub roles: runtime_types::pallet_nomination_pools::PoolRoles< + ::subxt::utils::AccountId32, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimPermission { + #[codec(index = 0)] + Permissioned, + #[codec(index = 1)] + PermissionlessCompound, + #[codec(index = 2)] + PermissionlessWithdraw, + #[codec(index = 3)] + PermissionlessAll, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolMember { pub pool_id : :: core :: primitive :: u32 , pub points : :: core :: primitive :: u128 , pub last_recorded_reward_counter : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub unbonding_eras : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolRoles<_0> { + pub depositor: _0, + pub root: ::core::option::Option<_0>, + pub nominator: ::core::option::Option<_0>, + pub bouncer: ::core::option::Option<_0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PoolState { + #[codec(index = 0)] + Open, + #[codec(index = 1)] + Blocked, + #[codec(index = 2)] + Destroying, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RewardPool { + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub last_recorded_total_payouts: ::core::primitive::u128, + pub total_rewards_claimed: ::core::primitive::u128, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnbondPool { + pub points: ::core::primitive::u128, + pub balance: ::core::primitive::u128, + } } - pub fn vesting(&self) -> vesting::calls::TransactionApi { - vesting::calls::TransactionApi + pub mod pallet_offences { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Events 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: ::std::vec::Vec<::core::primitive::u8>, + }, + } + } } - pub fn claims(&self) -> claims::calls::TransactionApi { - claims::calls::TransactionApi + pub mod pallet_preimage { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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: ::std::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::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::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::utils::H256 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A preimage has been noted."] + Noted { hash: ::subxt::utils::H256 }, + #[codec(index = 1)] + #[doc = "A preimage has been requested."] + Requested { hash: ::subxt::utils::H256 }, + #[codec(index = 2)] + #[doc = "A preimage has ben cleared."] + Cleared { hash: ::subxt::utils::H256 }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RequestStatus<_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>, + }, + } } - pub fn elections(&self) -> elections::calls::TransactionApi { - elections::calls::TransactionApi + pub mod pallet_scheduler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Events 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 = "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 = 4)] + #[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 = 5)] + #[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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 __subxt_unused_type_params: ::core::marker::PhantomData<_4>, + } } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi { - election_provider_multi_phase::calls::TransactionApi + pub mod pallet_session { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: tangle_standalone_runtime :: opaque :: SessionKeys , proof : :: std :: 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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 fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi + pub mod pallet_signature_bridge { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Sets the maintainer."] set_maintainer { message : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] force_set_maintainer { nonce : :: core :: primitive :: u32 , new_maintainer : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 4)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { id : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. Add ResourceId to the Storage"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the set_resource_with_signature"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] set_resource_with_signature { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 6)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. That the r_id parsed from the proposal data exists"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the execute_proposal"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] execute_proposal { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account does not have correct permissions"] + InvalidPermissions, + #[codec(index = 1)] + #[doc = "Provided chain Id is not valid"] + InvalidChainId, + #[codec(index = 2)] + #[doc = "Interactions with this chain is not permitted"] + ChainNotWhitelisted, + #[codec(index = 3)] + #[doc = "Chain has already been enabled"] + ChainAlreadyWhitelisted, + #[codec(index = 4)] + #[doc = "Resource ID provided isn't mapped to anything"] + ResourceDoesNotExist, + #[codec(index = 5)] + #[doc = "Resource ID provided is already mapped to anchor"] + ResourceAlreadyExists, + #[codec(index = 6)] + #[doc = "Provided signature is not from the active maintainer"] + SignatureInvalid, + #[codec(index = 7)] + #[doc = "Protected operation, must be performed by relayer"] + MustBeMaintainer, + #[codec(index = 8)] + #[doc = "A proposal with these parameters has already been submitted"] + ProposalAlreadyExists, + #[codec(index = 9)] + #[doc = "Call does not match parsed call from proposal data"] + CallNotConsistentWithProposalData, + #[codec(index = 10)] + #[doc = "Call does not match resource id according to resources mapping"] + CallDoesNotMatchResourceId, + #[codec(index = 11)] + #[doc = "Chain Id Type from the r_id does not match this chain"] + IncorrectExecutionChainIdType, + #[codec(index = 12)] + #[doc = "Invalid nonce"] + InvalidNonce, + #[codec(index = 13)] + #[doc = "Invalid proposal data"] + InvalidProposalData, + #[codec(index = 14)] + #[doc = "Invalid call - calls must be delegated to handler pallets"] + InvalidCall, + #[codec(index = 15)] + #[doc = "The max limit for string is exceeded"] + StringLimitExceeded, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "Maintainer is set"] MaintainerSet { old_maintainer : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , new_maintainer : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Proposal has been approved"] ProposalApproved { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Execution of call succeeded"] ProposalSucceeded { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execution of call failed"] ProposalFailed { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , } + } } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi + pub mod pallet_staking { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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_ and gets removed as dust."] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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"] # [doc = "whatever 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 = "## 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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 upto 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 upto 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "## Complexity"] # [doc = "- At most O(MaxNominatorRewardedPerValidator)."] payout_stakers { validator_stash : :: subxt :: 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: 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 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + 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 = "Incorrect previous history depth input provided."] + IncorrectHistoryDepth, + #[codec(index = 16)] + #[doc = "Incorrect number of slashing spans provided."] + IncorrectSlashingSpans, + #[codec(index = 17)] + #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] + BadState, + #[codec(index = 18)] + #[doc = "Too many nomination targets supplied."] + TooManyTargets, + #[codec(index = 19)] + #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] + BadTarget, + #[codec(index = 20)] + #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] + CannotChillOther, + #[codec(index = 21)] + #[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 = 22)] + #[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 = 23)] + #[doc = "Commission is too low. Must be at least `MinCommission`."] + CommissionTooLow, + #[codec(index = 24)] + #[doc = "Some bound is not met."] + BoundNotMet, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , # [codec (index = 14)] # [doc = "A new force era mode was set."] ForceEra { mode : runtime_types :: pallet_staking :: Forcing , } , } + } + } + pub mod slashing { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SlashingSpans { + pub span_index: ::core::primitive::u32, + pub last_start: ::core::primitive::u32, + pub last_nonzero_slash: ::core::primitive::u32, + pub prior: ::std::vec::Vec<::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SpanRecord<_0> { + pub slashed: _0, + pub paid_out: _0, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ActiveEraInfo { + pub index: ::core::primitive::u32, + pub start: ::core::option::Option<::core::primitive::u64>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EraRewardPoints<_0> { + pub total: ::core::primitive::u32, + pub individual: + ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Exposure<_0, _1> { + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub own: _1, + pub others: ::std::vec::Vec< + runtime_types::pallet_staking::IndividualExposure<_0, _1>, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Forcing { + #[codec(index = 0)] + NotForcing, + #[codec(index = 1)] + ForceNew, + #[codec(index = 2)] + ForceNone, + #[codec(index = 3)] + ForceAlways, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IndividualExposure<_0, _1> { + pub who: _0, + #[codec(compact)] + pub value: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Nominations { + pub targets: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + pub submitted_in: ::core::primitive::u32, + pub suppressed: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RewardDestination<_0> { + #[codec(index = 0)] + Staked, + #[codec(index = 1)] + Stash, + #[codec(index = 2)] + Controller, + #[codec(index = 3)] + Account(_0), + #[codec(index = 4)] + None, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StakingLedger { + pub stash: ::subxt::utils::AccountId32, + #[codec(compact)] + pub total: ::core::primitive::u128, + #[codec(compact)] + pub active: ::core::primitive::u128, + pub unlocking: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk< + ::core::primitive::u128, + >, + >, + pub claimed_rewards: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnappliedSlash<_0, _1> { + pub validator: _0, + pub own: _1, + pub others: ::std::vec::Vec<(_0, _1)>, + pub reporters: ::std::vec::Vec<_0>, + pub payout: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnlockChunk<_0> { + #[codec(compact)] + pub value: _0, + #[codec(compact)] + pub era: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidatorPrefs { + #[codec(compact)] + pub commission: + runtime_types::sp_arithmetic::per_things::Perbill, + pub blocked: ::core::primitive::bool, + } } - pub fn treasury(&self) -> treasury::calls::TransactionApi { - treasury::calls::TransactionApi + pub mod pallet_sudo { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] sudo { call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] sudo_unchecked_weight { call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] set_key { new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] sudo_as { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the Sudo pallet"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Sender must be the Sudo account"] + RequireSudo, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A sudo just took place. \\[result\\]"] + Sudid { + sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 1)] + #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] + KeyChanged { + old_sudoer: + ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 2)] + #[doc = "A sudo just took place. \\[result\\]"] + SudoAsDone { + sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + } + } } - pub fn bounties(&self) -> bounties::calls::TransactionApi { - bounties::calls::TransactionApi + pub mod pallet_timestamp { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 = "`MinimumPeriod`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Inherent`."] + #[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 fn child_bounties(&self) -> child_bounties::calls::TransactionApi { - child_bounties::calls::TransactionApi + pub mod pallet_token_wrapper { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + set_wrapping_fee { + fee: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 1)] + set_fee_recipient { + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 2)] + wrap { + from_asset_id: ::core::primitive::u32, + into_pool_share_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + unwrap { + from_pool_share_id: ::core::primitive::u32, + into_asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + rescue_tokens { + from_pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid transaction amount"] + InvalidAmount, + #[codec(index = 1)] + #[doc = "AssetId not found in selected pool share"] + UnregisteredAssetId, + #[codec(index = 2)] + #[doc = "Assets not found in selected pool"] + NotFoundInPool, + #[codec(index = 3)] + #[doc = "Insufficient Balance for an asset"] + InsufficientBalance, + #[codec(index = 4)] + NoWrappingFeePercentFound, + #[codec(index = 5)] + #[doc = "Invalid nonce"] + InvalidNonce, + #[codec(index = 6)] + #[doc = "Name exceeds maximum limit"] + NameExceedsMaximumLimit, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + WrappedToken { + pool_share_asset: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + UnwrappedToken { + pool_share_asset: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + UpdatedWrappingFeePercent { + into_pool_share_id: ::core::primitive::u32, + wrapping_fee_percent: ::core::primitive::u128, + }, + #[codec(index = 3)] + UpdatedFeeRecipient { + fee_recipient: ::subxt::utils::AccountId32, + pool_share_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + TokensRescued { + from_pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + }, + } + } } - pub fn bags_list(&self) -> bags_list::calls::TransactionApi { - bags_list::calls::TransactionApi + pub mod pallet_token_wrapper_handler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] + #[doc = "method. Ensures that only the bridge can call this function."] + execute_wrapping_fee_proposal { + wrapping_fee_percent: ::core::primitive::u128, + into_pool_share_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 1)] + execute_add_token_to_pool_share { + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 2)] + execute_remove_token_from_pool_share { + name: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] + #[doc = "who will be receiving wrapping fee cost for given asset."] + #[doc = "Ensures that only the bridge can call this function."] + execute_set_fee_recipient_proposal { + pool_share_id: ::core::primitive::u32, + fee_recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] + #[doc = "fee recipient to given recipient address from given asset."] + #[doc = "Ensures that only the bridge can call this function."] + execute_rescue_tokens_proposal { + pool_share_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + recipient: ::subxt::utils::AccountId32, + nonce: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Access violation."] + InvalidPermissions, + #[codec(index = 1)] + ResourceIsAlreadyAnchored, + #[codec(index = 2)] + TokenWrapperHandlerNotFound, + #[codec(index = 3)] + #[doc = "Storage overflowed."] + StorageOverflow, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + UpdatedWrappingFeePercent { + wrapping_fee_percent: ::core::primitive::u128, + }, + } + } } - pub fn nomination_pools( - &self, - ) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi + pub mod pallet_transaction_pause { + use super::runtime_types; + pub mod module { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + pause_transaction { + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + unpause_transaction { + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "can not pause"] + CannotPause, + #[codec(index = 1)] + #[doc = "invalid character encoding"] + InvalidCharacter, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Paused transaction"] + TransactionPaused { + pallet_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, + function_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + #[doc = "Unpaused transaction"] + TransactionUnpaused { + pallet_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, + function_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, + }, + } + } } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { - scheduler::calls::TransactionApi + pub mod pallet_transaction_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::utils::AccountId32, + actual_fee: ::core::primitive::u128, + tip: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargeTransactionPayment( + #[codec(compact)] pub ::core::primitive::u128, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Releases { + #[codec(index = 0)] + V1Ancient, + #[codec(index = 1)] + V2, + } } - pub fn preimage(&self) -> preimage::calls::TransactionApi { - preimage::calls::TransactionApi + pub mod pallet_treasury { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] + #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] + #[doc = "proposal is awarded."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + propose_spend { + #[codec(compact)] + value: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "Reject a proposed spend. The original deposit will be slashed."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + reject_proposal { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::ApproveOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = " - O(1)."] + approve_proposal { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + spend { + #[codec(compact)] + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 4)] + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[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 = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] + #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] + #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + remove_approval { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the treasury 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 = "Too many approvals in the queue."] + TooManyApprovals, + #[codec(index = 3)] + #[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 = 4)] + #[doc = "Proposal has not been approved."] + ProposalNotApproved, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New proposal."] + Proposed { + proposal_index: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "We have ended a spend period and will now allocate funds."] + Spending { + budget_remaining: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Some funds have been allocated."] + Awarded { + proposal_index: ::core::primitive::u32, + award: ::core::primitive::u128, + account: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A proposal was rejected; funds were slashed."] + Rejected { + proposal_index: ::core::primitive::u32, + slashed: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "Some of our funds have been burnt."] + Burnt { + burnt_funds: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] + Rollover { + rollover_balance: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "Some funds have been deposited."] + Deposit { value: ::core::primitive::u128 }, + #[codec(index = 7)] + #[doc = "A new spend proposal has been approved."] + SpendApproved { + proposal_index: ::core::primitive::u32, + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "The inactive funds of the pallet have been updated."] + UpdatedInactive { + reactivated: ::core::primitive::u128, + deactivated: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Proposal<_0, _1> { + pub proposer: _0, + pub value: _1, + pub beneficiary: _0, + pub bond: _1, + } } - pub fn hasher_bn254(&self) -> hasher_bn254::calls::TransactionApi { - hasher_bn254::calls::TransactionApi + pub mod pallet_utility { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 : :: std :: vec :: Vec < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 : :: std :: vec :: Vec < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: OriginCaller > , call : :: std :: boxed :: Box < runtime_types :: tangle_standalone_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 : :: std :: vec :: Vec < runtime_types :: tangle_standalone_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 : :: std :: boxed :: Box < runtime_types :: tangle_standalone_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Too many calls batched."] + TooManyCalls, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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 fn asset_registry(&self) -> asset_registry::calls::TransactionApi { - asset_registry::calls::TransactionApi + pub mod pallet_vanchor { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] create { max_edges : :: core :: primitive :: u32 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] transact { id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 2)] register_and_transact { owner : :: subxt :: utils :: AccountId32 , public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 3)] set_max_deposit_amount { max_deposit_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] set_min_withdraw_amount { min_withdraw_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid transaction proof"] + InvalidTransactionProof, + #[codec(index = 1)] + #[doc = "Variable Anchor not found."] + NoVAnchorFound, + #[codec(index = 2)] + #[doc = "Invalid nullifier that is already used"] + #[doc = "(this error is returned when a nullifier is used twice)"] + AlreadyRevealedNullifier, + #[codec(index = 3)] + InvalidExtAmount, + #[codec(index = 4)] + InvalidDepositAmount, + #[codec(index = 5)] + InvalidWithdrawAmount, + #[codec(index = 6)] + InvalidExtData, + #[codec(index = 7)] + InvalidInputNullifiers, + #[codec(index = 8)] + InvalidFee, + #[codec(index = 9)] + InvalidPublicAmount, + #[codec(index = 10)] + #[doc = "Invalid nonce"] + InvalidNonce, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + # [codec (index = 0)] # [doc = "New tree created"] VAnchorCreation { tree_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Transaction has been made"] Transaction { transactor : :: subxt :: utils :: AccountId32 , tree_id : :: core :: primitive :: u32 , leafs : :: std :: vec :: Vec < runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element > , encrypted_output1 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , encrypted_output2 : :: std :: vec :: Vec < :: core :: primitive :: u8 > , amount : :: core :: primitive :: i128 , } , # [codec (index = 2)] # [doc = "Deposit hook has executed successfully"] Deposit { depositor : :: subxt :: utils :: AccountId32 , tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , } , # [codec (index = 3)] MaxDepositAmountChanged { max_deposit_amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] MinWithdrawAmountChanged { min_withdraw_amount : :: core :: primitive :: u128 , } , } + } } - pub fn currencies(&self) -> currencies::calls::TransactionApi { - currencies::calls::TransactionApi + pub mod pallet_vanchor_handler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] # [doc = "This will be called by bridge when proposal to create a"] # [doc = "vanchor has been successfully voted on."] execute_vanchor_create_proposal { src_chain_id : :: core :: primitive :: u64 , r_id : runtime_types :: webb_proposals :: header :: ResourceId , max_edges : :: core :: primitive :: u32 , tree_depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "This will be called by bridge when proposal to add/update edge of a"] # [doc = "vanchor has been successfully voted on."] execute_vanchor_update_proposal { r_id : runtime_types :: webb_proposals :: header :: ResourceId , merkle_root : runtime_types :: tangle_standalone_runtime :: protocol_substrate_config :: Element , src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId , nonce : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "This will by called by bridge when proposal to set new resource for"] # [doc = "handler has been successfully voted on."] execute_set_resource_proposal { r_id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Execute set max deposit limit proposal."] # [doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] # [doc = "anchor system."] execute_set_max_deposit_limit_proposal { max_deposit_limit : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execute set min withdrawal limit proposal."] # [doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] # [doc = "variable anchor system."] execute_set_min_withdrawal_limit_proposal { min_withdraw_limit : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Access violation."] + InvalidPermissions, + #[codec(index = 1)] + ResourceIsAlreadyAnchored, + #[codec(index = 2)] + AnchorHandlerNotFound, + #[codec(index = 3)] + SourceChainIdNotFound, + #[codec(index = 4)] + #[doc = "Storage overflowed."] + StorageOverflow, + #[codec(index = 5)] + #[doc = "Invalid nonce"] + InvalidNonce, + #[codec(index = 6)] + #[doc = "Invalid resource ID"] + InvalidResourceId, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event { + #[codec(index = 0)] + AnchorCreated, + #[codec(index = 1)] + AnchorEdgeAdded, + #[codec(index = 2)] + AnchorEdgeUpdated, + #[codec(index = 3)] + ResourceAnchored, + } + } } - pub fn tokens(&self) -> tokens::calls::TransactionApi { - tokens::calls::TransactionApi + pub mod pallet_vanchor_verifier { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] force_set_parameters { configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + VerifyingParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during verification"] + VerifyError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } } - pub fn token_wrapper(&self) -> token_wrapper::calls::TransactionApi { - token_wrapper::calls::TransactionApi + pub mod pallet_verifier { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Parameters haven't been initialized"] + VerifyingParametersNotInitialized, + #[codec(index = 1)] + #[doc = "Error during verification"] + VerifyError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + pub enum Event {} + } } - pub fn mixer_verifier_bn254( - &self, - ) -> mixer_verifier_bn254::calls::TransactionApi { - mixer_verifier_bn254::calls::TransactionApi + pub mod pallet_vesting { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + 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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , 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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [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 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "Error for the 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 :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + 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::utils::AccountId32, + unvested: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "An \\[account\\] has become fully vested."] + VestingCompleted { + account: ::subxt::utils::AccountId32, + }, + } + } + pub mod vesting_info { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VestingInfo<_0, _1> { + pub locked: _0, + pub per_block: _0, + pub starting_block: _1, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Releases { + #[codec(index = 0)] + V0, + #[codec(index = 1)] + V1, + } } - pub fn merkle_tree_bn254( - &self, - ) -> merkle_tree_bn254::calls::TransactionApi { - merkle_tree_bn254::calls::TransactionApi + pub mod primitive_types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct U256(pub [::core::primitive::u64; 4usize]); } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::calls::TransactionApi { - linkable_tree_bn254::calls::TransactionApi + pub mod sp_arithmetic { + use super::runtime_types; + pub mod fixed_point { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct FixedU128(pub ::core::primitive::u128); + } + pub mod per_things { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct PerU16(pub ::core::primitive::u16); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Perbill(pub ::core::primitive::u32); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Percent(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Permill(pub ::core::primitive::u32); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ArithmeticError { + #[codec(index = 0)] + Underflow, + #[codec(index = 1)] + Overflow, + #[codec(index = 2)] + DivisionByZero, + } } - pub fn mixer_bn254(&self) -> mixer_bn254::calls::TransactionApi { - mixer_bn254::calls::TransactionApi + pub mod sp_consensus_aura { + use super::runtime_types; + pub mod sr25519 { + use super::runtime_types; + pub mod app_sr25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public( + pub runtime_types::sp_core::sr25519::Public, + ); + } + } } - pub fn signature_bridge( - &self, - ) -> signature_bridge::calls::TransactionApi { - signature_bridge::calls::TransactionApi + pub mod sp_consensus_slots { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Slot(pub ::core::primitive::u64); } - pub fn v_anchor_bn254(&self) -> v_anchor_bn254::calls::TransactionApi { - v_anchor_bn254::calls::TransactionApi + pub mod sp_core { + use super::runtime_types; + pub mod crypto { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); + } + pub mod ecdsa { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 33usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 65usize]); + } + pub mod ed25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 64usize]); + } + pub mod offchain { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OpaqueMultiaddr( + pub ::std::vec::Vec<::core::primitive::u8>, + ); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OpaqueNetworkState { + pub peer_id: runtime_types::sp_core::OpaquePeerId, + pub external_addresses: ::std::vec::Vec< + runtime_types::sp_core::offchain::OpaqueMultiaddr, + >, + } + } + pub mod sr25519 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 64usize]); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Void {} } - pub fn v_anchor_handler_bn254( - &self, - ) -> v_anchor_handler_bn254::calls::TransactionApi { - v_anchor_handler_bn254::calls::TransactionApi + pub mod sp_finality_grandpa { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public(pub runtime_types::sp_core::ed25519::Public); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature( + pub runtime_types::sp_core::ed25519::Signature, + ); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Equivocation<_0, _1> { + #[codec(index = 0)] + Prevote( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_finality_grandpa::app::Public, + runtime_types::finality_grandpa::Prevote<_0, _1>, + runtime_types::sp_finality_grandpa::app::Signature, + >, + ), + #[codec(index = 1)] + Precommit( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_finality_grandpa::app::Public, + runtime_types::finality_grandpa::Precommit<_0, _1>, + runtime_types::sp_finality_grandpa::app::Signature, + >, + ), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EquivocationProof<_0, _1> { + pub set_id: ::core::primitive::u64, + pub equivocation: + runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, + } } - pub fn token_wrapper_handler( - &self, - ) -> token_wrapper_handler::calls::TransactionApi { - token_wrapper_handler::calls::TransactionApi + pub mod sp_npos_elections { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ElectionScore { + pub minimal_stake: ::core::primitive::u128, + pub sum_stake: ::core::primitive::u128, + pub sum_stake_squared: ::core::primitive::u128, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Support<_0> { + pub total: ::core::primitive::u128, + pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, + } } - pub fn key_storage(&self) -> key_storage::calls::TransactionApi { - key_storage::calls::TransactionApi + pub mod sp_runtime { + use super::runtime_types; + pub mod generic { + use super::runtime_types; + pub mod digest { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum DigestItem { + #[codec(index = 6)] + PreRuntime( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 4)] + Consensus( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 5)] + Seal( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 0)] + Other(::std::vec::Vec<::core::primitive::u8>), + #[codec(index = 8)] + RuntimeEnvironmentUpdated, + } + } + pub mod era { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum 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 unchecked_extrinsic { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct UncheckedExtrinsic<_0, _1, _2, _3>( + pub ::std::vec::Vec<::core::primitive::u8>, + #[codec(skip)] + pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, + ); + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum 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, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ModuleError { + pub index: ::core::primitive::u8, + pub error: [::core::primitive::u8; 4usize], + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MultiSignature { + #[codec(index = 0)] + Ed25519(runtime_types::sp_core::ed25519::Signature), + #[codec(index = 1)] + Sr25519(runtime_types::sp_core::sr25519::Signature), + #[codec(index = 2)] + Ecdsa(runtime_types::sp_core::ecdsa::Signature), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TokenError { + #[codec(index = 0)] + NoFunds, + #[codec(index = 1)] + WouldDie, + #[codec(index = 2)] + BelowMinimum, + #[codec(index = 3)] + CannotCreate, + #[codec(index = 4)] + UnknownAsset, + #[codec(index = 5)] + Frozen, + #[codec(index = 6)] + Unsupported, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionalError { + #[codec(index = 0)] + LimitReached, + #[codec(index = 1)] + NoLayer, + } } - pub fn v_anchor_verifier( - &self, - ) -> v_anchor_verifier::calls::TransactionApi { - v_anchor_verifier::calls::TransactionApi + pub mod sp_session { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MembershipProof { + pub session: ::core::primitive::u32, + pub trie_nodes: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub validator_count: ::core::primitive::u32, + } } - pub fn transaction_pause( - &self, - ) -> transaction_pause::calls::TransactionApi { - transaction_pause::calls::TransactionApi + pub mod sp_staking { + use super::runtime_types; + pub mod offence { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OffenceDetails<_0, _1> { + pub offender: _1, + pub reporters: ::std::vec::Vec<_0>, + } + } } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::calls::TransactionApi + pub mod sp_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeVersion { + pub spec_name: ::std::string::String, + pub impl_name: ::std::string::String, + pub authoring_version: ::core::primitive::u32, + pub spec_version: ::core::primitive::u32, + pub impl_version: ::core::primitive::u32, + pub apis: ::std::vec::Vec<( + [::core::primitive::u8; 8usize], + ::core::primitive::u32, + )>, + pub transaction_version: ::core::primitive::u32, + pub state_version: ::core::primitive::u8, + } } - pub fn identity(&self) -> identity::calls::TransactionApi { - identity::calls::TransactionApi + pub mod sp_weights { + use super::runtime_types; + pub mod weight_v2 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OldWeight(pub ::core::primitive::u64); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeDbWeight { + pub read: ::core::primitive::u64, + pub write: ::core::primitive::u64, + } } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi + pub mod tangle_standalone_runtime { + use super::runtime_types; + pub mod opaque { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SessionKeys { pub aura : runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public , pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub dkg : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } + } + pub mod protocol_substrate_config { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Element(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MaxAssetIdInPool; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct MaxEdges; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxVotes; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NposSolution16 { + pub votes1: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes2: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ), + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes3: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 2usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes4: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 3usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes5: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 4usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes6: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 5usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes7: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 6usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes8: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 7usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes9: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 8usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes10: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 9usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes11: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 10usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes12: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 11usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes13: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 12usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes14: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 13usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes15: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 14usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes16: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 15usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum OriginCaller { + #[codec(index = 0)] + system( + runtime_types::frame_support::dispatch::RawOrigin< + ::subxt::utils::AccountId32, + >, + ), + #[codec(index = 15)] + Council( + runtime_types::pallet_collective::RawOrigin< + ::subxt::utils::AccountId32, + >, + ), + #[codec(index = 2)] + Void(runtime_types::sp_core::Void), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Runtime; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeCall { + # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 2)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 4)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 8)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 9)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Call ,) , # [codec (index = 10)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Call ,) , # [codec (index = 11)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Call ,) , # [codec (index = 12)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Call ,) , # [codec (index = 13)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 14)] Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 16)] Vesting (runtime_types :: pallet_vesting :: pallet :: Call ,) , # [codec (index = 17)] Claims (runtime_types :: pallet_ecdsa_claims :: pallet :: Call ,) , # [codec (index = 18)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , # [codec (index = 19)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 20)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 21)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 23)] Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , # [codec (index = 24)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 25)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 26)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 27)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 28)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 29)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 31)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Call ,) , # [codec (index = 32)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Call ,) , # [codec (index = 33)] Currencies (runtime_types :: orml_currencies :: module :: Call ,) , # [codec (index = 34)] Tokens (runtime_types :: orml_tokens :: module :: Call ,) , # [codec (index = 35)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Call ,) , # [codec (index = 36)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Call ,) , # [codec (index = 37)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Call ,) , # [codec (index = 38)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Call ,) , # [codec (index = 39)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Call ,) , # [codec (index = 40)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Call ,) , # [codec (index = 41)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Call ,) , # [codec (index = 42)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Call ,) , # [codec (index = 43)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Call ,) , # [codec (index = 44)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Call ,) , # [codec (index = 45)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Call ,) , # [codec (index = 46)] TransactionPause (runtime_types :: pallet_transaction_pause :: module :: Call ,) , # [codec (index = 47)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 48)] Identity (runtime_types :: pallet_identity :: pallet :: Call ,) , # [codec (index = 49)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 50)] Eth2Client (runtime_types :: pallet_eth2_light_client :: pallet :: Call ,) , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeEvent { + # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 2)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 4)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 5)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 8)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 9)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Event ,) , # [codec (index = 10)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Event ,) , # [codec (index = 11)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Event ,) , # [codec (index = 12)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Event ,) , # [codec (index = 13)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 14)] Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 16)] Vesting (runtime_types :: pallet_vesting :: pallet :: Event ,) , # [codec (index = 17)] Claims (runtime_types :: pallet_ecdsa_claims :: pallet :: Event ,) , # [codec (index = 18)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , # [codec (index = 19)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 20)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 21)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 23)] Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , # [codec (index = 24)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 25)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 26)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 27)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 28)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 29)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 30)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 31)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Event ,) , # [codec (index = 32)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Event ,) , # [codec (index = 34)] Tokens (runtime_types :: orml_tokens :: module :: Event ,) , # [codec (index = 35)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Event ,) , # [codec (index = 36)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Event ,) , # [codec (index = 37)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Event ,) , # [codec (index = 38)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Event ,) , # [codec (index = 39)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Event ,) , # [codec (index = 40)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Event ,) , # [codec (index = 41)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Event ,) , # [codec (index = 42)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Event ,) , # [codec (index = 43)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Event ,) , # [codec (index = 44)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Event ,) , # [codec (index = 45)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Event ,) , # [codec (index = 46)] TransactionPause (runtime_types :: pallet_transaction_pause :: module :: Event ,) , # [codec (index = 47)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 48)] Identity (runtime_types :: pallet_identity :: pallet :: Event ,) , # [codec (index = 49)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 50)] Eth2Client (runtime_types :: pallet_eth2_light_client :: pallet :: Event ,) , } } - pub fn eth2_client(&self) -> eth2_client::calls::TransactionApi { - eth2_client::calls::TransactionApi + pub mod webb_primitives { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod vanchor { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ExtData<_0, _1, _2, _3> { + pub recipient: _0, + pub relayer: _0, + pub ext_amount: _1, + pub fee: _2, + pub refund: _2, + pub token: _3, + pub encrypted_output1: + ::std::vec::Vec<::core::primitive::u8>, + pub encrypted_output2: + ::std::vec::Vec<::core::primitive::u8>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ProofData<_0> { + pub proof: ::std::vec::Vec<::core::primitive::u8>, + pub public_amount: _0, + pub roots: ::std::vec::Vec<_0>, + pub input_nullifiers: ::std::vec::Vec<_0>, + pub output_commitments: ::std::vec::Vec<_0>, + pub ext_data_hash: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct VAnchorMetadata<_0, _1> { + pub creator: ::core::option::Option<_0>, + pub asset: _1, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct DepositDetails<_0, _1> { + pub depositor: _0, + pub deposit: _1, + } + } } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen< - T: ::subxt::Config, - C: ::subxt::client::OfflineClientT, - >( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 252u8, 112u8, 119u8, 166u8, 185u8, 122u8, 114u8, 179u8, 162u8, - 6u8, 63u8, 146u8, 2u8, 66u8, 50u8, 50u8, 183u8, 239u8, 254u8, - 73u8, 221u8, 31u8, 48u8, 111u8, 194u8, 190u8, 86u8, 37u8, 19u8, - 129u8, 130u8, 170u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) + pub mod webb_proposals { + use super::runtime_types; + pub mod header { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ResourceId(pub [::core::primitive::u8; 32usize]); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum TypedChainId { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Evm(::core::primitive::u32), + #[codec(index = 2)] + Substrate(::core::primitive::u32), + #[codec(index = 3)] + PolkadotParachain(::core::primitive::u32), + #[codec(index = 4)] + KusamaParachain(::core::primitive::u32), + #[codec(index = 5)] + RococoParachain(::core::primitive::u32), + #[codec(index = 6)] + Cosmos(::core::primitive::u32), + #[codec(index = 7)] + Solana(::core::primitive::u32), + #[codec(index = 8)] + Ink(::core::primitive::u32), + } + } + pub mod nonce { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Nonce(pub ::core::primitive::u32); + } + pub mod proposal { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum Proposal<_0> { + # [codec (index = 0)] Signed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] Unsigned { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub enum ProposalKind { + #[codec(index = 0)] + Refresh, + #[codec(index = 1)] + ProposerSetUpdate, + #[codec(index = 2)] + EVM, + #[codec(index = 3)] + AnchorCreate, + #[codec(index = 4)] + AnchorUpdate, + #[codec(index = 5)] + TokenAdd, + #[codec(index = 6)] + TokenRemove, + #[codec(index = 7)] + WrappingFeeUpdate, + #[codec(index = 8)] + ResourceIdUpdate, + #[codec(index = 9)] + RescueTokens, + #[codec(index = 10)] + MaxDepositLimitUpdate, + #[codec(index = 11)] + MinWithdrawalLimitUpdate, + #[codec(index = 12)] + SetVerifier, + #[codec(index = 13)] + SetTreasuryHandler, + #[codec(index = 14)] + FeeRecipientUpdate, + } + } } } } From 09aa887d5826400dcf56fb8f56c59d2b3e984390 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Mon, 15 May 2023 15:21:33 +0530 Subject: [PATCH 2/8] version bump --- Cargo.toml | 2 +- proposals/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 91b7e19..e8aad9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ thiserror = "1" [package] name = "webb" -version = "0.5.22" +version = "0.5.23" description = "Webb SDK" keywords = ["webb", "sdk", "blockchain", "webb-tools"] include = ["Cargo.toml", "contracts/", "metadata/", "src/**/*.rs", "build.rs", "README.md", "LICENSE"] diff --git a/proposals/Cargo.toml b/proposals/Cargo.toml index 14208d4..9d2fb0e 100644 --- a/proposals/Cargo.toml +++ b/proposals/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webb-proposals" -version = "0.5.22" +version = "0.5.23" description = "Webb Protocol Proposals Specification & Implementation (part of webb-rs SDK)" categories = ["encoding", "no-std"] keywords = ["webb", "proposals", "protocol", "blockchain"] From bb4c5e86207da272cc9e81b69ff7f2af9380b429 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Mon, 15 May 2023 17:02:54 +0530 Subject: [PATCH 3/8] update tests --- metadata/dkg-runtime.scale | Bin 151658 -> 151011 bytes src/substrate/dkg_runtime.rs | 1790 +++++++++++++++------------------- tests/dkg.rs | 41 +- 3 files changed, 795 insertions(+), 1036 deletions(-) diff --git a/metadata/dkg-runtime.scale b/metadata/dkg-runtime.scale index 912b0c63448da537820fd356726dc5076cb94dcb..c6c8cf6d369eb448aca9dd1687b106bc7a1b7ee5 100644 GIT binary patch delta 15528 zcma)j4SZC^wfLO5cf$sfuptTAkPmJkfdrDx2MGowz(OKK2_YmwD8}R_dqY8q%Cr6W~Z=qqh`l~%f?D}B;J|DugG3jISBmHy>fw5X`G+WJNNKQnjpX@cc< z+040fX6DS9GiT16bMCwQqu+Ww`l;g*RO`Q%(xEo=hSUVov+$&TAe^8t$};QgO#cgC z>I>#AxXS14@cLEPEeH~Qf95QBMt3XOdYm%n zYq4%kj=63>A1M`IgVCJ1=xZ>3pIQDj7$wtc;6&)&Y5xKGzn+f{xpLD0=kUe!oahsT zP(q%KaYcA}BRn0tJL?r$zi(C>qI@_@!C%X48~!euor}Lt@vG0y#`3Y*Ir#g(qBcG+ zpX1~SoV;QzKap38zkkT%IA7!y;P32w{0*(o4@>dZvO2FT7;t($bpfwWbHuPIK}a)$ z)$4O^aC(@13t06Og&Q>*``IP{^Hr^`UHUaq~{o0hO zwjnM2N^_mpt>xHTTfIR~pvsZkoYw%nxnB^V^tV$wRlnj7wz!=E&4DBFPP-MqbAt!L zj&{|rDJ@-!s<@pV&8Kvt(1>B12Rd%HWkU@%@^w1>THY|4jJ}QWG;E0-ID$T>XM?~B zdWMbS_2EF(&|E)%e%wu7U#nIlSkr7%^z>poEDtpmub|x(t2jyZJ{22tb|Ndm(&qEJ zKZbfywE){Mad}(sTp4t?XugF6%mMG%m5DxNkHZ2n!8ygmBtKn`L~4R=H8T6az*xwg zION0z=O)dgh<3U+&J}vLl!E@jr5S8q0A|hn6moJ}yk1wHvc!{%!j@I()_fZ@Piq&E z2>Fx{*?ihUz6?D#*AEncUAzaTg>EZ*(L_xU%3YWQ=Cl?hsa5j{p$It^JqK9D9_oP< zy~18Vqk-*z1eEbeL_n772`mVG&pw_)Z0Nt2mYN`5e{=bb^A*9tN}no&#qD)yDFA8w z74n|M$pO3K(K?kj&SgdO;o>5Su~?dZ=4LmI1@>||WavMvvS5edssc#T->FI;p9F+N z#R5qI_WDDx8q!0tHx~iT1g1WL0=)K?9-56)Isj8bpWNa$L9X6fyA1O6pVU4MrTVhf zuVPuLE1p~gu)yytE-fvZH-G-BV2jJyN=T93UN>uEDGovB0l^1ZMRa?8lK#uO+(~wv z!4lP_B4-H1cso6I{c2qTRO+VsLW`Z#WhIroZ55Czy|R8y+|U-JT0d0ZkW$ML@<;>! zvknM8IEKYS8ujFc8$i`-8m8Ga00-(vAMP5bTbnN z(`5ZQRC zgcLWQ;zl6&;1mlBNszxNBwhM%Zkw#XxBe#Bsu$lj1AqG(ZDl<`V!-P0`rN9k2Y^de zp0@)fgKx2cS6Ob=<4|$XE(3@3U}vkR?f@vO>EM_PZq=L{+5@=f5Os4?z#C9qJM_ZF zw4_mR$PQg?%!c~~LHimL({=%FVa-?J^mnL%*7l_?)$d<`+j1cxyO2s1cIySVFMvI| z>-Je0xJo6%R|c}2$oD3X>ee*<7q_p6y}G5Te9m5wW0rb5ai_pOATq%pB7W!rAow76 z4uXXo#FAvjDl<70+TQdBI^i&{iy_w2&D!{uR$H>Bj(+^}(_mmEyuiYdWdHqt7!#`s~wJ1?FUosz=Ts(XE|-ASueEwTjv=o|y#9~vHJM4GgLtHcq)>Ajs?1ijY%FWMP6xpiNT>Q6 zaVeqgJw;M-CLL8?1dEfhaa=Aj`8a4lle6_}_ZGlGJ%5KSE|)^uYEAW{fDw|bJ9m^! z&Bvi>HYG))_siulsWj5VMf$oN#d9AOR~egW2i8fp+Fb&*Qz8Qc|ur?Ytqf z(SEjbTs)p5Iozm-96n@i==q&8#D9_)BpC!Dt(ncIfC1*{}kIc?Mw+R zd-N`vTsig%%&v;8K=qIns2UqzKm5x{OuG4q2dC;hz zU`Z*B6pyUstwEo!Ntj|y9l;iya95T70V@Iio2gekHVI3&J~orLc|Jc`z0T;bJvJ#> z8?%1eEr~(JeIScxUt(5ebwF@;~QyVwYqt=*5UO9G@lQC%lk6QK9y#)}| zbG~E8H=Kmvm_wwF%CN4n@n>v}Ft}$3gSQH1J-MIsa84q$Bb5L6y(Z~?v{4^EGCB0Z z{vtX6B>vaSAnl^?$j_5Q*M9I81$XG;kM>04narp4@R59Q>%TrSmF}YYnRKiEk0boH zllk+RcoOG7o*t7}>GOGg!UnAf`F_4ns#vvD^?1C2)mp%(q1178r1^+Ne$sfa_#zd? z{lcek!(Gu@9e!235vohK-`kPAXY6TnIZ56-X8p8jLsn|vm}sd*dm`LBFob&tIMen} za!_#b7l$ap2i4>=hbcL%fAD-k!VwB)tC$zRc!(RbUidqHE_;8M9s^nYN+YJhUlhR8 zgOxHW#Unxnj*d+gpBx<1Yk!-p9}Um59H+zrS)06g^=m?F{iI&>bk@WY16DVvPLDsp z-_3?odgIfx;JDuWc1o6lg1Ck^K|N1Sjycw}m?4ZhC5DVTwvhHxU74P&Hy%q%?i;gh zs-W`>HpSuoS1oVbH|8t07xd+3BaUNAD($-vUtQ$%8g0rD?k3%%fvA z;Nz-(G*bJ|COl{Q2hE~s)%t@k+4VpE;Tw}jACcQ?dehrebn96wIQ62lTi}TP)3e2Kc>n%C>#*LxL2miXDA}_nw_uMknw1iaUk*48S*C- zk9!V$=T)10jiR-~ft>Tj@)ar4+po^gl&?x~M%36}n?a*x{by%y*PnkagXSB>%Ga~y zQW^RL$_ua0K*7BFdN;1i#y5h}H5#LTcq#jlqH%iCg;^9N-F~4A&V=r|@FInC`m#6Q zf%Bn)i+yNO@v4GQ{#y)C8czLr8e9tf<7<&x6Da;bf=JhytVe8alIa+x+*p0|;g(?tJ8ggiQpp;_Hl%L9ASciaDXEmln6co;SfhS z#1Uc)gu@)+h(z!a2uGzl#5l?^VhxOA9OJk|@DUg%c^4-+LY#qciX-$&1RsIW#}WEC z!bAh%jKtkv`mZieOI5+}q(NFhMXy)D-~R${WB<6Eop7G_bwMKdpeT`x61k`syjzXC zZ0ox-CSBsSmnDJ^ueFjZ`q6i9grlLW@4gf$JXZd-!4m&(m(6E9d|80O;OK_5k0=#h`6L47pTY3OThL9`}~ z<28A?r?OcIcoqIq>Cn*qiatx9)~Wg&e(rc}j-a?T?ql@Z3R_*O)7{jec6oyVLY2_7 zS08{{Qf_oTv~o!2t=MF+Q;*W3wyUl--n}0^w*zBzpfgc12GVQ(mSWi939vZm;nX2v zO&vJ%fZrZ^^lvSImhL}3UXT%SA=;GscBfy#$ETrhLPM8sz+0$=Eb{^vgg zylrA5lW3&B_T@8RXA=P;CO=yUFu_0`5B7>Wl0P#}>NP9H9&zk~Z+Hfh!lZ#T}B(63r0;sQ!54+jYO7ruEVvt03Zi`|mf->w;vJc`%j>KaPK zSNBj75^U_V$R<+I-510t!v=+0HIY4|`P@#wADt$GIb0A7@4L|k1^YyEH~I`CNG{Fq zx4T@;d~VIdUvsA{_gFRCR*lxZ3_0lTjC5m?VF7v{o$kRd$i%`bz^=WWegy*qgIiJw zbbC3$_*RgNJnip>D-cvq-cC-A!-)nbFAvspYMUc_SV7OK2(CDMYA5o*hCb>gU5Z0% zQ-iJmkE$5kc*v|YM{}Oi+3xIaZCAMG(~03B!FJB2VHCEbb69h2!g^eqQZVR5ER>`X z>mq_k!{>)lopx;L_lnR?msnjsUqMm8+W_4|Xc}06fvKw=3?3OVD9(?eWB2P*KJ_8; zYDjq^pMj0!O;_x`4M8`?I{aiaYMTC#SiVv%bT7(ZTVzFSr?FmbMgMd&I^HAkslh>w z;cQAl0cV%byGavsST0D4sBS|$qeESYCV@iq`wRrSh{XcKcbRC~tr%*bbAOcWYY6#F zztW;{^=>07tQsOd1Dhb|4=C*_5~Yq5-7zHkRt%_dX_>`U1B#eK^KIc8L@W$9>G{-K zFy0qzZAD3I3%YFFdWTO~&jeI{OD4cVRG3)48TBLnnaTb(0j6_($U{x+@d*&i7RKNk zlkukeD|-Sgg@ZdpbD%M>b`a*G(7)->A2_0>pLh(ARSa)~v*m%ZXxUQMfs+tn4i)d& z8`x8iKwQS)iQjJFLK6cy=$;JtxEI4C>A>67qCbynqtP~wBHVl zwz9sdP&H~lwF=A_-;X#xjrAyS&&Zj@Wul4mI<2T0$b>ZJ$%I{_A;*`9 zFlUp;+l28fKZz*`-#iWSzOtk}(_!iWE}8;}Ok&HzFHZ;8Xt)adW;SG^;c_q=zD;qz zEXaYNCJkrh)2Oo8hqGYzG^{jh)Mbj**jHl@DvfSMy;HHKZs#{DVTc3N&42Uzl*iA1Q`}0pQJINQ6xG zNiod8KWTGd8f3FYb8wI3hP65H-ROeld?}G;Tts)|Tr^fP76Y-!_ZBXGDVA(BaRZo_ zz&3sXNlZzj7M460GP*IgDojtIh%jWY;Mu3)dE;|#a=Nq)8rm=z67gw5v!l*JzBTg^ z{QXg(jKl^k6+{#rzZ8-#@EIDWl(`toO0TyAbzKZj zTqgL2M@xxywdTeng=d%Kj@A;nHliiI8QBuO7;!fzv*ty(?TXlzMQFNavBwv|d-20% zWgX_Hz}TnPotRtdKt{#}*er=_xp@Uw9@K^4pk*WLv80GwiH zmq8DmC+ad-a5)N7IeTI`+&H5W4fQ$=&!h@9pb}Cpj~W2tftpOaY{Y*~%7Y$uJFbpw zu9PcfQfc&_GPFCHRAF9&(RCGj*aKE}ZxtkWS7S3Emep!!5k?^S3JaiECJhKk0+=I{ zb-Z^0l*nW;M#V(AR3?pB5hZ}RGEos2Cx9Ddq9I@wK$$FJ#nA$oCle>uj3V)h|qH6SGB075ASgv1;~ zXo>+LF^3RJH6SGBFhXetR3_(@W+)3%7<@a9y$p1kQ3PUKBaMrAeZ=n->#Ak+W7x5=G8e zX|gDCrb@}8$T=!mMUk^pN)g3Fb-X-9lsPA*R8izyl+r|zvrtMGMb1AdLllqm;#5&Q ziA8Fc$tnJ~my%wYr{7qasT$25ZVydiORM1*Ba#ZTK_o7$&TVE7H-L@JUkM3GgI&{Jr>D)^$G*Q3Y-m57SqWudIR_J0!K3lwx`qj4er&@3Tx8|7sJP0)x79-9 zSDHM#8n&jCwYoIbH!v2F%I3jR{)%n82~t^SJ$yFubi2C&)y>b=V8<$ZX$_=))mD@1 z!(Xm}Pa$o%t}HQTs?1i_<~G~d0}W8Z{@wsLvrX&7#15{5CI4=lc;Rqw(=eQxh&g%M zW|g_uL-JQ?iOLJJ^)Pkx%nRgtgpR^SNKQe6r);&h!RbfWldp>Riuq0Gj1a~w9hVor z3%U4pJwX#B6pq%Dwauxy9RABPlvPER_9pR$nDfFFO;Gf8J%89Ncpj(16vGt6AlDs1 z#|Ck7UuD%Qc2N=TR-uCao1C|n+=;fs!0MygH++T0gvT!rf7b#3`ikIi0hpMkIvhEgD^r183My7Zj}>I7%Q9 z4HMNh2*-44ErXE7=kx{!!9>liI)@-H=-ANF)Q0yI&4)&gCvbsHbVKT#!3JpoOrFHp z@W2~#X6#e3crg8gSa|xU zaRi`Jy~yz|$pjznS;ZbM8=UyS4YAfMGM6vvi*eXA6ig?!K zhh+TI=?7(^i4IM5Nn$_r!<{t6BvLa&0hHo&_J;sy$?2vsjgiS0B*PdvFAW+anMM}} zFku&s_X`X42 zq*5`$N0_-dkB^C9Ia50!hn?62Wz;0G&o{wb3}dn4PE>OCFxGu6K_#{`%8%%^o zR=y3&lN(2;o&B>1W|^%9?J6s}2NDWYldLSMM<-;p+F_P&0gJo_tSEXKk|2Jl(?sw= z5w%!}n~z&VG558$8)m^qwxt_aV531zs2ki-hBun!ZAag6(0Jdp9SRI8ozP{xO2G7Z z*ve-2K&q+71ekNXcpJ_~>p>l`)j;`i4=hdYxz0qQw?k(O76Ib3_$ zoA==TwfRS}--L0nFC6!u2(4MM1h0&hJbZyccT81n#cXbpEPu&gbDyf=3l@QZ{%YkICmsN6x_#u;6taRIo_mcW z9%N@Q1Oi9c^j$D3`QX^|PdXG~?cpH;euzE13yK!v07H^~@k*`&D3w0dI3~$q&gVlW za%Ak@6D@`WrVP=eN7*dAg`1b6dsCO-t(<4+oE zh*^wm4o`XRWjpcp4ZR}-fS@Q_aH;wbUHs59CV~&wwia@Z6MEi6&a=4>gA*>X{STw? zonXBWLw589ffb88^TFMa#u9deGZD!x;TooYu1L=%_V8}F&2pJ{b;U&R;j(o)yzdeI zAwg02SKomfD9mGjeFA1Ajj7?Hdn0Ktr&#qqm=8+$zJ1_^q`aD7pr&mJcai(aIC({t zrz059;g{Q(_B}j9``FC=kTZ6-?C$-Lns-$u*%&^hnNcJc|H@`-eiX@%8jG0WDsW7+ zRF-l8{Uw*f&mMsHq|s>*sf1JVBZ;C_QG=?oiW8L2{&^7Qf*LOUA%?ZC(*@i9BS^eX zeYp2Wuo9w=g78D)Ij9_hVtXcNBvhH^x%on^Afy;$C36j1iC9>APOns z6G1<^#<-_C;wTjAX-Ix7&(HC;`E82bqi`otf8MO|UU8$Ryc#fX-V@*nQ0Om5k4HX! z5P*T$c4tQfi}!DQs?m*JdGtkN3`s;V(AkPSm1diJ_}1_%|B$gWu2~N~95c?=r z$8pwauufl#nPBLps=^Ns1OqD3QI27v90hfh_-CER9;%|&Zd^`Y!TG>*MtMMik8RAC zzl{uo6?i{U+-gS$u9}S$fl}whFERvn^U$H1IT8;%|2s>r;4<>CMJ{m81##eZZ_wpH zAE66fCp>ux9)Z1V(cADN(>{vZoIQ03eScHlfrZjRdW@}q2R2E)w2z&A z2dYhHD4-!f<1Y~AUH-qnz#3pTR?reS$8LBRDy8%ELb&@~JmIi(n7#KNr131TXW4}J z!9|~vS=alZN|$LgyZS!bnjgK7pD12oQ?6i8|7v*A75J+Zjd@_N5=b&l(0}r3YPjJl z-Y(%|cHdtSC50XSD>Or9IPPyC0h|d>`WP?~peX!|0SlPz3%G&T?B59kHDRpjkmQ`d{JlB+`9I;XEQ;(W63xO@JuTrE zO_l8Ls8w;{!ZK}7#Dugj<&q`phWd8SXfIx`tHX0lbfy_<+4@*I9ae<9V=?{6w$3Dz zn8g^16k9kF=eCj4O8u=hYx7su)K|_|>g+dFVy**jBKBDY&0ud^=xyL;OXKO?5Dfn& zp5mtkUF`Kq6ek-#ok0Ht-HVqF4^I2hlWf9|*KqaFJVM*rNGli~#~l)cMN!AlueXDL z@Yl+_8WNPY0jAjDHFCiI++$KYx(Ynr4wqlP7ZtgtgkMggFVUpErns~^V;4ey;ZgQ; zD?N#ZO(2E72QjR93SDBo?tH`FpF(fP1QZ5ov;)mcUm9&O#o|#iK1&ZIxy*-;2Kx}w&9$ktl zs_Yy2__u+5H=n+U_!pSlMt8wU_Jxi5;3D%B(7C2Frc0*n%zhkgwB7=`3eW0 z_@zAbHz0iI;$=}K^j~tc4AJ4}Qu;G9hNX^`Q%qh=VYQ3sN2sfoET;F$`7&OCUsz1P zj|a5dPTxUWwqXgK%`+x5!}l(s`zc%sXIIi@D)-8e9ln1VT^WVAuU6B?khYC0={Mz1 MWQ-7fx)Q1U{}r>J+5i9m delta 16921 zcmc(G4SZC^)%QL3-c2@;z(PLQKms?AKmtkFgane9AW4XlLik7s9||U$>?JJhN7&sE zg3=T#RkXCF7aXazLR(*7TCvhKt~><`R%%hPU>{Ue6jW@fwMwh4R(O2>bMNkE1JP>V z-|v0-T{bgw&&-@TbLN~mANQ?$6aKtA;gLfURclX3nN$~iO==-JtW}ymqYt&pxEa#N z^h0fb`6%r>ahXKgLve*PLVGnX-;_#}M{HdkrD@~iYbae)<871~ygU9gd1$V`v&Glt z2{_$q@F$65lPOW#o;8^s*X~ntv|MFcOnoVt!|$eN&5o82W?dUCSB(o(3kg~zZm80f>Qk6P{3inSuhp9LH-+j zs~{u|%P4E|y1D{Rucs;C^=Utvri`+6`qcF;>Ke5@pgK;FrOoSg34&GotY~U)71gg& z0;^TUAMT|%{fgh&;ZYs=Xh+4Z+C6?0?E%FZP*&Uho=E|vM-3=#s_IcXecpD}?^hj# ziZPIhVn^!oeDPRT#qRQZuN+EPL|VnPYEpu?Oq(b6&S}!|S%|sSrhwgtRmha$^LBY0 z7E0`zRxFt0!;ASEbU3Ax11er)T^-K#KvM_i$SZzhfWn2%Vbs20*f{xj7`9M}tl~?J ztW}r0f=8x{^!<0zgH2^Okoa*TqeQX>e^-9WM3;j1UzmPMDT83%~X+yIg@B?VoDuW5Rm1?0+j_VwL?TQ1;^BtnkYeA^tEfWn)0=x ziL`TXj@A~;O+lk$?$k+1L>UWJUz^kA5-6k1MmP1tO_Z63x7L`|2EbMA?IokyxM{_n$ zPR_${VgU(w1lcSUkx-=lujY!0r9h&_?y`H@Re=({-JSsrRxjAj=P%ddme?$%93!hx z&PS>up-Q`M$&z8Q;6kxbsQjHsONtgNWg;`Ef!&sW?edinze;X#}_Uqa`d0~ zii$?#;5P+)PEUs*G^0{uO`sT3%!3v!F{ zTJzC1HQcC;Savhnv~A1A42=QR9$PlQw~h*wBBkB#aw!3?(%NqKwD{FPOS{*hwpQ?= zn(|teT>jp#v;sM&x1z%B^tV@3gvCV{4gT)JM(E4+=5 z@5hO@cc@CY&lylL97b>FgV#>TYt1X1#X%g-4%N?3s_HJxM z4i%$1(5iSn`q2-gkgv3L1(Xieqxyhnk8%0|56pTVkD^kjECmAKD<$AlAro{NfpcY7 zR&}9KXSKpus;!6+qNUrZS(cBZY|Xa3egFk;U!Gn4#S8p*>uWaF*Y-v0`(n)J7?>+D z`<>4*57Qh1htt$=*A6eQA!ks!;Vh-wIUA}Z-~k)jY=V0+>w$tBf545kYb=m#? zN=VR|g0Pt*sg1vB8g0>*+*C>6+^KhzaC4UMYZ zF?FeNe5%{qp+W-wyjX4pS3}*cQhjDh^r+o?i56C~pT^-*;qFMMg+ax!mHsWh4g;;o zP+tXMtf(L1vx)*i#BuglDD@tP6RK8;pq;NY_4vV(kp?B#r?xvgovLR}An$Fxr@qjy z)HN`G7}^mvi{=F1QfvPGn*Sf}QQ0c5uN}HGyi8n9O%ezm>w`kYHUoH+Ih^rGs^`}iwv82ZO{k7Z$PopSF?XDkW)kOr&23bTHx)1~eH^)lM4WvsPBKYxAg+>Cuh%8gxR*C@rdm5?98J}xOz zbV;#4cz*4Jl-x&_3@FKVuTRZro)-v~D6D*Oslj zn@(!)uXE5TZLx3C_|rt$VUau^Xq_5l);+%IbXt4amm{7b?d-5oTAIIv&S?(?W>b=O zF_04csXv|~4Z(|nH6~P6Y;2_S+AlVaia$^0d7y}9*_5gMd1ESF`2NjySU+tyFB312 zHf&RF+0|EzA;&1|HhJ)8G=jd2=#;Z@aZPc~|s8N>;&4W~XD9 zcI?)?gaSTBo``$vr?<|auq5f-Y8rtnXzt>QipVWia0J`GIeh@H1s}X^zu0@*)vD); zmJzriF3=CHVmA~IzpL0?xI{U66sHGvmK#bxABLFX@p2^)Rdap?0*~L++ygFF`t_tu zzh9eG2*K{v-o4uHyV8d!P+Tpme5zWiedqQJDh>Yp_8$yxU&j8q-NNL7Qwvdld+a!562fhtj`6LnMSb}c2bUgzgrG&YFZ?zB|xpf-UPX=k<6 z^hF}>a&y|de7+Xlv~20@Y6C%fsEwE7x6s8&iCPb*T1Idq z>o7^1MA8oLOAG$%hecwvGW-7Dle8IcY!8nL7VLRTBzthgPj@EZvU>lHbifyoUHj|4 zaeztG_Uss?eehHQV7cdH(ZiF(Eqwg3Lwr83Pq&U|1%LeTeG>cnJ=B@Jb#TP>y-wct zIWIY($HowP``~c3Tf?j08MFGGe9>D)VV6#YNAD8_JP?PE?-7MPgO8&lLl0=%9?R64 z`=(j;ih_l**Lwr1zXc~?pZ08Dwsx>@81d2++OPeyZ!*r*_{SzD@B5q)`3e$aRT>|JtE~pL@q?p>$kgtDFmOf|kRF zw|oM9SuVBYU9Br}BoWaMnd%#zSwN62tzyZyha$4nJ^ofqYV=4cg(OV}p}_ zD^lWVzV#jl87{`W=lO2WaO zdTNFC%I`D92S_V=@g{BQ2}M3YbU<%^>4d^>i+cOXadMG}bIIXfJUK@05y8E@vgn0z zIK1m#*oM34XD@7#FNlyR{KeaUD3mXXbXl+X{<~N{Cx!dVrzU|f^G|INKantci#GDb zO!)n5FWx5S$T&E>cgjl>@pB+!9gT-fM{l)8VPt@Sz(^_NRa`^(d-`^z&L`pad@`^)7j zFK6iE7unXuREjq7N^kg8@z$7E({{#GO7_H5O83Q7rXN5>;0q8*67WD7G?PgZ@Cb1a z34A$Xk|f}PHgBd85?+kZ!Aw%BB;XNDap{tfuAP0eu$Qk`%#s8=I(QBT&p}1P47?vF zgIFL5cyxdw4p77a@Sg*4+KA>JSYa zVv!`^(IJ{SL^FqoGlp2s0ai)^9v#5W0qh(g-T+WJfKw9i=m2gG;N}3_R|F*1aeyvK zz@r27aDW~O^GgW^#3l~0SrYK*5L-CJ7F47m2EbMhuuT&1=m6U}z;+HW)BxDY0d`3O z9v$F54sag_NHhTUaDWFS0gn!_S84>rUJj9DK97&(2??-@C2Brgt6--}-|S{^TL)ykx{7w1+N?u#{QW zc%2?IS?zA_1S<_5zi^T00y`W>V{oepzV_~Tve?>PcBi|g)86Cl3J9V#*!bSJaanuc zs?U%MflZE#NN=2HtNYs?*#bS7z%Gj)HK6qYyd-+QR8?Rp4rYe@%tX z2zY}<7jJ<?w+9(FpjETme}h_G=XM^#9@>}i7`6=1RFb&6t-kIotZ!9 z3VRvVShF*iPu-$!fb}U;87Gw8;cyzB^Q&jB47FKk-vB$EWsanpjMyQq2KU0VzaHLq zwKU`%NxzY(GBhm>M7PG^X`))MyVIp^a0Yr5<{U*E$Hoq%puZD7dlf?=)Vj)_z&;v9 zADBrd2X|Fz`~Q(5&lF7g%#=>2Vy$cTr*!&lYV24k?W=jrE-s&iM$?l6V6lJ-c4Q1) zuf%r9=C>=I(0ulOf{z#DXR%osbmr6=$Fp{uFN^`MJk5hxk8zzIyzKe zxJh>?S11elG_gpq=QAn85IdrI7Bh{dKMXqUvfkYOZMH?+^8EIj+wb-MATo6gww#Bd z4HT65YPV7w<-BO~0+%DE`9rLWyZ0-UL3>Y$Fz)AcAF!xR<7o7dh&)bE*q(7ze@zTq z3|PRj@U%+|UVy`?Fi-xLlrh6i?&@gUS{lgC5C6k<849Q$uA^UhThJi{DB8$>;xJ& zb#|1F*KuciozFhlFc3W$M@X6#nm>VDR}YhkOS?`NWw24$AG2vZ9SjZ0p}R#&V0$J} zY0e|Hb`SCa3_~JnR1lU$ zah<1kiSA5ZMwp#%S>_{flTxw6inKdGyvQlxglS)`+7YD;Ph8OL^dlnzF<^(6CxSRIho^_DbhzpL z3L^Rg4Ku4x<&rxpWVw1bApncV58({rO`$yG=g>5Xd?c6#|E}dW&3SVXX&ArZ1kf97Ptm#7OL*aYbY>; zaG@6W64Fw*FOl6)Ny+8}-ewV!*yS1HS+6ZUydX*;|rRyC_26n`y@`{c|yg9aGrmPL0H;SFCqA`@k z-mAiWql_iaq<2Thh&b-G?$>=4%zQ1)V5_QWQtw|7sBCLALX)jVG%CVjt@#Q+uTe=@ z?^v*kx6Oz8o~!owTX*xmx?I4X4$?Ua_>Jf!3THt$5fmp5QR`f_wr2s4o3-M!MTWW( zBn%NNw{knXaLMM*2){tHLV;^ZquAxzuUM|Nn&yf>RaoV~>qenGA2YRJg7V1!u z^vX0@sAq3nN7mj3w8iOd(`8{1D)D+{hAcFrV%95VvYua%pjXOeVL9Fm5mNXJHd$DS z+EAm03GJvQ8a2$QqLyUTFr^chcwMh%#Bp*F&(0hJ!qMjAEX zvI(_hqXuL)qn4uAih&G|Zl)SFAhQMU(u^9A*^1gIqXuNQp=K4<@>LWAo9(Ek8!v&( zPSi#lH6XJKwJ}Bw$lQlohEW4Ddr-?XYCz@z)W+(yX+UN#YU7L=klDvt=g_iVzCExX zIc@poNI)1xeQUUD!7SACRt{kn_~yVHz>AA`k(>QyePeV3->mP1Zm65}ZO~0}v%Uwq z@om;OKsU3^I`yR_SoRo#(_S~7%{tw6BiXDIU9#u^oZ`|5y~xQejns>r)>5)wP1dXDP1q_YU1V5dYKba8lx9E6{QTl$Vn(=>P1dJX{=t{ z$BX0i;(ioG(6f*K?GuFqvi4eom1TVmR*!C!ib4r%`5HYsK*?pzrMb;Ul1oI9Def-V zto*vrpWD^QQ=f1>M=ne_mn&AF+4$|>$&bfpmep}Xb!FY75!#x2rW&6~Q7KC2Z4bAMxA{vu?mDw(@ z2))0EKBib7eTkkA)(8}q<+T9ipQguMxN~z;ZdDEi;UBS@JN(5KW7Cz zIKnnB#u=I&dSo%Q=>G*mVai{1ihx99QTfK^=s}&xR`Z?K<0h+AMAzd}`stR;9$7;2 z)x?V{2|c}p#tpzV+aMkYhg7FnzK$Mdjs{-8U7*ycp7zylyKilUGNW)>Q7I_is7zLD zh0}`5l_&eaqOdd+|GF-i7o0Kdt{%U0VD4NQKhDWvGXorIM$Tk(zmrXRKAj%@i7yG= zvW$lPXSkjnfNNP{S@EA$=u*OQx5^AYJ+;v7U_(=X!SUjg(IM8A>)=4X?588J$4q*oQX)!-b)VD`>X( z`CJP*%DEvdKMNum9Wm!!%Yd7at0)8(W&F`S)y&pL zCMpk2Z-X6ZxT3>NY(qO8F?4>Y(LspC9Ww60i#sS6*Yr&tR5UYsNv0H++F^I~*Au(d zw*H#M=kx~pt0}76?sS#2zjRRg+~YFM3TK=}Qt7zE)#--0+}|Z5(CrK$B_!G+92xw2 z-*z;7y+0Ony+4ZUjBGBKaf>|0Z#JkOmu0IlEw@jR$Y+L`=}~bDvNUC$jK~%$nWk3A$``QwhEodBRPj@aIK0DZ>XQ^O=~*gSiseIuA|KF3gym zmt>+`c-6hGe5J;d2b(Or&aJ{a_O$nKb07(~eA#@$B8=c&>foRVc}Pu8H4SPXrks=v z`w;QpsC~#fJv5np+e@RDXPT&zFKP*rTYS3X2kaUNc^#zLx=C44QEg<#)jP1-Odud; znFKrtpb5D-CLw3=$@K)O*u0&*!Qt`>Oa_ugrhX&~^x;3iHzY-TLR3pliP{@)=dedQ zsT^@=_HHLlmp>Bmg~9fhQ&{;rvP$I!NT_EWVZl}G`Yzf-)$BqSwI$T?VRD6f6Tbgp z?)8*L4eYk{I4ljUxSQX!ddw zmDMap;H<&kSvfafSpp(0H_1w*%`DF)i@XGxjWB_Mg#IJiO#&WlrNt_!`qZP@h#qju zC3bxeO&;eo(TauOf<~`P^;g275xWP@Fs^%h$bH2pOYCe9r6P12hFGwXrW&hpitEB{ z(#_z;E;i<78e{4)5g4;*13YWZH&ZSv*+>~|*UeOu+%x!kC%1HkcWcui>)tfTy1PtR z_-4Lv{v&QN33&Lz@nY-MlkkjUBLiz2+jk3PT6W=cC0&@7A^CN?$q1IRzukiDs1*;I zHc>q748`3BZ#jG6N7O0pj6kG(i@s00*n{7q+UZx_X%S#;=SewNzsTkoH+{F$Ta%m>dtpFz+7r*6mbOfx%-ww1P*znMi@lUKd(|@Bk;r9+R+l z@R6DO4vJ4oh>`sJ*ycO1&K&me9dr}zXGvSBa%7*0^1~{pYkCQIuaDihm2!q0Fo-M& zhuEE4sS#T444Q36uGk>~oN2)Z9R;}lBOWsec({JB2**v@ujV!;oaC6EG6|=zzjt?jTK+(FSm^Z+2WnD5&FNr9X z=p_lIQoSUjG+i&5P@18a;!r9xI>)0}t~Z*6j3q@F4vLxs?1cTt9! zvO*a5yi8TqM^+!iN5OH@OXlWq-W~ zcauZxkzJHK_^8bM1AH-XP8M?D))BMfggpF}&DMfAp&)KhJg$9Q9U6~fD{Rurb5|Z~{ee^9V4Q+mmhMA~7^u1rvjUp`y{pAp?CJ6TC zUsG-a^0gLPZ8iMR8lfJ)8?=3M^TuYlDDP-o6A*=2^yJ(3j1nmR#NQ5dBS-iwio!dG z7AzHo55P%6Db=ta3mcsn- z{iVs}4d4R?_V?eCkB+ldPg6OaWV@e+Q@DYR{~f(W78ZAm0_^o?$Ywf2v_WRAXDN;4 zJxf-RMuhe~NAqN;s(+oJZ$mQNeiHJ&C=@zL*AkVof4)GORL)ZWKs{6!`tBbnPNaHv z_bHkM?fB9usz)vBMF_bn=6{i@jamvj_99(lY7mii!_J(eaiQFo5Ol$IRGy~)jX&p4 z!ws~Y)xH92X1T~-eFalI`3kL(R*Lq})K>{v?QZtWYZ%teGS1LF$;gV^q1YN#B)|Jt z&sJUbp1RP}XXuY44iQ3+yg~RZb_;vrEKq+u^w+ZxaUk`WHzB^av4`KJ2Tj{WkdKXf zlcut*Z_!L?m-qmC<}F$;^@#^q?c3B~IwaB~8Eog<6yih9KTk_YgvdMn4%JCV#bcqY zKSFMybdqiR6J^M!M8qBU{fS&+ionKPAUmC5n=a5ysLF#EkR)pY9|v9gTI%N zxH<*-fgj2xHTI6ht2z0+FpcX%|4rf~Gq&qef{2fbLdp=Nf2A%mflRaT;hCOpiVqhM zHTAQDN#aUU+2~>7&EyWTr55uxn&hc0D_ zFA@}35%Ih)>jri?TO7weogjW7p)vH=Y_U{CDIqj*lDLEDQ0P~=;&c*^o7ms;#Hpa~ zgvnwp;T&~L!QXoJ^C{wUfIrPP=8N0n516dL${h&Qg@0#(90945R68wHvAEB;Vse7X}HBm+f~EXO`)(ml8&Xo5yHE#pHXO=SZLF~G(kpD zWG;VUSuIaUiLwN85?ODN_?i3(7&3HgvG@x!BKXDEh)D2EV9!*FA3%cts!F^~&XmEw zwKK&ZL%_TKm Sd9L_Po^+ZSS~pMh(f, @@ -1100,16 +1099,8 @@ pub mod api { } #[doc = "Set the new runtime code."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -1129,13 +1120,8 @@ pub mod api { } #[doc = "Set the new runtime code without doing any checks of the given `code`."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -1659,11 +1645,11 @@ pub mod api { "Events", vec![], [ - 142u8, 250u8, 58u8, 93u8, 61u8, 91u8, 250u8, 24u8, - 109u8, 188u8, 251u8, 75u8, 230u8, 155u8, 129u8, - 169u8, 141u8, 70u8, 67u8, 204u8, 47u8, 139u8, - 211u8, 38u8, 119u8, 175u8, 172u8, 230u8, 156u8, - 214u8, 21u8, 185u8, + 179u8, 156u8, 178u8, 132u8, 168u8, 104u8, 192u8, + 121u8, 183u8, 200u8, 191u8, 184u8, 232u8, 165u8, + 82u8, 225u8, 206u8, 252u8, 0u8, 237u8, 6u8, 4u8, + 206u8, 251u8, 216u8, 254u8, 222u8, 148u8, 9u8, + 82u8, 105u8, 140u8, ], ) } @@ -2120,14 +2106,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] pub fn claim( &self, index: ::core::primitive::u32, @@ -2155,16 +2135,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] pub fn transfer( &self, new: ::subxt::utils::MultiAddress< @@ -2196,14 +2168,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexFreed` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] pub fn free( &self, index: ::core::primitive::u32, @@ -2232,16 +2198,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] pub fn force_transfer( &self, new: ::subxt::utils::MultiAddress< @@ -2275,14 +2233,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexFrozen` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] pub fn freeze( &self, index: ::core::primitive::u32, @@ -2461,7 +2413,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::H256, >, ::subxt::storage::address::Yes, @@ -2533,12 +2485,11 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be `Inherent`."] #[doc = ""] - #[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)`."] - #[doc = "# "] pub fn set( &self, now: ::core::primitive::u64, @@ -2643,7 +2594,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "Aura", "Authorities", @@ -3074,6 +3025,12 @@ pub mod api { #[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, @@ -3090,6 +3047,12 @@ pub mod api { #[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_root( &self, @@ -3136,6 +3099,28 @@ pub mod api { ], ) } + #[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::constants::Address<::core::primitive::u64> + { + ::subxt::constants::Address::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, + ], + ) + } } } } @@ -3341,7 +3326,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] #[doc = " types. See related functions below."] #[doc = "- It contains a limited number of reads and writes internally and no complex"] @@ -3355,9 +3340,6 @@ pub mod api { #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] pub fn transfer( &self, dest: ::subxt::utils::MultiAddress< @@ -3415,10 +3397,9 @@ pub mod api { } #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] #[doc = "specified."] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Same as transfer, but additional read and write because the source account is not"] #[doc = " assumed to be in the overlay."] - #[doc = "# "] pub fn force_transfer( &self, source: ::subxt::utils::MultiAddress< @@ -3491,9 +3472,8 @@ pub mod api { #[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). # "] + #[doc = " keep the sender account alive (true). ## Complexity"] #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] pub fn transfer_all( &self, dest: ::subxt::utils::MultiAddress< @@ -3905,11 +3885,11 @@ pub mod api { ) } #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) } #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "Balances", "Locks", @@ -3929,7 +3909,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::ReserveData< [::core::primitive::u8; 8usize], ::core::primitive::u128, @@ -3946,7 +3926,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::ReserveData< [::core::primitive::u8; 8usize], ::core::primitive::u128, @@ -4977,7 +4957,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "DKG", "UsedSignatures", @@ -5110,7 +5090,7 @@ pub mod api { ], ) } - #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , () , () >{ + #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , () , () >{ ::subxt::storage::address::Address::new_static( "DKG", "NextDKGPublicKey", @@ -5129,7 +5109,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, @@ -5149,7 +5129,7 @@ pub mod api { ], ) } - #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "DKG", "DKGPublicKey", @@ -5168,7 +5148,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, @@ -5188,7 +5168,7 @@ pub mod api { ], ) } - #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "DKG", "PreviousPublicKey", @@ -5386,7 +5366,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::dkg_runtime_primitives::crypto::Public, >, ::subxt::storage::address::Yes, @@ -5457,7 +5437,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::dkg_runtime_primitives::crypto::Public, >, ::subxt::storage::address::Yes, @@ -5482,7 +5462,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::subxt::storage::address::Yes, @@ -5507,7 +5487,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::subxt::storage::address::Yes, @@ -5697,19 +5677,7 @@ pub mod api { ], ) } - #[doc = " The current best authorities of the active keygen set"] - pub fn best_authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( - ::core::primitive::u16, - runtime_types::dkg_runtime_primitives::crypto::Public, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { + #[doc = " The current best authorities of the active keygen set"] pub fn best_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "DKG", "BestAuthorities", @@ -5723,19 +5691,7 @@ pub mod api { ], ) } - #[doc = " The next best authorities of the active keygen set"] - pub fn next_best_authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( - ::core::primitive::u16, - runtime_types::dkg_runtime_primitives::crypto::Public, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { + #[doc = " The next best authorities of the active keygen set"] pub fn next_best_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "DKG", "NextBestAuthorities", @@ -6103,7 +6059,15 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct AcknowledgeProposal { pub nonce : runtime_types :: webb_proposals :: nonce :: Nonce , pub src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , pub r_id : runtime_types :: webb_proposals :: header :: ResourceId , pub prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + pub struct AcknowledgeProposal { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } impl ::subxt::blocks::StaticExtrinsic for AcknowledgeProposal { const PALLET: &'static str = "DKGProposals"; const CALL: &'static str = "acknowledge_proposal"; @@ -6125,7 +6089,15 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct RejectProposal { pub nonce : runtime_types :: webb_proposals :: nonce :: Nonce , pub src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , pub r_id : runtime_types :: webb_proposals :: header :: ResourceId , pub prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + pub struct RejectProposal { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub r_id: runtime_types::webb_proposals::header::ResourceId, + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } impl ::subxt::blocks::StaticExtrinsic for RejectProposal { const PALLET: &'static str = "DKGProposals"; const CALL: &'static str = "reject_proposal"; @@ -6147,7 +6119,14 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct EvalVoteState { pub nonce : runtime_types :: webb_proposals :: nonce :: Nonce , pub src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , pub prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } + pub struct EvalVoteState { + pub nonce: runtime_types::webb_proposals::nonce::Nonce, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, + } impl ::subxt::blocks::StaticExtrinsic for EvalVoteState { const PALLET: &'static str = "DKGProposals"; const CALL: &'static str = "eval_vote_state"; @@ -6315,7 +6294,9 @@ pub mod api { nonce: runtime_types::webb_proposals::nonce::Nonce, src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, r_id: runtime_types::webb_proposals::header::ResourceId, - prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -6328,11 +6309,11 @@ pub mod api { prop, }, [ - 31u8, 67u8, 110u8, 145u8, 53u8, 100u8, 247u8, 82u8, - 251u8, 74u8, 218u8, 218u8, 114u8, 49u8, 142u8, - 28u8, 45u8, 206u8, 225u8, 148u8, 179u8, 20u8, 78u8, - 100u8, 101u8, 30u8, 25u8, 22u8, 193u8, 136u8, 55u8, - 252u8, + 144u8, 178u8, 224u8, 126u8, 92u8, 178u8, 113u8, + 91u8, 41u8, 61u8, 192u8, 103u8, 105u8, 37u8, 23u8, + 66u8, 122u8, 248u8, 92u8, 7u8, 251u8, 212u8, 99u8, + 254u8, 65u8, 117u8, 126u8, 225u8, 131u8, 116u8, + 187u8, 212u8, ], ) } @@ -6346,7 +6327,9 @@ pub mod api { nonce: runtime_types::webb_proposals::nonce::Nonce, src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, r_id: runtime_types::webb_proposals::header::ResourceId, - prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -6359,10 +6342,11 @@ pub mod api { prop, }, [ - 158u8, 156u8, 103u8, 19u8, 240u8, 48u8, 75u8, 64u8, - 66u8, 132u8, 161u8, 201u8, 1u8, 181u8, 33u8, 66u8, - 186u8, 204u8, 192u8, 195u8, 89u8, 14u8, 84u8, 63u8, - 8u8, 143u8, 173u8, 40u8, 35u8, 177u8, 154u8, 119u8, + 86u8, 225u8, 153u8, 170u8, 61u8, 160u8, 19u8, 23u8, + 224u8, 202u8, 159u8, 226u8, 178u8, 49u8, 91u8, + 251u8, 220u8, 131u8, 149u8, 175u8, 146u8, 28u8, + 67u8, 188u8, 156u8, 246u8, 255u8, 58u8, 181u8, 2u8, + 127u8, 255u8, ], ) } @@ -6378,7 +6362,9 @@ pub mod api { &self, nonce: runtime_types::webb_proposals::nonce::Nonce, src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, + prop: runtime_types::webb_proposals::proposal::Proposal< + runtime_types::dkg_runtime_primitives::CustomU32Getter, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -6390,11 +6376,11 @@ pub mod api { prop, }, [ - 36u8, 156u8, 102u8, 200u8, 249u8, 134u8, 246u8, - 192u8, 136u8, 39u8, 236u8, 150u8, 144u8, 115u8, - 123u8, 242u8, 11u8, 209u8, 99u8, 95u8, 113u8, - 151u8, 76u8, 200u8, 60u8, 237u8, 215u8, 96u8, 31u8, - 72u8, 140u8, 70u8, + 216u8, 162u8, 146u8, 194u8, 180u8, 203u8, 200u8, + 87u8, 101u8, 48u8, 152u8, 60u8, 208u8, 57u8, 114u8, + 147u8, 210u8, 247u8, 95u8, 217u8, 209u8, 73u8, + 54u8, 202u8, 29u8, 82u8, 255u8, 125u8, 188u8, + 130u8, 34u8, 77u8, ], ) } @@ -6505,6 +6491,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Vote submitted in favour of proposal"] pub struct VoteFor { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, pub chain_id: runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, @@ -6529,6 +6516,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Vot submitted against proposal"] pub struct VoteAgainst { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, pub chain_id: runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, @@ -6553,6 +6541,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Voting successful for a proposal"] pub struct ProposalApproved { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, pub chain_id: runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, @@ -6576,6 +6565,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Voting rejected a proposal"] pub struct ProposalRejected { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, pub chain_id: runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, @@ -6599,6 +6589,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of call succeeded"] pub struct ProposalSucceeded { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, pub chain_id: runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, @@ -6622,6 +6613,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of call failed"] pub struct ProposalFailed { + pub kind: runtime_types::webb_proposals::proposal::ProposalKind, pub chain_id: runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, @@ -6783,7 +6775,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, @@ -6798,7 +6790,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), @@ -6824,7 +6816,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::subxt::storage::address::Yes, @@ -6844,7 +6836,7 @@ pub mod api { ], ) } - #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "DKGProposals", "ExternalAuthorityProposerAccounts", @@ -6889,7 +6881,7 @@ pub mod api { _0: impl ::std::borrow::Borrow< runtime_types::webb_proposals::header::TypedChainId, >, - _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) >, + _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > ,) >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_dkg_proposals::types::ProposalVotes< @@ -6901,7 +6893,7 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [75u8 , 254u8 , 1u8 , 75u8 , 188u8 , 119u8 , 42u8 , 136u8 , 232u8 , 20u8 , 216u8 , 3u8 , 162u8 , 140u8 , 72u8 , 228u8 , 161u8 , 130u8 , 132u8 , 248u8 , 72u8 , 10u8 , 213u8 , 163u8 , 212u8 , 79u8 , 245u8 , 46u8 , 169u8 , 71u8 , 165u8 , 10u8 ,]) + :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [170u8 , 58u8 , 19u8 , 141u8 , 123u8 , 87u8 , 199u8 , 5u8 , 37u8 , 56u8 , 221u8 , 167u8 , 88u8 , 33u8 , 21u8 , 73u8 , 251u8 , 81u8 , 122u8 , 25u8 , 77u8 , 81u8 , 160u8 , 143u8 , 35u8 , 204u8 , 85u8 , 86u8 , 24u8 , 94u8 , 15u8 , 191u8 ,]) } #[doc = " All known proposals."] #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] @@ -6924,11 +6916,10 @@ pub mod api { "Votes", Vec::new(), [ - 75u8, 254u8, 1u8, 75u8, 188u8, 119u8, 42u8, 136u8, - 232u8, 20u8, 216u8, 3u8, 162u8, 140u8, 72u8, 228u8, - 161u8, 130u8, 132u8, 248u8, 72u8, 10u8, 213u8, - 163u8, 212u8, 79u8, 245u8, 46u8, 169u8, 71u8, - 165u8, 10u8, + 170u8, 58u8, 19u8, 141u8, 123u8, 87u8, 199u8, 5u8, + 37u8, 56u8, 221u8, 167u8, 88u8, 33u8, 21u8, 73u8, + 251u8, 81u8, 122u8, 25u8, 77u8, 81u8, 160u8, 143u8, + 35u8, 204u8, 85u8, 86u8, 24u8, 94u8, 15u8, 191u8, ], ) } @@ -6940,7 +6931,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, @@ -6954,7 +6945,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), @@ -7101,6 +7092,23 @@ pub mod api { ], ) } + #[doc = " Max length of a proposal"] + pub fn max_proposal_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "DKGProposals", + "MaxProposalLength", + [ + 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, + ], + ) + } } } } @@ -7714,12 +7722,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] pub fn sudo( &self, call: runtime_types::dkg_standalone_runtime::RuntimeCall, @@ -7731,11 +7735,11 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 152u8, 138u8, 170u8, 238u8, 180u8, 203u8, 75u8, - 66u8, 248u8, 12u8, 251u8, 50u8, 199u8, 174u8, - 122u8, 118u8, 114u8, 242u8, 238u8, 213u8, 253u8, - 248u8, 4u8, 157u8, 2u8, 27u8, 68u8, 2u8, 226u8, - 72u8, 12u8, 14u8, + 202u8, 98u8, 94u8, 63u8, 214u8, 23u8, 38u8, 208u8, + 196u8, 169u8, 29u8, 232u8, 133u8, 111u8, 153u8, + 172u8, 55u8, 79u8, 176u8, 193u8, 95u8, 36u8, 53u8, + 33u8, 110u8, 117u8, 52u8, 160u8, 64u8, 133u8, + 225u8, 197u8, ], ) } @@ -7745,10 +7749,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] pub fn sudo_unchecked_weight( &self, call: runtime_types::dkg_standalone_runtime::RuntimeCall, @@ -7763,11 +7765,11 @@ pub mod api { weight, }, [ - 235u8, 234u8, 110u8, 255u8, 225u8, 114u8, 112u8, - 191u8, 169u8, 148u8, 140u8, 182u8, 209u8, 118u8, - 165u8, 156u8, 52u8, 123u8, 79u8, 226u8, 73u8, - 113u8, 44u8, 10u8, 232u8, 42u8, 152u8, 218u8, - 192u8, 244u8, 195u8, 214u8, + 237u8, 79u8, 83u8, 45u8, 183u8, 220u8, 36u8, 218u8, + 96u8, 78u8, 220u8, 210u8, 185u8, 104u8, 115u8, + 148u8, 59u8, 112u8, 78u8, 136u8, 71u8, 40u8, 242u8, + 19u8, 99u8, 95u8, 12u8, 0u8, 144u8, 105u8, 130u8, + 48u8, ], ) } @@ -7776,11 +7778,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] pub fn set_key( &self, new: ::subxt::utils::MultiAddress< @@ -7806,12 +7805,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] pub fn sudo_as( &self, who: ::subxt::utils::MultiAddress< @@ -7828,11 +7823,11 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 183u8, 123u8, 221u8, 16u8, 8u8, 186u8, 222u8, - 150u8, 162u8, 225u8, 155u8, 237u8, 199u8, 168u8, - 92u8, 180u8, 72u8, 245u8, 121u8, 19u8, 238u8, 90u8, - 121u8, 224u8, 219u8, 27u8, 218u8, 60u8, 106u8, - 199u8, 107u8, 192u8, + 22u8, 234u8, 90u8, 83u8, 195u8, 16u8, 66u8, 158u8, + 70u8, 126u8, 218u8, 244u8, 222u8, 35u8, 143u8, + 89u8, 169u8, 194u8, 81u8, 242u8, 169u8, 148u8, + 63u8, 78u8, 135u8, 178u8, 228u8, 20u8, 72u8, 107u8, + 33u8, 79u8, ], ) } @@ -8257,11 +8252,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A solution was stored with the given compute."] #[doc = ""] - #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] - #[doc = "solution is unsigned, this means that it has also been processed."] - #[doc = ""] - #[doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] - pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub prev_ejected : :: core :: primitive :: bool , } + #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] + #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] + #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] + #[doc = "room for this one."] + pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub origin : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , pub prev_ejected : :: core :: primitive :: bool , } impl ::subxt::events::StaticEvent for SolutionStored { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "SolutionStored"; @@ -8351,29 +8347,6 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The signed phase of the given round has started."] - pub struct SignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -8386,13 +8359,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The unsigned phase of the given round has started."] - pub struct UnsignedPhaseStarted { + #[doc = "There was a phase transition in a given round."] + pub struct PhaseTransitioned { + pub from: + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + pub to: + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, pub round: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for UnsignedPhaseStarted { + impl ::subxt::events::StaticEvent for PhaseTransitioned { const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; + const EVENT: &'static str = "PhaseTransitioned"; } } pub mod storage { @@ -8563,11 +8544,13 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( - runtime_types::sp_npos_elections::ElectionScore, - ::core::primitive::u32, - ::core::primitive::u32, - )>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ( + runtime_types::sp_npos_elections::ElectionScore, + ::core::primitive::u32, + ::core::primitive::u32, + ), + >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -9547,7 +9530,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub state_toggler: ::subxt::utils::MultiAddress< + pub bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -9584,7 +9567,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub state_toggler: ::subxt::utils::MultiAddress< + pub bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -9741,7 +9724,7 @@ pub mod api { runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, - pub new_state_toggler: + pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, @@ -9775,6 +9758,86 @@ pub mod api { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "chill"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BondExtraOther { + pub member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetClaimPermission { + pub permission: + runtime_types::pallet_nomination_pools::ClaimPermission, + } + impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_claim_permission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct ClaimPayoutOther { + pub other: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout_other"; + } } pub struct TransactionApi; impl TransactionApi { @@ -9812,6 +9875,7 @@ pub mod api { #[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: runtime_types::pallet_nomination_pools::BondExtra< @@ -9837,6 +9901,8 @@ pub mod api { #[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 caim rewards on bahalf of some `other` pool member."] pub fn claim_payout( &self, ) -> ::subxt::tx::Payload { @@ -9862,8 +9928,8 @@ pub mod api { #[doc = ""] #[doc = "# Conditions for a permissionless dispatch."] #[doc = ""] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler. This is"] - #[doc = " refereed to as a kick."] + #[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."] @@ -9946,7 +10012,7 @@ pub mod api { #[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 state-toggler."] + #[doc = "* The pool is blocked and the caller is either the root or bouncer."] #[doc = ""] #[doc = "# Conditions for permissioned dispatch"] #[doc = ""] @@ -9991,7 +10057,7 @@ pub mod api { #[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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] + #[doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] #[doc = ""] #[doc = "# Note"] #[doc = ""] @@ -10008,7 +10074,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -10020,14 +10086,14 @@ pub mod api { amount, root, nominator, - state_toggler, + bouncer, }, [ - 73u8, 99u8, 205u8, 59u8, 21u8, 182u8, 163u8, 158u8, - 99u8, 182u8, 182u8, 63u8, 212u8, 84u8, 48u8, 244u8, - 95u8, 153u8, 86u8, 104u8, 92u8, 93u8, 191u8, 79u8, - 163u8, 123u8, 20u8, 121u8, 241u8, 194u8, 79u8, - 112u8, + 19u8, 83u8, 115u8, 108u8, 192u8, 96u8, 44u8, 77u8, + 251u8, 152u8, 61u8, 103u8, 209u8, 17u8, 84u8, + 245u8, 153u8, 174u8, 124u8, 92u8, 236u8, 72u8, + 225u8, 73u8, 89u8, 236u8, 174u8, 180u8, 60u8, + 140u8, 198u8, 59u8, ], ) } @@ -10048,7 +10114,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -10062,15 +10128,15 @@ pub mod api { amount, root, nominator, - state_toggler, + bouncer, pool_id, }, [ - 113u8, 67u8, 242u8, 175u8, 174u8, 4u8, 116u8, 44u8, - 157u8, 35u8, 13u8, 23u8, 55u8, 80u8, 255u8, 103u8, - 196u8, 247u8, 105u8, 152u8, 108u8, 145u8, 180u8, - 169u8, 252u8, 159u8, 175u8, 241u8, 122u8, 136u8, - 252u8, 95u8, + 81u8, 185u8, 201u8, 99u8, 26u8, 96u8, 149u8, 43u8, + 181u8, 3u8, 149u8, 110u8, 158u8, 178u8, 138u8, + 205u8, 79u8, 251u8, 86u8, 18u8, 128u8, 117u8, 66u8, + 220u8, 222u8, 238u8, 122u8, 177u8, 63u8, 117u8, + 104u8, 54u8, ], ) } @@ -10109,7 +10175,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin of this call must be either:"] #[doc = ""] - #[doc = "1. signed by the state toggler, or the root role of the pool,"] + #[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( @@ -10132,7 +10198,7 @@ pub mod api { } #[doc = "Set a new metadata for the pool."] #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] + #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role"] #[doc = "of the pool."] pub fn set_metadata( &self, @@ -10205,7 +10271,7 @@ pub mod api { ::subxt::utils::AccountId32, >, new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - new_state_toggler : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, + new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -10214,14 +10280,14 @@ pub mod api { pool_id, new_root, new_nominator, - new_state_toggler, + new_bouncer, }, [ - 247u8, 95u8, 234u8, 56u8, 181u8, 229u8, 158u8, - 97u8, 69u8, 165u8, 38u8, 17u8, 27u8, 209u8, 204u8, - 250u8, 91u8, 193u8, 35u8, 93u8, 215u8, 131u8, - 148u8, 73u8, 67u8, 188u8, 92u8, 32u8, 34u8, 37u8, - 113u8, 93u8, + 15u8, 154u8, 204u8, 28u8, 204u8, 120u8, 174u8, + 203u8, 186u8, 33u8, 123u8, 201u8, 143u8, 120u8, + 193u8, 49u8, 164u8, 178u8, 55u8, 234u8, 126u8, + 247u8, 123u8, 73u8, 147u8, 107u8, 43u8, 72u8, + 217u8, 4u8, 199u8, 253u8, ], ) } @@ -10249,6 +10315,91 @@ pub mod api { ], ) } + #[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 = "`PermissionlessAll` or `PermissionlessCompound`."] + pub fn bond_extra_other( + &self, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra_other", + types::BondExtraOther { member, extra }, + [ + 1u8, 73u8, 186u8, 39u8, 247u8, 130u8, 155u8, 185u8, + 212u8, 110u8, 151u8, 12u8, 18u8, 195u8, 106u8, + 28u8, 194u8, 130u8, 54u8, 59u8, 184u8, 192u8, + 141u8, 227u8, 102u8, 210u8, 76u8, 41u8, 196u8, + 90u8, 215u8, 84u8, + ], + ) + } + #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] + #[doc = "bonding and withdrawing."] + #[doc = ""] + #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] + #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] + #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] + #[doc = "pool."] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "* `origin` - Member of a pool."] + #[doc = "* `actor` - Account to claim reward. // improve this"] + pub fn set_claim_permission( + &self, + permission : runtime_types :: pallet_nomination_pools :: ClaimPermission, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_claim_permission", + types::SetClaimPermission { permission }, + [ + 23u8, 253u8, 135u8, 53u8, 83u8, 71u8, 182u8, 223u8, + 123u8, 57u8, 93u8, 154u8, 110u8, 91u8, 63u8, 241u8, + 144u8, 218u8, 129u8, 238u8, 169u8, 9u8, 215u8, + 76u8, 65u8, 168u8, 103u8, 44u8, 40u8, 39u8, 34u8, + 16u8, + ], + ) + } + #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] + #[doc = ""] + #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] + #[doc = "for this call to be successful."] + pub fn claim_payout_other( + &self, + other: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout_other", + types::ClaimPayoutOther { other }, + [ + 52u8, 165u8, 191u8, 125u8, 180u8, 54u8, 27u8, + 235u8, 195u8, 22u8, 55u8, 183u8, 209u8, 63u8, + 116u8, 88u8, 154u8, 74u8, 100u8, 103u8, 88u8, 76u8, + 35u8, 14u8, 39u8, 156u8, 219u8, 253u8, 123u8, + 104u8, 168u8, 76u8, + ], + ) + } } } #[doc = "Events of this pallet."] @@ -10474,7 +10625,7 @@ pub mod api { #[doc = "can never change."] pub struct RolesUpdated { pub root: ::core::option::Option<::subxt::utils::AccountId32>, - pub state_toggler: + pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, @@ -10658,6 +10809,8 @@ pub mod api { ) } #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -10671,6 +10824,8 @@ pub mod api { :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) } #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members_root( &self, ) -> ::subxt::storage::address::Address< @@ -10727,7 +10882,7 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [212u8 , 206u8 , 61u8 , 226u8 , 20u8 , 35u8 , 147u8 , 132u8 , 46u8 , 199u8 , 141u8 , 175u8 , 77u8 , 16u8 , 253u8 , 92u8 , 6u8 , 197u8 , 209u8 , 39u8 , 192u8 , 226u8 , 188u8 , 67u8 , 47u8 , 196u8 , 249u8 , 68u8 , 148u8 , 193u8 , 203u8 , 81u8 ,]) } #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( @@ -10744,10 +10899,11 @@ pub mod api { "BondedPools", Vec::new(), [ - 34u8, 51u8, 86u8, 95u8, 237u8, 118u8, 40u8, 212u8, - 128u8, 227u8, 113u8, 6u8, 116u8, 28u8, 96u8, 223u8, - 63u8, 249u8, 33u8, 152u8, 61u8, 7u8, 205u8, 220u8, - 221u8, 174u8, 207u8, 39u8, 53u8, 176u8, 13u8, 74u8, + 212u8, 206u8, 61u8, 226u8, 20u8, 35u8, 147u8, + 132u8, 46u8, 199u8, 141u8, 175u8, 77u8, 16u8, + 253u8, 92u8, 6u8, 197u8, 209u8, 39u8, 192u8, 226u8, + 188u8, 67u8, 47u8, 196u8, 249u8, 68u8, 148u8, + 193u8, 203u8, 81u8, ], ) } @@ -10902,7 +11058,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, @@ -10916,7 +11072,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), @@ -11047,7 +11203,43 @@ pub mod api { ], ) } - } + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ClaimPermissions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [23u8 , 124u8 , 83u8 , 109u8 , 174u8 , 228u8 , 170u8 , 25u8 , 124u8 , 91u8 , 224u8 , 66u8 , 55u8 , 127u8 , 190u8 , 226u8 , 163u8 , 16u8 , 81u8 , 231u8 , 241u8 , 214u8 , 209u8 , 137u8 , 101u8 , 206u8 , 104u8 , 138u8 , 49u8 , 56u8 , 152u8 , 228u8 ,]) + } + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + Vec::new(), + [ + 23u8, 124u8, 83u8, 109u8, 174u8, 228u8, 170u8, + 25u8, 124u8, 91u8, 224u8, 66u8, 55u8, 127u8, 190u8, + 226u8, 163u8, 16u8, 81u8, 231u8, 241u8, 214u8, + 209u8, 137u8, 101u8, 206u8, 104u8, 138u8, 49u8, + 56u8, 152u8, 228u8, + ], + ) + } + } } pub mod constants { use super::runtime_types; @@ -11765,6 +11957,30 @@ pub mod api { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_apply_min_commission"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SetMinCommission { + pub new: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_min_commission"; + } } pub struct TransactionApi; impl TransactionApi { @@ -11776,15 +11992,13 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] #[doc = ""] #[doc = "Emits `Bonded`."] - #[doc = "# "] + #[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_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] pub fn bond( &self, controller: ::subxt::utils::MultiAddress< @@ -11824,10 +12038,9 @@ pub mod api { #[doc = ""] #[doc = "Emits `Bonded`."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- O(1)."] - #[doc = "# "] pub fn bond_extra( &self, max_additional: ::core::primitive::u128, @@ -11891,10 +12104,9 @@ pub mod api { #[doc = ""] #[doc = "See also [`Call::unbond`]."] #[doc = ""] - #[doc = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] + #[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."] - #[doc = "# "] pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, @@ -11941,11 +12153,10 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] - #[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."] - #[doc = "# "] pub fn nominate( &self, targets: ::std::vec::Vec< @@ -11974,11 +12185,10 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] pub fn chill(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -11999,16 +12209,12 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] - #[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 = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< @@ -12034,16 +12240,11 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] #[doc = ""] - #[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 = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] pub fn set_controller( &self, controller: ::subxt::utils::MultiAddress< @@ -12069,10 +12270,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] + #[doc = "## Complexity"] + #[doc = "O(1)"] pub fn set_validator_count( &self, new: ::core::primitive::u32, @@ -12096,9 +12295,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] pub fn increase_validator_count( &self, additional: ::core::primitive::u32, @@ -12122,9 +12320,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, @@ -12153,11 +12350,9 @@ pub mod api { #[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 = "# "] + #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] pub fn force_no_eras( &self, ) -> ::subxt::tx::Payload { @@ -12185,11 +12380,9 @@ pub mod api { #[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 = "# "] + #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] pub fn force_new_era( &self, ) -> ::subxt::tx::Payload { @@ -12278,7 +12471,7 @@ pub mod api { } #[doc = "Cancel enactment of a deferred slash."] #[doc = ""] - #[doc = "Can be called by the `T::SlashCancelOrigin`."] + #[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( @@ -12309,18 +12502,8 @@ pub mod api { #[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 = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] + #[doc = "## Complexity"] + #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] pub fn payout_stakers( &self, validator_stash: ::subxt::utils::AccountId32, @@ -12347,11 +12530,9 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be signed by the controller."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Time complexity: O(L), where L is unlocking chunks"] #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] pub fn rebond( &self, value: ::core::primitive::u128, @@ -12546,6 +12727,28 @@ pub mod api { ], ) } + #[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: runtime_types::sp_arithmetic::per_things::Perbill, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "set_min_commission", + types::SetMinCommission { new }, + [ + 62u8, 139u8, 175u8, 245u8, 212u8, 113u8, 117u8, + 130u8, 191u8, 173u8, 78u8, 97u8, 19u8, 104u8, + 185u8, 207u8, 201u8, 14u8, 200u8, 208u8, 184u8, + 195u8, 242u8, 175u8, 158u8, 156u8, 51u8, 58u8, + 118u8, 154u8, 68u8, 221u8, + ], + ) + } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] @@ -12862,6 +13065,27 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ValidatorPrefsSet"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new force era mode was set."] + pub struct ForceEra { + pub mode: runtime_types::pallet_staking::Forcing, + } + impl ::subxt::events::StaticEvent for ForceEra { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ForceEra"; + } } pub mod storage { use super::runtime_types; @@ -12939,6 +13163,8 @@ pub mod api { ) } #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -12952,6 +13178,8 @@ pub mod api { :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) } #[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_root( &self, ) -> ::subxt::storage::address::Address< @@ -13105,6 +13333,8 @@ pub mod api { ) } #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -13120,6 +13350,8 @@ pub mod api { :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) } #[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_root( &self, ) -> ::subxt::storage::address::Address< @@ -13145,6 +13377,8 @@ pub mod api { ) } #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -13158,6 +13392,8 @@ pub mod api { :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) } #[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_root( &self, ) -> ::subxt::storage::address::Address< @@ -13243,6 +13479,8 @@ pub mod api { #[doc = ""] #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] #[doc = " [`Call::chill_other`] dispatchable by anyone."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -13271,6 +13509,8 @@ pub mod api { #[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_root( &self, ) -> ::subxt::storage::address::Address< @@ -14081,32 +14321,6 @@ pub mod api { ], ) } - #[doc = " True if network has been upgraded to this version."] - #[doc = " Storage version of the pallet."] - #[doc = ""] - #[doc = " This is set to v7.0.0 for new networks."] - pub fn storage_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Releases, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "StorageVersion", - vec![], - [ - 70u8, 24u8, 179u8, 189u8, 168u8, 164u8, 175u8, - 150u8, 215u8, 43u8, 18u8, 110u8, 180u8, 137u8, - 237u8, 187u8, 185u8, 50u8, 31u8, 57u8, 16u8, 110u8, - 6u8, 170u8, 19u8, 7u8, 160u8, 134u8, 232u8, 227u8, - 151u8, 116u8, - ], - ) - } #[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`)."] @@ -14360,14 +14574,9 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin of this function must be signed."] #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[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 : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys, @@ -14395,13 +14604,9 @@ pub mod api { #[doc = "means being a controller account) or directly convertible into a validator ID (which"] #[doc = "usually means being a stash account)."] #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[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::tx::Payload { @@ -15408,11 +15613,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `RegistrarAdded` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] - #[doc = "- One storage mutation (codec `O(R)`)."] - #[doc = "- One event."] - #[doc = "# "] pub fn add_registrar( &self, account: ::subxt::utils::MultiAddress< @@ -15444,14 +15646,10 @@ pub mod api { #[doc = ""] #[doc = "Emits `IdentitySet` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(X + X' + R)`"] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] #[doc = " - where `R` judgements-count (registrar-count-bounded)"] - #[doc = "- One balance reserve operation."] - #[doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] - #[doc = "- One event."] - #[doc = "# "] pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, @@ -15481,17 +15679,10 @@ pub mod api { #[doc = ""] #[doc = "- `subs`: The identity's (new) sub-accounts."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(P + S)`"] #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = "- At most one balance operations."] - #[doc = "- DB:"] - #[doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] - #[doc = " - One storage read (codec complexity `O(P)`)."] - #[doc = " - One storage write (codec complexity `O(S)`)."] - #[doc = " - One storage-exists (`IdentityOf::contains_key`)."] - #[doc = "# "] pub fn set_subs( &self, subs: ::std::vec::Vec<( @@ -15521,15 +15712,11 @@ pub mod api { #[doc = ""] #[doc = "Emits `IdentityCleared` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R + S + X)`"] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - #[doc = "- One balance-unreserve operation."] - #[doc = "- `2` storage reads and `S + 2` storage deletions."] - #[doc = "- One event."] - #[doc = "# "] pub fn clear_identity( &self, ) -> ::subxt::tx::Payload @@ -15564,12 +15751,10 @@ pub mod api { #[doc = ""] #[doc = "Emits `JudgementRequested` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn request_judgement( &self, reg_index: ::core::primitive::u32, @@ -15600,12 +15785,10 @@ pub mod api { #[doc = ""] #[doc = "Emits `JudgementUnrequested` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- One storage mutation `O(R + X)`."] - #[doc = "- One event"] - #[doc = "# "] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn cancel_request( &self, reg_index: ::core::primitive::u32, @@ -15631,11 +15814,9 @@ pub mod api { #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `fee`: the new fee."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] - #[doc = "# "] + #[doc = " - where `R` registrar-count (governance-bounded)."] pub fn set_fee( &self, index: ::core::primitive::u32, @@ -15662,11 +15843,9 @@ pub mod api { #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `new`: the new account ID."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] - #[doc = "# "] + #[doc = " - where `R` registrar-count (governance-bounded)."] pub fn set_account_id( &self, index: ::core::primitive::u32, @@ -15696,11 +15875,9 @@ pub mod api { #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `fields`: the fields that the registrar concerns themselves with."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] - #[doc = "# "] + #[doc = " - where `R` registrar-count (governance-bounded)."] pub fn set_fields( &self, index: ::core::primitive::u32, @@ -15734,13 +15911,10 @@ pub mod api { #[doc = ""] #[doc = "Emits `JudgementGiven` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] - #[doc = "- One balance-transfer operation."] - #[doc = "- Up to one account-lookup operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, @@ -15785,12 +15959,11 @@ pub mod api { #[doc = ""] #[doc = "Emits `IdentityKilled` if successful."] #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- `S + 2` storage mutations."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "## Complexity"] + #[doc = "- `O(R + S + X)`"] + #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] + #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn kill_identity( &self, target: ::subxt::utils::MultiAddress< @@ -16240,14 +16413,14 @@ pub mod api { #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SubsOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [128u8 , 15u8 , 175u8 , 155u8 , 216u8 , 225u8 , 200u8 , 169u8 , 215u8 , 206u8 , 110u8 , 22u8 , 204u8 , 89u8 , 212u8 , 210u8 , 159u8 , 169u8 , 53u8 , 7u8 , 44u8 , 164u8 , 91u8 , 151u8 , 7u8 , 227u8 , 38u8 , 230u8 , 175u8 , 84u8 , 6u8 , 4u8 ,]) } #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", @@ -16264,7 +16437,7 @@ pub mod api { #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] #[doc = " special origin (likely a council motion)."] #[doc = ""] - #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "Identity", "Registrars", @@ -16431,15 +16604,11 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] + #[doc = "## Complexity:"] + #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] + #[doc = " `heartbeat.network_state.external_address`"] #[doc = " - `O(K)`: decoding of length `K`"] #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] pub fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat< @@ -16572,7 +16741,7 @@ pub mod api { ], ) } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "ImOnline", "Keys", @@ -16675,6 +16844,74 @@ pub mod api { } pub mod runtime_types { use super::runtime_types; + pub mod bounded_collections { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedBTreeMap<_0, _1>( + pub ::subxt::utils::KeyedVec<_0, _1>, + ); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } pub mod dkg_runtime_primitives { use super::runtime_types; pub mod crypto { @@ -16832,7 +17069,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AggregatedMisbehaviourReports < _0 , _1 , _2 > { pub misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , pub session_id : :: core :: primitive :: u64 , pub offender : _0 , pub reporters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub signatures : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_1 , _2) > } + pub struct AggregatedMisbehaviourReports < _0 , _1 , _2 > { pub misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , pub session_id : :: core :: primitive :: u64 , pub offender : _0 , pub reporters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub signatures : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_1 , _2) > } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -17611,9 +17848,8 @@ pub mod api { #[codec(index = 0)] #[doc = "Make some on-chain remark."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`"] - #[doc = "# "] remark { remark: ::std::vec::Vec<::core::primitive::u8>, }, @@ -17623,29 +17859,16 @@ pub mod api { #[codec(index = 2)] #[doc = "Set the new runtime code."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] set_code { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] #[doc = "Set the new runtime code without doing any checks of the given `code`."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8>, }, @@ -18045,7 +18268,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] #[doc = " types. See related functions below."] #[doc = "- It contains a limited number of reads and writes internally and no complex"] @@ -18059,9 +18282,6 @@ pub mod api { #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] transfer { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -18092,10 +18312,9 @@ pub mod api { #[codec(index = 2)] #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] #[doc = "specified."] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- Same as transfer, but additional read and write because the source account is not"] #[doc = " assumed to be in the overlay."] - #[doc = "# "] force_transfer { source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -18138,9 +18357,8 @@ pub mod api { #[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). # "] + #[doc = " keep the sender account alive (true). ## Complexity"] #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] transfer_all { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -18365,6 +18583,9 @@ pub mod api { #[codec(index = 6)] #[doc = "Too many resources."] TooManyResources, + #[codec(index = 7)] + #[doc = "Input out of bounds"] + OutOfBounds, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18405,7 +18626,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct BridgeInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_bridge_registry :: types :: SerdeData , runtime_types :: pallet_bridge_registry :: types :: SerdeData ,) > , pub display : runtime_types :: pallet_bridge_registry :: types :: SerdeData , } + pub struct BridgeInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_bridge_registry :: types :: SerdeData , runtime_types :: pallet_bridge_registry :: types :: SerdeData ,) > , pub display : runtime_types :: pallet_bridge_registry :: types :: SerdeData , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -18423,7 +18644,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct BridgeMetadata { pub resource_ids : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_proposals :: header :: ResourceId > , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } + pub struct BridgeMetadata { pub resource_ids : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: webb_proposals :: header :: ResourceId > , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -18537,6 +18758,9 @@ pub mod api { #[codec(index = 15)] #[doc = "Input is out of bounds"] OutOfBounds, + #[codec(index = 16)] + #[doc = "Cannot retreive signer from ecdsa signature"] + CannotRetreiveSigner, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18578,7 +18802,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct RoundMetadata < _0 , _1 > { pub curr_round_pub_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub next_round_pub_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub refresh_signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_0 , _1) > } + pub struct RoundMetadata < _0 , _1 > { pub curr_round_pub_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub next_round_pub_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub refresh_signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_0 , _1) > } } } pub mod pallet_dkg_proposal_handler { @@ -18703,7 +18927,7 @@ pub mod api { )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { - # [codec (index = 0)] # [doc = "Sets the vote threshold for proposals."] # [doc = ""] # [doc = "This threshold is used to determine how many votes are required"] # [doc = "before a proposal is executed."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] set_threshold { threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , method : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 4)] # [doc = "Adds a new proposer to the proposer set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] add_proposer { native_account : :: subxt :: utils :: AccountId32 , external_account : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "Removes an existing proposer from the set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and removal"] # [doc = "# "] remove_proposer { v : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Commits a vote in favour of the provided proposal."] # [doc = ""] # [doc = "If a proposal with the given nonce and source chain ID does not"] # [doc = "already exist, it will be created with an initial vote in favour"] # [doc = "from the caller."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] acknowledge_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 7)] # [doc = "Commits a vote against a provided proposal."] # [doc = ""] # [doc = "# "] # [doc = "- Fixed, since execution of proposal should not be included"] # [doc = "# "] reject_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 8)] # [doc = "Evaluate the state of a proposal given the current vote threshold."] # [doc = ""] # [doc = "A proposal with enough votes will be either executed or cancelled,"] # [doc = "and the status will be updated accordingly."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] eval_vote_state { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , prop : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } + # [codec (index = 0)] # [doc = "Sets the vote threshold for proposals."] # [doc = ""] # [doc = "This threshold is used to determine how many votes are required"] # [doc = "before a proposal is executed."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] set_threshold { threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , method : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 4)] # [doc = "Adds a new proposer to the proposer set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] add_proposer { native_account : :: subxt :: utils :: AccountId32 , external_account : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "Removes an existing proposer from the set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and removal"] # [doc = "# "] remove_proposer { v : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Commits a vote in favour of the provided proposal."] # [doc = ""] # [doc = "If a proposal with the given nonce and source chain ID does not"] # [doc = "already exist, it will be created with an initial vote in favour"] # [doc = "from the caller."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] acknowledge_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Commits a vote against a provided proposal."] # [doc = ""] # [doc = "# "] # [doc = "- Fixed, since execution of proposal should not be included"] # [doc = "# "] reject_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 8)] # [doc = "Evaluate the state of a proposal given the current vote threshold."] # [doc = ""] # [doc = "A proposal with enough votes will be either executed or cancelled,"] # [doc = "and the status will be updated accordingly."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] eval_vote_state { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -18797,83 +19021,7 @@ pub mod api { )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { - #[codec(index = 0)] - #[doc = "Vote threshold has changed (new_threshold)"] - ProposerThresholdChanged { - new_threshold: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Chain now available for transfers (chain_id)"] - ChainWhitelisted { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - }, - #[codec(index = 2)] - #[doc = "Proposer added to set"] - ProposerAdded { - proposer_id: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "Proposer removed from set"] - ProposerRemoved { - proposer_id: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "Vote submitted in favour of proposal"] - VoteFor { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "Vot submitted against proposal"] - VoteAgainst { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 6)] - #[doc = "Voting successful for a proposal"] - ProposalApproved { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 7)] - #[doc = "Voting rejected a proposal"] - ProposalRejected { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 8)] - #[doc = "Execution of call succeeded"] - ProposalSucceeded { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 9)] - #[doc = "Execution of call failed"] - ProposalFailed { - chain_id: - runtime_types::webb_proposals::header::TypedChainId, - proposal_nonce: - runtime_types::webb_proposals::nonce::Nonce, - }, - #[codec(index = 10)] - #[doc = "Proposers have been reset"] - AuthorityProposersReset { - proposers: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - } + # [codec (index = 0)] # [doc = "Vote threshold has changed (new_threshold)"] ProposerThresholdChanged { new_threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 2)] # [doc = "Proposer added to set"] ProposerAdded { proposer_id : :: subxt :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "Proposer removed from set"] ProposerRemoved { proposer_id : :: subxt :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "Vote submitted in favour of proposal"] VoteFor { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "Vot submitted against proposal"] VoteAgainst { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Voting successful for a proposal"] ProposalApproved { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 7)] # [doc = "Voting rejected a proposal"] ProposalRejected { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 8)] # [doc = "Execution of call succeeded"] ProposalSucceeded { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 9)] # [doc = "Execution of call failed"] ProposalFailed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 10)] # [doc = "Proposers have been reset"] AuthorityProposersReset { proposers : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , } } pub mod types { use super::runtime_types; @@ -18919,7 +19067,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct ProposalVotes < _0 , _1 , _2 > { pub votes_for : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub votes_against : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > , pub status : runtime_types :: pallet_dkg_proposals :: types :: ProposalStatus , pub expiry : _1 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _2 > } + pub struct ProposalVotes < _0 , _1 , _2 > { pub votes_for : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub votes_against : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub status : runtime_types :: pallet_dkg_proposals :: types :: ProposalStatus , pub expiry : _1 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _2 > } } } pub mod pallet_election_provider_multi_phase { @@ -19027,7 +19175,7 @@ pub mod api { )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { - # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } + # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] # [doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] # [doc = "Otherwise, the solution was stored either during the unsigned phase or by"] # [doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] # [doc = "room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , origin : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "There was a phase transition in a given round."] PhaseTransitioned { from : runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > , to : runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > , round : :: core :: primitive :: u32 , } , } } pub mod signed { use super::runtime_types; @@ -19129,7 +19277,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReadySolution { pub supports : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } + pub struct ReadySolution { pub supports : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19147,7 +19295,7 @@ pub mod api { pub voters: ::std::vec::Vec<( ::subxt::utils::AccountId32, ::core::primitive::u64, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, )>, @@ -19288,7 +19436,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } + 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_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19336,7 +19484,7 @@ pub mod api { )] #[doc = "Identity pallet declaration."] pub enum Call { - # [codec (index = 0)] # [doc = "Add a registrar to the system."] # [doc = ""] # [doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] # [doc = ""] # [doc = "- `account`: the account of the registrar."] # [doc = ""] # [doc = "Emits `RegistrarAdded` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] # [doc = "- One storage mutation (codec `O(R)`)."] # [doc = "- One event."] # [doc = "# "] add_registrar { account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `IdentitySet` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(X + X' + R)`"] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] # [doc = " - where `R` judgements-count (registrar-count-bounded)"] # [doc = "- One balance reserve operation."] # [doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] # [doc = "- One event."] # [doc = "# "] set_identity { info : :: std :: boxed :: Box < runtime_types :: pallet_identity :: types :: IdentityInfo > , } , # [codec (index = 2)] # [doc = "Set the sub-accounts of the sender."] # [doc = ""] # [doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] # [doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "- `subs`: The identity's (new) sub-accounts."] # [doc = ""] # [doc = "# "] # [doc = "- `O(P + S)`"] # [doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = "- At most one balance operations."] # [doc = "- DB:"] # [doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] # [doc = " - One storage read (codec complexity `O(P)`)."] # [doc = " - One storage write (codec complexity `O(S)`)."] # [doc = " - One storage-exists (`IdentityOf::contains_key`)."] # [doc = "# "] set_subs { subs : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , } , # [codec (index = 3)] # [doc = "Clear an account's identity info and all sub-accounts and return all deposits."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "Emits `IdentityCleared` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] # [doc = "- One balance-unreserve operation."] # [doc = "- `2` storage reads and `S + 2` storage deletions."] # [doc = "- One event."] # [doc = "# "] clear_identity , # [codec (index = 4)] # [doc = "Request a judgement from a registrar."] # [doc = ""] # [doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] # [doc = "given."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is requested."] # [doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] # [doc = ""] # [doc = "```nocompile"] # [doc = "Self::registrars().get(reg_index).unwrap().fee"] # [doc = "```"] # [doc = ""] # [doc = "Emits `JudgementRequested` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] # [doc = "- One event."] # [doc = "# "] request_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , # [codec (compact)] max_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Cancel a previous request."] # [doc = ""] # [doc = "Payment: A previously reserved deposit is returned on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] # [doc = ""] # [doc = "Emits `JudgementUnrequested` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- One storage mutation `O(R + X)`."] # [doc = "- One event"] # [doc = "# "] cancel_request { reg_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the fee required for a judgement to be requested from a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fee`: the new fee."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] # [doc = "# "] set_fee { # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "Change the account associated with a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `new`: the new account ID."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] # [doc = "# "] set_account_id { # [codec (compact)] index : :: core :: primitive :: u32 , new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 8)] # [doc = "Set the field information for a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fields`: the fields that the registrar concerns themselves with."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R)`."] # [doc = "- One storage mutation `O(R)`."] # [doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] # [doc = "# "] set_fields { # [codec (compact)] index : :: core :: primitive :: u32 , fields : runtime_types :: pallet_identity :: types :: BitFlags < runtime_types :: pallet_identity :: types :: IdentityField > , } , # [codec (index = 9)] # [doc = "Provide a judgement for an account's identity."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `reg_index`."] # [doc = ""] # [doc = "- `reg_index`: the index of the registrar whose judgement is being made."] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] # [doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] # [doc = ""] # [doc = "Emits `JudgementGiven` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + X)`."] # [doc = "- One balance-transfer operation."] # [doc = "- Up to one account-lookup operation."] # [doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] # [doc = "- One event."] # [doc = "# "] provide_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , judgement : runtime_types :: pallet_identity :: types :: Judgement < :: core :: primitive :: u128 > , identity : :: subxt :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Remove an account's identity and sub-account information and slash the deposits."] # [doc = ""] # [doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] # [doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] # [doc = "manually using `cancel_request`."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] # [doc = ""] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = ""] # [doc = "Emits `IdentityKilled` if successful."] # [doc = ""] # [doc = "# "] # [doc = "- `O(R + S + X)`."] # [doc = "- One balance-reserve operation."] # [doc = "- `S + 2` storage mutations."] # [doc = "- One event."] # [doc = "# "] kill_identity { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 11)] # [doc = "Add the given account to the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] add_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 12)] # [doc = "Alter the associated name of the given sub-account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] rename_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 13)] # [doc = "Remove the given account from the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] remove_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove the sender as a sub-account."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender (*not* the original depositor)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "super-identity."] # [doc = ""] # [doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] # [doc = "controller of an account is maliciously registered as a sub-account."] quit_sub , } + # [codec (index = 0)] # [doc = "Add a registrar to the system."] # [doc = ""] # [doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] # [doc = ""] # [doc = "- `account`: the account of the registrar."] # [doc = ""] # [doc = "Emits `RegistrarAdded` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] add_registrar { account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `IdentitySet` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(X + X' + R)`"] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] # [doc = " - where `R` judgements-count (registrar-count-bounded)"] set_identity { info : :: std :: boxed :: Box < runtime_types :: pallet_identity :: types :: IdentityInfo > , } , # [codec (index = 2)] # [doc = "Set the sub-accounts of the sender."] # [doc = ""] # [doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] # [doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "- `subs`: The identity's (new) sub-accounts."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(P + S)`"] # [doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] set_subs { subs : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , } , # [codec (index = 3)] # [doc = "Clear an account's identity info and all sub-accounts and return all deposits."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "Emits `IdentityCleared` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] clear_identity , # [codec (index = 4)] # [doc = "Request a judgement from a registrar."] # [doc = ""] # [doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] # [doc = "given."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is requested."] # [doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] # [doc = ""] # [doc = "```nocompile"] # [doc = "Self::registrars().get(reg_index).unwrap().fee"] # [doc = "```"] # [doc = ""] # [doc = "Emits `JudgementRequested` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] request_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , # [codec (compact)] max_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Cancel a previous request."] # [doc = ""] # [doc = "Payment: A previously reserved deposit is returned on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] # [doc = ""] # [doc = "Emits `JudgementUnrequested` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] cancel_request { reg_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the fee required for a judgement to be requested from a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fee`: the new fee."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_fee { # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "Change the account associated with a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `new`: the new account ID."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_account_id { # [codec (compact)] index : :: core :: primitive :: u32 , new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 8)] # [doc = "Set the field information for a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fields`: the fields that the registrar concerns themselves with."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_fields { # [codec (compact)] index : :: core :: primitive :: u32 , fields : runtime_types :: pallet_identity :: types :: BitFlags < runtime_types :: pallet_identity :: types :: IdentityField > , } , # [codec (index = 9)] # [doc = "Provide a judgement for an account's identity."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `reg_index`."] # [doc = ""] # [doc = "- `reg_index`: the index of the registrar whose judgement is being made."] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] # [doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] # [doc = ""] # [doc = "Emits `JudgementGiven` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] provide_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , judgement : runtime_types :: pallet_identity :: types :: Judgement < :: core :: primitive :: u128 > , identity : :: subxt :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Remove an account's identity and sub-account information and slash the deposits."] # [doc = ""] # [doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] # [doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] # [doc = "manually using `cancel_request`."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] # [doc = ""] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = ""] # [doc = "Emits `IdentityKilled` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] kill_identity { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 11)] # [doc = "Add the given account to the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] add_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 12)] # [doc = "Alter the associated name of the given sub-account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] rename_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 13)] # [doc = "Remove the given account from the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] remove_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove the sender as a sub-account."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender (*not* the original depositor)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "super-identity."] # [doc = ""] # [doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] # [doc = "controller of an account is maliciously registered as a sub-account."] quit_sub , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19663,7 +19811,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct IdentityInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub legal : runtime_types :: pallet_identity :: types :: Data , pub web : runtime_types :: pallet_identity :: types :: Data , pub riot : runtime_types :: pallet_identity :: types :: Data , pub email : runtime_types :: pallet_identity :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_identity :: types :: Data , pub twitter : runtime_types :: pallet_identity :: types :: Data , } + pub struct IdentityInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub legal : runtime_types :: pallet_identity :: types :: Data , pub web : runtime_types :: pallet_identity :: types :: Data , pub riot : runtime_types :: pallet_identity :: types :: Data , pub email : runtime_types :: pallet_identity :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_identity :: types :: Data , pub twitter : runtime_types :: pallet_identity :: types :: Data , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19738,7 +19886,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: scale_encode" )] - pub struct Registration < _0 > { pub judgements : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_identity :: types :: Judgement < _0 > ,) > , pub deposit : _0 , pub info : runtime_types :: pallet_identity :: types :: IdentityInfo , } + pub struct Registration < _0 > { pub judgements : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_identity :: types :: Judgement < _0 > ,) > , pub deposit : _0 , pub info : runtime_types :: pallet_identity :: types :: IdentityInfo , } } } pub mod pallet_im_online { @@ -19764,7 +19912,7 @@ pub mod api { )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { - # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } + # [codec (index = 0)] # [doc = "## Complexity:"] # [doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] # [doc = " `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19871,7 +20019,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } + pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19928,14 +20076,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] @@ -19948,16 +20090,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -19976,14 +20110,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexFreed` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] 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"] @@ -19997,16 +20125,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] force_transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -20026,14 +20146,8 @@ pub mod api { #[doc = ""] #[doc = "Emits `IndexFrozen` if successful."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] freeze { index: ::core::primitive::u32 }, } #[derive( @@ -20131,283 +20245,7 @@ pub mod api { )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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."] - 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 there 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\"."] - 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 state-toggler. This is"] - #[doc = " refereed to 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 their 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 state-toggler."] - #[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."] - withdraw_unbonded { - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - create { - #[codec(compact)] - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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."] - nominate { - pool_id: ::core::primitive::u32, - validators: - ::std::vec::Vec<::subxt::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 state toggler, 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 state toggler, or the root role"] - #[doc = "of the pool."] - set_metadata { - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - 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, - >, - }, - #[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::utils::AccountId32, - >, - new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 13)] - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[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 = 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 there 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 caim rewards on bahalf 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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [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 their 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."] withdraw_unbonded { member_account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , 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` transferrable."] create { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 7)] # [doc = "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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "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."] nominate { pool_id : :: core :: primitive :: u32 , validators : :: std :: vec :: Vec < :: subxt :: 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"] # [doc = "of the pool."] set_metadata { pool_id : :: core :: primitive :: u32 , metadata : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 11)] # [doc = "Update configurations for the nomination pools. The origin for this call must be"] # [doc = "Root."] # [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`]."] 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 > , } , # [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 :: utils :: AccountId32 > , new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 > , new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 13)] # [doc = "Chill 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, same as [`Pallet::nominate`]."] # [doc = ""] # [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 = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { member : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , extra : runtime_types :: pallet_nomination_pools :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 15)] # [doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] # [doc = "bonding and withdrawing."] # [doc = ""] # [doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] # [doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] # [doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] # [doc = "pool."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - Member of a pool."] # [doc = "* `actor` - Account to claim reward. // improve this"] 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 `PermissionlessAll` or `PermissionlessWithdraw` in order"] # [doc = "for this call to be successful."] claim_payout_other { other : :: subxt :: utils :: AccountId32 , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20456,7 +20294,7 @@ pub mod api { )] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , } + # [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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , # [codec (index = 23)] # [doc = "Bonding extra is restricted to the exact pending reward amount."] BondExtraRestricted , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20553,7 +20391,7 @@ pub mod api { RolesUpdated { root: ::core::option::Option<::subxt::utils::AccountId32>, - state_toggler: + bouncer: ::core::option::Option<::subxt::utils::AccountId32>, nominator: ::core::option::Option<::subxt::utils::AccountId32>, @@ -20626,6 +20464,29 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimPermission { + #[codec(index = 0)] + Permissioned, + #[codec(index = 1)] + PermissionlessCompound, + #[codec(index = 2)] + PermissionlessWithdraw, + #[codec(index = 3)] + PermissionlessAll, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -20647,7 +20508,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct 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 :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } + pub struct PoolMember { pub pool_id : :: core :: primitive :: u32 , pub points : :: core :: primitive :: u128 , pub last_recorded_reward_counter : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub unbonding_eras : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20665,7 +20526,7 @@ pub mod api { pub depositor: _0, pub root: ::core::option::Option<_0>, pub nominator: ::core::option::Option<_0>, - pub state_toggler: ::core::option::Option<_0>, + pub bouncer: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20720,7 +20581,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } + pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20762,7 +20623,7 @@ pub mod api { )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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 = "# "] # [doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] # [doc = " `T::Keys::key_ids()` which is fixed."] # [doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] # [doc = "- DbWrites: `origin account`, `NextKeys`"] # [doc = "- DbReads per key id: `KeyOwner`"] # [doc = "- DbWrites per key id: `KeyOwner`"] # [doc = "# "] set_keys { keys : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys , proof : :: std :: 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 = "# "] # [doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] # [doc = " of `T::Keys::key_ids()` which is fixed."] # [doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] # [doc = "- DbWrites: `NextKeys`, `origin account`"] # [doc = "- DbWrites per key id: `KeyOwner`"] # [doc = "# "] purge_keys , } + # [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 :: dkg_standalone_runtime :: opaque :: SessionKeys , proof : :: std :: 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 :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20851,7 +20712,7 @@ pub mod api { )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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 = "# "] # [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_ and gets removed as dust."] # [doc = "------------------"] # [doc = "# "] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] # [doc = "# "] 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"] # [doc = "whatever 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 = "# "] # [doc = "Complexity O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] # [doc = "# "] 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 = "# "] # [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."] # [doc = "# "] nominate { targets : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "# "] 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] # [doc = "- Weight: O(1)"] # [doc = "- DB Weight:"] # [doc = " - Read: Ledger"] # [doc = " - Write: Payee"] # [doc = "# "] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "----------"] # [doc = "Weight: O(1)"] # [doc = "DB Weight:"] # [doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "# "] set_controller { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Weight: O(1)"] # [doc = "Write: Validator Count"] # [doc = "# "] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write: ForceEra"] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write ForceEra"] # [doc = "# "] 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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::SlashCancelOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "# "] # [doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] # [doc = "- Contains a limited number of reads and writes."] # [doc = "-----------"] # [doc = "N is the Number of payouts for the validator (including the validator)"] # [doc = "Weight:"] # [doc = "- Reward Destination Staked: O(N)"] # [doc = "- Reward Destination Controller (Creating): O(N)"] # [doc = ""] # [doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] # [doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] # [doc = "# "] payout_stakers { validator_stash : :: subxt :: 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 = "# "] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] # [doc = "- Storage changes: Can't increase storage, only decrease it."] # [doc = "# "] 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: utils :: AccountId32 , } , } + # [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_ and gets removed as dust."] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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"] # [doc = "whatever 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 = "## 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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 upto 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 upto 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "## Complexity"] # [doc = "- At most O(MaxNominatorRewardedPerValidator)."] payout_stakers { validator_stash : :: subxt :: 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: 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 , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20995,7 +20856,7 @@ pub mod api { )] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , } + # [codec (index = 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , # [codec (index = 14)] # [doc = "A new force era mode was set."] ForceEra { mode : runtime_types :: pallet_staking :: Forcing , } , } } } pub mod slashing { @@ -21158,7 +21019,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { pub targets: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, @@ -21177,45 +21038,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Releases { - #[codec(index = 0)] - V1_0_0Ancient, - #[codec(index = 1)] - V2_0_0, - #[codec(index = 2)] - V3_0_0, - #[codec(index = 3)] - V4_0_0, - #[codec(index = 4)] - V5_0_0, - #[codec(index = 5)] - V6_0_0, - #[codec(index = 6)] - V7_0_0, - #[codec(index = 7)] - V8_0_0, - #[codec(index = 8)] - V9_0_0, - #[codec(index = 9)] - V10_0_0, - #[codec(index = 10)] - V11_0_0, - #[codec(index = 11)] - V12_0_0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, @@ -21248,13 +21070,13 @@ pub mod api { #[codec(compact)] pub active: ::core::primitive::u128, pub unlocking: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_staking::UnlockChunk< ::core::primitive::u128, >, >, pub claimed_rewards: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, } @@ -21345,12 +21167,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] sudo { call: ::std::boxed::Box< runtime_types::dkg_standalone_runtime::RuntimeCall, @@ -21363,10 +21181,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] sudo_unchecked_weight { call: ::std::boxed::Box< runtime_types::dkg_standalone_runtime::RuntimeCall, @@ -21379,11 +21195,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] set_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -21396,12 +21209,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] - #[doc = "# "] + #[doc = "## Complexity"] #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] sudo_as { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -21513,12 +21322,11 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be `Inherent`."] #[doc = ""] - #[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)`."] - #[doc = "# "] set { #[codec(compact)] now: ::core::primitive::u64, @@ -21698,6 +21506,27 @@ pub mod api { )] pub struct Permill(pub ::core::primitive::u32); } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ArithmeticError { + #[codec(index = 0)] + Underflow, + #[codec(index = 1)] + Overflow, + #[codec(index = 2)] + DivisionByZero, + } } pub mod sp_consensus_aura { use super::runtime_types; @@ -21748,74 +21577,6 @@ pub mod api { } pub mod sp_core { use super::runtime_types; - pub mod bounded { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BoundedBTreeMap<_0, _1>( - pub ::subxt::utils::KeyedVec<_0, _1>, - ); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } pub mod crypto { use super::runtime_types; #[derive( @@ -22796,27 +22557,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ArithmeticError { - #[codec(index = 0)] - Underflow, - #[codec(index = 1)] - Overflow, - #[codec(index = 2)] - DivisionByZero, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchError { #[codec(index = 0)] Other, @@ -22835,7 +22575,7 @@ pub mod api { #[codec(index = 7)] Token(runtime_types::sp_runtime::TokenError), #[codec(index = 8)] - Arithmetic(runtime_types::sp_runtime::ArithmeticError), + Arithmetic(runtime_types::sp_arithmetic::ArithmeticError), #[codec(index = 9)] Transactional(runtime_types::sp_runtime::TransactionalError), #[codec(index = 10)] @@ -23109,7 +22849,7 @@ pub mod api { crate_path = ":: subxt :: ext :: scale_encode" )] pub enum Proposal<_0> { - # [codec (index = 0)] Signed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] Unsigned { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } + # [codec (index = 0)] Signed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] Unsigned { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, diff --git a/tests/dkg.rs b/tests/dkg.rs index 855e399..629acb4 100644 --- a/tests/dkg.rs +++ b/tests/dkg.rs @@ -1,17 +1,18 @@ use subxt::config::PolkadotConfig; +use subxt::ext::sp_core::Pair; use subxt::tx:: PairSigner; +use subxt::ext::sp_core::sr25519::Pair as Sr25519Pair; use webb::substrate::dkg_runtime::api::dkg_proposals; +use webb::substrate::dkg_runtime::api::runtime_types::bounded_collections::bounded_vec::BoundedVec; use webb::substrate::dkg_runtime::api::runtime_types::webb_proposals::header::{TypedChainId, ResourceId}; use webb::substrate::dkg_runtime::api::runtime_types::webb_proposals::nonce::Nonce; use webb::substrate::dkg_runtime; -use webb::substrate::dkg_runtime::api::runtime_types::sp_core::bounded::bounded_vec::BoundedVec; +use webb::substrate::dkg_runtime::api::runtime_types::webb_proposals::proposal::{Proposal, ProposalKind}; const URL: &str = "ws://localhost:9944"; async fn get_runtime_api() -> anyhow::Result> { - let api = subxt::OnlineClient::::from_url(URL) - .await - .unwrap(); + let api = subxt::OnlineClient::::from_url(URL).await?; Ok(api) } @@ -24,13 +25,23 @@ async fn read_chain_nonce() -> anyhow::Result<()> { .dkg_proposals() .chain_nonces(chain_id); - let result = client.storage().at(None).await?.fetch(&nonce_addr).await?; + let result = client + .storage() + .at_latest() + .await? + .fetch(&nonce_addr) + .await?; assert_eq!(result, Some(Nonce(0))); let unkonwn_chain_id = TypedChainId::Evm(5000); let nonce_addr = dkg_runtime::api::storage() .dkg_proposals() .chain_nonces(unkonwn_chain_id); - let result = client.storage().at(None).await?.fetch(&nonce_addr).await?; + let result = client + .storage() + .at_latest() + .await? + .fetch(&nonce_addr) + .await?; assert_eq!(result, None); Ok(()) } @@ -48,11 +59,19 @@ async fn acknowledge_proposal_works() -> anyhow::Result<()> { .unwrap(); let r_id = ResourceId(r_id); let prop = hex::decode("0000000000000000e69a847cd5bc0c9480ada0b339d7f0a8cac2b6670000138a0000000000000000891300000000000003c951dfd2ab1e3e2864239ad09256b25ebadd164d53445c435bb31f036f3d36")?; - let eve = sp_keyring::AccountKeyring::Eve; - let signer = PairSigner::new(eve.pair()); - let acknowlege_proposal_tx = dkg_runtime::api::tx() - .dkg_proposals() - .acknowledge_proposal(nonce.clone(), src_id, r_id, BoundedVec(prop)); + // let eve = sp_keyring::AccountKeyring::Eve; + let signer: PairSigner = + PairSigner::new(Pair::from_string("//Eve", None).unwrap()); + let acknowlege_proposal_tx = + dkg_runtime::api::tx().dkg_proposals().acknowledge_proposal( + nonce.clone(), + src_id, + r_id, + Proposal::Unsigned { + kind: ProposalKind::AnchorUpdate, + data: BoundedVec(prop), + }, + ); let result = client .tx() .sign_and_submit_then_watch_default(&acknowlege_proposal_tx, &signer) From 9b62988e82da93b0fee6d40578b70183391e49f6 Mon Sep 17 00:00:00 2001 From: shekohex Date: Mon, 15 May 2023 14:47:13 +0300 Subject: [PATCH 4/8] Delete protocol_substrate_runtime.rs --- src/substrate/protocol_substrate_runtime.rs | 43764 ------------------ 1 file changed, 43764 deletions(-) delete mode 100644 src/substrate/protocol_substrate_runtime.rs diff --git a/src/substrate/protocol_substrate_runtime.rs b/src/substrate/protocol_substrate_runtime.rs deleted file mode 100644 index 8919bdc..0000000 --- a/src/substrate/protocol_substrate_runtime.rs +++ /dev/null @@ -1,43764 +0,0 @@ -#[allow(dead_code, unused_imports, non_camel_case_types)] -#[allow(clippy::all)] -pub mod api { - #[allow(unused_imports)] - mod root_mod { - pub use super::*; - } - pub static PALLETS: [&str; 48usize] = [ - "System", - "RandomnessCollectiveFlip", - "Timestamp", - "Babe", - "Authorship", - "Indices", - "Balances", - "TransactionPayment", - "AssetTxPayment", - "ElectionProviderMultiPhase", - "Staking", - "Session", - "Democracy", - "Council", - "Elections", - "Grandpa", - "Treasury", - "Utility", - "Multisig", - "Scheduler", - "Preimage", - "Proxy", - "Assets", - "Sudo", - "ImOnline", - "AuthorityDiscovery", - "Offences", - "Historical", - "Bounties", - "ChildBounties", - "BagsList", - "NominationPools", - "HasherBn254", - "AssetRegistry", - "Currencies", - "Tokens", - "TokenWrapper", - "TokenWrapperHandler", - "MixerVerifierBn254", - "VAnchorVerifier", - "MerkleTreeBn254", - "LinkableTreeBn254", - "MixerBn254", - "VAnchorBn254", - "VAnchorHandlerBn254", - "SignatureBridge", - "RelayerRegistry", - "KeyStorage", - ]; - #[doc = r" The error type returned when there is a runtime issue."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Event { - #[codec(index = 0)] - System(system::Event), - #[codec(index = 5)] - Indices(indices::Event), - #[codec(index = 6)] - Balances(balances::Event), - #[codec(index = 7)] - TransactionPayment(transaction_payment::Event), - #[codec(index = 8)] - AssetTxPayment(asset_tx_payment::Event), - #[codec(index = 9)] - ElectionProviderMultiPhase(election_provider_multi_phase::Event), - #[codec(index = 10)] - Staking(staking::Event), - #[codec(index = 11)] - Session(session::Event), - #[codec(index = 12)] - Democracy(democracy::Event), - #[codec(index = 13)] - Council(council::Event), - #[codec(index = 14)] - Elections(elections::Event), - #[codec(index = 15)] - Grandpa(grandpa::Event), - #[codec(index = 16)] - Treasury(treasury::Event), - #[codec(index = 17)] - Utility(utility::Event), - #[codec(index = 18)] - Multisig(multisig::Event), - #[codec(index = 19)] - Scheduler(scheduler::Event), - #[codec(index = 20)] - Preimage(preimage::Event), - #[codec(index = 21)] - Proxy(proxy::Event), - #[codec(index = 22)] - Assets(assets::Event), - #[codec(index = 23)] - Sudo(sudo::Event), - #[codec(index = 24)] - ImOnline(im_online::Event), - #[codec(index = 26)] - Offences(offences::Event), - #[codec(index = 28)] - Bounties(bounties::Event), - #[codec(index = 29)] - ChildBounties(child_bounties::Event), - #[codec(index = 30)] - BagsList(bags_list::Event), - #[codec(index = 31)] - NominationPools(nomination_pools::Event), - #[codec(index = 32)] - HasherBn254(hasher_bn254::Event), - #[codec(index = 33)] - AssetRegistry(asset_registry::Event), - #[codec(index = 35)] - Tokens(tokens::Event), - #[codec(index = 36)] - TokenWrapper(token_wrapper::Event), - #[codec(index = 37)] - TokenWrapperHandler(token_wrapper_handler::Event), - #[codec(index = 38)] - MixerVerifierBn254(mixer_verifier_bn254::Event), - #[codec(index = 39)] - VAnchorVerifier(v_anchor_verifier::Event), - #[codec(index = 40)] - MerkleTreeBn254(merkle_tree_bn254::Event), - #[codec(index = 41)] - LinkableTreeBn254(linkable_tree_bn254::Event), - #[codec(index = 42)] - MixerBn254(mixer_bn254::Event), - #[codec(index = 43)] - VAnchorBn254(v_anchor_bn254::Event), - #[codec(index = 44)] - VAnchorHandlerBn254(v_anchor_handler_bn254::Event), - #[codec(index = 45)] - SignatureBridge(signature_bridge::Event), - #[codec(index = 46)] - RelayerRegistry(relayer_registry::Event), - #[codec(index = 47)] - KeyStorage(key_storage::Event), - } - impl ::subxt::events::RootEvent for Event { - fn root_event( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_ty: u32, - metadata: &::subxt::Metadata, - ) -> Result { - use ::subxt::metadata::DecodeWithMetadata; - if pallet_name == "System" { - return Ok(Event::System(system::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Indices" { - return Ok(Event::Indices( - indices::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Balances" { - return Ok(Event::Balances( - balances::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "TransactionPayment" { - return Ok(Event::TransactionPayment( - transaction_payment::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "AssetTxPayment" { - return Ok(Event::AssetTxPayment( - asset_tx_payment::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ElectionProviderMultiPhase" { - return Ok(Event::ElectionProviderMultiPhase( - election_provider_multi_phase::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Staking" { - return Ok(Event::Staking( - staking::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Session" { - return Ok(Event::Session( - session::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Democracy" { - return Ok(Event::Democracy( - democracy::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Council" { - return Ok(Event::Council( - council::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Elections" { - return Ok(Event::Elections( - elections::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Grandpa" { - return Ok(Event::Grandpa( - grandpa::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Treasury" { - return Ok(Event::Treasury( - treasury::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Utility" { - return Ok(Event::Utility( - utility::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Multisig" { - return Ok(Event::Multisig( - multisig::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Scheduler" { - return Ok(Event::Scheduler( - scheduler::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Preimage" { - return Ok(Event::Preimage( - preimage::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Proxy" { - return Ok(Event::Proxy(proxy::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Assets" { - return Ok(Event::Assets(assets::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Sudo" { - return Ok(Event::Sudo(sudo::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ImOnline" { - return Ok(Event::ImOnline( - im_online::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Offences" { - return Ok(Event::Offences( - offences::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Bounties" { - return Ok(Event::Bounties( - bounties::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ChildBounties" { - return Ok(Event::ChildBounties( - child_bounties::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "BagsList" { - return Ok(Event::BagsList( - bags_list::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "NominationPools" { - return Ok(Event::NominationPools( - nomination_pools::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "HasherBn254" { - return Ok(Event::HasherBn254( - hasher_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "AssetRegistry" { - return Ok(Event::AssetRegistry( - asset_registry::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Tokens" { - return Ok(Event::Tokens(tokens::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "TokenWrapper" { - return Ok(Event::TokenWrapper( - token_wrapper::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "TokenWrapperHandler" { - return Ok(Event::TokenWrapperHandler( - token_wrapper_handler::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "MixerVerifierBn254" { - return Ok(Event::MixerVerifierBn254( - mixer_verifier_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VAnchorVerifier" { - return Ok(Event::VAnchorVerifier( - v_anchor_verifier::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "MerkleTreeBn254" { - return Ok(Event::MerkleTreeBn254( - merkle_tree_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "LinkableTreeBn254" { - return Ok(Event::LinkableTreeBn254( - linkable_tree_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "MixerBn254" { - return Ok(Event::MixerBn254( - mixer_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VAnchorBn254" { - return Ok(Event::VAnchorBn254( - v_anchor_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VAnchorHandlerBn254" { - return Ok(Event::VAnchorHandlerBn254( - v_anchor_handler_bn254::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "SignatureBridge" { - return Ok(Event::SignatureBridge( - signature_bridge::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "RelayerRegistry" { - return Ok(Event::RelayerRegistry( - relayer_registry::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "KeyStorage" { - return Ok(Event::KeyStorage( - key_storage::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Event enum", - pallet_name - )) - .into()) - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Call { - #[codec(index = 0)] - System(system::Call), - #[codec(index = 2)] - Timestamp(timestamp::Call), - #[codec(index = 3)] - Babe(babe::Call), - #[codec(index = 4)] - Authorship(authorship::Call), - #[codec(index = 5)] - Indices(indices::Call), - #[codec(index = 6)] - Balances(balances::Call), - #[codec(index = 9)] - ElectionProviderMultiPhase(election_provider_multi_phase::Call), - #[codec(index = 10)] - Staking(staking::Call), - #[codec(index = 11)] - Session(session::Call), - #[codec(index = 12)] - Democracy(democracy::Call), - #[codec(index = 13)] - Council(council::Call), - #[codec(index = 14)] - Elections(elections::Call), - #[codec(index = 15)] - Grandpa(grandpa::Call), - #[codec(index = 16)] - Treasury(treasury::Call), - #[codec(index = 17)] - Utility(utility::Call), - #[codec(index = 18)] - Multisig(multisig::Call), - #[codec(index = 19)] - Scheduler(scheduler::Call), - #[codec(index = 20)] - Preimage(preimage::Call), - #[codec(index = 21)] - Proxy(proxy::Call), - #[codec(index = 22)] - Assets(assets::Call), - #[codec(index = 23)] - Sudo(sudo::Call), - #[codec(index = 24)] - ImOnline(im_online::Call), - #[codec(index = 28)] - Bounties(bounties::Call), - #[codec(index = 29)] - ChildBounties(child_bounties::Call), - #[codec(index = 30)] - BagsList(bags_list::Call), - #[codec(index = 31)] - NominationPools(nomination_pools::Call), - #[codec(index = 32)] - HasherBn254(hasher_bn254::Call), - #[codec(index = 33)] - AssetRegistry(asset_registry::Call), - #[codec(index = 34)] - Currencies(currencies::Call), - #[codec(index = 35)] - Tokens(tokens::Call), - #[codec(index = 36)] - TokenWrapper(token_wrapper::Call), - #[codec(index = 37)] - TokenWrapperHandler(token_wrapper_handler::Call), - #[codec(index = 38)] - MixerVerifierBn254(mixer_verifier_bn254::Call), - #[codec(index = 39)] - VAnchorVerifier(v_anchor_verifier::Call), - #[codec(index = 40)] - MerkleTreeBn254(merkle_tree_bn254::Call), - #[codec(index = 41)] - LinkableTreeBn254(linkable_tree_bn254::Call), - #[codec(index = 42)] - MixerBn254(mixer_bn254::Call), - #[codec(index = 43)] - VAnchorBn254(v_anchor_bn254::Call), - #[codec(index = 44)] - VAnchorHandlerBn254(v_anchor_handler_bn254::Call), - #[codec(index = 45)] - SignatureBridge(signature_bridge::Call), - #[codec(index = 46)] - RelayerRegistry(relayer_registry::Call), - #[codec(index = 47)] - KeyStorage(key_storage::Call), - } - impl ::subxt::blocks::RootExtrinsic for Call { - fn root_extrinsic( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_ty: u32, - metadata: &::subxt::Metadata, - ) -> Result { - use ::subxt::metadata::DecodeWithMetadata; - if pallet_name == "System" { - return Ok(Call::System(system::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Timestamp" { - return Ok(Call::Timestamp( - timestamp::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Babe" { - return Ok(Call::Babe(babe::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Authorship" { - return Ok(Call::Authorship( - authorship::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Indices" { - return Ok(Call::Indices(indices::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Balances" { - return Ok(Call::Balances( - balances::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ElectionProviderMultiPhase" { - return Ok(Call::ElectionProviderMultiPhase( - election_provider_multi_phase::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Staking" { - return Ok(Call::Staking(staking::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Session" { - return Ok(Call::Session(session::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Democracy" { - return Ok(Call::Democracy( - democracy::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Council" { - return Ok(Call::Council(council::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Elections" { - return Ok(Call::Elections( - elections::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Grandpa" { - return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Treasury" { - return Ok(Call::Treasury( - treasury::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Utility" { - return Ok(Call::Utility(utility::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Multisig" { - return Ok(Call::Multisig( - multisig::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Scheduler" { - return Ok(Call::Scheduler( - scheduler::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Preimage" { - return Ok(Call::Preimage( - preimage::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Proxy" { - return Ok(Call::Proxy(proxy::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Assets" { - return Ok(Call::Assets(assets::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Sudo" { - return Ok(Call::Sudo(sudo::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ImOnline" { - return Ok(Call::ImOnline( - im_online::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Bounties" { - return Ok(Call::Bounties( - bounties::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ChildBounties" { - return Ok(Call::ChildBounties( - child_bounties::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "BagsList" { - return Ok(Call::BagsList( - bags_list::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "NominationPools" { - return Ok(Call::NominationPools( - nomination_pools::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "HasherBn254" { - return Ok(Call::HasherBn254( - hasher_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "AssetRegistry" { - return Ok(Call::AssetRegistry( - asset_registry::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Currencies" { - return Ok(Call::Currencies( - currencies::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Tokens" { - return Ok(Call::Tokens(tokens::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "TokenWrapper" { - return Ok(Call::TokenWrapper( - token_wrapper::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "TokenWrapperHandler" { - return Ok(Call::TokenWrapperHandler( - token_wrapper_handler::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "MixerVerifierBn254" { - return Ok(Call::MixerVerifierBn254( - mixer_verifier_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VAnchorVerifier" { - return Ok(Call::VAnchorVerifier( - v_anchor_verifier::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "MerkleTreeBn254" { - return Ok(Call::MerkleTreeBn254( - merkle_tree_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "LinkableTreeBn254" { - return Ok(Call::LinkableTreeBn254( - linkable_tree_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "MixerBn254" { - return Ok(Call::MixerBn254( - mixer_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VAnchorBn254" { - return Ok(Call::VAnchorBn254( - v_anchor_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VAnchorHandlerBn254" { - return Ok(Call::VAnchorHandlerBn254( - v_anchor_handler_bn254::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "SignatureBridge" { - return Ok(Call::SignatureBridge( - signature_bridge::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "RelayerRegistry" { - return Ok(Call::RelayerRegistry( - relayer_registry::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "KeyStorage" { - return Ok(Call::KeyStorage( - key_storage::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Call enum", - pallet_name - )) - .into()) - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Error { - #[codec(index = 0)] - System(system::Error), - #[codec(index = 3)] - Babe(babe::Error), - #[codec(index = 4)] - Authorship(authorship::Error), - #[codec(index = 5)] - Indices(indices::Error), - #[codec(index = 6)] - Balances(balances::Error), - #[codec(index = 9)] - ElectionProviderMultiPhase(election_provider_multi_phase::Error), - #[codec(index = 10)] - Staking(staking::Error), - #[codec(index = 11)] - Session(session::Error), - #[codec(index = 12)] - Democracy(democracy::Error), - #[codec(index = 13)] - Council(council::Error), - #[codec(index = 14)] - Elections(elections::Error), - #[codec(index = 15)] - Grandpa(grandpa::Error), - #[codec(index = 16)] - Treasury(treasury::Error), - #[codec(index = 17)] - Utility(utility::Error), - #[codec(index = 18)] - Multisig(multisig::Error), - #[codec(index = 19)] - Scheduler(scheduler::Error), - #[codec(index = 20)] - Preimage(preimage::Error), - #[codec(index = 21)] - Proxy(proxy::Error), - #[codec(index = 22)] - Assets(assets::Error), - #[codec(index = 23)] - Sudo(sudo::Error), - #[codec(index = 24)] - ImOnline(im_online::Error), - #[codec(index = 28)] - Bounties(bounties::Error), - #[codec(index = 29)] - ChildBounties(child_bounties::Error), - #[codec(index = 30)] - BagsList(bags_list::Error), - #[codec(index = 31)] - NominationPools(nomination_pools::Error), - #[codec(index = 32)] - HasherBn254(hasher_bn254::Error), - #[codec(index = 33)] - AssetRegistry(asset_registry::Error), - #[codec(index = 34)] - Currencies(currencies::Error), - #[codec(index = 35)] - Tokens(tokens::Error), - #[codec(index = 36)] - TokenWrapper(token_wrapper::Error), - #[codec(index = 37)] - TokenWrapperHandler(token_wrapper_handler::Error), - #[codec(index = 38)] - MixerVerifierBn254(mixer_verifier_bn254::Error), - #[codec(index = 39)] - VAnchorVerifier(v_anchor_verifier::Error), - #[codec(index = 40)] - MerkleTreeBn254(merkle_tree_bn254::Error), - #[codec(index = 41)] - LinkableTreeBn254(linkable_tree_bn254::Error), - #[codec(index = 42)] - MixerBn254(mixer_bn254::Error), - #[codec(index = 43)] - VAnchorBn254(v_anchor_bn254::Error), - #[codec(index = 44)] - VAnchorHandlerBn254(v_anchor_handler_bn254::Error), - #[codec(index = 45)] - SignatureBridge(signature_bridge::Error), - #[codec(index = 46)] - RelayerRegistry(relayer_registry::Error), - #[codec(index = 47)] - KeyStorage(key_storage::Error), - } - impl ::subxt::error::RootError for Error { - fn root_error( - pallet_bytes: &[u8], - pallet_name: &str, - metadata: &::subxt::Metadata, - ) -> Result { - use ::subxt::metadata::DecodeWithMetadata; - let cursor = &mut &pallet_bytes[..]; - if pallet_name == "System" { - let variant_error = system::Error::decode_with_metadata( - cursor, 136u32, metadata, - )?; - return Ok(Error::System(variant_error)); - } - if pallet_name == "Babe" { - let variant_error = babe::Error::decode_with_metadata( - cursor, 161u32, metadata, - )?; - return Ok(Error::Babe(variant_error)); - } - if pallet_name == "Authorship" { - let variant_error = authorship::Error::decode_with_metadata( - cursor, 167u32, metadata, - )?; - return Ok(Error::Authorship(variant_error)); - } - if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata( - cursor, 172u32, metadata, - )?; - return Ok(Error::Indices(variant_error)); - } - if pallet_name == "Balances" { - let variant_error = balances::Error::decode_with_metadata( - cursor, 181u32, metadata, - )?; - return Ok(Error::Balances(variant_error)); - } - if pallet_name == "ElectionProviderMultiPhase" { - let variant_error = - election_provider_multi_phase::Error::decode_with_metadata( - cursor, 255u32, metadata, - )?; - return Ok(Error::ElectionProviderMultiPhase(variant_error)); - } - if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata( - cursor, 288u32, metadata, - )?; - return Ok(Error::Staking(variant_error)); - } - if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata( - cursor, 296u32, metadata, - )?; - return Ok(Error::Session(variant_error)); - } - if pallet_name == "Democracy" { - let variant_error = democracy::Error::decode_with_metadata( - cursor, 426u32, metadata, - )?; - return Ok(Error::Democracy(variant_error)); - } - if pallet_name == "Council" { - let variant_error = council::Error::decode_with_metadata( - cursor, 429u32, metadata, - )?; - return Ok(Error::Council(variant_error)); - } - if pallet_name == "Elections" { - let variant_error = elections::Error::decode_with_metadata( - cursor, 433u32, metadata, - )?; - return Ok(Error::Elections(variant_error)); - } - if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata( - cursor, 437u32, metadata, - )?; - return Ok(Error::Grandpa(variant_error)); - } - if pallet_name == "Treasury" { - let variant_error = treasury::Error::decode_with_metadata( - cursor, 442u32, metadata, - )?; - return Ok(Error::Treasury(variant_error)); - } - if pallet_name == "Utility" { - let variant_error = utility::Error::decode_with_metadata( - cursor, 443u32, metadata, - )?; - return Ok(Error::Utility(variant_error)); - } - if pallet_name == "Multisig" { - let variant_error = multisig::Error::decode_with_metadata( - cursor, 447u32, metadata, - )?; - return Ok(Error::Multisig(variant_error)); - } - if pallet_name == "Scheduler" { - let variant_error = scheduler::Error::decode_with_metadata( - cursor, 452u32, metadata, - )?; - return Ok(Error::Scheduler(variant_error)); - } - if pallet_name == "Preimage" { - let variant_error = preimage::Error::decode_with_metadata( - cursor, 457u32, metadata, - )?; - return Ok(Error::Preimage(variant_error)); - } - if pallet_name == "Proxy" { - let variant_error = proxy::Error::decode_with_metadata( - cursor, 466u32, metadata, - )?; - return Ok(Error::Proxy(variant_error)); - } - if pallet_name == "Assets" { - let variant_error = assets::Error::decode_with_metadata( - cursor, 475u32, metadata, - )?; - return Ok(Error::Assets(variant_error)); - } - if pallet_name == "Sudo" { - let variant_error = sudo::Error::decode_with_metadata( - cursor, 476u32, metadata, - )?; - return Ok(Error::Sudo(variant_error)); - } - if pallet_name == "ImOnline" { - let variant_error = im_online::Error::decode_with_metadata( - cursor, 484u32, metadata, - )?; - return Ok(Error::ImOnline(variant_error)); - } - if pallet_name == "Bounties" { - let variant_error = bounties::Error::decode_with_metadata( - cursor, 490u32, metadata, - )?; - return Ok(Error::Bounties(variant_error)); - } - if pallet_name == "ChildBounties" { - let variant_error = - child_bounties::Error::decode_with_metadata( - cursor, 493u32, metadata, - )?; - return Ok(Error::ChildBounties(variant_error)); - } - if pallet_name == "BagsList" { - let variant_error = bags_list::Error::decode_with_metadata( - cursor, 497u32, metadata, - )?; - return Ok(Error::BagsList(variant_error)); - } - if pallet_name == "NominationPools" { - let variant_error = - nomination_pools::Error::decode_with_metadata( - cursor, 514u32, metadata, - )?; - return Ok(Error::NominationPools(variant_error)); - } - if pallet_name == "HasherBn254" { - let variant_error = hasher_bn254::Error::decode_with_metadata( - cursor, 516u32, metadata, - )?; - return Ok(Error::HasherBn254(variant_error)); - } - if pallet_name == "AssetRegistry" { - let variant_error = - asset_registry::Error::decode_with_metadata( - cursor, 519u32, metadata, - )?; - return Ok(Error::AssetRegistry(variant_error)); - } - if pallet_name == "Currencies" { - let variant_error = currencies::Error::decode_with_metadata( - cursor, 520u32, metadata, - )?; - return Ok(Error::Currencies(variant_error)); - } - if pallet_name == "Tokens" { - let variant_error = tokens::Error::decode_with_metadata( - cursor, 528u32, metadata, - )?; - return Ok(Error::Tokens(variant_error)); - } - if pallet_name == "TokenWrapper" { - let variant_error = token_wrapper::Error::decode_with_metadata( - cursor, 529u32, metadata, - )?; - return Ok(Error::TokenWrapper(variant_error)); - } - if pallet_name == "TokenWrapperHandler" { - let variant_error = - token_wrapper_handler::Error::decode_with_metadata( - cursor, 530u32, metadata, - )?; - return Ok(Error::TokenWrapperHandler(variant_error)); - } - if pallet_name == "MixerVerifierBn254" { - let variant_error = - mixer_verifier_bn254::Error::decode_with_metadata( - cursor, 531u32, metadata, - )?; - return Ok(Error::MixerVerifierBn254(variant_error)); - } - if pallet_name == "VAnchorVerifier" { - let variant_error = - v_anchor_verifier::Error::decode_with_metadata( - cursor, 532u32, metadata, - )?; - return Ok(Error::VAnchorVerifier(variant_error)); - } - if pallet_name == "MerkleTreeBn254" { - let variant_error = - merkle_tree_bn254::Error::decode_with_metadata( - cursor, 537u32, metadata, - )?; - return Ok(Error::MerkleTreeBn254(variant_error)); - } - if pallet_name == "LinkableTreeBn254" { - let variant_error = - linkable_tree_bn254::Error::decode_with_metadata( - cursor, 541u32, metadata, - )?; - return Ok(Error::LinkableTreeBn254(variant_error)); - } - if pallet_name == "MixerBn254" { - let variant_error = mixer_bn254::Error::decode_with_metadata( - cursor, 544u32, metadata, - )?; - return Ok(Error::MixerBn254(variant_error)); - } - if pallet_name == "VAnchorBn254" { - let variant_error = - v_anchor_bn254::Error::decode_with_metadata( - cursor, 546u32, metadata, - )?; - return Ok(Error::VAnchorBn254(variant_error)); - } - if pallet_name == "VAnchorHandlerBn254" { - let variant_error = - v_anchor_handler_bn254::Error::decode_with_metadata( - cursor, 547u32, metadata, - )?; - return Ok(Error::VAnchorHandlerBn254(variant_error)); - } - if pallet_name == "SignatureBridge" { - let variant_error = - signature_bridge::Error::decode_with_metadata( - cursor, 548u32, metadata, - )?; - return Ok(Error::SignatureBridge(variant_error)); - } - if pallet_name == "RelayerRegistry" { - let variant_error = - relayer_registry::Error::decode_with_metadata( - cursor, 551u32, metadata, - )?; - return Ok(Error::RelayerRegistry(variant_error)); - } - if pallet_name == "KeyStorage" { - let variant_error = key_storage::Error::decode_with_metadata( - cursor, 555u32, metadata, - )?; - return Ok(Error::KeyStorage(variant_error)); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Error enum", - pallet_name - )) - .into()) - } - } - 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::codec::Encode; - pub struct RuntimeApi; - impl RuntimeApi {} - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi - } - pub fn babe(&self) -> babe::constants::ConstantsApi { - babe::constants::ConstantsApi - } - pub fn authorship(&self) -> authorship::constants::ConstantsApi { - authorship::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 election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi - } - pub fn elections(&self) -> elections::constants::ConstantsApi { - elections::constants::ConstantsApi - } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi - } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi - } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi - } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi - } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi - } - pub fn proxy(&self) -> proxy::constants::ConstantsApi { - proxy::constants::ConstantsApi - } - pub fn assets(&self) -> assets::constants::ConstantsApi { - assets::constants::ConstantsApi - } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::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 bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn asset_registry( - &self, - ) -> asset_registry::constants::ConstantsApi { - asset_registry::constants::ConstantsApi - } - pub fn currencies(&self) -> currencies::constants::ConstantsApi { - currencies::constants::ConstantsApi - } - pub fn tokens(&self) -> tokens::constants::ConstantsApi { - tokens::constants::ConstantsApi - } - pub fn token_wrapper(&self) -> token_wrapper::constants::ConstantsApi { - token_wrapper::constants::ConstantsApi - } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::constants::ConstantsApi { - linkable_tree_bn254::constants::ConstantsApi - } - pub fn mixer_bn254(&self) -> mixer_bn254::constants::ConstantsApi { - mixer_bn254::constants::ConstantsApi - } - pub fn v_anchor_bn254( - &self, - ) -> v_anchor_bn254::constants::ConstantsApi { - v_anchor_bn254::constants::ConstantsApi - } - pub fn signature_bridge( - &self, - ) -> signature_bridge::constants::ConstantsApi { - signature_bridge::constants::ConstantsApi - } - pub fn relayer_registry( - &self, - ) -> relayer_registry::constants::ConstantsApi { - relayer_registry::constants::ConstantsApi - } - } - pub struct StorageApi; - impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { - system::storage::StorageApi - } - pub fn randomness_collective_flip( - &self, - ) -> randomness_collective_flip::storage::StorageApi { - randomness_collective_flip::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn babe(&self) -> babe::storage::StorageApi { - babe::storage::StorageApi - } - pub fn authorship(&self) -> authorship::storage::StorageApi { - authorship::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 asset_tx_payment( - &self, - ) -> asset_tx_payment::storage::StorageApi { - asset_tx_payment::storage::StorageApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi { - election_provider_multi_phase::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn democracy(&self) -> democracy::storage::StorageApi { - democracy::storage::StorageApi - } - pub fn council(&self) -> council::storage::StorageApi { - council::storage::StorageApi - } - pub fn elections(&self) -> elections::storage::StorageApi { - elections::storage::StorageApi - } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { - grandpa::storage::StorageApi - } - pub fn treasury(&self) -> treasury::storage::StorageApi { - treasury::storage::StorageApi - } - pub fn multisig(&self) -> multisig::storage::StorageApi { - multisig::storage::StorageApi - } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi - } - pub fn preimage(&self) -> preimage::storage::StorageApi { - preimage::storage::StorageApi - } - pub fn proxy(&self) -> proxy::storage::StorageApi { - proxy::storage::StorageApi - } - pub fn assets(&self) -> assets::storage::StorageApi { - assets::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } - pub fn offences(&self) -> offences::storage::StorageApi { - offences::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 bags_list(&self) -> bags_list::storage::StorageApi { - bags_list::storage::StorageApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi - } - pub fn hasher_bn254(&self) -> hasher_bn254::storage::StorageApi { - hasher_bn254::storage::StorageApi - } - pub fn asset_registry(&self) -> asset_registry::storage::StorageApi { - asset_registry::storage::StorageApi - } - pub fn tokens(&self) -> tokens::storage::StorageApi { - tokens::storage::StorageApi - } - pub fn token_wrapper(&self) -> token_wrapper::storage::StorageApi { - token_wrapper::storage::StorageApi - } - pub fn token_wrapper_handler( - &self, - ) -> token_wrapper_handler::storage::StorageApi { - token_wrapper_handler::storage::StorageApi - } - pub fn mixer_verifier_bn254( - &self, - ) -> mixer_verifier_bn254::storage::StorageApi { - mixer_verifier_bn254::storage::StorageApi - } - pub fn v_anchor_verifier( - &self, - ) -> v_anchor_verifier::storage::StorageApi { - v_anchor_verifier::storage::StorageApi - } - pub fn merkle_tree_bn254( - &self, - ) -> merkle_tree_bn254::storage::StorageApi { - merkle_tree_bn254::storage::StorageApi - } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::storage::StorageApi { - linkable_tree_bn254::storage::StorageApi - } - pub fn mixer_bn254(&self) -> mixer_bn254::storage::StorageApi { - mixer_bn254::storage::StorageApi - } - pub fn v_anchor_bn254(&self) -> v_anchor_bn254::storage::StorageApi { - v_anchor_bn254::storage::StorageApi - } - pub fn v_anchor_handler_bn254( - &self, - ) -> v_anchor_handler_bn254::storage::StorageApi { - v_anchor_handler_bn254::storage::StorageApi - } - pub fn signature_bridge( - &self, - ) -> signature_bridge::storage::StorageApi { - signature_bridge::storage::StorageApi - } - pub fn relayer_registry( - &self, - ) -> relayer_registry::storage::StorageApi { - relayer_registry::storage::StorageApi - } - pub fn key_storage(&self) -> key_storage::storage::StorageApi { - key_storage::storage::StorageApi - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi - } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi - } - pub fn babe(&self) -> babe::calls::TransactionApi { - babe::calls::TransactionApi - } - pub fn authorship(&self) -> authorship::calls::TransactionApi { - authorship::calls::TransactionApi - } - pub fn indices(&self) -> indices::calls::TransactionApi { - indices::calls::TransactionApi - } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi { - election_provider_multi_phase::calls::TransactionApi - } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi - } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi - } - pub fn democracy(&self) -> democracy::calls::TransactionApi { - democracy::calls::TransactionApi - } - pub fn council(&self) -> council::calls::TransactionApi { - council::calls::TransactionApi - } - pub fn elections(&self) -> elections::calls::TransactionApi { - elections::calls::TransactionApi - } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { - grandpa::calls::TransactionApi - } - pub fn treasury(&self) -> treasury::calls::TransactionApi { - treasury::calls::TransactionApi - } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi - } - pub fn multisig(&self) -> multisig::calls::TransactionApi { - multisig::calls::TransactionApi - } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { - scheduler::calls::TransactionApi - } - pub fn preimage(&self) -> preimage::calls::TransactionApi { - preimage::calls::TransactionApi - } - pub fn proxy(&self) -> proxy::calls::TransactionApi { - proxy::calls::TransactionApi - } - pub fn assets(&self) -> assets::calls::TransactionApi { - assets::calls::TransactionApi - } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi - } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::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 bags_list(&self) -> bags_list::calls::TransactionApi { - bags_list::calls::TransactionApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi - } - pub fn hasher_bn254(&self) -> hasher_bn254::calls::TransactionApi { - hasher_bn254::calls::TransactionApi - } - pub fn asset_registry(&self) -> asset_registry::calls::TransactionApi { - asset_registry::calls::TransactionApi - } - pub fn currencies(&self) -> currencies::calls::TransactionApi { - currencies::calls::TransactionApi - } - pub fn tokens(&self) -> tokens::calls::TransactionApi { - tokens::calls::TransactionApi - } - pub fn token_wrapper(&self) -> token_wrapper::calls::TransactionApi { - token_wrapper::calls::TransactionApi - } - pub fn token_wrapper_handler( - &self, - ) -> token_wrapper_handler::calls::TransactionApi { - token_wrapper_handler::calls::TransactionApi - } - pub fn mixer_verifier_bn254( - &self, - ) -> mixer_verifier_bn254::calls::TransactionApi { - mixer_verifier_bn254::calls::TransactionApi - } - pub fn v_anchor_verifier( - &self, - ) -> v_anchor_verifier::calls::TransactionApi { - v_anchor_verifier::calls::TransactionApi - } - pub fn merkle_tree_bn254( - &self, - ) -> merkle_tree_bn254::calls::TransactionApi { - merkle_tree_bn254::calls::TransactionApi - } - pub fn linkable_tree_bn254( - &self, - ) -> linkable_tree_bn254::calls::TransactionApi { - linkable_tree_bn254::calls::TransactionApi - } - pub fn mixer_bn254(&self) -> mixer_bn254::calls::TransactionApi { - mixer_bn254::calls::TransactionApi - } - pub fn v_anchor_bn254(&self) -> v_anchor_bn254::calls::TransactionApi { - v_anchor_bn254::calls::TransactionApi - } - pub fn v_anchor_handler_bn254( - &self, - ) -> v_anchor_handler_bn254::calls::TransactionApi { - v_anchor_handler_bn254::calls::TransactionApi - } - pub fn signature_bridge( - &self, - ) -> signature_bridge::calls::TransactionApi { - signature_bridge::calls::TransactionApi - } - pub fn relayer_registry( - &self, - ) -> relayer_registry::calls::TransactionApi { - relayer_registry::calls::TransactionApi - } - pub fn key_storage(&self) -> key_storage::calls::TransactionApi { - key_storage::calls::TransactionApi - } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen< - T: ::subxt::Config, - C: ::subxt::client::OfflineClientT, - >( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 82u8, 210u8, 44u8, 130u8, 76u8, 71u8, 26u8, 121u8, 94u8, 139u8, - 165u8, 218u8, 226u8, 163u8, 245u8, 154u8, 181u8, 178u8, 218u8, - 91u8, 54u8, 153u8, 180u8, 204u8, 59u8, 124u8, 29u8, 27u8, - 138u8, 208u8, 171u8, 86u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) - } - } - 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Remark { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for Remark { - const PALLET: &'static str = "System"; - const CALL: &'static str = "remark"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetHeapPages { - pub pages: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_heap_pages"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetCode { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetCode { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_code"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetCodeWithoutChecks { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_code_without_checks"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetStorage { - pub items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetStorage { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_storage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KillStorage { - pub keys: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - } - impl ::subxt::blocks::StaticExtrinsic for KillStorage { - const PALLET: &'static str = "System"; - const CALL: &'static str = "kill_storage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KillPrefix { - pub prefix: ::std::vec::Vec<::core::primitive::u8>, - pub subkeys: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for KillPrefix { - const PALLET: &'static str = "System"; - const CALL: &'static str = "kill_prefix"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemarkWithEvent { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { - const PALLET: &'static str = "System"; - const CALL: &'static str = "remark_with_event"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - pub fn remark( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "remark", - types::Remark { remark }, - [ - 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, - 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, - 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, - 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, - 181u8, 129u8, 160u8, - ], - ) - } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub fn set_heap_pages( - &self, - pages: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "set_heap_pages", - types::SetHeapPages { pages }, - [ - 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, - 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, - 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, - 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, - 86u8, 87u8, - ], - ) - } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - pub fn set_code( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "set_code", - types::SetCode { code }, - [ - 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, - 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, - 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, - 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, - 14u8, 40u8, - ], - ) - } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - pub fn set_code_without_checks( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "System", - "set_code_without_checks", - types::SetCodeWithoutChecks { code }, - [ - 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, - 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, - 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, - 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, - 99u8, 216u8, - ], - ) - } - #[doc = "Set some items of storage."] - pub fn set_storage( - &self, - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "set_storage", - types::SetStorage { items }, - [ - 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, - 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, - 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, - 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, - 191u8, 22u8, 116u8, - ], - ) - } - #[doc = "Kill some items from storage."] - pub fn kill_storage( - &self, - keys: ::std::vec::Vec< - ::std::vec::Vec<::core::primitive::u8>, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "kill_storage", - types::KillStorage { keys }, - [ - 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, - 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, - 70u8, 19u8, 108u8, 209u8, 41u8, 228u8, 67u8, 130u8, - 230u8, 160u8, 207u8, 11u8, 180u8, 139u8, 242u8, - 41u8, 15u8, - ], - ) - } - #[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: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "kill_prefix", - types::KillPrefix { prefix, subkeys }, - [ - 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, - 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, - 115u8, 187u8, 218u8, 129u8, 34u8, 80u8, 4u8, 173u8, - 120u8, 92u8, 35u8, 237u8, 112u8, 201u8, 207u8, - 200u8, 48u8, - ], - ) - } - #[doc = "Make some on-chain remark and emit event."] - pub fn remark_with_event( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "System", - "remark_with_event", - types::RemarkWithEvent { remark }, - [ - 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, - 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, - 158u8, 14u8, 213u8, 56u8, 225u8, 136u8, 88u8, 26u8, - 114u8, 178u8, 43u8, 176u8, 43u8, 240u8, 84u8, - 116u8, 46u8, - ], - ) - } - } - } - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An extrinsic completed successfully."] - pub struct ExtrinsicSuccess { - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicSuccess { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicSuccess"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An extrinsic failed."] - pub struct ExtrinsicFailed { - pub dispatch_error: runtime_types::sp_runtime::DispatchError, - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicFailed { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "`:code` was updated."] - pub struct CodeUpdated; - impl ::subxt::events::StaticEvent for CodeUpdated { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "CodeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new account was created."] - pub struct NewAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for NewAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "NewAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was reaped."] - pub struct KilledAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for KilledAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "KilledAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "On on-chain remark happened."] - pub struct Remarked { - pub sender: ::subxt::utils::AccountId32, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Remarked { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "Remarked"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The full account information for a particular account ID."] - pub fn account( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) - } - #[doc = " The full account information for a particular account ID."] - pub fn account_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "Account", - Vec::new(), - [ - 176u8, 187u8, 21u8, 220u8, 159u8, 204u8, 127u8, - 14u8, 21u8, 69u8, 77u8, 114u8, 230u8, 141u8, 107u8, - 79u8, 23u8, 16u8, 174u8, 243u8, 252u8, 42u8, 65u8, - 120u8, 229u8, 38u8, 210u8, 255u8, 22u8, 40u8, - 109u8, 223u8, - ], - ) - } - #[doc = " Total extrinsics count for the current block."] - pub fn extrinsic_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "ExtrinsicCount", - vec![], - [ - 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, - 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, - 249u8, 8u8, 225u8, 28u8, 232u8, 4u8, 136u8, 41u8, - 151u8, 82u8, 189u8, 149u8, 49u8, 166u8, 139u8, 9u8, - 163u8, 231u8, - ], - ) - } - #[doc = " The current weight for the block."] - pub fn block_weight( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::sp_weights::weight_v2::Weight, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "BlockWeight", - vec![], - [ - 120u8, 67u8, 71u8, 163u8, 36u8, 202u8, 52u8, 106u8, - 143u8, 155u8, 144u8, 87u8, 142u8, 241u8, 232u8, - 183u8, 56u8, 235u8, 27u8, 237u8, 20u8, 202u8, 33u8, - 85u8, 189u8, 0u8, 28u8, 52u8, 198u8, 40u8, 219u8, - 54u8, - ], - ) - } - #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] - pub fn all_extrinsics_len( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "AllExtrinsicsLen", - vec![], - [ - 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, - 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, - 32u8, 117u8, 96u8, 149u8, 53u8, 145u8, 219u8, 64u8, - 234u8, 18u8, 217u8, 200u8, 203u8, 141u8, 145u8, - 28u8, 134u8, 60u8, - ], - ) - } - #[doc = " Map of block numbers to block hashes."] - pub fn block_hash( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [208u8 , 90u8 , 9u8 , 85u8 , 0u8 , 40u8 , 80u8 , 160u8 , 135u8 , 204u8 , 83u8 , 145u8 , 18u8 , 16u8 , 7u8 , 118u8 , 213u8 , 100u8 , 26u8 , 239u8 , 198u8 , 149u8 , 188u8 , 207u8 , 66u8 , 28u8 , 157u8 , 229u8 , 187u8 , 143u8 , 223u8 , 138u8 ,]) - } - #[doc = " Map of block numbers to block hashes."] - pub fn block_hash_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "BlockHash", - Vec::new(), - [ - 208u8, 90u8, 9u8, 85u8, 0u8, 40u8, 80u8, 160u8, - 135u8, 204u8, 83u8, 145u8, 18u8, 16u8, 7u8, 118u8, - 213u8, 100u8, 26u8, 239u8, 198u8, 149u8, 188u8, - 207u8, 66u8, 28u8, 157u8, 229u8, 187u8, 143u8, - 223u8, 138u8, - ], - ) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] - pub fn extrinsic_data( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] - pub fn extrinsic_data_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "ExtrinsicData", - Vec::new(), - [ - 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, - 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, - 31u8, 229u8, 168u8, 125u8, 98u8, 23u8, 241u8, 59u8, - 49u8, 86u8, 126u8, 9u8, 114u8, 163u8, 160u8, 62u8, - 50u8, 67u8, - ], - ) - } - #[doc = " The current block number being processed. Set by `execute_block`."] - pub fn number( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "Number", - vec![], - [ - 9u8, 143u8, 246u8, 146u8, 99u8, 116u8, 84u8, 22u8, - 199u8, 223u8, 48u8, 145u8, 245u8, 95u8, 225u8, - 149u8, 107u8, 46u8, 237u8, 158u8, 12u8, 135u8, - 104u8, 253u8, 72u8, 139u8, 178u8, 15u8, 25u8, 78u8, - 5u8, 207u8, - ], - ) - } - #[doc = " Hash of the previous block."] - pub fn parent_hash( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "ParentHash", - vec![], - [ - 232u8, 206u8, 177u8, 119u8, 38u8, 57u8, 233u8, - 50u8, 225u8, 49u8, 169u8, 176u8, 210u8, 51u8, - 231u8, 176u8, 234u8, 186u8, 188u8, 112u8, 15u8, - 152u8, 195u8, 232u8, 201u8, 97u8, 208u8, 249u8, - 9u8, 163u8, 69u8, 36u8, - ], - ) - } - #[doc = " Digest of the current block, also part of the block header."] - pub fn digest( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_runtime::generic::digest::Digest, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "Digest", - vec![], - [ - 83u8, 141u8, 200u8, 132u8, 182u8, 55u8, 197u8, - 122u8, 13u8, 159u8, 31u8, 42u8, 60u8, 191u8, 89u8, - 221u8, 242u8, 47u8, 199u8, 213u8, 48u8, 216u8, - 131u8, 168u8, 245u8, 82u8, 56u8, 190u8, 62u8, 69u8, - 96u8, 37u8, - ], - ) - } - #[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 :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: webb_standalone_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "System", - "Events", - vec![], - [ - 244u8, 79u8, 231u8, 71u8, 196u8, 5u8, 210u8, 76u8, - 218u8, 0u8, 255u8, 211u8, 238u8, 91u8, 64u8, 61u8, - 56u8, 163u8, 242u8, 224u8, 189u8, 233u8, 146u8, - 213u8, 24u8, 20u8, 68u8, 187u8, 244u8, 80u8, 180u8, - 216u8, - ], - ) - } - #[doc = " The number of events in the `Events` list."] - pub fn event_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "EventCount", - vec![], - [ - 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, - 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, - 227u8, 9u8, 249u8, 25u8, 202u8, 185u8, 161u8, - 144u8, 167u8, 104u8, 127u8, 187u8, 38u8, 18u8, - 52u8, 61u8, 66u8, 112u8, - ], - ) - } - #[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 `(T::BlockNumber, 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 ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [53u8 , 63u8 , 144u8 , 127u8 , 156u8 , 40u8 , 137u8 , 72u8 , 156u8 , 219u8 , 147u8 , 209u8 , 38u8 , 22u8 , 8u8 , 70u8 , 128u8 , 101u8 , 202u8 , 79u8 , 235u8 , 239u8 , 54u8 , 249u8 , 185u8 , 219u8 , 167u8 , 38u8 , 249u8 , 130u8 , 134u8 , 179u8 ,]) - } - #[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 `(T::BlockNumber, 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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "EventTopics", - Vec::new(), - [ - 53u8, 63u8, 144u8, 127u8, 156u8, 40u8, 137u8, 72u8, - 156u8, 219u8, 147u8, 209u8, 38u8, 22u8, 8u8, 70u8, - 128u8, 101u8, 202u8, 79u8, 235u8, 239u8, 54u8, - 249u8, 185u8, 219u8, 167u8, 38u8, 249u8, 130u8, - 134u8, 179u8, - ], - ) - } - #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] - pub fn last_runtime_upgrade( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::LastRuntimeUpgradeInfo, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "LastRuntimeUpgrade", - vec![], - [ - 52u8, 37u8, 117u8, 111u8, 57u8, 130u8, 196u8, 14u8, - 99u8, 77u8, 91u8, 126u8, 178u8, 249u8, 78u8, 34u8, - 9u8, 194u8, 92u8, 105u8, 113u8, 81u8, 185u8, 127u8, - 245u8, 184u8, 60u8, 29u8, 234u8, 182u8, 96u8, - 196u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "UpgradedToU32RefCount", - vec![], - [ - 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, - 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, - 59u8, 222u8, 141u8, 32u8, 107u8, 3u8, 114u8, 83u8, - 250u8, 180u8, 233u8, 152u8, 54u8, 187u8, 99u8, - 131u8, 204u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "UpgradedToTripleRefCount", - vec![], - [ - 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, - 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, - 18u8, 51u8, 105u8, 14u8, 230u8, 103u8, 155u8, - 246u8, 99u8, 53u8, 207u8, 225u8, 128u8, 186u8, - 76u8, 40u8, 185u8, - ], - ) - } - #[doc = " The execution phase of the block."] - pub fn execution_phase( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::Phase, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "ExecutionPhase", - vec![], - [ - 230u8, 183u8, 221u8, 135u8, 226u8, 223u8, 55u8, - 104u8, 138u8, 224u8, 103u8, 156u8, 222u8, 99u8, - 203u8, 199u8, 164u8, 168u8, 193u8, 133u8, 201u8, - 155u8, 63u8, 95u8, 17u8, 206u8, 165u8, 123u8, - 161u8, 33u8, 172u8, 93u8, - ], - ) - } - } - } - 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::constants::Address< - runtime_types::frame_system::limits::BlockWeights, - > { - ::subxt::constants::Address::new_static( - "System", - "BlockWeights", - [ - 118u8, 253u8, 239u8, 217u8, 145u8, 115u8, 85u8, - 86u8, 172u8, 248u8, 139u8, 32u8, 158u8, 126u8, - 172u8, 188u8, 197u8, 105u8, 145u8, 235u8, 171u8, - 50u8, 31u8, 225u8, 167u8, 187u8, 241u8, 87u8, 6u8, - 17u8, 234u8, 185u8, - ], - ) - } - #[doc = " The maximum length of a block (in bytes)."] - pub fn block_length( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_system::limits::BlockLength, - > { - ::subxt::constants::Address::new_static( - "System", - "BlockLength", - [ - 116u8, 184u8, 225u8, 228u8, 207u8, 203u8, 4u8, - 220u8, 234u8, 198u8, 150u8, 108u8, 205u8, 87u8, - 194u8, 131u8, 229u8, 51u8, 140u8, 4u8, 47u8, 12u8, - 200u8, 144u8, 153u8, 62u8, 51u8, 39u8, 138u8, - 205u8, 203u8, 236u8, - ], - ) - } - #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] - pub fn block_hash_count( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "System", - "BlockHashCount", - [ - 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 weight of runtime database operations the runtime can invoke."] - pub fn db_weight( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_weights::RuntimeDbWeight, - > { - ::subxt::constants::Address::new_static( - "System", - "DbWeight", - [ - 124u8, 162u8, 190u8, 149u8, 49u8, 177u8, 162u8, - 231u8, 62u8, 167u8, 199u8, 181u8, 43u8, 232u8, - 185u8, 116u8, 195u8, 51u8, 233u8, 223u8, 20u8, - 129u8, 246u8, 13u8, 65u8, 180u8, 64u8, 9u8, 157u8, - 59u8, 245u8, 118u8, - ], - ) - } - #[doc = " Get the chain's current version."] - pub fn version( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_version::RuntimeVersion, - > { - ::subxt::constants::Address::new_static( - "System", - "Version", - [ - 93u8, 98u8, 57u8, 243u8, 229u8, 8u8, 234u8, 231u8, - 72u8, 230u8, 139u8, 47u8, 63u8, 181u8, 17u8, 2u8, - 220u8, 231u8, 104u8, 237u8, 185u8, 143u8, 165u8, - 253u8, 188u8, 76u8, 147u8, 12u8, 170u8, 26u8, 74u8, - 200u8, - ], - ) - } - #[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::constants::Address<::core::primitive::u16> - { - ::subxt::constants::Address::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 randomness_collective_flip { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] - #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] - #[doc = " the oldest hash."] - pub fn random_material( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::H256, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "RandomnessCollectiveFlip", - "RandomMaterial", - vec![], - [ - 152u8, 126u8, 73u8, 88u8, 54u8, 147u8, 6u8, 19u8, - 214u8, 40u8, 159u8, 30u8, 236u8, 61u8, 240u8, 65u8, - 178u8, 94u8, 146u8, 152u8, 135u8, 252u8, 160u8, - 86u8, 123u8, 114u8, 251u8, 140u8, 98u8, 143u8, - 217u8, 242u8, - ], - ) - } - } - } - } - pub mod timestamp { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Set { - #[codec(compact)] - pub now: ::core::primitive::u64, - } - impl ::subxt::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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[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)`."] - #[doc = "# "] - pub fn set( - &self, - now: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Timestamp", - "set", - types::Set { now }, - [ - 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, - 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, - 33u8, 187u8, 17u8, 166u8, 88u8, 127u8, 214u8, - 182u8, 51u8, 168u8, 88u8, 43u8, 101u8, 185u8, 8u8, - 1u8, 28u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current time for the current block."] - pub fn now( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "Now", - vec![], - [ - 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, - 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, - 39u8, 123u8, 106u8, 134u8, 202u8, 185u8, 83u8, - 85u8, 60u8, 41u8, 120u8, 96u8, 210u8, 34u8, 2u8, - 250u8, - ], - ) - } - #[doc = " Did the timestamp get updated in this block?"] - pub fn did_update( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "DidUpdate", - vec![], - [ - 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, - 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, - 16u8, 6u8, 39u8, 158u8, 167u8, 85u8, 27u8, 47u8, - 122u8, 73u8, 127u8, 26u8, 35u8, 168u8, 72u8, 204u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] - #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] - #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] - #[doc = " double this period on default settings."] - pub fn minimum_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::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 babe { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_babe::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - >, - pub key_owner_proof: - runtime_types::sp_session::MembershipProof, - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "report_equivocation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - >, - pub key_owner_proof: - runtime_types::sp_session::MembershipProof, - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "report_equivocation_unsigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PlanConfigChange { pub config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } - impl ::subxt::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 : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Babe", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 197u8, 69u8, 250u8, 137u8, 133u8, 235u8, 135u8, - 236u8, 50u8, 219u8, 142u8, 88u8, 122u8, 80u8, - 210u8, 52u8, 99u8, 118u8, 68u8, 177u8, 160u8, - 118u8, 208u8, 34u8, 128u8, 133u8, 135u8, 75u8, - 146u8, 212u8, 125u8, 97u8, - ], - ) - } - #[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 : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Babe", - "report_equivocation_unsigned", - types::ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 163u8, 128u8, 193u8, 185u8, 172u8, 43u8, 25u8, - 115u8, 211u8, 32u8, 4u8, 235u8, 28u8, 138u8, 48u8, - 111u8, 92u8, 30u8, 104u8, 29u8, 19u8, 163u8, 144u8, - 175u8, 243u8, 122u8, 217u8, 118u8, 101u8, 0u8, - 68u8, 147u8, - ], - ) - } - #[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 : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Babe", - "plan_config_change", - types::PlanConfigChange { config }, - [ - 229u8, 157u8, 41u8, 58u8, 56u8, 4u8, 52u8, 107u8, - 104u8, 20u8, 42u8, 110u8, 1u8, 17u8, 45u8, 196u8, - 30u8, 135u8, 63u8, 46u8, 40u8, 137u8, 209u8, 37u8, - 24u8, 108u8, 251u8, 189u8, 77u8, 208u8, 74u8, 32u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current epoch index."] - pub fn epoch_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochIndex", - vec![], - [ - 51u8, 27u8, 91u8, 156u8, 118u8, 99u8, 46u8, 219u8, - 190u8, 147u8, 205u8, 23u8, 106u8, 169u8, 121u8, - 218u8, 208u8, 235u8, 135u8, 127u8, 243u8, 41u8, - 55u8, 243u8, 235u8, 122u8, 57u8, 86u8, 37u8, 90u8, - 208u8, 71u8, - ], - ) - } - #[doc = " Current epoch authorities."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "Babe", - "Authorities", - vec![], - [ - 61u8, 8u8, 133u8, 111u8, 169u8, 120u8, 0u8, 213u8, - 31u8, 159u8, 204u8, 212u8, 18u8, 205u8, 93u8, 84u8, - 140u8, 108u8, 136u8, 209u8, 234u8, 107u8, 145u8, - 9u8, 204u8, 224u8, 105u8, 9u8, 238u8, 241u8, 65u8, - 30u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_slots::Slot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "GenesisSlot", - vec![], - [ - 234u8, 127u8, 243u8, 100u8, 124u8, 160u8, 66u8, - 248u8, 48u8, 218u8, 61u8, 52u8, 54u8, 142u8, 158u8, - 77u8, 32u8, 63u8, 156u8, 39u8, 94u8, 255u8, 192u8, - 238u8, 170u8, 118u8, 58u8, 42u8, 199u8, 61u8, - 199u8, 77u8, - ], - ) - } - #[doc = " Current slot number."] - pub fn current_slot( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_slots::Slot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "CurrentSlot", - vec![], - [ - 139u8, 237u8, 185u8, 137u8, 251u8, 179u8, 69u8, - 167u8, 133u8, 168u8, 204u8, 64u8, 178u8, 123u8, - 92u8, 250u8, 119u8, 190u8, 208u8, 178u8, 208u8, - 176u8, 124u8, 187u8, 74u8, 165u8, 33u8, 78u8, - 161u8, 206u8, 8u8, 108u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - [::core::primitive::u8; 32usize], - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Randomness", - vec![], - [ - 191u8, 197u8, 25u8, 164u8, 104u8, 248u8, 247u8, - 193u8, 244u8, 60u8, 181u8, 195u8, 248u8, 90u8, - 41u8, 199u8, 82u8, 123u8, 72u8, 126u8, 18u8, 17u8, - 128u8, 215u8, 34u8, 251u8, 227u8, 70u8, 166u8, - 10u8, 104u8, 140u8, - ], - ) - } - #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "Babe", - "PendingEpochConfigChange", - vec![], - [ - 4u8, 201u8, 0u8, 204u8, 47u8, 246u8, 4u8, 185u8, - 163u8, 242u8, 242u8, 152u8, 29u8, 222u8, 71u8, - 127u8, 49u8, 203u8, 206u8, 180u8, 244u8, 50u8, - 80u8, 49u8, 199u8, 97u8, 3u8, 170u8, 156u8, 139u8, - 106u8, 113u8, - ], - ) - } - #[doc = " Next epoch randomness."] - pub fn next_randomness( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - [::core::primitive::u8; 32usize], - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextRandomness", - vec![], - [ - 185u8, 98u8, 45u8, 109u8, 253u8, 38u8, 238u8, - 221u8, 240u8, 29u8, 38u8, 107u8, 118u8, 117u8, - 131u8, 115u8, 21u8, 255u8, 203u8, 81u8, 243u8, - 251u8, 91u8, 60u8, 163u8, 202u8, 125u8, 193u8, - 173u8, 234u8, 166u8, 92u8, - ], - ) - } - #[doc = " Next epoch authorities."] pub fn next_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "Babe", - "NextAuthorities", - vec![], - [ - 201u8, 193u8, 164u8, 18u8, 155u8, 253u8, 124u8, - 163u8, 143u8, 73u8, 212u8, 20u8, 241u8, 108u8, - 110u8, 5u8, 171u8, 66u8, 224u8, 208u8, 10u8, 65u8, - 148u8, 164u8, 1u8, 12u8, 216u8, 83u8, 20u8, 226u8, - 254u8, 183u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "SegmentIndex", - vec![], - [ - 128u8, 45u8, 87u8, 58u8, 174u8, 152u8, 241u8, - 156u8, 56u8, 192u8, 19u8, 45u8, 75u8, 160u8, 35u8, - 253u8, 145u8, 11u8, 178u8, 81u8, 114u8, 117u8, - 112u8, 107u8, 163u8, 208u8, 240u8, 151u8, 102u8, - 176u8, 246u8, 5u8, - ], - ) - } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] - pub fn under_construction( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - [::core::primitive::u8; 32usize], - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Babe" , "UnderConstruction" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [180u8 , 4u8 , 149u8 , 245u8 , 231u8 , 92u8 , 99u8 , 170u8 , 254u8 , 172u8 , 182u8 , 3u8 , 152u8 , 156u8 , 132u8 , 196u8 , 140u8 , 97u8 , 7u8 , 84u8 , 220u8 , 89u8 , 195u8 , 177u8 , 235u8 , 51u8 , 98u8 , 144u8 , 73u8 , 238u8 , 59u8 , 164u8 ,]) - } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] - pub fn under_construction_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - [::core::primitive::u8; 32usize], - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "UnderConstruction", - Vec::new(), - [ - 180u8, 4u8, 149u8, 245u8, 231u8, 92u8, 99u8, 170u8, - 254u8, 172u8, 182u8, 3u8, 152u8, 156u8, 132u8, - 196u8, 140u8, 97u8, 7u8, 84u8, 220u8, 89u8, 195u8, - 177u8, 235u8, 51u8, 98u8, 144u8, 73u8, 238u8, 59u8, - 164u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::option::Option< - runtime_types::sp_consensus_babe::digests::PreDigest, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Initialized", - vec![], - [ - 142u8, 101u8, 250u8, 113u8, 93u8, 201u8, 157u8, - 18u8, 166u8, 153u8, 59u8, 197u8, 107u8, 247u8, - 124u8, 110u8, 202u8, 67u8, 62u8, 57u8, 186u8, - 134u8, 49u8, 182u8, 149u8, 44u8, 255u8, 85u8, 87u8, - 177u8, 149u8, 121u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::option::Option<[::core::primitive::u8; 32usize]>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "AuthorVrfRandomness", - vec![], - [ - 66u8, 235u8, 74u8, 252u8, 222u8, 135u8, 19u8, 28u8, - 74u8, 191u8, 170u8, 197u8, 207u8, 127u8, 77u8, - 121u8, 138u8, 138u8, 110u8, 187u8, 34u8, 14u8, - 230u8, 43u8, 241u8, 241u8, 63u8, 163u8, 53u8, - 179u8, 250u8, 247u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u64, ::core::primitive::u64), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochStart", - vec![], - [ - 108u8, 16u8, 132u8, 125u8, 122u8, 198u8, 22u8, - 251u8, 231u8, 157u8, 74u8, 188u8, 193u8, 42u8, - 78u8, 83u8, 108u8, 207u8, 49u8, 166u8, 105u8, - 143u8, 25u8, 87u8, 145u8, 240u8, 229u8, 211u8, - 90u8, 43u8, 22u8, 197u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Lateness", - vec![], - [ - 8u8, 9u8, 112u8, 117u8, 174u8, 35u8, 125u8, 86u8, - 41u8, 12u8, 7u8, 240u8, 27u8, 162u8, 6u8, 167u8, - 143u8, 69u8, 140u8, 109u8, 99u8, 209u8, 105u8, - 65u8, 240u8, 79u8, 76u8, 4u8, 3u8, 55u8, 157u8, - 40u8, - ], - ) - } - #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] - #[doc = " genesis."] - pub fn epoch_config( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_babe::BabeEpochConfiguration, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochConfig", - vec![], - [ - 41u8, 118u8, 141u8, 244u8, 72u8, 17u8, 125u8, - 203u8, 43u8, 153u8, 203u8, 119u8, 117u8, 223u8, - 123u8, 133u8, 73u8, 235u8, 130u8, 21u8, 160u8, - 167u8, 16u8, 173u8, 177u8, 35u8, 117u8, 97u8, - 149u8, 49u8, 220u8, 24u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_babe::BabeEpochConfiguration, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextEpochConfig", - vec![], - [ - 111u8, 182u8, 144u8, 180u8, 92u8, 146u8, 102u8, - 249u8, 196u8, 229u8, 226u8, 30u8, 25u8, 198u8, - 133u8, 9u8, 136u8, 95u8, 11u8, 151u8, 139u8, 156u8, - 105u8, 228u8, 181u8, 12u8, 175u8, 148u8, 174u8, - 33u8, 233u8, 228u8, - ], - ) - } - } - } - 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::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::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::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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, - ], - ) - } - } - } - } - pub mod authorship { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_authorship::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_authorship::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetUncles { - pub new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetUncles { - const PALLET: &'static str = "Authorship"; - const CALL: &'static str = "set_uncles"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Provide a set of uncles."] - pub fn set_uncles( - &self, - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Authorship", - "set_uncles", - types::SetUncles { new_uncles }, - [ - 145u8, 151u8, 19u8, 25u8, 215u8, 52u8, 2u8, 133u8, - 36u8, 96u8, 254u8, 251u8, 120u8, 238u8, 183u8, - 33u8, 150u8, 5u8, 102u8, 122u8, 28u8, 51u8, 248u8, - 21u8, 160u8, 196u8, 111u8, 159u8, 145u8, 71u8, - 144u8, 126u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Uncles"] - pub fn uncles( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_authorship::UncleEntryItem< - ::core::primitive::u64, - ::subxt::utils::H256, - ::subxt::utils::AccountId32, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "Uncles", - vec![], - [ - 111u8, 12u8, 34u8, 219u8, 27u8, 243u8, 210u8, 10u8, - 36u8, 166u8, 107u8, 2u8, 103u8, 149u8, 185u8, 83u8, - 221u8, 138u8, 173u8, 172u8, 176u8, 136u8, 106u8, - 169u8, 49u8, 254u8, 21u8, 45u8, 70u8, 228u8, 127u8, - 30u8, - ], - ) - } - #[doc = " Author of current block."] - pub fn author( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "Author", - vec![], - [ - 149u8, 42u8, 33u8, 147u8, 190u8, 207u8, 174u8, - 227u8, 190u8, 110u8, 25u8, 131u8, 5u8, 167u8, - 237u8, 188u8, 188u8, 33u8, 177u8, 126u8, 181u8, - 49u8, 126u8, 118u8, 46u8, 128u8, 154u8, 95u8, 15u8, - 91u8, 103u8, 113u8, - ], - ) - } - #[doc = " Whether uncles were already set in this block."] - pub fn did_set_uncles( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "DidSetUncles", - vec![], - [ - 64u8, 3u8, 208u8, 187u8, 50u8, 45u8, 37u8, 88u8, - 163u8, 226u8, 37u8, 126u8, 232u8, 107u8, 156u8, - 187u8, 29u8, 15u8, 53u8, 46u8, 28u8, 73u8, 83u8, - 123u8, 14u8, 244u8, 243u8, 43u8, 245u8, 143u8, - 15u8, 115u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The number of blocks back we should accept uncles."] - #[doc = " This means that we will deal with uncle-parents that are"] - #[doc = " `UncleGenerations + 1` before `now`."] - pub fn uncle_generations( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Authorship", - "UncleGenerations", - [ - 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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_indices::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Claim { - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Claim { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "claim"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Free { - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Free { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "free"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Freeze { - pub index: ::core::primitive::u32, - } - impl ::subxt::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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn claim( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "claim", - types::Claim { index }, - [ - 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, - 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, - 88u8, 196u8, 189u8, 244u8, 18u8, 233u8, 37u8, - 228u8, 248u8, 76u8, 175u8, 212u8, 233u8, 238u8, - 203u8, 162u8, 68u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] - pub fn transfer( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "transfer", - types::Transfer { new, index }, - [ - 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, - 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, - 154u8, 27u8, 34u8, 205u8, 188u8, 10u8, 169u8, - 203u8, 39u8, 2u8, 236u8, 181u8, 162u8, 115u8, - 254u8, 42u8, 28u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn free( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "free", - types::Free { index }, - [ - 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, - 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, - 74u8, 203u8, 235u8, 138u8, 255u8, 27u8, 163u8, - 71u8, 254u8, 217u8, 6u8, 208u8, 202u8, 204u8, - 238u8, 70u8, 126u8, 252u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] - pub fn force_transfer( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Indices", - "force_transfer", - types::ForceTransfer { new, index, freeze }, - [ - 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, - 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, - 181u8, 172u8, 64u8, 37u8, 165u8, 121u8, 111u8, - 173u8, 224u8, 181u8, 79u8, 76u8, 134u8, 93u8, - 169u8, 65u8, 131u8, - ], - ) - } - #[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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - pub fn freeze( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "freeze", - types::Freeze { index }, - [ - 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, - 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, - 246u8, 149u8, 31u8, 168u8, 186u8, 208u8, 90u8, - 40u8, 47u8, 100u8, 228u8, 188u8, 33u8, 79u8, 220u8, - 105u8, 209u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_indices::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index was assigned."] - pub struct IndexAssigned { - pub who: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexAssigned { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index has been freed up (unassigned)."] - pub struct IndexFreed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexFreed { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFreed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index has been frozen to its current account ID."] - pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IndexFrozen { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFrozen"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The lookup from index to account."] - pub fn accounts( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) - } - #[doc = " The lookup from index to account."] - pub fn accounts_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Indices", - "Accounts", - Vec::new(), - [ - 211u8, 169u8, 54u8, 254u8, 88u8, 57u8, 22u8, 223u8, - 108u8, 27u8, 38u8, 9u8, 202u8, 209u8, 111u8, 209u8, - 144u8, 13u8, 211u8, 114u8, 239u8, 127u8, 75u8, - 166u8, 234u8, 222u8, 225u8, 35u8, 160u8, 163u8, - 112u8, 242u8, - ], - ) - } - } - } - 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::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_balances::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for SetBalance { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "set_balance"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_keep_alive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub keep_alive: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_unreserve"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer", - types::Transfer { dest, value }, - [ - 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, - 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, - 66u8, 184u8, 27u8, 94u8, 176u8, 60u8, 233u8, 236u8, - 145u8, 218u8, 44u8, 138u8, 240u8, 224u8, 16u8, - 193u8, 220u8, 95u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "set_balance", - types::SetBalance { - who, - new_free, - new_reserved, - }, - [ - 174u8, 34u8, 80u8, 252u8, 193u8, 51u8, 228u8, - 236u8, 234u8, 16u8, 173u8, 214u8, 122u8, 21u8, - 254u8, 7u8, 49u8, 176u8, 18u8, 128u8, 122u8, 68u8, - 72u8, 181u8, 119u8, 90u8, 167u8, 46u8, 203u8, - 220u8, 109u8, 110u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Balances", - "force_transfer", - types::ForceTransfer { - source, - dest, - value, - }, - [ - 56u8, 80u8, 186u8, 45u8, 134u8, 147u8, 200u8, 19u8, - 53u8, 221u8, 213u8, 32u8, 13u8, 51u8, 130u8, 42u8, - 244u8, 85u8, 50u8, 246u8, 189u8, 51u8, 93u8, 1u8, - 108u8, 142u8, 112u8, 245u8, 104u8, 255u8, 15u8, - 62u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_keep_alive", - types::TransferKeepAlive { dest, value }, - [ - 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, - 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, - 56u8, 217u8, 250u8, 21u8, 44u8, 239u8, 66u8, 79u8, - 99u8, 25u8, 106u8, 70u8, 226u8, 50u8, 255u8, 176u8, - 71u8, - ], - ) - } - #[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). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_all", - types::TransferAll { dest, keep_alive }, - [ - 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, - 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, - 53u8, 205u8, 112u8, 147u8, 88u8, 167u8, 197u8, - 32u8, 104u8, 117u8, 201u8, 168u8, 144u8, 230u8, - 120u8, 29u8, 122u8, 159u8, - ], - ) - } - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] - pub fn force_unreserve( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Balances", - "force_unreserve", - types::ForceUnreserve { who, amount }, - [ - 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, - 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, - 46u8, 108u8, 136u8, 167u8, 145u8, 103u8, 65u8, - 33u8, 168u8, 36u8, 214u8, 126u8, 237u8, 180u8, - 61u8, 108u8, 110u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_balances::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was moved from the reserve of the first account to the second account."] - #[doc = "Final argument indicates the destination balance type."] - pub struct ReserveRepatriated { pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - pub struct Deposit { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Withdraw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Slashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total units issued in the system."] - pub fn total_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "TotalIssuance", - vec![], - [ - 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, - 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, - 187u8, 44u8, 84u8, 25u8, 164u8, 235u8, 20u8, 86u8, - 242u8, 124u8, 23u8, 28u8, 140u8, 26u8, 73u8, 231u8, - 51u8, - ], - ) - } - #[doc = " The total units of outstanding deactivated balance in the system."] - pub fn inactive_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "InactiveIssuance", - vec![], - [ - 74u8, 203u8, 111u8, 142u8, 225u8, 104u8, 173u8, - 51u8, 226u8, 12u8, 85u8, 135u8, 41u8, 206u8, 177u8, - 238u8, 94u8, 246u8, 184u8, 250u8, 140u8, 213u8, - 91u8, 118u8, 163u8, 111u8, 211u8, 46u8, 204u8, - 160u8, 154u8, 21u8, - ], - ) - } - #[doc = " The Balances pallet example of storing the balance of an account."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " You can also store the balance of an account in the `System` pallet."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = System"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] - #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] - #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] - pub fn account( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Account", - Vec::new(), - [ - 246u8, 154u8, 253u8, 71u8, 192u8, 192u8, 192u8, - 236u8, 128u8, 80u8, 40u8, 252u8, 201u8, 43u8, 3u8, - 131u8, 19u8, 49u8, 141u8, 240u8, 172u8, 217u8, - 215u8, 109u8, 87u8, 135u8, 248u8, 57u8, 98u8, - 185u8, 22u8, 4u8, - ], - ) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Balances", - "Locks", - Vec::new(), - [ - 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, - 244u8, 134u8, 195u8, 58u8, 255u8, 64u8, 153u8, - 212u8, 210u8, 232u8, 4u8, 122u8, 90u8, 212u8, - 136u8, 14u8, 127u8, 232u8, 8u8, 192u8, 40u8, 233u8, - 18u8, 250u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Reserves", - Vec::new(), - [ - 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, - 42u8, 250u8, 128u8, 167u8, 117u8, 44u8, 85u8, 96u8, - 105u8, 216u8, 16u8, 147u8, 74u8, 55u8, 183u8, 94u8, - 160u8, 177u8, 26u8, 187u8, 71u8, 197u8, 187u8, - 163u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount required to keep an account open."] - pub fn existential_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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, - ], - ) - } - } - } - } - pub mod transaction_payment { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_transaction_payment::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] - #[doc = "has been paid by `who`."] - pub struct TransactionFeePaid { - pub who: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TransactionFeePaid { - const PALLET: &'static str = "TransactionPayment"; - const EVENT: &'static str = "TransactionFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn next_fee_multiplier( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::fixed_point::FixedU128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TransactionPayment", - "NextFeeMultiplier", - vec![], - [ - 210u8, 0u8, 206u8, 165u8, 183u8, 10u8, 206u8, 52u8, - 14u8, 90u8, 218u8, 197u8, 189u8, 125u8, 113u8, - 216u8, 52u8, 161u8, 45u8, 24u8, 245u8, 237u8, - 121u8, 41u8, 106u8, 29u8, 45u8, 129u8, 250u8, - 203u8, 206u8, 180u8, - ], - ) - } - pub fn storage_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_transaction_payment::Releases, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TransactionPayment", - "StorageVersion", - vec![], - [ - 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, - 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, - 166u8, 11u8, 34u8, 12u8, 12u8, 198u8, 58u8, 191u8, - 186u8, 221u8, 221u8, 119u8, 181u8, 253u8, 154u8, - 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] - #[doc = " `priority`"] - #[doc = ""] - #[doc = " This value is multipled 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::constants::Address<::core::primitive::u8> - { - ::subxt::constants::Address::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 asset_tx_payment { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_asset_tx_payment::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] - #[doc = "has been paid by `who` in an asset `asset_id`."] - pub struct AssetTxFeePaid { - pub who: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, - pub asset_id: ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::events::StaticEvent for AssetTxFeePaid { - const PALLET: &'static str = "AssetTxPayment"; - const EVENT: &'static str = "AssetTxFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi {} - } - } - 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 one variant per dispatchable that can be called by an extrinsic."] - pub type Call = - runtime_types::pallet_election_provider_multi_phase::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } - impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit_unsigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_minimum_untrusted_score"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_emergency_election_result"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct GovernanceFallback { - pub maybe_max_voters: - ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: - ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "governance_fallback"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit_unsigned", - types::SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, - }, - [ - 100u8, 240u8, 31u8, 34u8, 93u8, 98u8, 93u8, 57u8, - 41u8, 197u8, 97u8, 58u8, 242u8, 10u8, 69u8, 250u8, - 185u8, 169u8, 21u8, 8u8, 202u8, 61u8, 36u8, 25u8, - 4u8, 148u8, 82u8, 56u8, 242u8, 18u8, 27u8, 219u8, - ], - ) - } - #[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: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_minimum_untrusted_score", - types::SetMinimumUntrustedScore { maybe_next_score }, - [ - 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, - 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, - 144u8, 74u8, 106u8, 15u8, 62u8, 196u8, 247u8, 49u8, - 20u8, 48u8, 3u8, 105u8, 85u8, 46u8, 76u8, 4u8, - 67u8, 81u8, - ], - ) - } - #[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: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_emergency_election_result", - types::SetEmergencyElectionResult { supports }, - [ - 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, - 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, - 54u8, 63u8, 251u8, 51u8, 214u8, 204u8, 55u8, 112u8, - 46u8, 228u8, 255u8, 250u8, 151u8, 5u8, 44u8, 133u8, - ], - ) - } - #[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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit", - types::Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - }, - [ - 220u8, 167u8, 40u8, 47u8, 253u8, 244u8, 72u8, - 124u8, 30u8, 123u8, 127u8, 227u8, 2u8, 66u8, 119u8, - 64u8, 211u8, 200u8, 210u8, 98u8, 248u8, 132u8, - 68u8, 25u8, 34u8, 182u8, 230u8, 225u8, 241u8, 58u8, - 193u8, 134u8, - ], - ) - } - #[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: ::core::option::Option< - ::core::primitive::u32, - >, - maybe_max_targets: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "governance_fallback", - types::GovernanceFallback { - maybe_max_voters, - maybe_max_targets, - }, - [ - 206u8, 247u8, 76u8, 85u8, 7u8, 24u8, 231u8, 226u8, - 192u8, 143u8, 43u8, 67u8, 91u8, 202u8, 88u8, 176u8, - 130u8, 1u8, 83u8, 229u8, 227u8, 200u8, 179u8, 4u8, - 113u8, 60u8, 99u8, 190u8, 53u8, 226u8, 142u8, - 182u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A solution was stored with the given compute."] - #[doc = ""] - #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] - #[doc = "solution is unsigned, this means that it has also been processed."] - #[doc = ""] - #[doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] - pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub prev_ejected : :: core :: primitive :: bool , } - impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The election has been finalized, with the given computation and score."] - pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } - impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An election failed."] - #[doc = ""] - #[doc = "Not much can be said about which computes failed in the process."] - pub struct ElectionFailed; - impl ::subxt::events::StaticEvent for ElectionFailed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has been rewarded for their signed submission being finalized."] - pub struct Rewarded { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has been slashed for submitting an invalid signed submission."] - pub struct Slashed { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The signed phase of the given round has started."] - pub struct SignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The unsigned phase of the given round has started."] - pub struct UnsignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for UnsignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; - } - } - pub mod storage { - use super::runtime_types; - 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "Round", - vec![], - [ - 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, - 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, - 34u8, 44u8, 166u8, 188u8, 199u8, 210u8, 21u8, 19u8, - 70u8, 96u8, 139u8, 8u8, 53u8, 82u8, 165u8, 239u8, - ], - ) - } - #[doc = " Current phase."] - pub fn current_phase( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "CurrentPhase", - vec![], - [ - 144u8, 190u8, 94u8, 47u8, 205u8, 116u8, 228u8, - 239u8, 155u8, 128u8, 246u8, 168u8, 192u8, 10u8, - 102u8, 179u8, 53u8, 210u8, 181u8, 63u8, 209u8, - 231u8, 100u8, 103u8, 249u8, 197u8, 171u8, 43u8, - 12u8, 42u8, 177u8, 234u8, - ], - ) - } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: ReadySolution , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "QueuedSolution", - vec![], - [ - 11u8, 152u8, 13u8, 167u8, 204u8, 209u8, 171u8, - 249u8, 59u8, 250u8, 58u8, 152u8, 164u8, 121u8, - 146u8, 112u8, 241u8, 16u8, 159u8, 251u8, 209u8, - 251u8, 114u8, 29u8, 188u8, 30u8, 84u8, 71u8, 136u8, - 173u8, 145u8, 236u8, - ], - ) - } - #[doc = " Snapshot data of the round."] - #[doc = ""] - #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "Snapshot", - vec![], - [ - 239u8, 56u8, 191u8, 77u8, 150u8, 224u8, 248u8, - 88u8, 132u8, 224u8, 164u8, 83u8, 253u8, 36u8, 46u8, - 156u8, 72u8, 152u8, 36u8, 206u8, 72u8, 27u8, 226u8, - 87u8, 146u8, 220u8, 93u8, 178u8, 26u8, 115u8, - 232u8, 71u8, - ], - ) - } - #[doc = " Desired number of targets to elect for this round."] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] - pub fn desired_targets( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "DesiredTargets", - vec![], - [ - 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, - 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, - 90u8, 140u8, 31u8, 210u8, 2u8, 116u8, 220u8, 231u8, - 115u8, 112u8, 118u8, 118u8, 68u8, 34u8, 151u8, - 165u8, - ], - ) - } - #[doc = " The metadata of the [`RoundSnapshot`]"] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SnapshotMetadata", - vec![], - [ - 135u8, 122u8, 60u8, 75u8, 194u8, 240u8, 187u8, - 96u8, 240u8, 203u8, 192u8, 22u8, 117u8, 148u8, - 118u8, 24u8, 240u8, 213u8, 94u8, 22u8, 194u8, 47u8, - 181u8, 245u8, 77u8, 149u8, 11u8, 251u8, 117u8, - 220u8, 205u8, 78u8, - ], - ) - } - #[doc = " The next index to be assigned to an incoming signed submission."] - #[doc = ""] - #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] - #[doc = " submission for the duration of the election. On election finalization, the next index is"] - #[doc = " reset to 0."] - #[doc = ""] - #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] - #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] - #[doc = " because iteration is slow. Instead, we store the value here."] - pub fn signed_submission_next_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionNextIndex", - vec![], - [ - 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, - 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, - 59u8, 42u8, 238u8, 115u8, 8u8, 6u8, 137u8, 45u8, - 2u8, 123u8, 187u8, 53u8, 215u8, 19u8, 129u8, 54u8, - 22u8, - ], - ) - } - #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] - #[doc = " value in `SignedSubmissions`."] - #[doc = ""] - #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] - #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] - #[doc = " them one at a time instead of reading and decoding all of them at once."] - pub fn signed_submission_indices( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( - runtime_types::sp_npos_elections::ElectionScore, - ::core::primitive::u64, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionIndices", - vec![], - [ - 254u8, 6u8, 108u8, 182u8, 202u8, 49u8, 246u8, 66u8, - 54u8, 247u8, 159u8, 226u8, 113u8, 197u8, 237u8, - 229u8, 43u8, 237u8, 215u8, 69u8, 213u8, 50u8, 64u8, - 106u8, 61u8, 142u8, 113u8, 29u8, 209u8, 175u8, - 83u8, 214u8, - ], - ) - } - #[doc = " Unchecked, signed solutions."] - #[doc = ""] - #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] - #[doc = " allowing us to keep only a single one in memory at a time."] - #[doc = ""] - #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: webb_standalone_runtime :: NposSolution16 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: webb_standalone_runtime :: NposSolution16 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionsMap", - Vec::new(), - [ - 84u8, 65u8, 205u8, 191u8, 143u8, 246u8, 239u8, - 27u8, 243u8, 54u8, 250u8, 8u8, 125u8, 32u8, 241u8, - 141u8, 210u8, 225u8, 56u8, 101u8, 241u8, 52u8, - 157u8, 29u8, 13u8, 155u8, 73u8, 132u8, 118u8, 53u8, - 2u8, 135u8, - ], - ) - } - #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] - #[doc = " feasible."] - #[doc = ""] - #[doc = " Can be set via `set_minimum_untrusted_score`."] - pub fn minimum_untrusted_score( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_npos_elections::ElectionScore, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "MinimumUntrustedScore", - vec![], - [ - 77u8, 235u8, 181u8, 45u8, 230u8, 12u8, 0u8, 179u8, - 152u8, 38u8, 74u8, 199u8, 47u8, 84u8, 85u8, 55u8, - 171u8, 226u8, 217u8, 125u8, 17u8, 194u8, 95u8, - 157u8, 73u8, 245u8, 75u8, 130u8, 248u8, 7u8, 53u8, - 226u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "UnsignedPhase", - [ - 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 = " Duration of the signed phase."] - pub fn signed_phase( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedPhase", - [ - 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 minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Signed phase."] - pub fn better_signed_threshold( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Perbill, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "BetterSignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Unsigned phase."] - pub fn better_unsigned_threshold( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Perbill, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "BetterUnsignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The repeat threshold of the offchain worker."] - #[doc = ""] - #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] - #[doc = " to submit the worker's solution."] - pub fn offchain_repeat( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "OffchainRepeat", - [ - 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 priority of the unsigned transaction submitted in the unsigned-phase"] - pub fn miner_tx_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerTxPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - #[doc = " Maximum number of signed submissions that can be queued."] - #[doc = ""] - #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] - #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] - #[doc = " update this value during an election, you _must_ ensure that"] - #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] - #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub fn signed_max_submissions( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxSubmissions", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum weight of a signed solution."] - #[doc = ""] - #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] - #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] - #[doc = " this value."] - pub fn signed_max_weight( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_weights::weight_v2::Weight, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] - pub fn signed_max_refunds( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxRefunds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Base reward for a signed solution"] - pub fn signed_reward_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedRewardBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Base deposit for a signed solution."] - pub fn signed_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositWeight", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] - #[doc = " are only over a single block, but once multi-block elections are introduced they will"] - #[doc = " take place over multiple blocks."] - pub fn max_electing_voters( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectingVoters", - [ - 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 electable targets to put in the snapshot."] - pub fn max_electable_targets( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectableTargets", - [ - 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, - ], - ) - } - #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] - #[doc = " implementation."] - #[doc = ""] - #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxWinners", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_weight( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_weights::weight_v2::Weight, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - pub fn miner_max_votes_per_voter( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxVotesPerVoter", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod staking { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Bond { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Bond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "bond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "bond_extra"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "unbond"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::blocks::StaticExtrinsic for Validate { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "validate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "nominate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Chill; - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "chill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetPayee { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_payee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetController { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_controller"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "increase_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ScaleValidatorCount { - pub factor: - runtime_types::sp_arithmetic::per_things::Percent, - } - impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "scale_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceNoEras; - impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_no_eras"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceNewEra; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetInvulnerables { - pub invulnerables: - ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_invulnerables"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_unstake"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceNewEraAlways; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era_always"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, - } - impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "cancel_deferred_slash"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "payout_stakers"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Rebond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "rebond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ReapStash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "reap_stash"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Kick { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "kick"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetStakingConfigs { - pub min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_staking_configs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ChillOther { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "chill_other"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_apply_min_commission"; - } - } - 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 = "# "] - #[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_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] - pub fn bond( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "bond", - types::Bond { - controller, - value, - payee, - }, - [ - 140u8, 13u8, 108u8, 181u8, 212u8, 177u8, 190u8, - 212u8, 163u8, 40u8, 120u8, 232u8, 126u8, 213u8, - 6u8, 181u8, 99u8, 252u8, 58u8, 54u8, 139u8, 64u8, - 67u8, 76u8, 53u8, 226u8, 11u8, 133u8, 235u8, 159u8, - 103u8, 210u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn bond_extra( - &self, - max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "bond_extra", - types::BondExtra { max_additional }, - [ - 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, - 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, - 252u8, 15u8, 19u8, 128u8, 11u8, 187u8, 4u8, 151u8, - 103u8, 143u8, 24u8, 33u8, 149u8, 82u8, 35u8, 192u8, - ], - ) - } - #[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: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "unbond", - types::Unbond { value }, - [ - 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, - 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, - 114u8, 230u8, 240u8, 146u8, 14u8, 109u8, 185u8, - 151u8, 148u8, 44u8, 147u8, 182u8, 192u8, 253u8, - 51u8, 87u8, - ], - ) - } - #[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"] - #[doc = "whatever 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 = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] - #[doc = "# "] - pub fn withdraw_unbonded( - &self, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "withdraw_unbonded", - types::WithdrawUnbonded { num_slashing_spans }, - [ - 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, - 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, - 165u8, 192u8, 149u8, 249u8, 158u8, 159u8, 194u8, - 224u8, 118u8, 134u8, 204u8, 157u8, 72u8, 136u8, - 19u8, 193u8, 183u8, 84u8, - ], - ) - } - #[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: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "validate", - types::Validate { prefs }, - [ - 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, - 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, - 106u8, 200u8, 172u8, 108u8, 145u8, 194u8, 146u8, - 61u8, 145u8, 233u8, 168u8, 2u8, 26u8, 145u8, 101u8, - 114u8, 157u8, - ], - ) - } - #[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 = "# "] - #[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."] - #[doc = "# "] - pub fn nominate( - &self, - targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "nominate", - types::Nominate { targets }, - [ - 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, - 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, - 129u8, 156u8, 190u8, 83u8, 178u8, 170u8, 116u8, - 27u8, 8u8, 244u8, 56u8, 73u8, 164u8, 223u8, 199u8, - 115u8, 168u8, 83u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] - pub fn chill(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill", - types::Chill {}, - [ - 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, - 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, - 166u8, 230u8, 56u8, 16u8, 222u8, 31u8, 153u8, - 120u8, 62u8, 153u8, 67u8, 220u8, 239u8, 11u8, - 234u8, 127u8, 122u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] - pub fn set_payee( - &self, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_payee", - types::SetPayee { payee }, - [ - 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, - 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, - 245u8, 14u8, 171u8, 108u8, 195u8, 250u8, 133u8, - 0u8, 75u8, 192u8, 159u8, 84u8, 220u8, 242u8, 133u8, - 60u8, 62u8, - ], - ) - } - #[doc = "(Re-)set the controller of a stash."] - #[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 = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] - pub fn set_controller( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_controller", - types::SetController { controller }, - [ - 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, - 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, - 117u8, 192u8, 143u8, 166u8, 38u8, 235u8, 75u8, - 161u8, 177u8, 229u8, 229u8, 82u8, 95u8, 39u8, 40u8, - 116u8, 9u8, 204u8, - ], - ) - } - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] - pub fn set_validator_count( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_validator_count", - types::SetValidatorCount { new }, - [ - 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, - 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, - 187u8, 194u8, 91u8, 15u8, 36u8, 215u8, 36u8, 160u8, - 108u8, 251u8, 60u8, 240u8, 202u8, 249u8, 235u8, - 28u8, 94u8, - ], - ) - } - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] - pub fn increase_validator_count( - &self, - additional: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "increase_validator_count", - types::IncreaseValidatorCount { additional }, - [ - 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, - 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, - 60u8, 158u8, 8u8, 78u8, 175u8, 219u8, 46u8, 51u8, - 222u8, 193u8, 193u8, 201u8, 78u8, 90u8, 58u8, 86u8, - 196u8, 17u8, - ], - ) - } - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] - pub fn scale_validator_count( - &self, - factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "scale_validator_count", - types::ScaleValidatorCount { factor }, - [ - 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, - 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, - 219u8, 167u8, 149u8, 112u8, 49u8, 139u8, 74u8, - 81u8, 172u8, 72u8, 253u8, 224u8, 56u8, 194u8, - 185u8, 90u8, 87u8, 125u8, - ], - ) - } - #[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 = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] - pub fn force_no_eras( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_no_eras", - types::ForceNoEras {}, - [ - 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, - 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, - 91u8, 120u8, 75u8, 24u8, 125u8, 53u8, 9u8, 28u8, - 242u8, 87u8, 245u8, 55u8, 40u8, 103u8, 151u8, - 178u8, - ], - ) - } - #[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 = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] - pub fn force_new_era( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era", - types::ForceNewEra {}, - [ - 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, - 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, - 126u8, 73u8, 136u8, 162u8, 158u8, 174u8, 201u8, - 213u8, 230u8, 215u8, 44u8, 200u8, 32u8, 75u8, 27u8, - 23u8, 254u8, - ], - ) - } - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn set_invulnerables( - &self, - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_invulnerables", - types::SetInvulnerables { invulnerables }, - [ - 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, - 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, - 27u8, 76u8, 18u8, 203u8, 206u8, 9u8, 8u8, 81u8, - 35u8, 224u8, 22u8, 133u8, 58u8, 99u8, 103u8, 39u8, - ], - ) - } - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn force_unstake( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_unstake", - types::ForceUnstake { - stash, - num_slashing_spans, - }, - [ - 94u8, 247u8, 238u8, 47u8, 250u8, 6u8, 96u8, 175u8, - 173u8, 123u8, 161u8, 187u8, 162u8, 214u8, 176u8, - 233u8, 33u8, 33u8, 167u8, 239u8, 40u8, 223u8, 19u8, - 131u8, 230u8, 39u8, 175u8, 200u8, 36u8, 182u8, - 76u8, 207u8, - ], - ) - } - #[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::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era_always", - types::ForceNewEraAlways {}, - [ - 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, - 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, - 117u8, 147u8, 225u8, 118u8, 34u8, 177u8, 197u8, - 158u8, 8u8, 82u8, 202u8, 108u8, 208u8, 26u8, 64u8, - 33u8, 74u8, 43u8, - ], - ) - } - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::SlashCancelOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] - pub fn cancel_deferred_slash( - &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "cancel_deferred_slash", - types::CancelDeferredSlash { era, slash_indices }, - [ - 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, - 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, - 106u8, 101u8, 19u8, 88u8, 146u8, 210u8, 171u8, - 44u8, 37u8, 50u8, 65u8, 178u8, 37u8, 223u8, 239u8, - 197u8, 116u8, 168u8, - ], - ) - } - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[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 = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] - pub fn payout_stakers( - &self, - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "payout_stakers", - types::PayoutStakers { - validator_stash, - era, - }, - [ - 184u8, 194u8, 33u8, 118u8, 7u8, 203u8, 89u8, 119u8, - 214u8, 76u8, 178u8, 20u8, 82u8, 111u8, 57u8, 132u8, - 212u8, 43u8, 232u8, 91u8, 252u8, 49u8, 42u8, 115u8, - 1u8, 181u8, 154u8, 207u8, 144u8, 206u8, 205u8, - 33u8, - ], - ) - } - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] - pub fn rebond( - &self, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "rebond", - types::Rebond { value }, - [ - 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, - 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, - 253u8, 196u8, 30u8, 234u8, 49u8, 102u8, 68u8, - 145u8, 96u8, 148u8, 219u8, 162u8, 17u8, 177u8, - 184u8, 34u8, 113u8, - ], - ) - } - #[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 = ""] - #[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."] - pub fn reap_stash( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "reap_stash", - types::ReapStash { - stash, - num_slashing_spans, - }, - [ - 34u8, 168u8, 120u8, 161u8, 95u8, 199u8, 106u8, - 233u8, 61u8, 240u8, 166u8, 31u8, 183u8, 165u8, - 158u8, 179u8, 32u8, 130u8, 27u8, 164u8, 112u8, - 44u8, 14u8, 125u8, 227u8, 87u8, 70u8, 203u8, 194u8, - 24u8, 212u8, 177u8, - ], - ) - } - #[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: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "kick", - types::Kick { who }, - [ - 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, - 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, - 115u8, 243u8, 166u8, 120u8, 121u8, 70u8, 227u8, - 240u8, 205u8, 240u8, 211u8, 202u8, 251u8, 232u8, - 209u8, 12u8, - ], - ) - } - #[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 : 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 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_staking_configs", - types::SetStakingConfigs { - min_nominator_bond, - min_validator_bond, - max_nominator_count, - max_validator_count, - chill_threshold, - min_commission, - }, - [ - 176u8, 168u8, 155u8, 176u8, 27u8, 79u8, 223u8, - 92u8, 88u8, 93u8, 223u8, 69u8, 179u8, 250u8, 138u8, - 138u8, 87u8, 220u8, 36u8, 3u8, 126u8, 213u8, 16u8, - 68u8, 3u8, 16u8, 218u8, 151u8, 98u8, 169u8, 217u8, - 75u8, - ], - ) - } - #[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, - controller: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill_other", - types::ChillOther { controller }, - [ - 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, - 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, - 220u8, 166u8, 170u8, 135u8, 176u8, 68u8, 228u8, - 14u8, 67u8, 42u8, 52u8, 140u8, 231u8, 62u8, 167u8, - 80u8, 173u8, - ], - ) - } - #[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: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "force_apply_min_commission", - types::ForceApplyMinCommission { validator_stash }, - [ - 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, - 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, - 78u8, 123u8, 229u8, 135u8, 129u8, 241u8, 119u8, - 106u8, 41u8, 182u8, 121u8, 181u8, 242u8, 175u8, - 74u8, 207u8, 64u8, 106u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] - #[doc = "the remainder from the maximum amount of reward."] - pub struct EraPaid { - pub era_index: ::core::primitive::u32, - pub validator_payout: ::core::primitive::u128, - pub remainder: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for EraPaid { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "EraPaid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The nominator has been rewarded by this amount."] - pub struct Rewarded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A staker (validator or nominator) has been slashed by the given amount."] - pub struct Slashed { - pub staker: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] - #[doc = "era as been reported."] - pub struct SlashReported { - pub validator: ::subxt::utils::AccountId32, - pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, - pub slash_era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "SlashReported"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An old slashing report from a prior era was discarded because it could"] - #[doc = "not be processed."] - pub struct OldSlashingReportDiscarded { - pub session_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "OldSlashingReportDiscarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new set of stakers was elected."] - pub struct StakersElected; - impl ::subxt::events::StaticEvent for StakersElected { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakersElected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has bonded this amount. \\[stash, amount\\]"] - #[doc = ""] - #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] - #[doc = "it will not be emitted for staking rewards when they are added to stake."] - pub struct Bonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has unbonded this amount."] - pub struct Unbonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] - #[doc = "from the unlocking queue."] - pub struct Withdrawn { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A nominator has been kicked from a validator."] - pub struct Kicked { - pub nominator: ::subxt::utils::AccountId32, - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Kicked { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Kicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The election failed. No new era is planned."] - pub struct StakingElectionFailed; - impl ::subxt::events::StaticEvent for StakingElectionFailed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakingElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has stopped participating as either a validator or nominator."] - pub struct Chilled { - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Chilled { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Chilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The stakers' rewards are getting paid."] - pub struct PayoutStarted { - pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for PayoutStarted { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "PayoutStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A validator has set their preferences."] - pub struct ValidatorPrefsSet { - pub stash: ::subxt::utils::AccountId32, - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ValidatorPrefsSet"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The ideal number of active validators."] - pub fn validator_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorCount", - vec![], - [ - 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, - 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, - 184u8, 207u8, 6u8, 0u8, 126u8, 221u8, 67u8, 125u8, - 218u8, 188u8, 245u8, 156u8, 188u8, 34u8, 85u8, - 208u8, 197u8, - ], - ) - } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] - pub fn minimum_validator_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumValidatorCount", - vec![], - [ - 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, - 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, - 175u8, 1u8, 234u8, 162u8, 91u8, 252u8, 127u8, 68u8, - 243u8, 241u8, 13u8, 107u8, 214u8, 70u8, 87u8, - 249u8, - ], - ) - } - #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] - #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] - #[doc = " invulnerables) and restricted to testnets."] - pub fn invulnerables( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Invulnerables", - vec![], - [ - 77u8, 78u8, 63u8, 199u8, 150u8, 167u8, 135u8, - 130u8, 192u8, 51u8, 202u8, 119u8, 68u8, 49u8, - 241u8, 68u8, 82u8, 90u8, 226u8, 201u8, 96u8, 170u8, - 21u8, 173u8, 236u8, 116u8, 148u8, 8u8, 174u8, 92u8, - 7u8, 11u8, - ], - ) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] - pub fn bonded( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] - pub fn bonded_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Bonded", - Vec::new(), - [ - 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, - 77u8, 15u8, 118u8, 193u8, 155u8, 97u8, 229u8, 36u8, - 119u8, 128u8, 224u8, 162u8, 21u8, 46u8, 199u8, - 221u8, 15u8, 74u8, 59u8, 70u8, 77u8, 218u8, 73u8, - 165u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] - pub fn min_nominator_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinNominatorBond", - vec![], - [ - 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, - 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, - 127u8, 223u8, 58u8, 134u8, 81u8, 165u8, 200u8, - 142u8, 196u8, 158u8, 26u8, 38u8, 165u8, 19u8, 91u8, - 251u8, 119u8, 84u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a validator."] - pub fn min_validator_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinValidatorBond", - vec![], - [ - 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, - 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, - 66u8, 182u8, 92u8, 20u8, 22u8, 109u8, 155u8, 174u8, - 87u8, 118u8, 242u8, 216u8, 193u8, 154u8, 4u8, 5u8, - 66u8, 56u8, - ], - ) - } - #[doc = " The minimum active nominator stake of the last successful election."] - pub fn minimum_active_stake( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumActiveStake", - vec![], - [ - 172u8, 190u8, 228u8, 47u8, 47u8, 192u8, 182u8, - 59u8, 9u8, 18u8, 103u8, 46u8, 175u8, 54u8, 17u8, - 79u8, 89u8, 107u8, 255u8, 200u8, 182u8, 107u8, - 89u8, 157u8, 55u8, 16u8, 77u8, 46u8, 154u8, 169u8, - 103u8, 151u8, - ], - ) - } - #[doc = " The minimum amount of commission that validators can set."] - #[doc = ""] - #[doc = " If set to `0`, no limit exists."] - pub fn min_commission( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinCommission", - vec![], - [ - 61u8, 101u8, 69u8, 27u8, 220u8, 179u8, 5u8, 71u8, - 66u8, 227u8, 84u8, 98u8, 18u8, 141u8, 183u8, 49u8, - 98u8, 46u8, 123u8, 114u8, 198u8, 85u8, 15u8, 175u8, - 243u8, 239u8, 133u8, 129u8, 146u8, 174u8, 254u8, - 158u8, - ], - ) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Ledger", - Vec::new(), - [ - 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, - 33u8, 189u8, 124u8, 120u8, 177u8, 70u8, 27u8, - 242u8, 188u8, 184u8, 204u8, 188u8, 242u8, 140u8, - 128u8, 230u8, 85u8, 99u8, 181u8, 173u8, 67u8, - 252u8, 37u8, 236u8, - ], - ) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] - pub fn payee( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] - pub fn payee_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Payee", - Vec::new(), - [ - 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, - 187u8, 163u8, 20u8, 230u8, 153u8, 13u8, 189u8, - 232u8, 119u8, 118u8, 107u8, 17u8, 102u8, 245u8, - 36u8, 42u8, 232u8, 137u8, 177u8, 165u8, 169u8, - 246u8, 199u8, 57u8, - ], - ) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] - pub fn validators( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] - pub fn validators_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Validators", - Vec::new(), - [ - 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, - 43u8, 24u8, 149u8, 164u8, 208u8, 60u8, 144u8, 29u8, - 251u8, 195u8, 236u8, 196u8, 108u8, 58u8, 80u8, - 115u8, 246u8, 66u8, 226u8, 241u8, 201u8, 172u8, - 229u8, 152u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CounterForValidators", - vec![], - [ - 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, - 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, - 112u8, 85u8, 49u8, 78u8, 88u8, 11u8, 8u8, 48u8, - 118u8, 34u8, 62u8, 159u8, 239u8, 122u8, 90u8, 45u8, - ], - ) - } - #[doc = " The maximum validator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] - pub fn max_validators_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MaxValidatorsCount", - vec![], - [ - 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, - 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, - 62u8, 131u8, 112u8, 64u8, 26u8, 133u8, 7u8, 130u8, - 1u8, 71u8, 158u8, 14u8, 55u8, 169u8, 239u8, 223u8, - 245u8, - ], - ) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] - pub fn nominators( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Nominations, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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."] - pub fn nominators_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Nominations, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Nominators", - Vec::new(), - [ - 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, - 254u8, 19u8, 152u8, 85u8, 164u8, 171u8, 206u8, - 129u8, 184u8, 45u8, 221u8, 181u8, 229u8, 133u8, - 200u8, 231u8, 16u8, 146u8, 247u8, 21u8, 77u8, - 122u8, 165u8, 134u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_nominators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CounterForNominators", - vec![], - [ - 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, - 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, - 40u8, 117u8, 215u8, 46u8, 82u8, 117u8, 225u8, 1u8, - 9u8, 208u8, 83u8, 63u8, 39u8, 187u8, 207u8, 191u8, - ], - ) - } - #[doc = " The maximum nominator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] - pub fn max_nominators_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MaxNominatorsCount", - vec![], - [ - 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, - 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, - 32u8, 119u8, 3u8, 73u8, 86u8, 49u8, 104u8, 17u8, - 186u8, 98u8, 221u8, 175u8, 109u8, 254u8, 207u8, - 245u8, 125u8, 179u8, - ], - ) - } - #[doc = " The current era index."] - #[doc = ""] - #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] - #[doc = " set, it might be active or not."] - pub fn current_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentEra", - vec![], - [ - 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, - 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, - 7u8, 10u8, 117u8, 71u8, 240u8, 74u8, 86u8, 36u8, - 198u8, 37u8, 153u8, 93u8, 196u8, 22u8, 192u8, - 243u8, - ], - ) - } - #[doc = " The active era information, it holds index and start."] - #[doc = ""] - #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] - #[doc = " equal to [`SessionInterface::validators`]."] - pub fn active_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ActiveEraInfo, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ActiveEra", - vec![], - [ - 15u8, 112u8, 251u8, 183u8, 108u8, 61u8, 28u8, 71u8, - 44u8, 150u8, 162u8, 4u8, 143u8, 121u8, 11u8, 37u8, - 83u8, 29u8, 193u8, 21u8, 210u8, 116u8, 190u8, - 236u8, 213u8, 235u8, 49u8, 97u8, 189u8, 142u8, - 251u8, 124u8, - ], - ) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] - pub fn eras_start_session_index( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStartSessionIndex", - Vec::new(), - [ - 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, - 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, - 100u8, 163u8, 91u8, 32u8, 246u8, 122u8, 78u8, - 149u8, 214u8, 103u8, 249u8, 119u8, 20u8, 101u8, - 116u8, 110u8, 185u8, - ], - ) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", - Vec::new(), - [ - 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, - 15u8, 139u8, 210u8, 128u8, 65u8, 92u8, 253u8, 43u8, - 35u8, 139u8, 171u8, 73u8, 185u8, 32u8, 78u8, 20u8, - 197u8, 154u8, 90u8, 233u8, 231u8, 23u8, 22u8, - 187u8, 156u8, - ], - ) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakersClipped", - Vec::new(), - [ - 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, - 153u8, 26u8, 55u8, 71u8, 119u8, 174u8, 48u8, 158u8, - 45u8, 214u8, 26u8, 136u8, 215u8, 46u8, 161u8, - 185u8, 17u8, 174u8, 204u8, 206u8, 246u8, 49u8, - 87u8, 134u8, 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 `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorPrefs", - Vec::new(), - [ - 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, - 129u8, 62u8, 4u8, 56u8, 234u8, 114u8, 141u8, 136u8, - 127u8, 224u8, 142u8, 89u8, 150u8, 33u8, 31u8, 50u8, - 140u8, 108u8, 124u8, 77u8, 188u8, 102u8, 230u8, - 174u8, - ], - ) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] - pub fn eras_validator_reward( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] - pub fn eras_validator_reward_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorReward", - Vec::new(), - [ - 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, - 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, - 179u8, 84u8, 161u8, 223u8, 255u8, 254u8, 107u8, - 52u8, 89u8, 98u8, 169u8, 136u8, 241u8, 104u8, 3u8, - 244u8, 161u8, - ], - ) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] - pub fn eras_reward_points( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] - pub fn eras_reward_points_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::utils::AccountId32, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasRewardPoints", - Vec::new(), - [ - 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, - 88u8, 65u8, 24u8, 255u8, 120u8, 178u8, 23u8, 232u8, - 15u8, 64u8, 206u8, 0u8, 170u8, 40u8, 18u8, 149u8, - 45u8, 90u8, 179u8, 127u8, 52u8, 59u8, 37u8, 192u8, - ], - ) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] - pub fn eras_total_stake( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] - pub fn eras_total_stake_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasTotalStake", - Vec::new(), - [ - 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, - 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, - 239u8, 1u8, 110u8, 53u8, 11u8, 247u8, 235u8, 142u8, - 234u8, 22u8, 43u8, 24u8, 36u8, 37u8, 43u8, 170u8, - 40u8, - ], - ) - } - #[doc = " Mode of era forcing."] - pub fn force_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Forcing, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ForceEra", - vec![], - [ - 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, - 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, - 131u8, 214u8, 136u8, 68u8, 156u8, 140u8, 194u8, - 69u8, 151u8, 115u8, 177u8, 92u8, 147u8, 29u8, 40u8, - 41u8, 31u8, - ], - ) - } - #[doc = " The percentage of the slash that is distributed to reporters."] - #[doc = ""] - #[doc = " The rest of the slashed value is handled by the `Slash`."] - pub fn slash_reward_fraction( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashRewardFraction", - vec![], - [ - 167u8, 79u8, 143u8, 202u8, 199u8, 100u8, 129u8, - 162u8, 23u8, 165u8, 106u8, 170u8, 244u8, 86u8, - 144u8, 242u8, 65u8, 207u8, 115u8, 224u8, 231u8, - 155u8, 55u8, 139u8, 101u8, 129u8, 242u8, 196u8, - 130u8, 50u8, 3u8, 117u8, - ], - ) - } - #[doc = " The amount of currency given to reporters of a slash event which was"] - #[doc = " canceled by extraordinary circumstances (e.g. governance)."] - pub fn canceled_slash_payout( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CanceledSlashPayout", - vec![], - [ - 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, - 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, - 156u8, 83u8, 14u8, 91u8, 15u8, 200u8, 170u8, 3u8, - 127u8, 141u8, 139u8, 151u8, 98u8, 74u8, 96u8, - 238u8, 29u8, - ], - ) - } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) - } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "UnappliedSlashes", - Vec::new(), - [ - 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, - 47u8, 125u8, 57u8, 0u8, 133u8, 176u8, 130u8, 2u8, - 175u8, 180u8, 167u8, 203u8, 230u8, 82u8, 198u8, - 183u8, 55u8, 82u8, 221u8, 248u8, 100u8, 173u8, - 206u8, 151u8, - ], - ) - } - #[doc = " A mapping from still-bonded eras to the first session index of that era."] - #[doc = ""] - #[doc = " Must contains information for eras for the range:"] - #[doc = " `[active_era - bounding_duration; active_era]`"] - pub fn bonded_eras( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "BondedEras", - vec![], - [ - 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, - 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, - 89u8, 206u8, 2u8, 155u8, 222u8, 154u8, 116u8, - 124u8, 4u8, 119u8, 155u8, 94u8, 248u8, 30u8, 171u8, - 51u8, 78u8, 106u8, - ], - ) - } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] - pub fn validator_slash_in_era( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", - Vec::new(), - [ - 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, - 251u8, 196u8, 85u8, 29u8, 27u8, 151u8, 98u8, 122u8, - 189u8, 147u8, 205u8, 40u8, 202u8, 194u8, 158u8, - 96u8, 138u8, 16u8, 116u8, 71u8, 140u8, 163u8, - 121u8, 197u8, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", - Vec::new(), - [ - 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, - 12u8, 53u8, 101u8, 80u8, 96u8, 166u8, 71u8, 239u8, - 23u8, 153u8, 19u8, 152u8, 38u8, 138u8, 136u8, - 221u8, 200u8, 18u8, 165u8, 26u8, 228u8, 195u8, - 199u8, 62u8, 4u8, - ], - ) - } - #[doc = " Slashing spans for stash accounts."] - pub fn slashing_spans( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SlashingSpans, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) - } - #[doc = " Slashing spans for stash accounts."] - pub fn slashing_spans_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SlashingSpans, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashingSpans", - Vec::new(), - [ - 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, - 255u8, 204u8, 44u8, 5u8, 66u8, 36u8, 227u8, 252u8, - 86u8, 159u8, 186u8, 152u8, 196u8, 21u8, 74u8, - 201u8, 133u8, 93u8, 142u8, 191u8, 20u8, 27u8, - 218u8, 157u8, - ], - ) - } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] - pub fn span_slash( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SpanSlash", - Vec::new(), - [ - 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, - 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, - 116u8, 210u8, 225u8, 230u8, 224u8, 163u8, 103u8, - 157u8, 100u8, 29u8, 86u8, 167u8, 84u8, 217u8, - 109u8, 200u8, - ], - ) - } - #[doc = " The last planned session scheduled by the session pallet."] - #[doc = ""] - #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] - pub fn current_planned_session( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentPlannedSession", - vec![], - [ - 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, - 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, - 190u8, 53u8, 241u8, 11u8, 185u8, 163u8, 227u8, - 10u8, 77u8, 210u8, 64u8, 156u8, 218u8, 105u8, 16u8, - 1u8, 57u8, - ], - ) - } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] - #[doc = " disabled."] - #[doc = ""] - #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] - #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] - #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] - #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] - #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] - pub fn offending_validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::bool, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "OffendingValidators", - vec![], - [ - 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, - 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, - 82u8, 182u8, 104u8, 167u8, 103u8, 187u8, 168u8, - 86u8, 16u8, 51u8, 235u8, 51u8, 119u8, 38u8, 154u8, - 42u8, 113u8, - ], - ) - } - #[doc = " True if network has been upgraded to this version."] - #[doc = " Storage version of the pallet."] - #[doc = ""] - #[doc = " This is set to v7.0.0 for new networks."] - pub fn storage_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Releases, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "StorageVersion", - vec![], - [ - 70u8, 24u8, 179u8, 189u8, 168u8, 164u8, 175u8, - 150u8, 215u8, 43u8, 18u8, 110u8, 180u8, 137u8, - 237u8, 187u8, 185u8, 50u8, 31u8, 57u8, 16u8, 110u8, - 6u8, 170u8, 19u8, 7u8, 160u8, 134u8, 232u8, 227u8, - 151u8, 116u8, - ], - ) - } - #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] - #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] - #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] - pub fn chill_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Percent, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ChillThreshold", - vec![], - [ - 174u8, 165u8, 249u8, 105u8, 24u8, 151u8, 115u8, - 166u8, 199u8, 251u8, 28u8, 5u8, 50u8, 95u8, 144u8, - 110u8, 220u8, 76u8, 14u8, 23u8, 179u8, 41u8, 11u8, - 248u8, 28u8, 154u8, 159u8, 255u8, 156u8, 109u8, - 98u8, 92u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominations", - [ - 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 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`,"] - #[doc = " `StakingLedger.claimed_rewards`."] - #[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.claimed_rewards`. Setting this value lower than"] - #[doc = " the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a migration."] - #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "HistoryDepth", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of sessions per era."] - pub fn sessions_per_era( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "SessionsPerEra", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "BondingDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that slashes are deferred by, after computation."] - #[doc = ""] - #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] - #[doc = " should be applied immediately, without opportunity for intervention."] - pub fn slash_defer_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "SlashDeferDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of nominators rewarded for each validator."] - #[doc = ""] - #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] - #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub fn max_nominator_rewarded_per_validator( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominatorRewardedPerValidator", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] - #[doc = " have. Effectively determines how many unique eras a staker may be"] - #[doc = " unbonding in."] - #[doc = ""] - #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] - #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] - #[doc = " lower than the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] - #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] - #[doc = " this effect."] - pub fn max_unlocking_chunks( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "MaxUnlockingChunks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetKeys { - pub keys: - runtime_types::webb_standalone_runtime::SessionKeys, - pub proof: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetKeys { - const PALLET: &'static str = "Session"; - const CALL: &'static str = "set_keys"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PurgeKeys; - impl ::subxt::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 = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - pub fn set_keys( - &self, - keys: runtime_types::webb_standalone_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "set_keys", - types::SetKeys { keys, proof }, - [ - 19u8, 210u8, 111u8, 216u8, 235u8, 1u8, 119u8, - 211u8, 79u8, 9u8, 91u8, 245u8, 109u8, 116u8, 95u8, - 223u8, 233u8, 189u8, 185u8, 243u8, 46u8, 178u8, - 10u8, 4u8, 231u8, 159u8, 217u8, 59u8, 45u8, 167u8, - 207u8, 137u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - pub fn purge_keys( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "purge_keys", - types::PurgeKeys {}, - [ - 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, - 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, - 44u8, 91u8, 31u8, 145u8, 23u8, 213u8, 64u8, 71u8, - 242u8, 207u8, 239u8, 231u8, 37u8, 61u8, 63u8, - 190u8, 35u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_session::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New 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: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NewSession { - const PALLET: &'static str = "Session"; - const EVENT: &'static str = "NewSession"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current set of validators."] - pub fn validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "Validators", - vec![], - [ - 144u8, 235u8, 200u8, 43u8, 151u8, 57u8, 147u8, - 172u8, 201u8, 202u8, 242u8, 96u8, 57u8, 76u8, - 124u8, 77u8, 42u8, 113u8, 218u8, 220u8, 230u8, - 32u8, 151u8, 152u8, 172u8, 106u8, 60u8, 227u8, - 122u8, 118u8, 137u8, 68u8, - ], - ) - } - #[doc = " Current index of the session."] - pub fn current_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "CurrentIndex", - vec![], - [ - 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, - 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, - 181u8, 191u8, 143u8, 252u8, 227u8, 80u8, 159u8, - 66u8, 194u8, 67u8, 113u8, 74u8, 111u8, 91u8, 218u8, - 187u8, 130u8, 40u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "QueuedChanged", - vec![], - [ - 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, - 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, - 202u8, 152u8, 42u8, 50u8, 113u8, 200u8, 247u8, - 59u8, 213u8, 77u8, 195u8, 1u8, 150u8, 220u8, 18u8, - 245u8, 46u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::webb_standalone_runtime::SessionKeys, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "QueuedKeys", - vec![], - [ - 57u8, 139u8, 66u8, 116u8, 133u8, 98u8, 66u8, 181u8, - 96u8, 190u8, 69u8, 124u8, 158u8, 124u8, 187u8, - 164u8, 223u8, 89u8, 209u8, 84u8, 106u8, 127u8, - 85u8, 202u8, 130u8, 7u8, 250u8, 163u8, 99u8, 209u8, - 225u8, 25u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "DisabledValidators", - vec![], - [ - 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, - 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, - 31u8, 20u8, 242u8, 73u8, 104u8, 11u8, 110u8, 214u8, - 34u8, 52u8, 217u8, 106u8, 33u8, 174u8, 174u8, - 198u8, 84u8, - ], - ) - } - #[doc = " The next session keys for a validator."] - pub fn next_keys( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_standalone_runtime::SessionKeys, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 66u8 , 207u8 , 19u8 , 247u8 , 26u8 , 110u8 , 116u8 , 209u8 , 77u8 , 141u8 , 64u8 , 128u8 , 214u8 , 71u8 , 104u8 , 56u8 , 117u8 , 10u8 , 162u8 , 166u8 , 137u8 , 33u8 , 98u8 , 110u8 , 31u8 , 161u8 , 116u8 , 207u8 , 46u8 , 82u8 , 64u8 ,]) - } - #[doc = " The next session keys for a validator."] - pub fn next_keys_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_standalone_runtime::SessionKeys, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", - Vec::new(), - [ - 246u8, 66u8, 207u8, 19u8, 247u8, 26u8, 110u8, - 116u8, 209u8, 77u8, 141u8, 64u8, 128u8, 214u8, - 71u8, 104u8, 56u8, 117u8, 10u8, 162u8, 166u8, - 137u8, 33u8, 98u8, 110u8, 31u8, 161u8, 116u8, - 207u8, 46u8, 82u8, 64u8, - ], - ) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::sp_core::crypto::KeyTypeId, - >, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - Vec::new(), - [ - 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, - 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, - 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, 0u8, - 148u8, 203u8, 144u8, 149u8, 64u8, 135u8, 254u8, - 242u8, 215u8, - ], - ) - } - } - } - } - pub mod democracy { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_democracy::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_democracy::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Propose { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , # [codec (compact)] pub value : :: core :: primitive :: u128 , } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "propose"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Second { - #[codec(compact)] - pub proposal: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Second { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "second"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Vote { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - pub vote: - runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "vote"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct EmergencyCancel { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "emergency_cancel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExternalPropose { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } - impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "external_propose"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExternalProposeMajority { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } - impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "external_propose_majority"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExternalProposeDefault { pub proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } - impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "external_propose_default"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct FastTrack { - pub proposal_hash: ::subxt::utils::H256, - pub voting_period: ::core::primitive::u64, - pub delay: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for FastTrack { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "fast_track"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct VetoExternal { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for VetoExternal { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "veto_external"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "cancel_referendum"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Delegate { - pub to: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub conviction: - runtime_types::pallet_democracy::conviction::Conviction, - pub balance: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "delegate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Undelegate; - impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "undelegate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClearPublicProposals; - impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "clear_public_proposals"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unlock { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "unlock"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveVote { - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "remove_vote"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "remove_other_vote"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Blacklist { - pub proposal_hash: ::subxt::utils::H256, - pub maybe_ref_index: - ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::blocks::StaticExtrinsic for Blacklist { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "blacklist"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CancelProposal { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "cancel_proposal"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] - pub fn propose( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "propose", - types::Propose { proposal, value }, - [ - 123u8, 3u8, 204u8, 140u8, 194u8, 195u8, 214u8, - 39u8, 167u8, 126u8, 45u8, 4u8, 219u8, 17u8, 143u8, - 185u8, 29u8, 224u8, 230u8, 68u8, 253u8, 15u8, - 170u8, 90u8, 232u8, 123u8, 46u8, 255u8, 168u8, - 39u8, 204u8, 63u8, - ], - ) - } - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] - pub fn second( - &self, - proposal: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "second", - types::Second { proposal }, - [ - 59u8, 240u8, 183u8, 218u8, 61u8, 93u8, 184u8, 67u8, - 10u8, 4u8, 138u8, 196u8, 168u8, 49u8, 42u8, 69u8, - 154u8, 42u8, 90u8, 112u8, 179u8, 69u8, 51u8, 148u8, - 159u8, 212u8, 221u8, 226u8, 132u8, 228u8, 51u8, - 83u8, - ], - ) - } - #[doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] - pub fn vote( - &self, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "vote", - types::Vote { ref_index, vote }, - [ - 138u8, 213u8, 229u8, 111u8, 1u8, 191u8, 73u8, 3u8, - 145u8, 28u8, 44u8, 88u8, 163u8, 188u8, 129u8, - 188u8, 64u8, 15u8, 64u8, 103u8, 250u8, 97u8, 234u8, - 188u8, 29u8, 205u8, 51u8, 6u8, 116u8, 58u8, 156u8, - 201u8, - ], - ) - } - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] - pub fn emergency_cancel( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "emergency_cancel", - types::EmergencyCancel { ref_index }, - [ - 139u8, 213u8, 133u8, 75u8, 34u8, 206u8, 124u8, - 245u8, 35u8, 237u8, 132u8, 92u8, 49u8, 167u8, - 117u8, 80u8, 188u8, 93u8, 198u8, 237u8, 132u8, - 77u8, 195u8, 65u8, 29u8, 37u8, 86u8, 74u8, 214u8, - 119u8, 71u8, 204u8, - ], - ) - } - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - pub fn external_propose( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose", - types::ExternalPropose { proposal }, - [ - 164u8, 193u8, 14u8, 122u8, 105u8, 232u8, 20u8, - 194u8, 99u8, 227u8, 36u8, 105u8, 218u8, 146u8, - 16u8, 208u8, 56u8, 62u8, 100u8, 65u8, 35u8, 33u8, - 51u8, 208u8, 17u8, 43u8, 223u8, 198u8, 202u8, 16u8, - 56u8, 75u8, - ], - ) - } - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn external_propose_majority( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose_majority", - types::ExternalProposeMajority { proposal }, - [ - 129u8, 124u8, 147u8, 253u8, 69u8, 115u8, 230u8, - 186u8, 155u8, 4u8, 220u8, 103u8, 28u8, 132u8, - 115u8, 153u8, 196u8, 88u8, 9u8, 130u8, 129u8, - 234u8, 75u8, 96u8, 202u8, 216u8, 145u8, 189u8, - 231u8, 101u8, 127u8, 11u8, - ], - ) - } - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn external_propose_default( - &self, - proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose_default", - types::ExternalProposeDefault { proposal }, - [ - 96u8, 15u8, 108u8, 208u8, 141u8, 247u8, 4u8, 73u8, - 2u8, 30u8, 231u8, 40u8, 184u8, 250u8, 42u8, 161u8, - 248u8, 45u8, 217u8, 50u8, 53u8, 13u8, 181u8, 214u8, - 136u8, 51u8, 93u8, 95u8, 165u8, 3u8, 83u8, 190u8, - ], - ) - } - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn fast_track( - &self, - proposal_hash: ::subxt::utils::H256, - voting_period: ::core::primitive::u64, - delay: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "fast_track", - types::FastTrack { - proposal_hash, - voting_period, - delay, - }, - [ - 218u8, 196u8, 235u8, 104u8, 184u8, 235u8, 225u8, - 24u8, 15u8, 222u8, 181u8, 159u8, 234u8, 250u8, - 94u8, 9u8, 246u8, 66u8, 121u8, 28u8, 105u8, 185u8, - 225u8, 238u8, 17u8, 187u8, 187u8, 218u8, 193u8, - 188u8, 199u8, 134u8, - ], - ) - } - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] - pub fn veto_external( - &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "veto_external", - types::VetoExternal { proposal_hash }, - [ - 209u8, 18u8, 18u8, 103u8, 186u8, 160u8, 214u8, - 124u8, 150u8, 207u8, 112u8, 90u8, 84u8, 197u8, - 95u8, 157u8, 165u8, 65u8, 109u8, 101u8, 75u8, - 201u8, 41u8, 149u8, 75u8, 154u8, 37u8, 178u8, - 239u8, 121u8, 124u8, 23u8, - ], - ) - } - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] - pub fn cancel_referendum( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "cancel_referendum", - types::CancelReferendum { ref_index }, - [ - 51u8, 25u8, 25u8, 251u8, 236u8, 115u8, 130u8, - 230u8, 72u8, 186u8, 119u8, 71u8, 165u8, 137u8, - 55u8, 167u8, 187u8, 128u8, 55u8, 8u8, 212u8, 139u8, - 245u8, 232u8, 103u8, 136u8, 229u8, 113u8, 125u8, - 36u8, 1u8, 149u8, - ], - ) - } - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[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/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[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 referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn delegate( - &self, - to: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - conviction : runtime_types :: pallet_democracy :: conviction :: Conviction, - balance: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "delegate", - types::Delegate { - to, - conviction, - balance, - }, - [ - 247u8, 226u8, 242u8, 221u8, 47u8, 161u8, 91u8, - 223u8, 6u8, 79u8, 238u8, 205u8, 41u8, 188u8, 140u8, - 56u8, 181u8, 248u8, 102u8, 10u8, 127u8, 166u8, - 90u8, 187u8, 13u8, 124u8, 209u8, 117u8, 16u8, - 209u8, 74u8, 29u8, - ], - ) - } - #[doc = "Undelegate the voting power of the sending account."] - #[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."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn undelegate( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "undelegate", - types::Undelegate {}, - [ - 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, - 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, - 155u8, 44u8, 245u8, 28u8, 220u8, 56u8, 134u8, 43u8, - 122u8, 248u8, 156u8, 191u8, 154u8, 4u8, 121u8, - 152u8, 153u8, - ], - ) - } - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] - pub fn clear_public_proposals( - &self, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "clear_public_proposals", - types::ClearPublicProposals {}, - [ - 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, - 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, - 12u8, 141u8, 243u8, 197u8, 46u8, 130u8, 215u8, - 196u8, 225u8, 88u8, 48u8, 199u8, 231u8, 249u8, - 195u8, 53u8, 184u8, 204u8, - ], - ) - } - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[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, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "unlock", - types::Unlock { target }, - [ - 227u8, 6u8, 154u8, 150u8, 253u8, 167u8, 142u8, 6u8, - 147u8, 24u8, 124u8, 51u8, 101u8, 185u8, 184u8, - 170u8, 6u8, 223u8, 29u8, 167u8, 73u8, 31u8, 179u8, - 60u8, 156u8, 244u8, 192u8, 233u8, 79u8, 99u8, - 248u8, 126u8, - ], - ) - } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum 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 referendum 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 referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_vote( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "remove_vote", - types::RemoveVote { index }, - [ - 148u8, 120u8, 14u8, 172u8, 81u8, 152u8, 159u8, - 178u8, 106u8, 244u8, 36u8, 98u8, 120u8, 189u8, - 213u8, 93u8, 119u8, 156u8, 112u8, 34u8, 241u8, - 72u8, 206u8, 113u8, 212u8, 161u8, 164u8, 126u8, - 122u8, 82u8, 160u8, 74u8, - ], - ) - } - #[doc = "Remove a vote for a referendum."] - #[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 referendum was cancelled, because the voter lost the referendum 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"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_other_vote( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "remove_other_vote", - types::RemoveOtherVote { target, index }, - [ - 251u8, 245u8, 79u8, 229u8, 3u8, 107u8, 66u8, 202u8, - 148u8, 31u8, 6u8, 236u8, 156u8, 202u8, 197u8, - 107u8, 100u8, 60u8, 255u8, 213u8, 222u8, 209u8, - 249u8, 61u8, 209u8, 215u8, 82u8, 73u8, 25u8, 73u8, - 161u8, 24u8, - ], - ) - } - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] - pub fn blacklist( - &self, - proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "blacklist", - types::Blacklist { - proposal_hash, - maybe_ref_index, - }, - [ - 48u8, 144u8, 81u8, 164u8, 54u8, 111u8, 197u8, - 134u8, 6u8, 98u8, 121u8, 179u8, 254u8, 191u8, - 204u8, 212u8, 84u8, 255u8, 86u8, 110u8, 225u8, - 130u8, 26u8, 65u8, 133u8, 56u8, 231u8, 15u8, 245u8, - 137u8, 146u8, 242u8, - ], - ) - } - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] - pub fn cancel_proposal( - &self, - prop_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Democracy", - "cancel_proposal", - types::CancelProposal { prop_index }, - [ - 179u8, 3u8, 198u8, 244u8, 241u8, 124u8, 205u8, - 58u8, 100u8, 80u8, 177u8, 254u8, 98u8, 220u8, - 189u8, 63u8, 229u8, 60u8, 157u8, 83u8, 142u8, 6u8, - 236u8, 183u8, 193u8, 235u8, 253u8, 126u8, 153u8, - 185u8, 74u8, 117u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_democracy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion has been proposed by a public account."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A public proposal has been tabled for referendum vote."] - pub struct Tabled { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Tabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Tabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An external proposal has been tabled."] - pub struct ExternalTabled; - impl ::subxt::events::StaticEvent for ExternalTabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ExternalTabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has begun."] - pub struct Started { pub ref_index : :: core :: primitive :: u32 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } - impl ::subxt::events::StaticEvent for Started { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Started"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been approved by referendum."] - pub struct Passed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Passed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Passed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been rejected by referendum."] - pub struct NotPassed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NotPassed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "NotPassed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Cancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has delegated their vote to another account."] - pub struct Delegated { - pub who: ::subxt::utils::AccountId32, - pub target: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Delegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has cancelled a previous delegation operation."] - pub struct Undelegated { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Undelegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An external proposal has been vetoed."] - pub struct Vetoed { - pub who: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub until: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Vetoed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Vetoed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal_hash has been blacklisted permanently."] - pub struct Blacklisted { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Blacklisted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Blacklisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has voted in a referendum"] - pub struct Voted { - pub voter: ::subxt::utils::AccountId32, - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has secconded a proposal"] - pub struct Seconded { - pub seconder: ::subxt::utils::AccountId32, - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Seconded { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Seconded"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal got canceled."] - pub struct ProposalCanceled { - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalCanceled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ProposalCanceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The number of (public) proposals that have been made so far."] - pub fn public_prop_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "PublicPropCount", - vec![], - [ - 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, - 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, - 159u8, 9u8, 174u8, 74u8, 174u8, 218u8, 197u8, 23u8, - 235u8, 152u8, 226u8, 216u8, 4u8, 120u8, 121u8, - 27u8, 138u8, - ], - ) - } - #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: subxt :: utils :: AccountId32 ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "Democracy", - "PublicProps", - vec![], - [ - 63u8, 172u8, 211u8, 85u8, 27u8, 14u8, 86u8, 49u8, - 133u8, 5u8, 132u8, 189u8, 138u8, 137u8, 219u8, - 37u8, 209u8, 49u8, 172u8, 86u8, 240u8, 235u8, 42u8, - 201u8, 203u8, 12u8, 122u8, 225u8, 0u8, 109u8, - 205u8, 103u8, - ], - ) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "DepositOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [9u8 , 219u8 , 11u8 , 58u8 , 17u8 , 194u8 , 248u8 , 154u8 , 135u8 , 119u8 , 123u8 , 235u8 , 252u8 , 176u8 , 190u8 , 162u8 , 236u8 , 45u8 , 237u8 , 125u8 , 98u8 , 176u8 , 184u8 , 160u8 , 8u8 , 181u8 , 213u8 , 65u8 , 14u8 , 84u8 , 200u8 , 64u8 ,]) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > , :: core :: primitive :: u128 ,) , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Democracy", - "DepositOf", - Vec::new(), - [ - 9u8, 219u8, 11u8, 58u8, 17u8, 194u8, 248u8, 154u8, - 135u8, 119u8, 123u8, 235u8, 252u8, 176u8, 190u8, - 162u8, 236u8, 45u8, 237u8, 125u8, 98u8, 176u8, - 184u8, 160u8, 8u8, 181u8, 213u8, 65u8, 14u8, 84u8, - 200u8, 64u8, - ], - ) - } - #[doc = " The next free referendum index, aka the number of referenda started so far."] - pub fn referendum_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumCount", - vec![], - [ - 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, - 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, - 119u8, 137u8, 11u8, 240u8, 160u8, 151u8, 248u8, - 229u8, 231u8, 89u8, 222u8, 18u8, 237u8, 144u8, - 78u8, 99u8, 58u8, - ], - ) - } - #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] - #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] - pub fn lowest_unbaked( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "LowestUnbaked", - vec![], - [ - 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, - 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, - 128u8, 27u8, 165u8, 164u8, 111u8, 22u8, 209u8, - 190u8, 103u8, 7u8, 116u8, 16u8, 160u8, 144u8, - 123u8, 64u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u64 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "ReferendumInfoOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [94u8 , 203u8 , 193u8 , 49u8 , 4u8 , 227u8 , 47u8 , 82u8 , 168u8 , 56u8 , 163u8 , 93u8 , 81u8 , 20u8 , 166u8 , 135u8 , 170u8 , 24u8 , 12u8 , 249u8 , 92u8 , 250u8 , 116u8 , 78u8 , 23u8 , 124u8 , 195u8 , 98u8 , 211u8 , 246u8 , 53u8 , 40u8 ,]) - } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_democracy :: types :: ReferendumInfo < :: core :: primitive :: u64 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumInfoOf", - Vec::new(), - [ - 94u8, 203u8, 193u8, 49u8, 4u8, 227u8, 47u8, 82u8, - 168u8, 56u8, 163u8, 93u8, 81u8, 20u8, 166u8, 135u8, - 170u8, 24u8, 12u8, 249u8, 92u8, 250u8, 116u8, 78u8, - 23u8, 124u8, 195u8, 98u8, 211u8, 246u8, 53u8, 40u8, - ], - ) - } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] - pub fn voting_of( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_democracy::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "VotingOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [118u8 , 188u8 , 170u8 , 219u8 , 109u8 , 160u8 , 36u8 , 230u8 , 218u8 , 155u8 , 18u8 , 14u8 , 48u8 , 186u8 , 156u8 , 67u8 , 109u8 , 252u8 , 136u8 , 183u8 , 251u8 , 230u8 , 12u8 , 178u8 , 117u8 , 187u8 , 68u8 , 28u8 , 103u8 , 242u8 , 39u8 , 32u8 ,]) - } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] - pub fn voting_of_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_democracy::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u64, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "VotingOf", - Vec::new(), - [ - 118u8, 188u8, 170u8, 219u8, 109u8, 160u8, 36u8, - 230u8, 218u8, 155u8, 18u8, 14u8, 48u8, 186u8, - 156u8, 67u8, 109u8, 252u8, 136u8, 183u8, 251u8, - 230u8, 12u8, 178u8, 117u8, 187u8, 68u8, 28u8, - 103u8, 242u8, 39u8, 32u8, - ], - ) - } - #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] - #[doc = " proposal."] - pub fn last_tabled_was_external( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "LastTabledWasExternal", - vec![], - [ - 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, - 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, - 222u8, 82u8, 31u8, 223u8, 144u8, 169u8, 17u8, 6u8, - 138u8, 36u8, 113u8, 155u8, 241u8, 106u8, 189u8, - 218u8, - ], - ) - } - #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] - #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] - #[doc = " - `LastTabledWasExternal` is `false`; or"] - #[doc = " - `PublicProps` is empty."] pub fn next_external (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold ,) , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "Democracy", - "NextExternal", - vec![], - [ - 213u8, 36u8, 235u8, 75u8, 153u8, 33u8, 140u8, - 121u8, 191u8, 197u8, 17u8, 57u8, 234u8, 67u8, 81u8, - 55u8, 123u8, 179u8, 207u8, 124u8, 238u8, 147u8, - 243u8, 126u8, 200u8, 2u8, 16u8, 143u8, 165u8, - 143u8, 159u8, 93u8, - ], - ) - } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: H256 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "Blacklist" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [192u8 , 184u8 , 27u8 , 16u8 , 2u8 , 4u8 , 108u8 , 221u8 , 26u8 , 111u8 , 9u8 , 54u8 , 154u8 , 26u8 , 229u8 , 103u8 , 214u8 , 118u8 , 52u8 , 62u8 , 200u8 , 80u8 , 16u8 , 83u8 , 168u8 , 110u8 , 85u8 , 46u8 , 94u8 , 40u8 , 209u8 , 21u8 ,]) - } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Democracy", - "Blacklist", - Vec::new(), - [ - 192u8, 184u8, 27u8, 16u8, 2u8, 4u8, 108u8, 221u8, - 26u8, 111u8, 9u8, 54u8, 154u8, 26u8, 229u8, 103u8, - 214u8, 118u8, 52u8, 62u8, 200u8, 80u8, 16u8, 83u8, - 168u8, 110u8, 85u8, 46u8, 94u8, 40u8, 209u8, 21u8, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] - pub fn cancellations( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Democracy" , "Cancellations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [154u8 , 36u8 , 172u8 , 46u8 , 65u8 , 218u8 , 30u8 , 151u8 , 173u8 , 186u8 , 166u8 , 79u8 , 35u8 , 226u8 , 94u8 , 200u8 , 67u8 , 44u8 , 47u8 , 7u8 , 17u8 , 89u8 , 169u8 , 166u8 , 236u8 , 101u8 , 68u8 , 54u8 , 114u8 , 141u8 , 177u8 , 135u8 ,]) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] - pub fn cancellations_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "Cancellations", - Vec::new(), - [ - 154u8, 36u8, 172u8, 46u8, 65u8, 218u8, 30u8, 151u8, - 173u8, 186u8, 166u8, 79u8, 35u8, 226u8, 94u8, - 200u8, 67u8, 44u8, 47u8, 7u8, 17u8, 89u8, 169u8, - 166u8, 236u8, 101u8, 68u8, 54u8, 114u8, 141u8, - 177u8, 135u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The period between a proposal being approved and enacted."] - #[doc = ""] - #[doc = " It should generally be a little more than the unstake period to ensure that"] - #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] - #[doc = " where they are on the losing side of a vote."] - pub fn enactment_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Democracy", - "EnactmentPeriod", - [ - 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 = " How often (in blocks) new public referenda are launched."] - pub fn launch_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Democracy", - "LaunchPeriod", - [ - 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 = " How often (in blocks) to check for new votes."] - pub fn voting_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Democracy", - "VotingPeriod", - [ - 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 minimum period of vote locking."] - #[doc = ""] - #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] - #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Democracy", - "VoteLockingPeriod", - [ - 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 minimum amount to be used as a deposit for a public referendum proposal."] - pub fn minimum_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Democracy", - "MinimumDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] - #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] - #[doc = " as an upgrade having happened recently."] - pub fn instant_allowed( - &self, - ) -> ::subxt::constants::Address<::core::primitive::bool> - { - ::subxt::constants::Address::new_static( - "Democracy", - "InstantAllowed", - [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, - 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, - 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, - 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, - 115u8, 102u8, 131u8, - ], - ) - } - #[doc = " Minimum voting period allowed for a fast-track referendum."] - pub fn fast_track_voting_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Democracy", - "FastTrackVotingPeriod", - [ - 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 = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] - pub fn cooloff_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Democracy", - "CooloffPeriod", - [ - 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 maximum number of votes for an account."] - #[doc = ""] - #[doc = " Also used to compute weight, an overly big value can"] - #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] - pub fn max_votes( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxVotes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of public proposals that can exist at any time."] - pub fn max_proposals( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxProposals", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of deposits a public proposal may have at any time."] - pub fn max_deposits( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxDeposits", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of items which can be blacklisted."] - pub fn max_blacklisted( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxBlacklisted", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod council { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_collective::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_collective::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMembers { - pub new_members: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub prime: - ::core::option::Option<::subxt::utils::AccountId32>, - pub old_count: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "set_members"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Execute { - pub proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "execute"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "propose"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Vote { - pub proposal: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "vote"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CloseOldWeight { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: - runtime_types::sp_weights::OldWeight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CloseOldWeight { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "close_old_weight"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "disapprove_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Close { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub proposal_weight_bound: - runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "close"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "set_members", - types::SetMembers { - new_members, - prime, - old_count, - }, - [ - 196u8, 103u8, 123u8, 125u8, 226u8, 177u8, 126u8, - 37u8, 160u8, 114u8, 34u8, 136u8, 219u8, 84u8, - 199u8, 94u8, 242u8, 20u8, 126u8, 126u8, 166u8, - 190u8, 198u8, 33u8, 162u8, 113u8, 237u8, 222u8, - 90u8, 1u8, 2u8, 234u8, - ], - ) - } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn execute( - &self, - proposal : runtime_types :: webb_standalone_runtime :: RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "execute", - types::Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 135u8, 21u8, 244u8, 77u8, 180u8, 129u8, 207u8, - 136u8, 166u8, 143u8, 162u8, 157u8, 57u8, 145u8, - 0u8, 145u8, 122u8, 19u8, 28u8, 114u8, 47u8, 175u8, - 174u8, 110u8, 206u8, 131u8, 125u8, 178u8, 197u8, - 43u8, 229u8, 130u8, - ], - ) - } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] - pub fn propose( - &self, - threshold: ::core::primitive::u32, - proposal : runtime_types :: webb_standalone_runtime :: RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "propose", - types::Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 86u8, 219u8, 60u8, 141u8, 103u8, 84u8, 223u8, 12u8, - 73u8, 246u8, 226u8, 127u8, 110u8, 177u8, 193u8, - 22u8, 111u8, 72u8, 190u8, 47u8, 205u8, 102u8, - 103u8, 39u8, 175u8, 145u8, 170u8, 132u8, 43u8, - 137u8, 139u8, 110u8, - ], - ) - } - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn vote( - &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "vote", - types::Vote { - proposal, - index, - approve, - }, - [ - 108u8, 46u8, 180u8, 148u8, 145u8, 24u8, 173u8, - 56u8, 36u8, 100u8, 216u8, 43u8, 178u8, 202u8, 26u8, - 136u8, 93u8, 84u8, 80u8, 134u8, 14u8, 42u8, 248u8, - 205u8, 68u8, 92u8, 79u8, 11u8, 113u8, 115u8, 157u8, - 100u8, - ], - ) - } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close_old_weight( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Council", - "close_old_weight", - types::CloseOldWeight { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 133u8, 219u8, 90u8, 40u8, 102u8, 95u8, 4u8, 199u8, - 45u8, 234u8, 109u8, 17u8, 162u8, 63u8, 102u8, - 186u8, 95u8, 182u8, 13u8, 123u8, 227u8, 20u8, - 186u8, 207u8, 12u8, 47u8, 87u8, 252u8, 244u8, - 172u8, 60u8, 206u8, - ], - ) - } - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] - pub fn disapprove_proposal( - &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Council", - "disapprove_proposal", - types::DisapproveProposal { proposal_hash }, - [ - 25u8, 123u8, 1u8, 8u8, 74u8, 37u8, 3u8, 40u8, 97u8, - 37u8, 175u8, 224u8, 72u8, 155u8, 123u8, 109u8, - 104u8, 43u8, 91u8, 125u8, 199u8, 51u8, 17u8, 225u8, - 133u8, 38u8, 120u8, 76u8, 164u8, 5u8, 194u8, 201u8, - ], - ) - } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound : runtime_types :: sp_weights :: weight_v2 :: Weight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "close", - types::Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 191u8, 138u8, 89u8, 247u8, 97u8, 51u8, 45u8, 193u8, - 76u8, 16u8, 80u8, 225u8, 197u8, 83u8, 204u8, 133u8, - 169u8, 16u8, 86u8, 32u8, 125u8, 16u8, 116u8, 185u8, - 45u8, 20u8, 76u8, 148u8, 206u8, 163u8, 154u8, 30u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_collective::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - pub struct Proposed { - pub account: ::subxt::utils::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::utils::H256, - pub threshold: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - pub struct Voted { - pub account: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was approved by the required threshold."] - pub struct Approved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was not approved by the required threshold."] - pub struct Disapproved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Disapproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Executed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "MemberExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - pub struct Closed { - pub proposal_hash: ::subxt::utils::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Closed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The hashes of the active proposals."] - pub fn proposals( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::H256, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Council", - "Proposals", - vec![], - [ - 10u8, 133u8, 82u8, 54u8, 193u8, 41u8, 253u8, 159u8, - 56u8, 96u8, 249u8, 148u8, 43u8, 57u8, 116u8, 43u8, - 222u8, 243u8, 237u8, 231u8, 238u8, 60u8, 26u8, - 225u8, 19u8, 203u8, 213u8, 220u8, 114u8, 217u8, - 100u8, 27u8, - ], - ) - } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_standalone_runtime::RuntimeCall, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Council" , "ProposalOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [198u8 , 221u8 , 114u8 , 185u8 , 204u8 , 98u8 , 201u8 , 99u8 , 182u8 , 174u8 , 168u8 , 91u8 , 132u8 , 181u8 , 202u8 , 126u8 , 217u8 , 150u8 , 60u8 , 14u8 , 77u8 , 34u8 , 145u8 , 182u8 , 46u8 , 135u8 , 116u8 , 143u8 , 158u8 , 175u8 , 157u8 , 105u8 ,]) - } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_standalone_runtime::RuntimeCall, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Council", - "ProposalOf", - Vec::new(), - [ - 198u8, 221u8, 114u8, 185u8, 204u8, 98u8, 201u8, - 99u8, 182u8, 174u8, 168u8, 91u8, 132u8, 181u8, - 202u8, 126u8, 217u8, 150u8, 60u8, 14u8, 77u8, 34u8, - 145u8, 182u8, 46u8, 135u8, 116u8, 143u8, 158u8, - 175u8, 157u8, 105u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Council" , "Voting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [196u8 , 125u8 , 235u8 , 241u8 , 133u8 , 204u8 , 38u8 , 98u8 , 47u8 , 247u8 , 147u8 , 35u8 , 182u8 , 90u8 , 54u8 , 9u8 , 221u8 , 16u8 , 75u8 , 55u8 , 249u8 , 186u8 , 3u8 , 160u8 , 54u8 , 217u8 , 3u8 , 59u8 , 216u8 , 249u8 , 254u8 , 86u8 ,]) - } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u64, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Council", - "Voting", - Vec::new(), - [ - 196u8, 125u8, 235u8, 241u8, 133u8, 204u8, 38u8, - 98u8, 47u8, 247u8, 147u8, 35u8, 182u8, 90u8, 54u8, - 9u8, 221u8, 16u8, 75u8, 55u8, 249u8, 186u8, 3u8, - 160u8, 54u8, 217u8, 3u8, 59u8, 216u8, 249u8, 254u8, - 86u8, - ], - ) - } - #[doc = " Proposals so far."] - pub fn proposal_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Council", - "ProposalCount", - vec![], - [ - 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, - 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, - 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, - 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, - 127u8, 160u8, 34u8, 70u8, - ], - ) - } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] - pub fn members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Council", - "Members", - vec![], - [ - 162u8, 72u8, 174u8, 204u8, 140u8, 105u8, 205u8, - 176u8, 197u8, 117u8, 206u8, 134u8, 157u8, 110u8, - 139u8, 54u8, 43u8, 233u8, 25u8, 51u8, 36u8, 238u8, - 94u8, 124u8, 221u8, 52u8, 237u8, 71u8, 125u8, 56u8, - 129u8, 222u8, - ], - ) - } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] - pub fn prime( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Council", - "Prime", - vec![], - [ - 108u8, 118u8, 54u8, 193u8, 207u8, 227u8, 119u8, - 97u8, 23u8, 239u8, 157u8, 69u8, 56u8, 142u8, 106u8, - 17u8, 215u8, 159u8, 48u8, 42u8, 185u8, 209u8, 49u8, - 159u8, 32u8, 168u8, 111u8, 158u8, 159u8, 217u8, - 244u8, 158u8, - ], - ) - } - } - } - } - pub mod elections { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = - runtime_types::pallet_elections_phragmen::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Elections"; - const CALL: &'static str = "vote"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveVoter; - impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { - const PALLET: &'static str = "Elections"; - const CALL: &'static str = "remove_voter"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitCandidacy { - #[codec(compact)] - pub candidate_count: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { - const PALLET: &'static str = "Elections"; - const CALL: &'static str = "submit_candidacy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RenounceCandidacy { - pub renouncing: - runtime_types::pallet_elections_phragmen::Renouncing, - } - impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { - const PALLET: &'static str = "Elections"; - const CALL: &'static str = "renounce_candidacy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub slash_bond: ::core::primitive::bool, - pub rerun_election: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "Elections"; - const CALL: &'static str = "remove_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CleanDefunctVoters { - pub num_voters: ::core::primitive::u32, - pub num_defunct: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { - const PALLET: &'static str = "Elections"; - const CALL: &'static str = "clean_defunct_voters"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] - #[doc = ""] - #[doc = "# "] - #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] - #[doc = "# "] - pub fn vote( - &self, - votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Elections", - "vote", - types::Vote { votes, value }, - [ - 71u8, 90u8, 175u8, 225u8, 51u8, 202u8, 197u8, - 252u8, 183u8, 92u8, 239u8, 83u8, 112u8, 144u8, - 128u8, 211u8, 109u8, 33u8, 252u8, 6u8, 156u8, 15u8, - 91u8, 88u8, 70u8, 19u8, 32u8, 29u8, 224u8, 255u8, - 26u8, 145u8, - ], - ) - } - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] - pub fn remove_voter( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Elections", - "remove_voter", - types::RemoveVoter {}, - [ - 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, - 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, - 161u8, 53u8, 155u8, 130u8, 50u8, 88u8, 149u8, - 255u8, 12u8, 17u8, 85u8, 95u8, 69u8, 153u8, 130u8, - 221u8, 1u8, - ], - ) - } - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "# "] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "# "] - pub fn submit_candidacy( - &self, - candidate_count: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Elections", - "submit_candidacy", - types::SubmitCandidacy { candidate_count }, - [ - 228u8, 63u8, 217u8, 99u8, 128u8, 104u8, 175u8, - 10u8, 30u8, 35u8, 47u8, 14u8, 254u8, 122u8, 146u8, - 239u8, 61u8, 145u8, 82u8, 7u8, 181u8, 98u8, 238u8, - 208u8, 23u8, 84u8, 48u8, 255u8, 177u8, 255u8, 84u8, - 83u8, - ], - ) - } - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = ""] - #[doc = "# "] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = "# "] - pub fn renounce_candidacy( - &self, - renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Elections", - "renounce_candidacy", - types::RenounceCandidacy { renouncing }, - [ - 70u8, 72u8, 208u8, 36u8, 80u8, 245u8, 224u8, 75u8, - 60u8, 142u8, 19u8, 49u8, 142u8, 90u8, 14u8, 69u8, - 15u8, 61u8, 170u8, 235u8, 16u8, 252u8, 86u8, 200u8, - 120u8, 127u8, 36u8, 42u8, 143u8, 130u8, 217u8, - 128u8, - ], - ) - } - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "# "] - #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] - #[doc = "will go into phragmen, we assume full block for now."] - #[doc = "# "] - pub fn remove_member( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - slash_bond: ::core::primitive::bool, - rerun_election: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Elections", - "remove_member", - types::RemoveMember { - who, - slash_bond, - rerun_election, - }, - [ - 178u8, 90u8, 236u8, 184u8, 2u8, 67u8, 51u8, 162u8, - 83u8, 131u8, 242u8, 137u8, 17u8, 243u8, 209u8, - 110u8, 26u8, 238u8, 178u8, 136u8, 84u8, 74u8, - 216u8, 173u8, 221u8, 82u8, 179u8, 218u8, 162u8, - 159u8, 185u8, 59u8, - ], - ) - } - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "# "] - #[doc = "The total number of voters and those that are defunct must be provided as witness data."] - #[doc = "# "] - pub fn clean_defunct_voters( - &self, - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Elections", - "clean_defunct_voters", - types::CleanDefunctVoters { - num_voters, - num_defunct, - }, - [ - 198u8, 162u8, 30u8, 249u8, 191u8, 38u8, 141u8, - 123u8, 230u8, 90u8, 213u8, 103u8, 168u8, 28u8, 5u8, - 215u8, 213u8, 152u8, 46u8, 189u8, 238u8, 209u8, - 209u8, 142u8, 159u8, 222u8, 161u8, 26u8, 161u8, - 250u8, 9u8, 100u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_elections_phragmen::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - pub struct NewTerm { - pub new_members: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - } - impl ::subxt::events::StaticEvent for NewTerm { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "NewTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - pub struct EmptyTerm; - impl ::subxt::events::StaticEvent for EmptyTerm { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "EmptyTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Internal error happened while trying to perform election."] - pub struct ElectionError; - impl ::subxt::events::StaticEvent for ElectionError { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "ElectionError"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - pub struct MemberKicked { - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberKicked { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "MemberKicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Someone has renounced their candidacy."] - pub struct Renounced { - pub candidate: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Renounced { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "Renounced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - pub struct CandidateSlashed { - pub candidate: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for CandidateSlashed { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "CandidateSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - pub struct SeatHolderSlashed { - pub seat_holder: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const PALLET: &'static str = "Elections"; - const EVENT: &'static str = "SeatHolderSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current elected members."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] - pub fn members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Elections", - "Members", - vec![], - [ - 2u8, 182u8, 43u8, 180u8, 87u8, 185u8, 26u8, 79u8, - 196u8, 55u8, 28u8, 26u8, 174u8, 133u8, 158u8, - 221u8, 101u8, 161u8, 83u8, 9u8, 221u8, 175u8, - 221u8, 220u8, 81u8, 80u8, 1u8, 236u8, 74u8, 121u8, - 10u8, 82u8, - ], - ) - } - #[doc = " The current reserved runners-up."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] - #[doc = " last (i.e. _best_) runner-up will be replaced."] - pub fn runners_up( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Elections", - "RunnersUp", - vec![], - [ - 248u8, 81u8, 190u8, 53u8, 121u8, 49u8, 55u8, 69u8, - 116u8, 177u8, 46u8, 30u8, 131u8, 14u8, 32u8, 198u8, - 10u8, 132u8, 73u8, 117u8, 2u8, 146u8, 188u8, 146u8, - 214u8, 227u8, 97u8, 77u8, 7u8, 131u8, 208u8, 209u8, - ], - ) - } - #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] - #[doc = " and is always implicitly assumed to be a candidate."] - #[doc = ""] - #[doc = " Second element is the deposit."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] - pub fn candidates( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Elections", - "Candidates", - vec![], - [ - 224u8, 107u8, 141u8, 11u8, 54u8, 86u8, 117u8, 45u8, - 195u8, 252u8, 152u8, 21u8, 165u8, 23u8, 198u8, - 117u8, 5u8, 216u8, 183u8, 163u8, 243u8, 56u8, 11u8, - 102u8, 85u8, 107u8, 219u8, 250u8, 45u8, 80u8, - 108u8, 127u8, - ], - ) - } - #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] - pub fn election_rounds( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Elections", - "ElectionRounds", - vec![], - [ - 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, - 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, - 143u8, 104u8, 253u8, 86u8, 228u8, 68u8, 19u8, - 184u8, 166u8, 214u8, 58u8, 103u8, 176u8, 160u8, - 240u8, 249u8, 117u8, 115u8, - ], - ) - } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] - pub fn voting( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_elections_phragmen::Voter< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Elections" , "Voting" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [9u8 , 135u8 , 76u8 , 194u8 , 240u8 , 182u8 , 111u8 , 207u8 , 102u8 , 37u8 , 126u8 , 36u8 , 84u8 , 112u8 , 26u8 , 216u8 , 175u8 , 5u8 , 14u8 , 189u8 , 83u8 , 185u8 , 136u8 , 39u8 , 171u8 , 221u8 , 147u8 , 20u8 , 168u8 , 126u8 , 111u8 , 137u8 ,]) - } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] - pub fn voting_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_elections_phragmen::Voter< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Elections", - "Voting", - Vec::new(), - [ - 9u8, 135u8, 76u8, 194u8, 240u8, 182u8, 111u8, - 207u8, 102u8, 37u8, 126u8, 36u8, 84u8, 112u8, 26u8, - 216u8, 175u8, 5u8, 14u8, 189u8, 83u8, 185u8, 136u8, - 39u8, 171u8, 221u8, 147u8, 20u8, 168u8, 126u8, - 111u8, 137u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Identifier for the elections-phragmen pallet's lock"] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> - { - ::subxt::constants::Address::new_static( - "Elections", - "PalletId", - [ - 224u8, 197u8, 247u8, 125u8, 62u8, 180u8, 69u8, - 91u8, 226u8, 36u8, 82u8, 148u8, 70u8, 147u8, 209u8, - 40u8, 210u8, 229u8, 181u8, 191u8, 170u8, 205u8, - 138u8, 97u8, 127u8, 59u8, 124u8, 244u8, 252u8, - 30u8, 213u8, 179u8, - ], - ) - } - #[doc = " How much should be locked up in order to submit one's candidacy."] - pub fn candidacy_bond( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Elections", - "CandidacyBond", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Base deposit associated with voting."] - #[doc = ""] - #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] - #[doc = " creating a gigantic number of votes."] - pub fn voting_bond_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Elections", - "VotingBondBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] - pub fn voting_bond_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Elections", - "VotingBondFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Number of members to elect."] - pub fn desired_members( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Elections", - "DesiredMembers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of runners_up to keep."] - pub fn desired_runners_up( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Elections", - "DesiredRunnersUp", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How long each seat is kept. This defines the next block number at which an election"] - #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] - #[doc = " be in passive mode."] - pub fn term_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Elections", - "TermDuration", - [ - 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 maximum number of candidates in a phragmen election."] - #[doc = ""] - #[doc = " Warning: The election happens onchain, and this value will determine"] - #[doc = " the size of the election. When this limit is reached no more"] - #[doc = " candidates are accepted in the election."] - pub fn max_candidates( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Elections", - "MaxCandidates", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of voters to allow in a phragmen election."] - #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain."] - #[doc = " When the limit is reached the new voters are ignored."] - pub fn max_voters( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Elections", - "MaxVoters", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod grandpa { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_grandpa::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u64, - >, - >, - pub key_owner_proof: - runtime_types::sp_session::MembershipProof, - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "report_equivocation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u64, - >, - >, - pub key_owner_proof: - runtime_types::sp_session::MembershipProof, - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "report_equivocation_unsigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct NoteStalled { - pub delay: ::core::primitive::u64, - pub best_finalized_block_number: ::core::primitive::u64, - } - impl ::subxt::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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Grandpa", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 99u8, 148u8, 112u8, 118u8, 17u8, 142u8, 167u8, - 162u8, 101u8, 236u8, 46u8, 164u8, 81u8, 182u8, - 18u8, 159u8, 141u8, 43u8, 173u8, 120u8, 28u8, - 168u8, 90u8, 243u8, 108u8, 108u8, 207u8, 156u8, - 162u8, 101u8, 205u8, 181u8, - ], - ) - } - #[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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Grandpa", - "report_equivocation_unsigned", - types::ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 205u8, 218u8, 179u8, 128u8, 57u8, 43u8, 124u8, - 211u8, 44u8, 244u8, 200u8, 204u8, 188u8, 106u8, - 114u8, 147u8, 37u8, 240u8, 75u8, 172u8, 175u8, - 94u8, 197u8, 114u8, 53u8, 192u8, 157u8, 87u8, - 108u8, 60u8, 81u8, 198u8, - ], - ) - } - #[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: ::core::primitive::u64, - best_finalized_block_number: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Grandpa", - "note_stalled", - types::NoteStalled { - delay, - best_finalized_block_number, - }, - [ - 97u8, 60u8, 121u8, 239u8, 221u8, 126u8, 45u8, - 211u8, 169u8, 129u8, 54u8, 35u8, 65u8, 117u8, - 224u8, 174u8, 189u8, 55u8, 189u8, 91u8, 217u8, - 66u8, 39u8, 52u8, 24u8, 247u8, 108u8, 169u8, 128u8, - 85u8, 43u8, 24u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_grandpa::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New authority set has been applied."] - pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, - ::core::primitive::u64, - )>, - } - impl ::subxt::events::StaticEvent for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current authority set has been paused."] - pub struct Paused; - impl ::subxt::events::StaticEvent for Paused { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Paused"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current authority set has been resumed."] - pub struct Resumed; - impl ::subxt::events::StaticEvent for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " State of the current authority set."] - pub fn state( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredState< - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "State", - vec![], - [ - 254u8, 245u8, 141u8, 149u8, 219u8, 90u8, 110u8, - 106u8, 87u8, 147u8, 144u8, 230u8, 186u8, 178u8, - 183u8, 85u8, 226u8, 100u8, 127u8, 253u8, 71u8, - 245u8, 52u8, 200u8, 13u8, 242u8, 62u8, 222u8, 72u8, - 117u8, 253u8, 231u8, - ], - ) - } - #[doc = " Pending change: (signaled at, scheduled change)."] - pub fn pending_change( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredPendingChange< - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "PendingChange", - vec![], - [ - 145u8, 1u8, 218u8, 98u8, 162u8, 146u8, 154u8, - 117u8, 212u8, 77u8, 20u8, 60u8, 99u8, 165u8, 118u8, - 179u8, 100u8, 222u8, 218u8, 106u8, 200u8, 139u8, - 247u8, 19u8, 215u8, 227u8, 1u8, 190u8, 45u8, 240u8, - 115u8, 44u8, - ], - ) - } - #[doc = " next block number where we can force a change."] - pub fn next_forced( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "NextForced", - vec![], - [ - 129u8, 1u8, 76u8, 115u8, 147u8, 51u8, 231u8, 215u8, - 202u8, 18u8, 5u8, 115u8, 105u8, 172u8, 124u8, 44u8, - 57u8, 152u8, 78u8, 72u8, 125u8, 108u8, 52u8, 83u8, - 37u8, 100u8, 112u8, 115u8, 10u8, 153u8, 83u8, - 251u8, - ], - ) - } - #[doc = " `true` if we are currently stalled."] - pub fn stalled( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u64, ::core::primitive::u64), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "Stalled", - vec![], - [ - 250u8, 88u8, 175u8, 251u8, 162u8, 216u8, 94u8, - 93u8, 238u8, 2u8, 26u8, 67u8, 158u8, 242u8, 168u8, - 120u8, 112u8, 217u8, 191u8, 189u8, 70u8, 158u8, - 122u8, 130u8, 28u8, 205u8, 34u8, 245u8, 45u8, - 178u8, 85u8, 120u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "CurrentSetId", - vec![], - [ - 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, - 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, - 197u8, 157u8, 163u8, 116u8, 36u8, 105u8, 52u8, - 149u8, 244u8, 108u8, 94u8, 109u8, 111u8, 244u8, - 137u8, 7u8, 108u8, - ], - ) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] - pub fn set_id_session( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] - pub fn set_id_session_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "SetIdSession", - Vec::new(), - [ - 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, - 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, - 123u8, 133u8, 157u8, 15u8, 33u8, 234u8, 108u8, - 13u8, 88u8, 115u8, 254u8, 9u8, 145u8, 199u8, 102u8, - 47u8, 53u8, 134u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max Authorities in use"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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, - ], - ) - } - } - } - } - 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProposeSpend { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "propose_spend"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for RejectProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "reject_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "approve_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Spend { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Spend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "spend"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveApproval { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "remove_approval"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] - pub fn propose_spend( - &self, - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "propose_spend", - types::ProposeSpend { value, beneficiary }, - [ - 124u8, 32u8, 83u8, 127u8, 240u8, 169u8, 3u8, 190u8, - 235u8, 163u8, 23u8, 29u8, 88u8, 242u8, 238u8, - 187u8, 136u8, 75u8, 193u8, 192u8, 239u8, 2u8, 54u8, - 238u8, 147u8, 42u8, 91u8, 14u8, 244u8, 175u8, 41u8, - 14u8, - ], - ) - } - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] - pub fn reject_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Treasury", - "reject_proposal", - types::RejectProposal { proposal_id }, - [ - 106u8, 223u8, 97u8, 22u8, 111u8, 208u8, 128u8, - 26u8, 198u8, 140u8, 118u8, 126u8, 187u8, 51u8, - 193u8, 50u8, 193u8, 68u8, 143u8, 144u8, 34u8, - 132u8, 44u8, 244u8, 105u8, 186u8, 223u8, 234u8, - 17u8, 145u8, 209u8, 145u8, - ], - ) - } - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] - pub fn approve_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Treasury", - "approve_proposal", - types::ApproveProposal { proposal_id }, - [ - 164u8, 229u8, 172u8, 98u8, 129u8, 62u8, 84u8, - 128u8, 47u8, 108u8, 33u8, 120u8, 89u8, 79u8, 57u8, - 121u8, 4u8, 197u8, 170u8, 153u8, 156u8, 17u8, 59u8, - 164u8, 123u8, 227u8, 175u8, 195u8, 220u8, 160u8, - 60u8, 186u8, - ], - ) - } - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] - pub fn spend( - &self, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "spend", - types::Spend { - amount, - beneficiary, - }, - [ - 208u8, 79u8, 96u8, 218u8, 205u8, 209u8, 165u8, - 119u8, 92u8, 208u8, 54u8, 168u8, 83u8, 190u8, 98u8, - 97u8, 6u8, 2u8, 35u8, 249u8, 18u8, 88u8, 193u8, - 51u8, 130u8, 33u8, 28u8, 99u8, 49u8, 194u8, 34u8, - 77u8, - ], - ) - } - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] - pub fn remove_approval( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Treasury", - "remove_approval", - types::RemoveApproval { proposal_id }, - [ - 133u8, 126u8, 181u8, 47u8, 196u8, 243u8, 7u8, 46u8, - 25u8, 251u8, 154u8, 125u8, 217u8, 77u8, 54u8, - 245u8, 240u8, 180u8, 97u8, 34u8, 186u8, 53u8, - 225u8, 144u8, 155u8, 107u8, 172u8, 54u8, 250u8, - 184u8, 178u8, 86u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_treasury::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New proposal."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "We have ended a spend period and will now allocate funds."] - pub struct Spending { - pub budget_remaining: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Spending { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Spending"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some funds have been allocated."] - pub struct Awarded { - pub proposal_index: ::core::primitive::u32, - pub award: ::core::primitive::u128, - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Awarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal was rejected; funds were slashed."] - pub struct Rejected { - pub proposal_index: ::core::primitive::u32, - pub slashed: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some of our funds have been burnt."] - pub struct Burnt { - pub burnt_funds: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Burnt { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Burnt"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - pub struct Rollover { - pub rollover_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rollover { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rollover"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some funds have been deposited."] - pub struct Deposit { - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new spend proposal has been approved."] - pub struct SpendApproved { - pub proposal_index: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for SpendApproved { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "SpendApproved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of proposals that have been made."] - pub fn proposal_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Treasury", - "ProposalCount", - vec![], - [ - 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, - 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, - 57u8, 232u8, 154u8, 110u8, 32u8, 142u8, 24u8, - 149u8, 109u8, 105u8, 30u8, 83u8, 39u8, 177u8, - 127u8, 160u8, 34u8, 70u8, - ], - ) - } - #[doc = " Proposals that have been made."] - pub fn proposals( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_treasury::Proposal< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Treasury" , "Proposals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [62u8 , 223u8 , 55u8 , 209u8 , 151u8 , 134u8 , 122u8 , 65u8 , 207u8 , 38u8 , 113u8 , 213u8 , 237u8 , 48u8 , 129u8 , 32u8 , 91u8 , 228u8 , 108u8 , 91u8 , 37u8 , 49u8 , 94u8 , 4u8 , 75u8 , 122u8 , 25u8 , 34u8 , 198u8 , 224u8 , 246u8 , 160u8 ,]) - } - #[doc = " Proposals that have been made."] - pub fn proposals_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_treasury::Proposal< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Treasury", - "Proposals", - Vec::new(), - [ - 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, - 65u8, 207u8, 38u8, 113u8, 213u8, 237u8, 48u8, - 129u8, 32u8, 91u8, 228u8, 108u8, 91u8, 37u8, 49u8, - 94u8, 4u8, 75u8, 122u8, 25u8, 34u8, 198u8, 224u8, - 246u8, 160u8, - ], - ) - } - #[doc = " The amount which has been reported as inactive to Currency."] - pub fn inactive( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Treasury", - "Inactive", - vec![], - [ - 240u8, 100u8, 242u8, 40u8, 169u8, 252u8, 255u8, - 248u8, 66u8, 157u8, 165u8, 206u8, 229u8, 145u8, - 80u8, 73u8, 237u8, 44u8, 72u8, 76u8, 101u8, 215u8, - 87u8, 33u8, 252u8, 224u8, 54u8, 138u8, 79u8, 99u8, - 225u8, 34u8, - ], - ) - } - #[doc = " Proposal indices that have been approved but not yet awarded."] - pub fn approvals( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Treasury", - "Approvals", - vec![], - [ - 202u8, 106u8, 189u8, 40u8, 127u8, 172u8, 108u8, - 50u8, 193u8, 4u8, 248u8, 226u8, 176u8, 101u8, - 212u8, 222u8, 64u8, 206u8, 244u8, 175u8, 111u8, - 106u8, 86u8, 96u8, 19u8, 109u8, 218u8, 152u8, 30u8, - 59u8, 96u8, 1u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] - #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub fn proposal_bond( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Permill, - > { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBond", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMinimum", - [ - 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 amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( - &self, - ) -> ::subxt::constants::Address< - ::core::option::Option<::core::primitive::u128>, - > { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMaximum", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Period between successive spends."] - pub fn spend_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Treasury", - "SpendPeriod", - [ - 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 = " Percentage of spare funds (if any) that are burnt per spend period."] - pub fn burn( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Permill, - > { - ::subxt::constants::Address::new_static( - "Treasury", - "Burn", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "Treasury", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[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::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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, - ], - ) - } - } - } - } - pub mod utility { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_utility::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_utility::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Batch { - pub calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Batch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AsDerivative { - pub index: ::core::primitive::u16, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for AsDerivative { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "as_derivative"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BatchAll { - pub calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for BatchAll { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct DispatchAs { - pub as_origin: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::OriginCaller, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for DispatchAs { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "dispatch_as"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceBatch { - pub calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ForceBatch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "force_batch"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WithWeight { - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for WithWeight { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "with_weight"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - #[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: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "batch", - types::Batch { calls }, - [ - 215u8, 150u8, 64u8, 23u8, 122u8, 70u8, 186u8, - 155u8, 163u8, 17u8, 217u8, 118u8, 138u8, 30u8, - 131u8, 111u8, 77u8, 96u8, 218u8, 192u8, 177u8, - 91u8, 202u8, 133u8, 64u8, 131u8, 16u8, 167u8, - 112u8, 119u8, 44u8, 255u8, - ], - ) - } - #[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: ::core::primitive::u16, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "as_derivative", - types::AsDerivative { - index, - call: ::std::boxed::Box::new(call), - }, - [ - 75u8, 241u8, 19u8, 140u8, 143u8, 49u8, 63u8, 45u8, - 19u8, 187u8, 227u8, 244u8, 174u8, 20u8, 253u8, - 141u8, 244u8, 110u8, 157u8, 254u8, 184u8, 37u8, - 20u8, 230u8, 215u8, 137u8, 43u8, 182u8, 172u8, - 202u8, 137u8, 66u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - pub fn batch_all( - &self, - calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "batch_all", - types::BatchAll { calls }, - [ - 248u8, 176u8, 108u8, 110u8, 211u8, 188u8, 52u8, - 248u8, 254u8, 134u8, 160u8, 63u8, 180u8, 119u8, - 68u8, 154u8, 243u8, 219u8, 178u8, 51u8, 205u8, - 242u8, 248u8, 132u8, 245u8, 9u8, 83u8, 190u8, 66u8, - 125u8, 82u8, 39u8, - ], - ) - } - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] - #[doc = "# "] - pub fn dispatch_as( - &self, - as_origin : runtime_types :: webb_standalone_runtime :: OriginCaller, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "dispatch_as", - types::DispatchAs { - as_origin: ::std::boxed::Box::new(as_origin), - call: ::std::boxed::Box::new(call), - }, - [ - 199u8, 23u8, 79u8, 111u8, 23u8, 245u8, 43u8, 244u8, - 198u8, 33u8, 217u8, 114u8, 135u8, 198u8, 37u8, - 71u8, 201u8, 142u8, 27u8, 192u8, 28u8, 249u8, 95u8, - 18u8, 41u8, 47u8, 200u8, 34u8, 221u8, 118u8, 30u8, - 121u8, - ], - ) - } - #[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 = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - pub fn force_batch( - &self, - calls: ::std::vec::Vec< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "force_batch", - types::ForceBatch { calls }, - [ - 88u8, 195u8, 172u8, 234u8, 217u8, 52u8, 90u8, 2u8, - 124u8, 107u8, 195u8, 64u8, 192u8, 20u8, 149u8, - 166u8, 237u8, 124u8, 201u8, 21u8, 86u8, 220u8, - 239u8, 137u8, 17u8, 139u8, 82u8, 161u8, 147u8, - 243u8, 100u8, 252u8, - ], - ) - } - #[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: runtime_types::webb_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "with_weight", - types::WithWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 94u8, 33u8, 186u8, 164u8, 178u8, 64u8, 14u8, 41u8, - 71u8, 7u8, 120u8, 234u8, 136u8, 82u8, 78u8, 6u8, - 207u8, 112u8, 250u8, 47u8, 95u8, 185u8, 116u8, - 241u8, 207u8, 241u8, 101u8, 109u8, 111u8, 29u8, - 113u8, 181u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_utility::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] - #[doc = "well as the error."] - pub struct BatchInterrupted { - pub index: ::core::primitive::u32, - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::events::StaticEvent for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches completed fully with no error."] - pub struct BatchCompleted; - impl ::subxt::events::StaticEvent for BatchCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches completed but has errors."] - pub struct BatchCompletedWithErrors; - impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompletedWithErrors"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single item within a Batch of dispatches has completed with no error."] - pub struct ItemCompleted; - impl ::subxt::events::StaticEvent for ItemCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single item within a Batch of dispatches has completed with error."] - pub struct ItemFailed { - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::events::StaticEvent for ItemFailed { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A call was dispatched."] - pub struct DispatchedAs { - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for DispatchedAs { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "DispatchedAs"; - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The limit on the number of batched calls."] - pub fn batched_calls_limit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Utility", - "batched_calls_limit", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod multisig { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_multisig::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_multisig::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AsMultiThreshold1 { - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi_threshold_1"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - pub max_weight: - runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for AsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ApproveAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - pub call_hash: [::core::primitive::u8; 32usize], - pub max_weight: - runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "approve_as_multi"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "cancel_as_multi"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "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 = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - pub fn as_multi_threshold_1( - &self, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi_threshold_1", - types::AsMultiThreshold1 { - other_signatories, - call: ::std::boxed::Box::new(call), - }, - [ - 120u8, 173u8, 237u8, 218u8, 116u8, 207u8, 139u8, - 42u8, 184u8, 182u8, 93u8, 79u8, 83u8, 167u8, 24u8, - 200u8, 21u8, 162u8, 117u8, 159u8, 37u8, 236u8, - 86u8, 118u8, 237u8, 77u8, 184u8, 21u8, 154u8, 15u8, - 243u8, 99u8, - ], - ) - } - #[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 = "# "] - #[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`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - pub fn as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi", - types::AsMulti { - threshold, - other_signatories, - maybe_timepoint, - call: ::std::boxed::Box::new(call), - max_weight, - }, - [ - 247u8, 128u8, 12u8, 76u8, 66u8, 160u8, 42u8, 98u8, - 11u8, 204u8, 70u8, 241u8, 11u8, 199u8, 90u8, 49u8, - 131u8, 22u8, 181u8, 228u8, 117u8, 193u8, 101u8, - 224u8, 88u8, 202u8, 135u8, 3u8, 133u8, 45u8, 78u8, - 223u8, - ], - ) - } - #[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 = "# "] - #[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`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] - pub fn approve_as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - call_hash: [::core::primitive::u8; 32usize], - max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Multisig", - "approve_as_multi", - types::ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, - }, - [ - 178u8, 235u8, 0u8, 98u8, 97u8, 54u8, 60u8, 84u8, - 131u8, 14u8, 143u8, 227u8, 130u8, 93u8, 24u8, 0u8, - 0u8, 73u8, 213u8, 232u8, 66u8, 118u8, 210u8, 110u8, - 82u8, 22u8, 168u8, 39u8, 26u8, 147u8, 126u8, 105u8, - ], - ) - } - #[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 = "# "] - #[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."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] - pub fn cancel_as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::utils::AccountId32, - >, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - call_hash: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Multisig", - "cancel_as_multi", - types::CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, - }, - [ - 47u8, 30u8, 118u8, 58u8, 83u8, 19u8, 197u8, 197u8, - 114u8, 180u8, 211u8, 205u8, 116u8, 85u8, 51u8, - 164u8, 105u8, 250u8, 205u8, 194u8, 97u8, 184u8, - 224u8, 68u8, 23u8, 239u8, 183u8, 200u8, 226u8, - 146u8, 75u8, 189u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_multisig::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new multisig operation has begun."] - pub struct NewMultisig { - pub approving: ::subxt::utils::AccountId32, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::events::StaticEvent for NewMultisig { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "NewMultisig"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been approved by someone."] - pub struct MultisigApproval { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::events::StaticEvent for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been executed."] - pub struct MultisigExecuted { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been cancelled."] - pub struct MultisigCancelled { - pub cancelling: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::events::StaticEvent for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The set of open multisig operations."] - pub fn multisigs( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u64, - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Multisig" , "Multisigs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [219u8 , 52u8 , 88u8 , 89u8 , 218u8 , 194u8 , 244u8 , 163u8 , 30u8 , 249u8 , 254u8 , 116u8 , 115u8 , 158u8 , 38u8 , 8u8 , 43u8 , 185u8 , 62u8 , 238u8 , 82u8 , 180u8 , 248u8 , 247u8 , 29u8 , 238u8 , 97u8 , 136u8 , 143u8 , 117u8 , 164u8 , 68u8 ,]) - } - #[doc = " The set of open multisig operations."] - pub fn multisigs_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u64, - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", - Vec::new(), - [ - 219u8, 52u8, 88u8, 89u8, 218u8, 194u8, 244u8, - 163u8, 30u8, 249u8, 254u8, 116u8, 115u8, 158u8, - 38u8, 8u8, 43u8, 185u8, 62u8, 238u8, 82u8, 180u8, - 248u8, 247u8, 29u8, 238u8, 97u8, 136u8, 143u8, - 117u8, 164u8, 68u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] - #[doc = " store a dispatch call for later."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] - #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Multisig", - "DepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] - pub fn deposit_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Multisig", - "DepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of signatories allowed in the multisig."] - pub fn max_signatories( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Multisig", - "MaxSignatories", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod scheduler { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_scheduler::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Schedule { - pub when: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Schedule { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Cancel { - pub when: ::core::primitive::u64, - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "cancel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ScheduleNamed { - pub id: [::core::primitive::u8; 32usize], - pub when: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelNamed { - pub id: [::core::primitive::u8; 32usize], - } - impl ::subxt::blocks::StaticExtrinsic for CancelNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "cancel_named"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ScheduleAfter { - pub after: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_after"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ScheduleNamedAfter { - pub id: [::core::primitive::u8; 32usize], - pub after: ::core::primitive::u64, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named_after"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Anonymously schedule a task."] - pub fn schedule( - &self, - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule", - types::Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 144u8, 27u8, 238u8, 77u8, 221u8, 116u8, 56u8, - 135u8, 161u8, 194u8, 38u8, 196u8, 182u8, 219u8, - 120u8, 40u8, 61u8, 32u8, 13u8, 10u8, 120u8, 237u8, - 64u8, 171u8, 138u8, 166u8, 194u8, 68u8, 61u8, - 238u8, 53u8, 1u8, - ], - ) - } - #[doc = "Cancel an anonymously scheduled task."] - pub fn cancel( - &self, - when: ::core::primitive::u64, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel", - types::Cancel { when, index }, - [ - 218u8, 92u8, 28u8, 181u8, 164u8, 107u8, 168u8, - 165u8, 120u8, 66u8, 113u8, 244u8, 0u8, 127u8, 25u8, - 207u8, 116u8, 223u8, 187u8, 162u8, 80u8, 234u8, - 50u8, 254u8, 124u8, 103u8, 34u8, 90u8, 65u8, 19u8, - 218u8, 173u8, - ], - ) - } - #[doc = "Schedule a named task."] - pub fn schedule_named( - &self, - id: [::core::primitive::u8; 32usize], - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_named", - types::ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 198u8, 15u8, 204u8, 245u8, 236u8, 203u8, 44u8, - 129u8, 234u8, 24u8, 121u8, 4u8, 204u8, 58u8, 141u8, - 149u8, 193u8, 182u8, 99u8, 216u8, 159u8, 173u8, - 103u8, 91u8, 78u8, 52u8, 40u8, 223u8, 222u8, 247u8, - 177u8, 169u8, - ], - ) - } - #[doc = "Cancel a named scheduled task."] - pub fn cancel_named( - &self, - id: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel_named", - types::CancelNamed { id }, - [ - 51u8, 3u8, 140u8, 50u8, 214u8, 211u8, 50u8, 4u8, - 19u8, 43u8, 230u8, 114u8, 18u8, 108u8, 138u8, 67u8, - 99u8, 24u8, 255u8, 11u8, 246u8, 37u8, 192u8, 207u8, - 90u8, 157u8, 171u8, 93u8, 233u8, 189u8, 64u8, - 180u8, - ], - ) - } - #[doc = "Anonymously schedule a task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] - pub fn schedule_after( - &self, - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_after", - types::ScheduleAfter { - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 169u8, 200u8, 158u8, 109u8, 115u8, 109u8, 93u8, - 242u8, 49u8, 56u8, 113u8, 207u8, 23u8, 196u8, 92u8, - 91u8, 254u8, 196u8, 199u8, 214u8, 236u8, 155u8, - 185u8, 63u8, 36u8, 154u8, 115u8, 185u8, 144u8, - 56u8, 158u8, 82u8, - ], - ) - } - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] - pub fn schedule_named_after( - &self, - id: [::core::primitive::u8; 32usize], - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_named_after", - types::ScheduleNamedAfter { - id, - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 240u8, 34u8, 209u8, 204u8, 29u8, 153u8, 93u8, - 151u8, 222u8, 179u8, 32u8, 173u8, 208u8, 109u8, - 245u8, 17u8, 73u8, 210u8, 205u8, 176u8, 206u8, - 22u8, 30u8, 58u8, 127u8, 247u8, 29u8, 42u8, 212u8, - 118u8, 124u8, 115u8, - ], - ) - } - } - } - #[doc = "Events type."] - pub type Event = runtime_types::pallet_scheduler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Scheduled some task."] - pub struct Scheduled { - pub when: ::core::primitive::u64, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Canceled some task."] - pub struct Canceled { - pub when: ::core::primitive::u64, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Dispatched some task."] - pub struct Dispatched { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - pub struct CallUnavailable { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for CallUnavailable { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "CallUnavailable"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - pub struct PeriodicFailed { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PeriodicFailed { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PeriodicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given task can never be executed since it is overweight."] - pub struct PermanentlyOverweight { - pub task: (::core::primitive::u64, ::core::primitive::u32), - pub id: - ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PermanentlyOverweight"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn incomplete_since( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Scheduler", - "IncompleteSince", - vec![], - [ - 119u8, 104u8, 86u8, 249u8, 68u8, 225u8, 248u8, 2u8, - 231u8, 55u8, 186u8, 227u8, 85u8, 244u8, 178u8, - 86u8, 213u8, 208u8, 233u8, 228u8, 50u8, 43u8, - 178u8, 210u8, 38u8, 140u8, 74u8, 57u8, 173u8, 35u8, - 194u8, 132u8, - ], - ) - } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u64 , runtime_types :: webb_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Scheduler" , "Agenda" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 83u8 , 156u8 , 49u8 , 91u8 , 164u8 , 123u8 , 102u8 , 219u8 , 137u8 , 183u8 , 35u8 , 96u8 , 208u8 , 108u8 , 36u8 , 114u8 , 172u8 , 143u8 , 29u8 , 3u8 , 216u8 , 225u8 , 20u8 , 2u8 , 73u8 , 46u8 , 92u8 , 27u8 , 217u8 , 10u8 , 235u8 ,]) - } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , :: core :: primitive :: u64 , runtime_types :: webb_standalone_runtime :: OriginCaller , :: subxt :: utils :: AccountId32 > > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Scheduler", - "Agenda", - Vec::new(), - [ - 17u8, 83u8, 156u8, 49u8, 91u8, 164u8, 123u8, 102u8, - 219u8, 137u8, 183u8, 35u8, 96u8, 208u8, 108u8, - 36u8, 114u8, 172u8, 143u8, 29u8, 3u8, 216u8, 225u8, - 20u8, 2u8, 73u8, 46u8, 92u8, 27u8, 217u8, 10u8, - 235u8, - ], - ) - } - #[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 ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u64, ::core::primitive::u32), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Scheduler" , "Lookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [170u8 , 113u8 , 172u8 , 164u8 , 64u8 , 203u8 , 144u8 , 121u8 , 238u8 , 117u8 , 29u8 , 85u8 , 53u8 , 128u8 , 6u8 , 180u8 , 59u8 , 56u8 , 185u8 , 57u8 , 92u8 , 249u8 , 153u8 , 8u8 , 4u8 , 220u8 , 250u8 , 69u8 , 143u8 , 42u8 , 62u8 , 102u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u64, ::core::primitive::u32), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", - Vec::new(), - [ - 170u8, 113u8, 172u8, 164u8, 64u8, 203u8, 144u8, - 121u8, 238u8, 117u8, 29u8, 85u8, 53u8, 128u8, 6u8, - 180u8, 59u8, 56u8, 185u8, 57u8, 92u8, 249u8, 153u8, - 8u8, 4u8, 220u8, 250u8, 69u8, 143u8, 42u8, 62u8, - 102u8, - ], - ) - } - } - } - 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::constants::Address< - runtime_types::sp_weights::weight_v2::Weight, - > { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaximumWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum number of scheduled calls in the queue for a single block."] - pub fn max_scheduled_per_block( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_preimage::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct NotePreimage { - pub bytes: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for NotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "note_preimage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UnnotePreimage { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unnote_preimage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RequestPreimage { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "request_preimage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UnrequestPreimage { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unrequest_preimage"; - } - } - 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: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "note_preimage", - types::NotePreimage { bytes }, - [ - 77u8, 48u8, 104u8, 3u8, 254u8, 65u8, 106u8, 95u8, - 204u8, 89u8, 149u8, 29u8, 144u8, 188u8, 99u8, 23u8, - 146u8, 142u8, 35u8, 17u8, 125u8, 130u8, 31u8, - 206u8, 106u8, 83u8, 163u8, 192u8, 81u8, 23u8, - 232u8, 230u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Preimage", - "unnote_preimage", - types::UnnotePreimage { hash }, - [ - 211u8, 204u8, 205u8, 58u8, 33u8, 179u8, 68u8, 74u8, - 149u8, 138u8, 213u8, 45u8, 140u8, 27u8, 106u8, - 81u8, 68u8, 212u8, 147u8, 116u8, 27u8, 130u8, 84u8, - 34u8, 231u8, 197u8, 135u8, 8u8, 19u8, 242u8, 207u8, - 17u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Preimage", - "request_preimage", - types::RequestPreimage { hash }, - [ - 195u8, 26u8, 146u8, 255u8, 79u8, 43u8, 73u8, 60u8, - 115u8, 78u8, 99u8, 197u8, 137u8, 95u8, 139u8, - 141u8, 79u8, 213u8, 170u8, 169u8, 127u8, 30u8, - 236u8, 65u8, 38u8, 16u8, 118u8, 228u8, 141u8, 83u8, - 162u8, 233u8, - ], - ) - } - #[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: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Preimage", - "unrequest_preimage", - types::UnrequestPreimage { hash }, - [ - 143u8, 225u8, 239u8, 44u8, 237u8, 83u8, 18u8, - 105u8, 101u8, 68u8, 111u8, 116u8, 66u8, 212u8, - 63u8, 190u8, 38u8, 32u8, 105u8, 152u8, 69u8, 177u8, - 193u8, 15u8, 60u8, 26u8, 95u8, 130u8, 11u8, 113u8, - 187u8, 108u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_preimage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A preimage has been noted."] - pub struct Noted { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Noted { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Noted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A preimage has been requested."] - pub struct Requested { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Requested { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Requested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A preimage has ben cleared."] - pub struct Cleared { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Cleared { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Cleared"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The request status of a given hash."] - pub fn status_for( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Preimage" , "StatusFor" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [103u8 , 208u8 , 88u8 , 167u8 , 244u8 , 198u8 , 129u8 , 134u8 , 182u8 , 80u8 , 71u8 , 192u8 , 73u8 , 92u8 , 190u8 , 15u8 , 20u8 , 132u8 , 37u8 , 108u8 , 88u8 , 233u8 , 18u8 , 145u8 , 9u8 , 235u8 , 5u8 , 132u8 , 42u8 , 17u8 , 227u8 , 56u8 ,]) - } - #[doc = " The request status of a given hash."] - pub fn status_for_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - Vec::new(), - [ - 103u8, 208u8, 88u8, 167u8, 244u8, 198u8, 129u8, - 134u8, 182u8, 80u8, 71u8, 192u8, 73u8, 92u8, 190u8, - 15u8, 20u8, 132u8, 37u8, 108u8, 88u8, 233u8, 18u8, - 145u8, 9u8, 235u8, 5u8, 132u8, 42u8, 17u8, 227u8, - 56u8, - ], - ) - } - pub fn preimage_for( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Preimage" , "PreimageFor" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [96u8 , 74u8 , 30u8 , 112u8 , 120u8 , 41u8 , 52u8 , 187u8 , 252u8 , 68u8 , 42u8 , 5u8 , 61u8 , 228u8 , 250u8 , 192u8 , 224u8 , 61u8 , 53u8 , 222u8 , 95u8 , 148u8 , 6u8 , 53u8 , 43u8 , 152u8 , 88u8 , 58u8 , 185u8 , 234u8 , 131u8 , 124u8 ,]) - } - pub fn preimage_for_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", - Vec::new(), - [ - 96u8, 74u8, 30u8, 112u8, 120u8, 41u8, 52u8, 187u8, - 252u8, 68u8, 42u8, 5u8, 61u8, 228u8, 250u8, 192u8, - 224u8, 61u8, 53u8, 222u8, 95u8, 148u8, 6u8, 53u8, - 43u8, 152u8, 88u8, 58u8, 185u8, 234u8, 131u8, - 124u8, - ], - ) - } - } - } - } - pub mod proxy { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_proxy::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Proxy { - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Proxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AddProxy { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for AddProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "add_proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveProxy { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveProxies; - impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxies"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CreatePure { - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - pub index: ::core::primitive::u16, - } - impl ::subxt::blocks::StaticExtrinsic for CreatePure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "create_pure"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KillPure { - pub spawner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub index: ::core::primitive::u16, - #[codec(compact)] - pub height: ::core::primitive::u64, - #[codec(compact)] - pub ext_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for KillPure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "kill_pure"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Announce { - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call_hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for Announce { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "announce"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveAnnouncement { - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call_hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_announcement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RejectAnnouncement { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call_hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "reject_announcement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProxyAnnounced { - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy_announced"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Dispatch the given `call` from an account that the sender is authorised 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( - &self, - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "proxy", - types::Proxy { - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, - [ - 220u8, 143u8, 127u8, 187u8, 168u8, 118u8, 34u8, - 4u8, 216u8, 67u8, 141u8, 179u8, 89u8, 23u8, 131u8, - 24u8, 219u8, 104u8, 27u8, 113u8, 196u8, 75u8, - 117u8, 39u8, 237u8, 216u8, 217u8, 48u8, 65u8, 89u8, - 66u8, 1u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, - delay: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "add_proxy", - types::AddProxy { - delegate, - proxy_type, - delay, - }, - [ - 38u8, 26u8, 76u8, 131u8, 12u8, 56u8, 235u8, 201u8, - 191u8, 224u8, 33u8, 99u8, 145u8, 43u8, 239u8, - 205u8, 117u8, 217u8, 30u8, 187u8, 35u8, 28u8, - 221u8, 4u8, 140u8, 22u8, 221u8, 83u8, 56u8, 190u8, - 108u8, 19u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, - delay: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "remove_proxy", - types::RemoveProxy { - delegate, - proxy_type, - delay, - }, - [ - 227u8, 235u8, 120u8, 150u8, 221u8, 155u8, 132u8, - 125u8, 234u8, 133u8, 108u8, 137u8, 3u8, 14u8, - 143u8, 170u8, 35u8, 178u8, 127u8, 246u8, 119u8, - 21u8, 151u8, 89u8, 168u8, 18u8, 39u8, 229u8, 159u8, - 50u8, 141u8, 225u8, - ], - ) - } - #[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::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Proxy", - "remove_proxies", - types::RemoveProxies {}, - [ - 15u8, 237u8, 27u8, 166u8, 254u8, 218u8, 92u8, 5u8, - 213u8, 239u8, 99u8, 59u8, 1u8, 26u8, 73u8, 252u8, - 81u8, 94u8, 214u8, 227u8, 169u8, 58u8, 40u8, 253u8, - 187u8, 225u8, 192u8, 26u8, 19u8, 23u8, 121u8, - 129u8, - ], - ) - } - #[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 : runtime_types :: webb_standalone_runtime :: ProxyType, - delay: ::core::primitive::u64, - index: ::core::primitive::u16, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "create_pure", - types::CreatePure { - proxy_type, - delay, - index, - }, - [ - 114u8, 222u8, 117u8, 16u8, 245u8, 120u8, 138u8, - 169u8, 123u8, 168u8, 8u8, 26u8, 237u8, 32u8, 40u8, - 172u8, 244u8, 89u8, 68u8, 125u8, 214u8, 22u8, - 214u8, 49u8, 253u8, 81u8, 152u8, 34u8, 77u8, 183u8, - 38u8, 242u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type : runtime_types :: webb_standalone_runtime :: ProxyType, - index: ::core::primitive::u16, - height: ::core::primitive::u64, - ext_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "kill_pure", - types::KillPure { - spawner, - proxy_type, - index, - height, - ext_index, - }, - [ - 223u8, 158u8, 75u8, 227u8, 188u8, 238u8, 80u8, - 141u8, 71u8, 63u8, 213u8, 103u8, 235u8, 189u8, - 177u8, 237u8, 116u8, 5u8, 252u8, 225u8, 240u8, - 244u8, 205u8, 229u8, 130u8, 62u8, 129u8, 182u8, - 232u8, 218u8, 205u8, 173u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "announce", - types::Announce { real, call_hash }, - [ - 226u8, 252u8, 69u8, 50u8, 248u8, 212u8, 209u8, - 225u8, 201u8, 236u8, 51u8, 136u8, 56u8, 85u8, 36u8, - 130u8, 233u8, 84u8, 44u8, 192u8, 174u8, 119u8, - 245u8, 62u8, 150u8, 78u8, 217u8, 90u8, 167u8, - 154u8, 228u8, 141u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Proxy", - "remove_announcement", - types::RemoveAnnouncement { real, call_hash }, - [ - 251u8, 236u8, 113u8, 182u8, 125u8, 244u8, 31u8, - 144u8, 66u8, 28u8, 65u8, 97u8, 67u8, 94u8, 225u8, - 210u8, 46u8, 143u8, 242u8, 124u8, 120u8, 93u8, - 23u8, 165u8, 83u8, 177u8, 250u8, 171u8, 58u8, 66u8, - 70u8, 64u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Proxy", - "reject_announcement", - types::RejectAnnouncement { - delegate, - call_hash, - }, - [ - 122u8, 165u8, 114u8, 85u8, 209u8, 197u8, 11u8, - 96u8, 211u8, 93u8, 201u8, 42u8, 1u8, 131u8, 254u8, - 177u8, 191u8, 212u8, 229u8, 13u8, 28u8, 163u8, - 133u8, 200u8, 113u8, 28u8, 132u8, 45u8, 105u8, - 177u8, 82u8, 206u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Proxy", - "proxy_announced", - types::ProxyAnnounced { - delegate, - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, - [ - 49u8, 251u8, 228u8, 100u8, 122u8, 252u8, 145u8, - 101u8, 7u8, 57u8, 83u8, 125u8, 255u8, 113u8, 183u8, - 203u8, 234u8, 49u8, 221u8, 203u8, 248u8, 218u8, - 41u8, 205u8, 78u8, 130u8, 220u8, 254u8, 118u8, - 166u8, 157u8, 83u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_proxy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was executed correctly, with the given."] - pub struct ProxyExecuted { - pub result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for ProxyExecuted { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pure account has been created by new proxy with given"] - #[doc = "disambiguation index and proxy type."] - pub struct PureCreated { - pub pure: ::subxt::utils::AccountId32, - pub who: ::subxt::utils::AccountId32, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub disambiguation_index: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for PureCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "PureCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An announcement was placed to make a call in the future."] - pub struct Announced { - pub real: ::subxt::utils::AccountId32, - pub proxy: ::subxt::utils::AccountId32, - pub call_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Announced { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "Announced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was added."] - pub struct ProxyAdded { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was removed."] - pub struct ProxyRemoved { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - pub delay: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ProxyRemoved { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyRemoved"; - } - } - pub mod storage { - use super::runtime_types; - 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 (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: ProxyType , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Proxy" , "Proxies" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [29u8 , 196u8 , 62u8 , 237u8 , 202u8 , 233u8 , 119u8 , 198u8 , 157u8 , 71u8 , 212u8 , 171u8 , 83u8 , 157u8 , 157u8 , 69u8 , 181u8 , 0u8 , 136u8 , 157u8 , 166u8 , 119u8 , 27u8 , 157u8 , 208u8 , 194u8 , 151u8 , 3u8 , 58u8 , 48u8 , 184u8 , 39u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: utils :: AccountId32 , runtime_types :: webb_standalone_runtime :: ProxyType , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", - Vec::new(), - [ - 29u8, 196u8, 62u8, 237u8, 202u8, 233u8, 119u8, - 198u8, 157u8, 71u8, 212u8, 171u8, 83u8, 157u8, - 157u8, 69u8, 181u8, 0u8, 136u8, 157u8, 166u8, - 119u8, 27u8, 157u8, 208u8, 194u8, 151u8, 3u8, 58u8, - 48u8, 184u8, 39u8, - ], - ) - } - #[doc = " The announcements made by the proxy (key)."] pub fn announcements (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: Announcement < :: subxt :: utils :: AccountId32 , :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Proxy" , "Announcements" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [171u8 , 196u8 , 179u8 , 148u8 , 64u8 , 151u8 , 66u8 , 184u8 , 102u8 , 220u8 , 132u8 , 79u8 , 92u8 , 119u8 , 217u8 , 116u8 , 229u8 , 208u8 , 241u8 , 36u8 , 51u8 , 101u8 , 170u8 , 110u8 , 15u8 , 48u8 , 3u8 , 123u8 , 94u8 , 45u8 , 49u8 , 120u8 ,]) - } - #[doc = " The announcements made by the proxy (key)."] pub fn announcements_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: Announcement < :: subxt :: utils :: AccountId32 , :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , :: core :: primitive :: u128 ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Proxy", - "Announcements", - Vec::new(), - [ - 171u8, 196u8, 179u8, 148u8, 64u8, 151u8, 66u8, - 184u8, 102u8, 220u8, 132u8, 79u8, 92u8, 119u8, - 217u8, 116u8, 229u8, 208u8, 241u8, 36u8, 51u8, - 101u8, 170u8, 110u8, 15u8, 48u8, 3u8, 123u8, 94u8, - 45u8, 49u8, 120u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a proxy."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] - pub fn proxy_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per proxy added."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] - #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] - #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] - pub fn proxy_deposit_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of proxies allowed for a single account."] - pub fn max_proxies( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Proxy", - "MaxProxies", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] - pub fn max_pending( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Proxy", - "MaxPending", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The base amount of currency needed to reserve for creating an announcement."] - #[doc = ""] - #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] - #[doc = " bytes)."] - pub fn announcement_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Proxy", - "AnnouncementDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per announcement made."] - #[doc = ""] - #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] - #[doc = " into a pre-existing storage value."] - pub fn announcement_deposit_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Proxy", - "AnnouncementDepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - } - } - } - pub mod assets { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_assets::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_assets::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub min_balance: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceCreate { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub is_sufficient: ::core::primitive::bool, - #[codec(compact)] - pub min_balance: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceCreate { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "force_create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct StartDestroy { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for StartDestroy { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "start_destroy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct DestroyAccounts { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for DestroyAccounts { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "destroy_accounts"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct DestroyApprovals { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for DestroyApprovals { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "destroy_approvals"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct FinishDestroy { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for FinishDestroy { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "finish_destroy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Mint { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Mint { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "mint"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Burn { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Burn { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "burn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferKeepAlive { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "transfer_keep_alive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceTransfer { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Freeze { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Freeze { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "freeze"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Thaw { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Thaw { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "thaw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct FreezeAsset { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for FreezeAsset { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "freeze_asset"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ThawAsset { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ThawAsset { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "thaw_asset"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferOwnership { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for TransferOwnership { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "transfer_ownership"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetTeam { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetTeam { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "set_team"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub symbol: ::std::vec::Vec<::core::primitive::u8>, - pub decimals: ::core::primitive::u8, - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClearMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ClearMetadata { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "clear_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSetMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub symbol: ::std::vec::Vec<::core::primitive::u8>, - pub decimals: ::core::primitive::u8, - pub is_frozen: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for ForceSetMetadata { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "force_set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceClearMetadata { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceClearMetadata { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "force_clear_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceAssetStatus { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub min_balance: ::core::primitive::u128, - pub is_sufficient: ::core::primitive::bool, - pub is_frozen: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for ForceAssetStatus { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "force_asset_status"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ApproveTransfer { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ApproveTransfer { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "approve_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelApproval { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for CancelApproval { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "cancel_approval"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceCancelApproval { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ForceCancelApproval { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "force_cancel_approval"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferApproved { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub destination: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferApproved { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "transfer_approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Touch { - #[codec(compact)] - pub id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Touch { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "touch"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Refund { - #[codec(compact)] - pub id: ::core::primitive::u32, - pub allow_burn: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for Refund { - const PALLET: &'static str = "Assets"; - const CALL: &'static str = "refund"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Issue a new class of fungible assets from a public origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially and its owner is the origin."] - #[doc = ""] - #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] - #[doc = ""] - #[doc = "Funds of sender are reserved by `AssetDeposit`."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] - #[doc = "member of the asset class's admin team."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `Created` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn create( - &self, - id: ::core::primitive::u32, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - min_balance: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "create", - types::Create { - id, - admin, - min_balance, - }, - [ - 197u8, 86u8, 72u8, 4u8, 104u8, 55u8, 113u8, 73u8, - 86u8, 21u8, 128u8, 40u8, 25u8, 91u8, 18u8, 246u8, - 157u8, 168u8, 160u8, 65u8, 101u8, 193u8, 120u8, - 217u8, 245u8, 26u8, 194u8, 186u8, 126u8, 231u8, - 118u8, 176u8, - ], - ) - } - #[doc = "Issue a new class of fungible assets from a privileged origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin`."] - #[doc = ""] - #[doc = "Unlike `create`, no funds are reserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] - #[doc = "over this asset, but may later change and configure the permissions using"] - #[doc = "`transfer_ownership` and `set_team`."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `ForceCreated` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_create( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - is_sufficient: ::core::primitive::bool, - min_balance: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "force_create", - types::ForceCreate { - id, - owner, - is_sufficient, - min_balance, - }, - [ - 152u8, 24u8, 39u8, 126u8, 101u8, 61u8, 147u8, - 180u8, 121u8, 52u8, 45u8, 205u8, 87u8, 32u8, 87u8, - 7u8, 134u8, 168u8, 1u8, 159u8, 191u8, 246u8, 90u8, - 245u8, 80u8, 172u8, 185u8, 254u8, 59u8, 37u8, - 204u8, 162u8, - ], - ) - } - #[doc = "Start the process of destroying a fungible asset class."] - #[doc = ""] - #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] - #[doc = "destruction of an asset class."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "The asset class must be frozen before calling `start_destroy`."] - pub fn start_destroy( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "start_destroy", - types::StartDestroy { id }, - [ - 83u8, 116u8, 245u8, 108u8, 180u8, 253u8, 0u8, - 109u8, 9u8, 206u8, 70u8, 95u8, 36u8, 80u8, 86u8, - 186u8, 191u8, 161u8, 227u8, 156u8, 162u8, 102u8, - 82u8, 239u8, 124u8, 162u8, 128u8, 121u8, 183u8, - 120u8, 214u8, 136u8, - ], - ) - } - #[doc = "Destroy all accounts associated with a given asset."] - #[doc = ""] - #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedAccounts` event."] - pub fn destroy_accounts( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "destroy_accounts", - types::DestroyAccounts { id }, - [ - 35u8, 134u8, 147u8, 165u8, 201u8, 250u8, 221u8, - 158u8, 216u8, 147u8, 218u8, 79u8, 235u8, 188u8, - 10u8, 101u8, 22u8, 48u8, 1u8, 192u8, 176u8, 84u8, - 111u8, 244u8, 99u8, 92u8, 254u8, 49u8, 156u8, 24u8, - 209u8, 180u8, - ], - ) - } - #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] - #[doc = ""] - #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedApprovals` event."] - pub fn destroy_approvals( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "destroy_approvals", - types::DestroyApprovals { id }, - [ - 138u8, 31u8, 250u8, 93u8, 156u8, 239u8, 19u8, 43u8, - 244u8, 208u8, 159u8, 223u8, 143u8, 253u8, 235u8, - 130u8, 159u8, 117u8, 15u8, 79u8, 1u8, 205u8, 153u8, - 36u8, 38u8, 23u8, 38u8, 0u8, 193u8, 104u8, 140u8, - 225u8, - ], - ) - } - #[doc = "Complete destroying asset and unreserve currency."] - #[doc = ""] - #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] - #[doc = "hand."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each successful call emits the `Event::Destroyed` event."] - pub fn finish_destroy( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "finish_destroy", - types::FinishDestroy { id }, - [ - 215u8, 16u8, 107u8, 60u8, 181u8, 1u8, 238u8, 172u8, - 36u8, 54u8, 187u8, 26u8, 159u8, 224u8, 161u8, 8u8, - 115u8, 183u8, 132u8, 121u8, 42u8, 165u8, 7u8, - 193u8, 208u8, 124u8, 45u8, 158u8, 100u8, 57u8, - 117u8, 209u8, - ], - ) - } - #[doc = "Mint assets of a particular class."] - #[doc = ""] - #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount minted."] - #[doc = "- `beneficiary`: The account to be credited with the minted assets."] - #[doc = "- `amount`: The amount of the asset to be minted."] - #[doc = ""] - #[doc = "Emits `Issued` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] - pub fn mint( - &self, - id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "mint", - types::Mint { - id, - beneficiary, - amount, - }, - [ - 21u8, 30u8, 124u8, 32u8, 105u8, 231u8, 137u8, - 139u8, 28u8, 252u8, 232u8, 138u8, 197u8, 0u8, - 109u8, 156u8, 102u8, 83u8, 51u8, 128u8, 246u8, - 186u8, 249u8, 144u8, 133u8, 127u8, 241u8, 152u8, - 201u8, 50u8, 41u8, 105u8, - ], - ) - } - #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] - #[doc = ""] - #[doc = "Bails with `NoAccount` if the `who` is already dead."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount burned."] - #[doc = "- `who`: The account to be debited from."] - #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] - #[doc = ""] - #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] - #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] - pub fn burn( - &self, - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "burn", - types::Burn { id, who, amount }, - [ - 104u8, 94u8, 68u8, 117u8, 145u8, 209u8, 149u8, - 156u8, 131u8, 137u8, 137u8, 93u8, 114u8, 237u8, - 75u8, 56u8, 77u8, 65u8, 18u8, 71u8, 19u8, 187u8, - 76u8, 145u8, 24u8, 128u8, 62u8, 234u8, 200u8, - 247u8, 196u8, 45u8, - ], - ) - } - #[doc = "Move some assets from the sender account to another."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - pub fn transfer( - &self, - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "transfer", - types::Transfer { id, target, amount }, - [ - 132u8, 120u8, 134u8, 8u8, 238u8, 66u8, 45u8, 83u8, - 151u8, 8u8, 118u8, 62u8, 2u8, 163u8, 213u8, 255u8, - 42u8, 211u8, 125u8, 21u8, 150u8, 117u8, 177u8, - 21u8, 105u8, 61u8, 3u8, 2u8, 30u8, 70u8, 65u8, - 145u8, - ], - ) - } - #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - pub fn transfer_keep_alive( - &self, - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "transfer_keep_alive", - types::TransferKeepAlive { id, target, amount }, - [ - 9u8, 46u8, 251u8, 191u8, 91u8, 192u8, 119u8, 203u8, - 147u8, 84u8, 76u8, 27u8, 237u8, 174u8, 67u8, 249u8, - 185u8, 199u8, 240u8, 122u8, 160u8, 111u8, 245u8, - 247u8, 241u8, 197u8, 238u8, 253u8, 75u8, 216u8, - 41u8, 148u8, - ], - ) - } - #[doc = "Move some assets from one account to another."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `source`: The account to be debited."] - #[doc = "- `dest`: The account to be credited."] - #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] - #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] - #[doc = "below the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] - #[doc = "`dest`."] - pub fn force_transfer( - &self, - id: ::core::primitive::u32, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "force_transfer", - types::ForceTransfer { - id, - source, - dest, - amount, - }, - [ - 253u8, 100u8, 109u8, 66u8, 153u8, 140u8, 39u8, - 85u8, 19u8, 199u8, 68u8, 6u8, 124u8, 200u8, 250u8, - 142u8, 104u8, 55u8, 190u8, 25u8, 117u8, 180u8, - 201u8, 245u8, 153u8, 192u8, 240u8, 5u8, 176u8, - 142u8, 106u8, 92u8, - ], - ) - } - #[doc = "Disallow further unprivileged transfers from an account."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn freeze( - &self, - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "freeze", - types::Freeze { id, who }, - [ - 191u8, 155u8, 214u8, 95u8, 125u8, 58u8, 207u8, - 76u8, 99u8, 15u8, 102u8, 189u8, 26u8, 232u8, 9u8, - 73u8, 231u8, 114u8, 199u8, 129u8, 110u8, 84u8, - 22u8, 114u8, 108u8, 57u8, 83u8, 246u8, 92u8, 0u8, - 127u8, 53u8, - ], - ) - } - #[doc = "Allow unprivileged transfers from an account again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be unfrozen."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn thaw( - &self, - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "thaw", - types::Thaw { id, who }, - [ - 52u8, 37u8, 227u8, 9u8, 177u8, 120u8, 93u8, 129u8, - 81u8, 35u8, 107u8, 22u8, 80u8, 58u8, 3u8, 98u8, - 211u8, 65u8, 49u8, 107u8, 184u8, 102u8, 185u8, - 84u8, 160u8, 73u8, 12u8, 242u8, 203u8, 233u8, 79u8, - 117u8, - ], - ) - } - #[doc = "Disallow further unprivileged transfers for the asset class."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn freeze_asset( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "freeze_asset", - types::FreezeAsset { id }, - [ - 208u8, 101u8, 0u8, 73u8, 41u8, 192u8, 227u8, 44u8, - 189u8, 231u8, 40u8, 124u8, 189u8, 147u8, 136u8, - 210u8, 76u8, 32u8, 249u8, 183u8, 68u8, 58u8, 150u8, - 136u8, 192u8, 47u8, 173u8, 178u8, 225u8, 84u8, - 110u8, 1u8, - ], - ) - } - #[doc = "Allow unprivileged transfers for the asset again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be thawed."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn thaw_asset( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "thaw_asset", - types::ThawAsset { id }, - [ - 18u8, 198u8, 141u8, 158u8, 182u8, 167u8, 160u8, - 227u8, 20u8, 74u8, 80u8, 164u8, 89u8, 46u8, 168u8, - 139u8, 251u8, 83u8, 155u8, 91u8, 91u8, 46u8, 205u8, - 55u8, 171u8, 175u8, 167u8, 188u8, 116u8, 155u8, - 79u8, 117u8, - ], - ) - } - #[doc = "Change the Owner of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = ""] - #[doc = "Emits `OwnerChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn transfer_ownership( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "transfer_ownership", - types::TransferOwnership { id, owner }, - [ - 170u8, 94u8, 202u8, 42u8, 41u8, 156u8, 250u8, 63u8, - 113u8, 110u8, 166u8, 129u8, 90u8, 233u8, 35u8, - 87u8, 123u8, 172u8, 65u8, 108u8, 170u8, 237u8, - 252u8, 70u8, 186u8, 12u8, 58u8, 6u8, 173u8, 87u8, - 161u8, 211u8, - ], - ) - } - #[doc = "Change the Issuer, Admin and Freezer of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = ""] - #[doc = "Emits `TeamChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn set_team( - &self, - id: ::core::primitive::u32, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "set_team", - types::SetTeam { - id, - issuer, - admin, - freezer, - }, - [ - 30u8, 60u8, 182u8, 252u8, 64u8, 97u8, 6u8, 80u8, - 159u8, 204u8, 14u8, 227u8, 54u8, 20u8, 172u8, - 100u8, 77u8, 59u8, 164u8, 247u8, 122u8, 39u8, - 129u8, 106u8, 87u8, 82u8, 77u8, 165u8, 215u8, - 232u8, 159u8, 29u8, - ], - ) - } - #[doc = "Set the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Funds of sender are reserved according to the formula:"] - #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] - #[doc = "account any already reserved funds."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn set_metadata( - &self, - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "set_metadata", - types::SetMetadata { - id, - name, - symbol, - decimals, - }, - [ - 15u8, 184u8, 50u8, 46u8, 164u8, 27u8, 105u8, 186u8, - 35u8, 115u8, 194u8, 247u8, 74u8, 252u8, 139u8, - 242u8, 108u8, 221u8, 122u8, 15u8, 139u8, 74u8, - 123u8, 17u8, 192u8, 138u8, 182u8, 163u8, 77u8, 7u8, - 124u8, 18u8, - ], - ) - } - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Any deposit is freed for the asset owner."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn clear_metadata( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "clear_metadata", - types::ClearMetadata { id }, - [ - 192u8, 41u8, 71u8, 183u8, 13u8, 128u8, 244u8, - 255u8, 175u8, 36u8, 99u8, 175u8, 15u8, 129u8, - 228u8, 76u8, 107u8, 214u8, 166u8, 116u8, 244u8, - 139u8, 60u8, 31u8, 123u8, 61u8, 203u8, 59u8, 213u8, - 146u8, 116u8, 126u8, - ], - ) - } - #[doc = "Force the metadata for an asset to some value."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is left alone."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] - pub fn force_set_metadata( - &self, - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - is_frozen: ::core::primitive::bool, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "force_set_metadata", - types::ForceSetMetadata { - id, - name, - symbol, - decimals, - is_frozen, - }, - [ - 7u8, 30u8, 55u8, 233u8, 217u8, 113u8, 196u8, 21u8, - 29u8, 122u8, 168u8, 225u8, 63u8, 104u8, 57u8, 78u8, - 76u8, 145u8, 121u8, 118u8, 91u8, 149u8, 87u8, 26u8, - 26u8, 125u8, 44u8, 241u8, 143u8, 138u8, 144u8, 8u8, - ], - ) - } - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is returned."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_clear_metadata( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "force_clear_metadata", - types::ForceClearMetadata { id }, - [ - 71u8, 191u8, 101u8, 72u8, 188u8, 223u8, 215u8, - 187u8, 200u8, 206u8, 3u8, 42u8, 4u8, 62u8, 117u8, - 106u8, 26u8, 2u8, 68u8, 202u8, 162u8, 142u8, 172u8, - 123u8, 48u8, 196u8, 247u8, 89u8, 147u8, 75u8, 84u8, - 109u8, - ], - ) - } - #[doc = "Alter the attributes of a given asset."] - #[doc = ""] - #[doc = "Origin must be `ForceOrigin`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] - #[doc = "value to account for the state bloat associated with its balance storage. If set to"] - #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] - #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] - #[doc = "growth)."] - #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] - #[doc = "instructions."] - #[doc = ""] - #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_asset_status( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - min_balance: ::core::primitive::u128, - is_sufficient: ::core::primitive::bool, - is_frozen: ::core::primitive::bool, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "force_asset_status", - types::ForceAssetStatus { - id, - owner, - issuer, - admin, - freezer, - min_balance, - is_sufficient, - is_frozen, - }, - [ - 46u8, 229u8, 189u8, 83u8, 196u8, 180u8, 79u8, 77u8, - 71u8, 147u8, 77u8, 243u8, 99u8, 3u8, 205u8, 171u8, - 129u8, 25u8, 60u8, 10u8, 162u8, 50u8, 205u8, 231u8, - 184u8, 75u8, 42u8, 230u8, 48u8, 194u8, 236u8, 71u8, - ], - ) - } - #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] - #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] - #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] - #[doc = "meet the right value."] - #[doc = ""] - #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] - #[doc = "making this call."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account to delegate permission to transfer asset."] - #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] - #[doc = "already an approval in place, then this acts additively."] - #[doc = ""] - #[doc = "Emits `ApprovedTransfer` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn approve_transfer( - &self, - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "approve_transfer", - types::ApproveTransfer { - id, - delegate, - amount, - }, - [ - 85u8, 79u8, 216u8, 233u8, 163u8, 169u8, 226u8, - 111u8, 10u8, 110u8, 33u8, 239u8, 248u8, 222u8, - 84u8, 160u8, 80u8, 164u8, 29u8, 88u8, 164u8, 252u8, - 238u8, 212u8, 9u8, 230u8, 201u8, 166u8, 192u8, - 225u8, 94u8, 13u8, - ], - ) - } - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place between signer and"] - #[doc = "`delegate`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn cancel_approval( - &self, - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "cancel_approval", - types::CancelApproval { id, delegate }, - [ - 120u8, 10u8, 77u8, 128u8, 1u8, 232u8, 42u8, 2u8, - 87u8, 7u8, 217u8, 51u8, 172u8, 13u8, 136u8, 176u8, - 153u8, 128u8, 196u8, 3u8, 190u8, 139u8, 219u8, - 24u8, 35u8, 51u8, 241u8, 87u8, 67u8, 49u8, 181u8, - 203u8, - ], - ) - } - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] - #[doc = "account of the asset `id`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn force_cancel_approval( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "force_cancel_approval", - types::ForceCancelApproval { - id, - owner, - delegate, - }, - [ - 192u8, 196u8, 91u8, 219u8, 20u8, 150u8, 220u8, - 79u8, 81u8, 151u8, 104u8, 109u8, 21u8, 87u8, 158u8, - 169u8, 208u8, 4u8, 241u8, 109u8, 230u8, 166u8, - 237u8, 164u8, 90u8, 54u8, 14u8, 51u8, 84u8, 239u8, - 178u8, 202u8, - ], - ) - } - #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] - #[doc = "account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] - #[doc = "signer."] - #[doc = ""] - #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] - #[doc = "reserved by `approve_transfer` is unreserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] - #[doc = "from which the asset balance will be withdrawn."] - #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] - #[doc = "- `amount`: The amount of assets to transfer."] - #[doc = ""] - #[doc = "Emits `TransferredApproved` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - pub fn transfer_approved( - &self, - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - destination: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Assets", - "transfer_approved", - types::TransferApproved { - id, - owner, - destination, - amount, - }, - [ - 151u8, 228u8, 207u8, 182u8, 179u8, 212u8, 208u8, - 3u8, 207u8, 181u8, 193u8, 164u8, 74u8, 160u8, 81u8, - 191u8, 42u8, 227u8, 56u8, 238u8, 50u8, 75u8, 8u8, - 50u8, 131u8, 83u8, 152u8, 20u8, 141u8, 39u8, 29u8, - 205u8, - ], - ) - } - #[doc = "Create an asset account for non-provider assets."] - #[doc = ""] - #[doc = "A deposit will be taken from the signer account."] - #[doc = ""] - #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] - #[doc = " to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = ""] - #[doc = "Emits `Touched` event when successful."] - pub fn touch( - &self, - id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "touch", - types::Touch { id }, - [ - 114u8, 149u8, 179u8, 168u8, 115u8, 117u8, 32u8, - 50u8, 39u8, 77u8, 148u8, 238u8, 123u8, 96u8, 193u8, - 174u8, 113u8, 141u8, 34u8, 228u8, 228u8, 214u8, - 71u8, 111u8, 55u8, 126u8, 103u8, 181u8, 133u8, - 77u8, 116u8, 105u8, - ], - ) - } - #[doc = "Return the deposit (if any) of an asset account."] - #[doc = ""] - #[doc = "The origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] - #[doc = ""] - #[doc = "Emits `Refunded` event when successful."] - pub fn refund( - &self, - id: ::core::primitive::u32, - allow_burn: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Assets", - "refund", - types::Refund { id, allow_burn }, - [ - 20u8, 139u8, 248u8, 67u8, 123u8, 221u8, 7u8, 106u8, - 239u8, 156u8, 68u8, 59u8, 81u8, 184u8, 47u8, 188u8, - 195u8, 227u8, 75u8, 168u8, 126u8, 176u8, 91u8, - 187u8, 30u8, 34u8, 24u8, 223u8, 108u8, 101u8, 88u8, - 83u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_assets::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some asset class was created."] - pub struct Created { - pub asset_id: ::core::primitive::u32, - pub creator: ::subxt::utils::AccountId32, - pub owner: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some assets were issued."] - pub struct Issued { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub total_supply: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Issued { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Issued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some assets were transferred."] - pub struct Transferred { - pub asset_id: ::core::primitive::u32, - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transferred { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Transferred"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some assets were destroyed."] - pub struct Burned { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Burned { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Burned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The management team changed."] - pub struct TeamChanged { - pub asset_id: ::core::primitive::u32, - pub issuer: ::subxt::utils::AccountId32, - pub admin: ::subxt::utils::AccountId32, - pub freezer: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TeamChanged { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "TeamChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The owner changed."] - pub struct OwnerChanged { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for OwnerChanged { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "OwnerChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some account `who` was frozen."] - pub struct Frozen { - pub asset_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Frozen { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Frozen"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some account `who` was thawed."] - pub struct Thawed { - pub asset_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Thawed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Thawed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some asset `asset_id` was frozen."] - pub struct AssetFrozen { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AssetFrozen { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AssetFrozen"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some asset `asset_id` was thawed."] - pub struct AssetThawed { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AssetThawed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AssetThawed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Accounts were destroyed for given asset."] - pub struct AccountsDestroyed { - pub asset_id: ::core::primitive::u32, - pub accounts_destroyed: ::core::primitive::u32, - pub accounts_remaining: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AccountsDestroyed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AccountsDestroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Approvals were destroyed for given asset."] - pub struct ApprovalsDestroyed { - pub asset_id: ::core::primitive::u32, - pub approvals_destroyed: ::core::primitive::u32, - pub approvals_remaining: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ApprovalsDestroyed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ApprovalsDestroyed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An asset class is in the process of being destroyed."] - pub struct DestructionStarted { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for DestructionStarted { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "DestructionStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An asset class was destroyed."] - pub struct Destroyed { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some asset class was force-created."] - pub struct ForceCreated { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ForceCreated { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ForceCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New metadata has been set for an asset."] - pub struct MetadataSet { - pub asset_id: ::core::primitive::u32, - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub symbol: ::std::vec::Vec<::core::primitive::u8>, - pub decimals: ::core::primitive::u8, - pub is_frozen: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata has been cleared for an asset."] - pub struct MetadataCleared { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "MetadataCleared"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "(Additional) funds have been approved for transfer to a destination account."] - pub struct ApprovedTransfer { - pub asset_id: ::core::primitive::u32, - pub source: ::subxt::utils::AccountId32, - pub delegate: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for ApprovedTransfer { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ApprovedTransfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An approval for account `delegate` was cancelled by `owner`."] - pub struct ApprovalCancelled { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub delegate: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ApprovalCancelled { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "ApprovalCancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] - #[doc = "the approved `delegate`."] - pub struct TransferredApproved { - pub asset_id: ::core::primitive::u32, - pub owner: ::subxt::utils::AccountId32, - pub delegate: ::subxt::utils::AccountId32, - pub destination: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TransferredApproved { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "TransferredApproved"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An asset has had its attributes changed by the `Force` origin."] - pub struct AssetStatusChanged { - pub asset_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for AssetStatusChanged { - const PALLET: &'static str = "Assets"; - const EVENT: &'static str = "AssetStatusChanged"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of an asset."] - pub fn asset( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_assets::types::AssetDetails< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Asset" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [251u8 , 148u8 , 82u8 , 150u8 , 66u8 , 26u8 , 46u8 , 186u8 , 60u8 , 59u8 , 239u8 , 190u8 , 102u8 , 156u8 , 113u8 , 175u8 , 1u8 , 117u8 , 147u8 , 236u8 , 114u8 , 88u8 , 49u8 , 210u8 , 165u8 , 162u8 , 201u8 , 230u8 , 147u8 , 141u8 , 174u8 , 221u8 ,]) - } - #[doc = " Details of an asset."] - pub fn asset_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_assets::types::AssetDetails< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Assets", - "Asset", - Vec::new(), - [ - 251u8, 148u8, 82u8, 150u8, 66u8, 26u8, 46u8, 186u8, - 60u8, 59u8, 239u8, 190u8, 102u8, 156u8, 113u8, - 175u8, 1u8, 117u8, 147u8, 236u8, 114u8, 88u8, 49u8, - 210u8, 165u8, 162u8, 201u8, 230u8, 147u8, 141u8, - 174u8, 221u8, - ], - ) - } - #[doc = " The holdings of a specific account for a specific asset."] - pub fn account( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_assets::types::AssetAccount< - ::core::primitive::u128, - ::core::primitive::u128, - (), - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [109u8 , 245u8 , 93u8 , 133u8 , 206u8 , 68u8 , 94u8 , 233u8 , 29u8 , 113u8 , 245u8 , 201u8 , 241u8 , 2u8 , 200u8 , 179u8 , 37u8 , 199u8 , 128u8 , 243u8 , 49u8 , 50u8 , 122u8 , 139u8 , 135u8 , 48u8 , 201u8 , 109u8 , 195u8 , 38u8 , 205u8 , 32u8 ,]) - } - #[doc = " The holdings of a specific account for a specific asset."] - pub fn account_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_assets::types::AssetAccount< - ::core::primitive::u128, - ::core::primitive::u128, - (), - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Assets", - "Account", - Vec::new(), - [ - 109u8, 245u8, 93u8, 133u8, 206u8, 68u8, 94u8, - 233u8, 29u8, 113u8, 245u8, 201u8, 241u8, 2u8, - 200u8, 179u8, 37u8, 199u8, 128u8, 243u8, 49u8, - 50u8, 122u8, 139u8, 135u8, 48u8, 201u8, 109u8, - 195u8, 38u8, 205u8, 32u8, - ], - ) - } - #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] - #[doc = " is the amount of `T::Currency` reserved for storing this."] - #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] - pub fn approvals( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _2: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_assets::types::Approval< - ::core::primitive::u128, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Approvals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_2 . borrow ())] , [210u8 , 147u8 , 203u8 , 49u8 , 232u8 , 215u8 , 116u8 , 154u8 , 43u8 , 154u8 , 69u8 , 159u8 , 241u8 , 28u8 , 238u8 , 101u8 , 108u8 , 162u8 , 242u8 , 121u8 , 138u8 , 164u8 , 217u8 , 243u8 , 72u8 , 173u8 , 75u8 , 109u8 , 194u8 , 9u8 , 196u8 , 163u8 ,]) - } - #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] - #[doc = " is the amount of `T::Currency` reserved for storing this."] - #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] - pub fn approvals_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_assets::types::Approval< - ::core::primitive::u128, - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Assets", - "Approvals", - Vec::new(), - [ - 210u8, 147u8, 203u8, 49u8, 232u8, 215u8, 116u8, - 154u8, 43u8, 154u8, 69u8, 159u8, 241u8, 28u8, - 238u8, 101u8, 108u8, 162u8, 242u8, 121u8, 138u8, - 164u8, 217u8, 243u8, 72u8, 173u8, 75u8, 109u8, - 194u8, 9u8, 196u8, 163u8, - ], - ) - } - #[doc = " Metadata of an asset."] pub fn metadata (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_assets :: types :: AssetMetadata < :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Assets" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 115u8 , 155u8 , 115u8 , 136u8 , 108u8 , 82u8 , 93u8 , 65u8 , 130u8 , 143u8 , 228u8 , 170u8 , 234u8 , 182u8 , 170u8 , 229u8 , 217u8 , 168u8 , 71u8 , 81u8 , 80u8 , 16u8 , 112u8 , 209u8 , 82u8 , 8u8 , 165u8 , 80u8 , 137u8 , 58u8 , 170u8 ,]) - } - #[doc = " Metadata of an asset."] pub fn metadata_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_assets :: types :: AssetMetadata < :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Assets", - "Metadata", - Vec::new(), - [ - 80u8, 115u8, 155u8, 115u8, 136u8, 108u8, 82u8, - 93u8, 65u8, 130u8, 143u8, 228u8, 170u8, 234u8, - 182u8, 170u8, 229u8, 217u8, 168u8, 71u8, 81u8, - 80u8, 16u8, 112u8, 209u8, 82u8, 8u8, 165u8, 80u8, - 137u8, 58u8, 170u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call."] - #[doc = ""] - #[doc = " Must be configured to result in a weight that makes each call fit in a block."] - pub fn remove_items_limit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Assets", - "RemoveItemsLimit", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The basic amount of funds that must be reserved for an asset."] - pub fn asset_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Assets", - "AssetDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of funds that must be reserved for a non-provider asset account to be"] - #[doc = " maintained."] - pub fn asset_account_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Assets", - "AssetAccountDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The basic amount of funds that must be reserved when adding metadata to your asset."] - pub fn metadata_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Assets", - "MetadataDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The additional funds that must be reserved for the number of bytes you store in your"] - #[doc = " metadata."] - pub fn metadata_deposit_per_byte( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Assets", - "MetadataDepositPerByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The amount of funds that must be reserved when creating a new approval."] - pub fn approval_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Assets", - "ApprovalDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum length of a name or symbol stored on-chain."] - pub fn string_limit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Assets", - "StringLimit", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Sudo { - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Sudo { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo_unchecked_weight"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetKey { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetKey { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "set_key"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SudoAs { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SudoAs { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo_as"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - pub fn sudo( - &self, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "sudo", - types::Sudo { - call: ::std::boxed::Box::new(call), - }, - [ - 191u8, 25u8, 177u8, 200u8, 243u8, 62u8, 131u8, - 53u8, 236u8, 119u8, 159u8, 239u8, 197u8, 206u8, - 102u8, 210u8, 252u8, 47u8, 244u8, 207u8, 22u8, - 171u8, 216u8, 254u8, 149u8, 170u8, 236u8, 32u8, - 101u8, 159u8, 223u8, 209u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] - pub fn sudo_unchecked_weight( - &self, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Sudo", - "sudo_unchecked_weight", - types::SudoUncheckedWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 233u8, 247u8, 77u8, 35u8, 94u8, 216u8, 233u8, - 151u8, 105u8, 183u8, 43u8, 116u8, 83u8, 195u8, - 255u8, 222u8, 168u8, 93u8, 34u8, 165u8, 53u8, - 203u8, 99u8, 20u8, 178u8, 231u8, 159u8, 174u8, - 247u8, 67u8, 184u8, 184u8, - ], - ) - } - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] - pub fn set_key( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "set_key", - types::SetKey { new }, - [ - 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, - 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, - 163u8, 41u8, 138u8, 7u8, 81u8, 98u8, 230u8, 182u8, - 23u8, 222u8, 240u8, 117u8, 173u8, 232u8, 192u8, - 55u8, 92u8, 208u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - pub fn sudo_as( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: runtime_types::webb_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "sudo_as", - types::SudoAs { - who, - call: ::std::boxed::Box::new(call), - }, - [ - 97u8, 173u8, 153u8, 77u8, 35u8, 5u8, 128u8, 122u8, - 68u8, 105u8, 124u8, 92u8, 134u8, 157u8, 21u8, 6u8, - 119u8, 196u8, 57u8, 165u8, 188u8, 110u8, 81u8, - 16u8, 129u8, 42u8, 229u8, 118u8, 33u8, 143u8, - 144u8, 99u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_sudo::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct Sudid { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Sudid { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "Sudid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - pub struct KeyChanged { - pub old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "KeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct SudoAsDone { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for SudoAsDone { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "SudoAsDone"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The `AccountId` of the sudo key."] - pub fn key( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Sudo", - "Key", - vec![], - [ - 244u8, 73u8, 188u8, 136u8, 218u8, 163u8, 68u8, - 179u8, 122u8, 173u8, 34u8, 108u8, 137u8, 28u8, - 182u8, 16u8, 196u8, 92u8, 138u8, 34u8, 102u8, 80u8, - 199u8, 88u8, 107u8, 207u8, 36u8, 22u8, 168u8, - 167u8, 20u8, 142u8, - ], - ) - } - } - } - } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_im_online::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_im_online::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u64 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } - impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const CALL: &'static str = "heartbeat"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] - pub fn heartbeat( - &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat< - ::core::primitive::u64, - >, - signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ImOnline", - "heartbeat", - types::Heartbeat { - heartbeat, - signature, - }, - [ - 107u8, 222u8, 114u8, 147u8, 99u8, 249u8, 235u8, - 13u8, 39u8, 31u8, 163u8, 178u8, 109u8, 127u8, - 249u8, 33u8, 45u8, 253u8, 184u8, 171u8, 213u8, - 120u8, 249u8, 231u8, 128u8, 254u8, 63u8, 123u8, - 192u8, 175u8, 242u8, 171u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>, - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] - pub fn heartbeat_after( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "HeartbeatAfter", - vec![], - [ - 129u8, 139u8, 197u8, 234u8, 125u8, 140u8, 229u8, - 91u8, 216u8, 174u8, 65u8, 69u8, 79u8, 76u8, 0u8, - 46u8, 38u8, 2u8, 229u8, 237u8, 36u8, 195u8, 24u8, - 94u8, 27u8, 36u8, 159u8, 24u8, 166u8, 105u8, 184u8, - 148u8, - ], - ) - } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "ImOnline", - "Keys", - vec![], - [ - 6u8, 198u8, 221u8, 58u8, 14u8, 166u8, 245u8, 103u8, - 191u8, 20u8, 69u8, 233u8, 147u8, 245u8, 24u8, 64u8, - 207u8, 180u8, 39u8, 208u8, 252u8, 236u8, 247u8, - 112u8, 187u8, 97u8, 70u8, 11u8, 248u8, 148u8, - 208u8, 106u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - Vec::new(), - [ - 233u8, 128u8, 140u8, 233u8, 55u8, 146u8, 172u8, - 54u8, 54u8, 57u8, 141u8, 106u8, 168u8, 59u8, 147u8, - 253u8, 119u8, 48u8, 50u8, 251u8, 242u8, 109u8, - 251u8, 2u8, 136u8, 80u8, 146u8, 121u8, 180u8, - 219u8, 245u8, 37u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - Vec::new(), - [ - 50u8, 4u8, 242u8, 240u8, 247u8, 184u8, 114u8, - 245u8, 233u8, 170u8, 24u8, 197u8, 18u8, 245u8, 8u8, - 28u8, 33u8, 115u8, 166u8, 245u8, 221u8, 223u8, - 56u8, 144u8, 33u8, 139u8, 10u8, 227u8, 228u8, - 223u8, 103u8, 151u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - } - } - } - pub mod authority_discovery { - use super::root_mod; - use super::runtime_types; - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - #[doc = "Events type."] - pub type Event = runtime_types::pallet_offences::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] - #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] - #[doc = "\\[kind, timeslot\\]."] - pub struct Offence { - pub kind: [::core::primitive::u8; 16usize], - pub timeslot: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::utils::AccountId32, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ), - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Offences" , "Reports" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [144u8 , 30u8 , 66u8 , 199u8 , 102u8 , 236u8 , 175u8 , 201u8 , 206u8 , 170u8 , 55u8 , 162u8 , 137u8 , 120u8 , 220u8 , 213u8 , 57u8 , 252u8 , 0u8 , 88u8 , 210u8 , 68u8 , 5u8 , 25u8 , 77u8 , 114u8 , 204u8 , 23u8 , 190u8 , 32u8 , 211u8 , 30u8 ,]) - } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::utils::AccountId32, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ), - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "Reports", - Vec::new(), - [ - 144u8, 30u8, 66u8, 199u8, 102u8, 236u8, 175u8, - 201u8, 206u8, 170u8, 55u8, 162u8, 137u8, 120u8, - 220u8, 213u8, 57u8, 252u8, 0u8, 88u8, 210u8, 68u8, - 5u8, 25u8, 77u8, 114u8, 204u8, 23u8, 190u8, 32u8, - 211u8, 30u8, - ], - ) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index( - &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::H256>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Offences" , "ConcurrentReportsIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [106u8 , 21u8 , 104u8 , 5u8 , 4u8 , 66u8 , 28u8 , 70u8 , 161u8 , 195u8 , 238u8 , 28u8 , 69u8 , 241u8 , 221u8 , 113u8 , 140u8 , 103u8 , 181u8 , 143u8 , 60u8 , 177u8 , 13u8 , 129u8 , 224u8 , 149u8 , 77u8 , 32u8 , 75u8 , 74u8 , 101u8 , 65u8 ,]) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::H256>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", - Vec::new(), - [ - 106u8, 21u8, 104u8, 5u8, 4u8, 66u8, 28u8, 70u8, - 161u8, 195u8, 238u8, 28u8, 69u8, 241u8, 221u8, - 113u8, 140u8, 103u8, 181u8, 143u8, 60u8, 177u8, - 13u8, 129u8, 224u8, 149u8, 77u8, 32u8, 75u8, 74u8, - 101u8, 65u8, - ], - ) - } - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] - pub fn reports_by_kind_index( - &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Offences" , "ReportsByKindIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [162u8 , 66u8 , 131u8 , 48u8 , 250u8 , 237u8 , 179u8 , 214u8 , 36u8 , 137u8 , 226u8 , 136u8 , 120u8 , 61u8 , 215u8 , 43u8 , 164u8 , 50u8 , 91u8 , 164u8 , 20u8 , 96u8 , 189u8 , 100u8 , 242u8 , 106u8 , 21u8 , 136u8 , 98u8 , 215u8 , 180u8 , 145u8 ,]) - } - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] - pub fn reports_by_kind_index_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ReportsByKindIndex", - Vec::new(), - [ - 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, - 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, - 215u8, 43u8, 164u8, 50u8, 91u8, 164u8, 20u8, 96u8, - 189u8, 100u8, 242u8, 106u8, 21u8, 136u8, 98u8, - 215u8, 180u8, 145u8, - ], - ) - } - } - } - } - pub mod historical { - use super::root_mod; - use super::runtime_types; - } - pub mod bounties { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_bounties::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProposeBounty { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "propose_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ApproveBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "approve_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProposeCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "propose_curator"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UnassignCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "unassign_curator"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AcceptCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "accept_curator"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AwardBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for AwardBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "award_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClaimBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "claim_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CloseBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CloseBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "close_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExtendBountyExpiry { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::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: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Bounties", - "propose_bounty", - types::ProposeBounty { value, description }, - [ - 99u8, 160u8, 94u8, 74u8, 105u8, 161u8, 123u8, - 239u8, 241u8, 117u8, 97u8, 99u8, 84u8, 101u8, 87u8, - 3u8, 88u8, 175u8, 75u8, 59u8, 114u8, 87u8, 18u8, - 113u8, 126u8, 26u8, 42u8, 104u8, 201u8, 128u8, - 102u8, 219u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn approve_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Bounties", - "approve_bounty", - types::ApproveBounty { bounty_id }, - [ - 82u8, 228u8, 232u8, 103u8, 198u8, 173u8, 190u8, - 148u8, 159u8, 86u8, 48u8, 4u8, 32u8, 169u8, 1u8, - 129u8, 96u8, 145u8, 235u8, 68u8, 48u8, 34u8, 5u8, - 1u8, 76u8, 26u8, 100u8, 228u8, 92u8, 198u8, 183u8, - 173u8, - ], - ) - } - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn propose_curator( - &self, - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Bounties", - "propose_curator", - types::ProposeCurator { - bounty_id, - curator, - fee, - }, - [ - 85u8, 186u8, 206u8, 137u8, 98u8, 87u8, 202u8, 71u8, - 89u8, 241u8, 56u8, 212u8, 89u8, 215u8, 65u8, 97u8, - 202u8, 139u8, 78u8, 66u8, 92u8, 177u8, 163u8, - 111u8, 212u8, 244u8, 41u8, 153u8, 104u8, 129u8, - 112u8, 237u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn unassign_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Bounties", - "unassign_curator", - types::UnassignCurator { bounty_id }, - [ - 218u8, 241u8, 247u8, 89u8, 95u8, 120u8, 93u8, 18u8, - 85u8, 114u8, 158u8, 254u8, 68u8, 77u8, 230u8, - 186u8, 230u8, 201u8, 63u8, 223u8, 28u8, 173u8, - 244u8, 82u8, 113u8, 177u8, 99u8, 27u8, 207u8, - 247u8, 207u8, 213u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn accept_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Bounties", - "accept_curator", - types::AcceptCurator { bounty_id }, - [ - 106u8, 96u8, 22u8, 67u8, 52u8, 109u8, 180u8, 225u8, - 122u8, 253u8, 209u8, 214u8, 132u8, 131u8, 247u8, - 131u8, 162u8, 51u8, 144u8, 30u8, 12u8, 126u8, 50u8, - 152u8, 229u8, 119u8, 54u8, 116u8, 112u8, 235u8, - 34u8, 166u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn award_bounty( - &self, - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "award_bounty", - types::AwardBounty { - bounty_id, - beneficiary, - }, - [ - 7u8, 205u8, 73u8, 45u8, 57u8, 8u8, 24u8, 135u8, - 89u8, 157u8, 35u8, 176u8, 224u8, 106u8, 167u8, - 232u8, 230u8, 153u8, 239u8, 45u8, 210u8, 61u8, - 17u8, 106u8, 220u8, 131u8, 105u8, 136u8, 232u8, - 194u8, 243u8, 48u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn claim_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "claim_bounty", - types::ClaimBounty { bounty_id }, - [ - 102u8, 95u8, 8u8, 89u8, 4u8, 126u8, 189u8, 28u8, - 241u8, 16u8, 125u8, 218u8, 42u8, 92u8, 177u8, 91u8, - 8u8, 235u8, 33u8, 48u8, 64u8, 115u8, 177u8, 95u8, - 242u8, 97u8, 181u8, 50u8, 68u8, 37u8, 59u8, 85u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn close_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "close_bounty", - types::CloseBounty { bounty_id }, - [ - 64u8, 113u8, 151u8, 228u8, 90u8, 55u8, 251u8, 63u8, - 27u8, 211u8, 119u8, 229u8, 137u8, 137u8, 183u8, - 240u8, 241u8, 146u8, 69u8, 169u8, 124u8, 220u8, - 236u8, 111u8, 98u8, 188u8, 100u8, 52u8, 127u8, - 245u8, 244u8, 92u8, - ], - ) - } - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - pub fn extend_bounty_expiry( - &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Bounties", - "extend_bounty_expiry", - types::ExtendBountyExpiry { bounty_id, remark }, - [ - 97u8, 69u8, 157u8, 39u8, 59u8, 72u8, 79u8, 88u8, - 104u8, 119u8, 91u8, 26u8, 73u8, 216u8, 174u8, 95u8, - 254u8, 214u8, 63u8, 138u8, 100u8, 112u8, 185u8, - 81u8, 159u8, 247u8, 221u8, 60u8, 87u8, 40u8, 80u8, - 202u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bounties::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New bounty proposal."] - pub struct BountyProposed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyProposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty proposal was rejected; funds were slashed."] - pub struct BountyRejected { - pub index: ::core::primitive::u32, - pub bond: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BountyRejected { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyRejected"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty proposal is funded and became active."] - pub struct BountyBecameActive { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyBecameActive { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyBecameActive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty is awarded to a beneficiary."] - pub struct BountyAwarded { - pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for BountyAwarded { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyAwarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty is claimed by beneficiary."] - pub struct BountyClaimed { - pub index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for BountyClaimed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyClaimed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty is cancelled."] - pub struct BountyCanceled { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyCanceled { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyCanceled"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty expiry is extended."] - pub struct BountyExtended { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BountyExtended { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyExtended"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of bounty proposals that have been made."] - pub fn bounty_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyCount", - vec![], - [ - 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, - 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, - 178u8, 202u8, 193u8, 41u8, 83u8, 115u8, 253u8, - 182u8, 123u8, 92u8, 138u8, 12u8, 31u8, 31u8, 213u8, - 23u8, 118u8, - ], - ) - } - #[doc = " Bounties that have been made."] - pub fn bounties( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bounties::Bounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Bounties" , "Bounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 32u8 , 63u8 , 115u8 , 137u8 , 66u8 , 138u8 , 21u8 , 35u8 , 169u8 , 4u8 , 0u8 , 35u8 , 110u8 , 154u8 , 43u8 , 155u8 , 63u8 , 61u8 , 194u8 , 149u8 , 151u8 , 83u8 , 35u8 , 207u8 , 147u8 , 80u8 , 49u8 , 111u8 , 197u8 , 172u8 , 188u8 ,]) - } - #[doc = " Bounties that have been made."] - pub fn bounties_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bounties::Bounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u64, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Bounties", - "Bounties", - Vec::new(), - [ - 252u8, 32u8, 63u8, 115u8, 137u8, 66u8, 138u8, 21u8, - 35u8, 169u8, 4u8, 0u8, 35u8, 110u8, 154u8, 43u8, - 155u8, 63u8, 61u8, 194u8, 149u8, 151u8, 83u8, 35u8, - 207u8, 147u8, 80u8, 49u8, 111u8, 197u8, 172u8, - 188u8, - ], - ) - } - #[doc = " The description of each bounty."] - pub fn bounty_descriptions( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Bounties" , "BountyDescriptions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 0u8 , 9u8 , 225u8 , 13u8 , 135u8 , 7u8 , 121u8 , 154u8 , 155u8 , 116u8 , 83u8 , 160u8 , 37u8 , 72u8 , 11u8 , 72u8 , 0u8 , 248u8 , 73u8 , 158u8 , 84u8 , 125u8 , 221u8 , 176u8 , 231u8 , 100u8 , 239u8 , 111u8 , 22u8 , 29u8 , 13u8 ,]) - } - #[doc = " The description of each bounty."] - pub fn bounty_descriptions_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyDescriptions", - Vec::new(), - [ - 252u8, 0u8, 9u8, 225u8, 13u8, 135u8, 7u8, 121u8, - 154u8, 155u8, 116u8, 83u8, 160u8, 37u8, 72u8, 11u8, - 72u8, 0u8, 248u8, 73u8, 158u8, 84u8, 125u8, 221u8, - 176u8, 231u8, 100u8, 239u8, 111u8, 22u8, 29u8, - 13u8, - ], - ) - } - #[doc = " Bounty indices that have been approved but not yet funded."] - pub fn bounty_approvals( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyApprovals", - vec![], - [ - 64u8, 93u8, 54u8, 94u8, 122u8, 9u8, 246u8, 86u8, - 234u8, 30u8, 125u8, 132u8, 49u8, 128u8, 1u8, 219u8, - 241u8, 13u8, 217u8, 186u8, 48u8, 21u8, 5u8, 227u8, - 71u8, 157u8, 128u8, 226u8, 214u8, 49u8, 249u8, - 183u8, - ], - ) - } - } - } - 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::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyDepositPayoutDelay", - [ - 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 = " Bounty duration in blocks."] - pub fn bounty_update_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyUpdatePeriod", - [ - 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 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::constants::Address< - runtime_types::sp_arithmetic::per_things::Permill, - > { - ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMultiplier", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_max( - &self, - ) -> ::subxt::constants::Address< - ::core::option::Option<::core::primitive::u128>, - > { - ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMax", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_min( - &self, - ) -> ::subxt::constants::Address< - ::core::option::Option<::core::primitive::u128>, - > { - ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMin", - [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, - 120u8, 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, - 193u8, 120u8, 198u8, 154u8, 237u8, 134u8, 204u8, - 102u8, 247u8, 52u8, 103u8, 231u8, 43u8, 243u8, - 122u8, 60u8, 216u8, - ], - ) - } - #[doc = " Minimum value for a bounty."] - pub fn bounty_value_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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 = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_child_bounties::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_child_bounties::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "add_child_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "propose_curator"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AcceptCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "accept_curator"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UnassignCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "unassign_curator"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "award_child_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "claim_child_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "close_child_bounty"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "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: ::core::primitive::u32, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "add_child_bounty", - types::AddChildBounty { - parent_bounty_id, - value, - description, - }, - [ - 210u8, 156u8, 242u8, 121u8, 28u8, 214u8, 212u8, - 203u8, 46u8, 45u8, 110u8, 25u8, 33u8, 138u8, 136u8, - 71u8, 23u8, 102u8, 203u8, 122u8, 77u8, 162u8, - 112u8, 133u8, 43u8, 73u8, 201u8, 176u8, 102u8, - 68u8, 188u8, 8u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "propose_curator", - types::ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }, - [ - 147u8, 32u8, 161u8, 72u8, 92u8, 246u8, 250u8, - 138u8, 98u8, 84u8, 229u8, 228u8, 217u8, 128u8, - 168u8, 20u8, 73u8, 113u8, 55u8, 207u8, 117u8, 52u8, - 9u8, 139u8, 223u8, 149u8, 48u8, 1u8, 8u8, 82u8, - 133u8, 112u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "accept_curator", - types::AcceptCurator { - parent_bounty_id, - child_bounty_id, - }, - [ - 112u8, 175u8, 238u8, 54u8, 132u8, 20u8, 206u8, - 59u8, 220u8, 228u8, 207u8, 222u8, 132u8, 240u8, - 188u8, 0u8, 210u8, 225u8, 234u8, 142u8, 232u8, - 53u8, 64u8, 89u8, 220u8, 29u8, 28u8, 123u8, 125u8, - 207u8, 10u8, 52u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "unassign_curator", - types::UnassignCurator { - parent_bounty_id, - child_bounty_id, - }, - [ - 228u8, 189u8, 46u8, 75u8, 121u8, 161u8, 150u8, - 87u8, 207u8, 86u8, 192u8, 50u8, 52u8, 61u8, 49u8, - 88u8, 178u8, 182u8, 89u8, 72u8, 203u8, 45u8, 41u8, - 26u8, 149u8, 114u8, 154u8, 169u8, 118u8, 128u8, - 13u8, 211u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "award_child_bounty", - types::AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }, - [ - 214u8, 25u8, 53u8, 19u8, 146u8, 11u8, 223u8, 173u8, - 22u8, 235u8, 27u8, 57u8, 90u8, 171u8, 161u8, 45u8, - 102u8, 37u8, 171u8, 110u8, 215u8, 151u8, 46u8, - 136u8, 93u8, 7u8, 254u8, 112u8, 47u8, 42u8, 144u8, - 140u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "claim_child_bounty", - types::ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 134u8, 243u8, 151u8, 228u8, 38u8, 174u8, 96u8, - 140u8, 104u8, 124u8, 166u8, 206u8, 126u8, 211u8, - 17u8, 100u8, 172u8, 5u8, 234u8, 171u8, 125u8, 2u8, - 191u8, 163u8, 72u8, 29u8, 163u8, 107u8, 65u8, 92u8, - 41u8, 45u8, - ], - ) - } - #[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: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "close_child_bounty", - types::CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 40u8, 0u8, 235u8, 75u8, 36u8, 196u8, 29u8, 26u8, - 30u8, 172u8, 240u8, 44u8, 129u8, 243u8, 55u8, - 211u8, 96u8, 159u8, 72u8, 96u8, 142u8, 68u8, 41u8, - 238u8, 157u8, 167u8, 90u8, 141u8, 213u8, 249u8, - 222u8, 22u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_child_bounties::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is added."] - pub struct Added { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Added { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Added"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is awarded to a beneficiary."] - pub struct Awarded { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is claimed by beneficiary."] - pub struct Claimed { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is cancelled."] - pub struct Canceled { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of total child bounties."] - pub fn child_bounty_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyCount", - vec![], - [ - 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, - 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, - 117u8, 160u8, 214u8, 167u8, 7u8, 109u8, 143u8, - 158u8, 1u8, 200u8, 205u8, 17u8, 93u8, 89u8, 26u8, - 30u8, 95u8, - ], - ) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ParentChildBounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [127u8 , 161u8 , 181u8 , 79u8 , 235u8 , 196u8 , 252u8 , 162u8 , 39u8 , 15u8 , 251u8 , 49u8 , 125u8 , 80u8 , 101u8 , 24u8 , 234u8 , 88u8 , 212u8 , 126u8 , 63u8 , 63u8 , 19u8 , 75u8 , 137u8 , 125u8 , 38u8 , 250u8 , 77u8 , 49u8 , 76u8 , 188u8 ,]) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", - Vec::new(), - [ - 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, - 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, - 24u8, 234u8, 88u8, 212u8, 126u8, 63u8, 63u8, 19u8, - 75u8, 137u8, 125u8, 38u8, 250u8, 77u8, 49u8, 76u8, - 188u8, - ], - ) - } - #[doc = " Child bounties that have been added."] - pub fn child_bounties( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u64, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildBounties" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [99u8 , 216u8 , 128u8 , 63u8 , 135u8 , 176u8 , 227u8 , 200u8 , 21u8 , 159u8 , 149u8 , 70u8 , 203u8 , 203u8 , 115u8 , 26u8 , 1u8 , 104u8 , 239u8 , 89u8 , 204u8 , 40u8 , 87u8 , 147u8 , 58u8 , 223u8 , 89u8 , 187u8 , 125u8 , 237u8 , 104u8 , 197u8 ,]) - } - #[doc = " Child bounties that have been added."] - pub fn child_bounties_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u64, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", - Vec::new(), - [ - 99u8, 216u8, 128u8, 63u8, 135u8, 176u8, 227u8, - 200u8, 21u8, 159u8, 149u8, 70u8, 203u8, 203u8, - 115u8, 26u8, 1u8, 104u8, 239u8, 89u8, 204u8, 40u8, - 87u8, 147u8, 58u8, 223u8, 89u8, 187u8, 125u8, - 237u8, 104u8, 197u8, - ], - ) - } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildBountyDescriptions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [193u8 , 200u8 , 40u8 , 30u8 , 14u8 , 71u8 , 90u8 , 42u8 , 58u8 , 253u8 , 225u8 , 158u8 , 172u8 , 10u8 , 45u8 , 238u8 , 36u8 , 144u8 , 184u8 , 153u8 , 11u8 , 157u8 , 125u8 , 220u8 , 175u8 , 31u8 , 28u8 , 93u8 , 207u8 , 212u8 , 141u8 , 74u8 ,]) - } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyDescriptions", - Vec::new(), - [ - 193u8, 200u8, 40u8, 30u8, 14u8, 71u8, 90u8, 42u8, - 58u8, 253u8, 225u8, 158u8, 172u8, 10u8, 45u8, - 238u8, 36u8, 144u8, 184u8, 153u8, 11u8, 157u8, - 125u8, 220u8, 175u8, 31u8, 28u8, 93u8, 207u8, - 212u8, 141u8, 74u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("ChildBounties" , "ChildrenCuratorFees" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [174u8 , 128u8 , 86u8 , 179u8 , 133u8 , 76u8 , 98u8 , 169u8 , 234u8 , 166u8 , 249u8 , 214u8 , 172u8 , 171u8 , 8u8 , 161u8 , 105u8 , 69u8 , 148u8 , 151u8 , 35u8 , 174u8 , 118u8 , 139u8 , 101u8 , 56u8 , 85u8 , 211u8 , 121u8 , 168u8 , 0u8 , 216u8 ,]) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", - Vec::new(), - [ - 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, - 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, - 8u8, 161u8, 105u8, 69u8, 148u8, 151u8, 35u8, 174u8, - 118u8, 139u8, 101u8, 56u8, 85u8, 211u8, 121u8, - 168u8, 0u8, 216u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of child bounties that can be added to a parent bounty."] - pub fn max_active_child_bounty_count( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ChildBounties", - "MaxActiveChildBountyCount", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Minimum value for a child-bounty."] - pub fn child_bounty_value_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ChildBounties", - "ChildBountyValueMinimum", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - } - } - } - pub mod bags_list { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_bags_list::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_bags_list::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Rebag { - const PALLET: &'static str = "BagsList"; - const CALL: &'static str = "rebag"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { - const PALLET: &'static str = "BagsList"; - const CALL: &'static str = "put_in_front_of"; - } - } - 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "BagsList", - "rebag", - types::Rebag { dislocated }, - [ - 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, - 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, - 116u8, 237u8, 55u8, 151u8, 71u8, 119u8, 42u8, 48u8, - 10u8, 66u8, 167u8, 208u8, 184u8, 228u8, 146u8, - 181u8, 84u8, 70u8, - ], - ) - } - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "BagsList", - "put_in_front_of", - types::PutInFrontOf { lighter }, - [ - 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, - 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, - 148u8, 76u8, 246u8, 71u8, 246u8, 205u8, 82u8, 32u8, - 186u8, 33u8, 5u8, 183u8, 127u8, 153u8, 232u8, 80u8, - 164u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bags_list::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Moved an account from one bag to another."] - pub struct Rebagged { - pub who: ::subxt::utils::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Rebagged { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "Rebagged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Updated the score of some account to the given amount."] - pub struct ScoreUpdated { - pub who: ::subxt::utils::AccountId32, - pub new_score: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ScoreUpdated { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "ScoreUpdated"; - } - } - pub mod storage { - use super::runtime_types; - 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( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) - } - #[doc = " A single node, within some bag."] - #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] - pub fn list_nodes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "ListNodes", - Vec::new(), - [ - 176u8, 186u8, 93u8, 51u8, 100u8, 184u8, 240u8, - 29u8, 70u8, 3u8, 117u8, 47u8, 23u8, 66u8, 231u8, - 234u8, 53u8, 8u8, 234u8, 175u8, 181u8, 8u8, 161u8, - 154u8, 48u8, 178u8, 147u8, 227u8, 122u8, 115u8, - 57u8, 97u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_list_nodes( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "CounterForListNodes", - vec![], - [ - 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, - 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, - 210u8, 131u8, 87u8, 0u8, 241u8, 230u8, 160u8, - 142u8, 128u8, 153u8, 83u8, 36u8, 88u8, 247u8, 70u8, - 130u8, - ], - ) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] - pub fn list_bags( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Bag, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] - pub fn list_bags_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Bag, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "ListBags", - Vec::new(), - [ - 38u8, 86u8, 63u8, 92u8, 85u8, 59u8, 225u8, 244u8, - 14u8, 155u8, 76u8, 249u8, 153u8, 140u8, 179u8, 7u8, - 96u8, 170u8, 236u8, 179u8, 4u8, 18u8, 232u8, 146u8, - 216u8, 51u8, 135u8, 116u8, 196u8, 117u8, 143u8, - 153u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The list of thresholds separating the various bags."] - #[doc = ""] - #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] - #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] - #[doc = " is less than or equal to its upper threshold."] - #[doc = ""] - #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] - #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] - #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] - #[doc = ""] - #[doc = " # Expressing the constant"] - #[doc = ""] - #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] - #[doc = " permitted."] - #[doc = ""] - #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] - #[doc = " specified within the bag. For any two threshold lists, if one ends with"] - #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] - #[doc = " lists will behave identically."] - #[doc = ""] - #[doc = " # Calculation"] - #[doc = ""] - #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] - #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] - #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] - #[doc = ""] - #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] - #[doc = ""] - #[doc = " # Examples"] - #[doc = ""] - #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] - #[doc = " iteration is strictly in insertion order."] - #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is equal to 2."] - #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] - #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] - #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] - #[doc = ""] - #[doc = " # Migration"] - #[doc = ""] - #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] - #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub fn bag_thresholds( - &self, - ) -> ::subxt::constants::Address< - ::std::vec::Vec<::core::primitive::u64>, - > { - ::subxt::constants::Address::new_static( - "BagsList", - "BagThresholds", - [ - 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, - 172u8, 112u8, 234u8, 25u8, 175u8, 178u8, 19u8, - 251u8, 73u8, 91u8, 192u8, 227u8, 81u8, 249u8, 45u8, - 126u8, 116u8, 7u8, 37u8, 9u8, 200u8, 167u8, 182u8, - 12u8, 131u8, - ], - ) - } - } - } - } - pub mod nomination_pools { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Join { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Join { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "join"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BondExtra { - pub extra: - runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "bond_extra"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClaimPayout; - impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_payout"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unbond { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "unbond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "pool_withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WithdrawUnbonded { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "create_with_pool_id"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: - ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "nominate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: - runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::blocks::StaticExtrinsic for SetState { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_state"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetConfigs { - pub min_join_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub min_create_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub max_pools: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members_per_pool: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetConfigs { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_configs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "update_roles"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Chill { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "chill"; - } - } - 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: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "join", - types::Join { amount, pool_id }, - [ - 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, - 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, - 197u8, 20u8, 75u8, 226u8, 29u8, 118u8, 208u8, 60u8, - 192u8, 247u8, 222u8, 100u8, 69u8, 80u8, 172u8, - 13u8, 69u8, 250u8, - ], - ) - } - #[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."] - pub fn bond_extra( - &self, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "bond_extra", - types::BondExtra { extra }, - [ - 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, - 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, - 197u8, 34u8, 21u8, 188u8, 248u8, 191u8, 11u8, 10u8, - 236u8, 161u8, 168u8, 37u8, 38u8, 238u8, 61u8, - 183u8, 86u8, 55u8, - ], - ) - } - #[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 there 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\"."] - pub fn claim_payout( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_payout", - types::ClaimPayout {}, - [ - 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, - 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, - 221u8, 218u8, 1u8, 222u8, 5u8, 236u8, 32u8, 88u8, - 0u8, 198u8, 72u8, 196u8, 181u8, 104u8, 16u8, 212u8, - 29u8, - ], - ) - } - #[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 state-toggler. This is"] - #[doc = " refereed to 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "unbond", - types::Unbond { - member_account, - unbonding_points, - }, - [ - 139u8, 71u8, 78u8, 184u8, 141u8, 89u8, 179u8, - 123u8, 153u8, 30u8, 116u8, 186u8, 148u8, 49u8, - 48u8, 98u8, 33u8, 21u8, 29u8, 106u8, 180u8, 212u8, - 37u8, 251u8, 237u8, 21u8, 255u8, 13u8, 236u8, 73u8, - 250u8, 57u8, - ], - ) - } - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their 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: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "pool_withdraw_unbonded", - types::PoolWithdrawUnbonded { - pool_id, - num_slashing_spans, - }, - [ - 152u8, 245u8, 131u8, 247u8, 106u8, 214u8, 154u8, - 8u8, 7u8, 210u8, 149u8, 218u8, 118u8, 46u8, 242u8, - 182u8, 191u8, 119u8, 28u8, 199u8, 36u8, 49u8, - 219u8, 123u8, 58u8, 203u8, 211u8, 226u8, 217u8, - 36u8, 56u8, 0u8, - ], - ) - } - #[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 state-toggler."] - #[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."] - pub fn withdraw_unbonded( - &self, - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "withdraw_unbonded", - types::WithdrawUnbonded { - member_account, - num_slashing_spans, - }, - [ - 192u8, 183u8, 121u8, 87u8, 176u8, 70u8, 91u8, - 226u8, 156u8, 79u8, 87u8, 34u8, 227u8, 84u8, 22u8, - 235u8, 3u8, 181u8, 166u8, 194u8, 147u8, 72u8, 27u8, - 221u8, 57u8, 14u8, 44u8, 70u8, 253u8, 236u8, 44u8, - 84u8, - ], - ) - } - #[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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - pub fn create( - &self, - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "create", - types::Create { - amount, - root, - nominator, - state_toggler, - }, - [ - 73u8, 99u8, 205u8, 59u8, 21u8, 182u8, 163u8, 158u8, - 99u8, 182u8, 182u8, 63u8, 212u8, 84u8, 48u8, 244u8, - 95u8, 153u8, 86u8, 104u8, 92u8, 93u8, 191u8, 79u8, - 163u8, 123u8, 20u8, 121u8, 241u8, 194u8, 79u8, - 112u8, - ], - ) - } - #[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: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "create_with_pool_id", - types::CreateWithPoolId { - amount, - root, - nominator, - state_toggler, - pool_id, - }, - [ - 113u8, 67u8, 242u8, 175u8, 174u8, 4u8, 116u8, 44u8, - 157u8, 35u8, 13u8, 23u8, 55u8, 80u8, 255u8, 103u8, - 196u8, 247u8, 105u8, 152u8, 108u8, 145u8, 180u8, - 169u8, 252u8, 159u8, 175u8, 241u8, 122u8, 136u8, - 252u8, 95u8, - ], - ) - } - #[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."] - pub fn nominate( - &self, - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "nominate", - types::Nominate { - pool_id, - validators, - }, - [ - 10u8, 235u8, 64u8, 157u8, 36u8, 249u8, 186u8, 27u8, - 79u8, 172u8, 25u8, 3u8, 203u8, 19u8, 192u8, 182u8, - 36u8, 103u8, 13u8, 20u8, 89u8, 140u8, 159u8, 4u8, - 132u8, 242u8, 192u8, 146u8, 55u8, 251u8, 216u8, - 255u8, - ], - ) - } - #[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 state toggler, 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: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_state", - types::SetState { pool_id, state }, - [ - 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, - 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, - 151u8, 25u8, 194u8, 192u8, 187u8, 39u8, 170u8, - 212u8, 125u8, 75u8, 250u8, 248u8, 175u8, 159u8, - 161u8, 151u8, 162u8, - ], - ) - } - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] - #[doc = "of the pool."] - pub fn set_metadata( - &self, - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_metadata", - types::SetMetadata { pool_id, metadata }, - [ - 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, - 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, - 1u8, 6u8, 26u8, 168u8, 7u8, 8u8, 115u8, 158u8, - 151u8, 30u8, 211u8, 52u8, 177u8, 234u8, 87u8, - 125u8, 127u8, - ], - ) - } - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - pub fn set_configs( - &self, - 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 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_configs", - types::SetConfigs { - min_join_bond, - min_create_bond, - max_pools, - max_members, - max_members_per_pool, - }, - [ - 143u8, 196u8, 211u8, 30u8, 71u8, 15u8, 150u8, - 243u8, 7u8, 178u8, 179u8, 168u8, 40u8, 116u8, - 220u8, 140u8, 18u8, 206u8, 6u8, 189u8, 190u8, 37u8, - 68u8, 41u8, 45u8, 233u8, 247u8, 172u8, 185u8, 34u8, - 243u8, 187u8, - ], - ) - } - #[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: ::core::primitive::u32, - new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - new_state_toggler : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "update_roles", - types::UpdateRoles { - pool_id, - new_root, - new_nominator, - new_state_toggler, - }, - [ - 247u8, 95u8, 234u8, 56u8, 181u8, 229u8, 158u8, - 97u8, 69u8, 165u8, 38u8, 17u8, 27u8, 209u8, 204u8, - 250u8, 91u8, 193u8, 35u8, 93u8, 215u8, 131u8, - 148u8, 73u8, 67u8, 188u8, 92u8, 32u8, 34u8, 37u8, - 113u8, 93u8, - ], - ) - } - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - pub fn chill( - &self, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "chill", - types::Chill { pool_id }, - [ - 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, - 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, - 240u8, 172u8, 229u8, 132u8, 64u8, 175u8, 87u8, - 217u8, 27u8, 11u8, 124u8, 1u8, 140u8, 40u8, 191u8, - 187u8, 36u8, - ], - ) - } - } - } - #[doc = "Events of this pallet."] - pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool has been created."] - pub struct Created { - pub depositor: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has became bonded in a pool."] - pub struct Bonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub bonded: ::core::primitive::u128, - pub joined: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A payout has been made to a member."] - pub struct PaidOut { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PaidOut { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PaidOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - pub struct Unbonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - pub era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - pub struct Withdrawn { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool has been destroyed."] - pub struct Destroyed { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The state of a pool has changed"] - pub struct StateChanged { - pub pool_id: ::core::primitive::u32, - pub new_state: - runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::events::StaticEvent for StateChanged { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "StateChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - pub struct MemberRemoved { - pub pool_id: ::core::primitive::u32, - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "MemberRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - pub struct RolesUpdated { - pub root: ::core::option::Option<::subxt::utils::AccountId32>, - pub state_toggler: - ::core::option::Option<::subxt::utils::AccountId32>, - pub nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for RolesUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "RolesUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - pub struct PoolSlashed { - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - pub struct UnbondingPoolSlashed { - pub pool_id: ::core::primitive::u32, - pub era: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "UnbondingPoolSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Minimum amount to bond to join a pool."] - pub fn min_join_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MinJoinBond", - vec![], - [ - 125u8, 239u8, 45u8, 225u8, 74u8, 129u8, 247u8, - 184u8, 205u8, 58u8, 45u8, 186u8, 126u8, 170u8, - 112u8, 120u8, 23u8, 190u8, 247u8, 97u8, 131u8, - 126u8, 215u8, 44u8, 147u8, 122u8, 132u8, 212u8, - 217u8, 84u8, 240u8, 91u8, - ], - ) - } - #[doc = " Minimum bond required to create a pool."] - #[doc = ""] - #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] - #[doc = " indication of \"skin in the game\"."] - #[doc = ""] - #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] - #[doc = " while all other accounts leave."] - pub fn min_create_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MinCreateBond", - vec![], - [ - 31u8, 208u8, 240u8, 158u8, 23u8, 218u8, 212u8, - 138u8, 92u8, 210u8, 207u8, 170u8, 32u8, 60u8, 5u8, - 21u8, 84u8, 162u8, 1u8, 111u8, 181u8, 243u8, 24u8, - 148u8, 193u8, 253u8, 248u8, 190u8, 16u8, 222u8, - 219u8, 67u8, - ], - ) - } - #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] - #[doc = " pools can exist."] - pub fn max_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPools", - vec![], - [ - 216u8, 111u8, 68u8, 103u8, 33u8, 50u8, 109u8, 3u8, - 176u8, 195u8, 23u8, 73u8, 112u8, 138u8, 9u8, 194u8, - 233u8, 73u8, 68u8, 215u8, 162u8, 255u8, 217u8, - 173u8, 141u8, 27u8, 72u8, 199u8, 7u8, 240u8, 25u8, - 34u8, - ], - ) - } - #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] - #[doc = " members are not bound on a system wide basis."] - pub fn max_pool_members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPoolMembers", - vec![], - [ - 82u8, 217u8, 26u8, 234u8, 223u8, 241u8, 66u8, - 182u8, 43u8, 233u8, 59u8, 242u8, 202u8, 254u8, - 69u8, 50u8, 254u8, 196u8, 166u8, 89u8, 120u8, 87u8, - 76u8, 148u8, 31u8, 197u8, 49u8, 88u8, 206u8, 41u8, - 242u8, 62u8, - ], - ) - } - #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] - #[doc = " members is not bound on a per pool basis."] - pub fn max_pool_members_per_pool( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPoolMembersPerPool", - vec![], - [ - 93u8, 241u8, 16u8, 169u8, 138u8, 199u8, 128u8, - 149u8, 65u8, 30u8, 55u8, 11u8, 41u8, 252u8, 83u8, - 250u8, 9u8, 33u8, 152u8, 239u8, 195u8, 147u8, 16u8, - 248u8, 180u8, 153u8, 88u8, 231u8, 248u8, 169u8, - 186u8, 48u8, - ], - ) - } - #[doc = " Active members."] - pub fn pool_members( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::PoolMember, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) - } - #[doc = " Active members."] - pub fn pool_members_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::PoolMember, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "PoolMembers", - Vec::new(), - [ - 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, - 144u8, 5u8, 108u8, 70u8, 30u8, 177u8, 232u8, 253u8, - 237u8, 211u8, 91u8, 63u8, 62u8, 155u8, 151u8, - 153u8, 165u8, 206u8, 53u8, 111u8, 31u8, 60u8, - 120u8, 100u8, 249u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_pool_members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForPoolMembers", - vec![], - [ - 114u8, 126u8, 27u8, 138u8, 119u8, 44u8, 45u8, - 129u8, 84u8, 107u8, 171u8, 206u8, 117u8, 141u8, - 20u8, 75u8, 229u8, 237u8, 31u8, 229u8, 124u8, - 190u8, 27u8, 124u8, 63u8, 59u8, 167u8, 42u8, 62u8, - 212u8, 160u8, 2u8, - ], - ) - } - #[doc = " Storage for bonded pools."] - pub fn bonded_pools( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::BondedPoolInner, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [34u8 , 51u8 , 86u8 , 95u8 , 237u8 , 118u8 , 40u8 , 212u8 , 128u8 , 227u8 , 113u8 , 6u8 , 116u8 , 28u8 , 96u8 , 223u8 , 63u8 , 249u8 , 33u8 , 152u8 , 61u8 , 7u8 , 205u8 , 220u8 , 221u8 , 174u8 , 207u8 , 39u8 , 53u8 , 176u8 , 13u8 , 74u8 ,]) - } - #[doc = " Storage for bonded pools."] - pub fn bonded_pools_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::BondedPoolInner, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "BondedPools", - Vec::new(), - [ - 34u8, 51u8, 86u8, 95u8, 237u8, 118u8, 40u8, 212u8, - 128u8, 227u8, 113u8, 6u8, 116u8, 28u8, 96u8, 223u8, - 63u8, 249u8, 33u8, 152u8, 61u8, 7u8, 205u8, 220u8, - 221u8, 174u8, 207u8, 39u8, 53u8, 176u8, 13u8, 74u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_bonded_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForBondedPools", - vec![], - [ - 134u8, 94u8, 199u8, 73u8, 174u8, 253u8, 66u8, - 242u8, 233u8, 244u8, 140u8, 170u8, 242u8, 40u8, - 41u8, 185u8, 183u8, 151u8, 58u8, 111u8, 221u8, - 225u8, 81u8, 71u8, 169u8, 219u8, 223u8, 135u8, 8u8, - 171u8, 180u8, 236u8, - ], - ) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] - pub fn reward_pools( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::RewardPool, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] - pub fn reward_pools_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::RewardPool, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "RewardPools", - Vec::new(), - [ - 139u8, 123u8, 46u8, 107u8, 9u8, 83u8, 141u8, 12u8, - 188u8, 225u8, 170u8, 215u8, 154u8, 21u8, 100u8, - 95u8, 237u8, 245u8, 46u8, 216u8, 199u8, 184u8, - 187u8, 155u8, 8u8, 16u8, 34u8, 177u8, 153u8, 65u8, - 109u8, 198u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_reward_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForRewardPools", - vec![], - [ - 209u8, 139u8, 212u8, 116u8, 210u8, 178u8, 213u8, - 38u8, 75u8, 23u8, 188u8, 57u8, 253u8, 213u8, 95u8, - 118u8, 182u8, 250u8, 45u8, 205u8, 17u8, 175u8, - 17u8, 201u8, 234u8, 14u8, 98u8, 49u8, 143u8, 135u8, - 201u8, 81u8, - ], - ) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] - pub fn sub_pools_storage( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::SubPools, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] - pub fn sub_pools_storage_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::SubPools, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "SubPoolsStorage", - Vec::new(), - [ - 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, - 134u8, 224u8, 196u8, 94u8, 201u8, 229u8, 29u8, - 155u8, 211u8, 163u8, 150u8, 157u8, 34u8, 68u8, - 238u8, 55u8, 4u8, 222u8, 96u8, 186u8, 29u8, 205u8, - 237u8, 80u8, 42u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_sub_pools_storage( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForSubPoolsStorage", - vec![], - [ - 212u8, 145u8, 212u8, 226u8, 234u8, 31u8, 26u8, - 240u8, 107u8, 91u8, 171u8, 120u8, 41u8, 195u8, - 16u8, 86u8, 55u8, 127u8, 103u8, 93u8, 128u8, 48u8, - 69u8, 104u8, 168u8, 236u8, 81u8, 54u8, 2u8, 184u8, - 215u8, 51u8, - ], - ) - } - #[doc = " Metadata for the pool."] - pub fn metadata( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) - } - #[doc = " Metadata for the pool."] - pub fn metadata_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "Metadata", - Vec::new(), - [ - 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, - 62u8, 97u8, 163u8, 161u8, 215u8, 171u8, 225u8, - 49u8, 18u8, 37u8, 200u8, 143u8, 254u8, 136u8, 26u8, - 54u8, 187u8, 39u8, 3u8, 216u8, 24u8, 188u8, 25u8, - 243u8, 251u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_metadata( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForMetadata", - vec![], - [ - 190u8, 232u8, 77u8, 134u8, 245u8, 89u8, 160u8, - 187u8, 163u8, 68u8, 188u8, 204u8, 31u8, 145u8, - 219u8, 165u8, 213u8, 1u8, 167u8, 90u8, 175u8, - 218u8, 147u8, 144u8, 158u8, 226u8, 23u8, 233u8, - 55u8, 168u8, 161u8, 237u8, - ], - ) - } - #[doc = " Ever increasing number of all pools created so far."] - pub fn last_pool_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "LastPoolId", - vec![], - [ - 50u8, 254u8, 218u8, 41u8, 213u8, 184u8, 170u8, - 166u8, 31u8, 29u8, 196u8, 57u8, 215u8, 20u8, 40u8, - 40u8, 19u8, 22u8, 9u8, 184u8, 11u8, 21u8, 21u8, - 125u8, 97u8, 38u8, 219u8, 209u8, 2u8, 238u8, 247u8, - 51u8, - ], - ) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] - pub fn reverse_pool_id_lookup( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] - pub fn reverse_pool_id_lookup_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ReversePoolIdLookup", - Vec::new(), - [ - 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, - 236u8, 159u8, 36u8, 237u8, 120u8, 128u8, 6u8, - 191u8, 41u8, 159u8, 94u8, 178u8, 174u8, 235u8, - 221u8, 173u8, 44u8, 81u8, 211u8, 255u8, 231u8, - 81u8, 16u8, 87u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_reverse_pool_id_lookup( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForReversePoolIdLookup", - vec![], - [ - 148u8, 83u8, 81u8, 33u8, 188u8, 72u8, 148u8, 208u8, - 245u8, 178u8, 52u8, 245u8, 229u8, 140u8, 100u8, - 152u8, 8u8, 217u8, 161u8, 80u8, 226u8, 42u8, 15u8, - 252u8, 90u8, 197u8, 120u8, 114u8, 144u8, 90u8, - 199u8, 123u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The nomination pool's pallet id."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "NominationPools", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] - #[doc = ""] - #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] - #[doc = " ratio becomes disproportional."] - #[doc = ""] - #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] - #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] - #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] - #[doc = " the chain, in the absolute worse case."] - #[doc = ""] - #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] - #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] - pub fn max_points_to_balance( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u8> - { - ::subxt::constants::Address::new_static( - "NominationPools", - "MaxPointsToBalance", - [ - 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, - 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, - 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, - 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, - 228u8, 183u8, 165u8, - ], - ) - } - } - } - } - pub mod hasher_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_hasher::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_hasher::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSetParameters { pub parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { - const PALLET: &'static str = "HasherBn254"; - const CALL: &'static str = "force_set_parameters"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "HasherBn254", - "force_set_parameters", - types::ForceSetParameters { parameters }, - [ - 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, - 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, - 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, - 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, - 75u8, 166u8, 90u8, 127u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_hasher::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] - pub fn parameters( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "HasherBn254", - "Parameters", - vec![], - [ - 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, - 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, - 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, - 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, - 110u8, 163u8, 192u8, - ], - ) - } - } - } - } - pub mod asset_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_asset_registry::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_asset_registry::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Register { pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , pub existential_deposit : :: core :: primitive :: u128 , } - impl ::subxt::blocks::StaticExtrinsic for Register { - const PALLET: &'static str = "AssetRegistry"; - const CALL: &'static str = "register"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Update { pub asset_id : :: core :: primitive :: u32 , pub bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , pub existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } - impl ::subxt::blocks::StaticExtrinsic for Update { - const PALLET: &'static str = "AssetRegistry"; - const CALL: &'static str = "update"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMetadata { pub asset_id : :: core :: primitive :: u32 , pub symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub decimals : :: core :: primitive :: u8 , } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "AssetRegistry"; - const CALL: &'static str = "set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetLocation { - pub asset_id: ::core::primitive::u32, - pub location: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetLocation { - const PALLET: &'static str = "AssetRegistry"; - const CALL: &'static str = "set_location"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AddAssetToPool { pub pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_id : :: core :: primitive :: u32 , } - impl ::subxt::blocks::StaticExtrinsic for AddAssetToPool { - const PALLET: &'static str = "AssetRegistry"; - const CALL: &'static str = "add_asset_to_pool"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct DeleteAssetFromPool { pub pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_id : :: core :: primitive :: u32 , } - impl ::subxt::blocks::StaticExtrinsic for DeleteAssetFromPool { - const PALLET: &'static str = "AssetRegistry"; - const CALL: &'static str = "delete_asset_from_pool"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Register a new asset."] - #[doc = ""] - #[doc = "Asset is identified by `name` and the name must not be used to"] - #[doc = "register another asset."] - #[doc = ""] - #[doc = "New asset is given `NextAssetId` - sequential asset id"] - #[doc = ""] - #[doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] - #[doc = "be retrieved by name too (Note: this approach is used in AMM"] - #[doc = "implementation (xyk))"] - #[doc = ""] - #[doc = "Emits 'Registered` event when successful."] - pub fn register( - &self, - name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool >, - existential_deposit: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssetRegistry", - "register", - types::Register { - name, - asset_type, - existential_deposit, - }, - [ - 252u8, 45u8, 222u8, 83u8, 254u8, 164u8, 199u8, - 163u8, 77u8, 255u8, 2u8, 143u8, 50u8, 226u8, 47u8, - 91u8, 89u8, 75u8, 143u8, 234u8, 96u8, 83u8, 255u8, - 78u8, 146u8, 32u8, 217u8, 112u8, 52u8, 190u8, - 107u8, 187u8, - ], - ) - } - #[doc = "Update registered asset."] - #[doc = ""] - #[doc = "Updates also mapping between name and asset id if provided name is"] - #[doc = "different than currently registered."] - #[doc = ""] - #[doc = "Emits `Updated` event when successful."] - pub fn update( - &self, - asset_id: ::core::primitive::u32, - bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool >, - existential_deposit: ::core::option::Option< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssetRegistry", - "update", - types::Update { - asset_id, - bounded_name, - asset_type, - existential_deposit, - }, - [ - 71u8, 166u8, 66u8, 176u8, 128u8, 130u8, 47u8, - 243u8, 184u8, 119u8, 22u8, 2u8, 97u8, 59u8, 228u8, - 103u8, 144u8, 189u8, 83u8, 74u8, 190u8, 103u8, - 139u8, 217u8, 184u8, 92u8, 157u8, 83u8, 185u8, - 83u8, 34u8, 186u8, - ], - ) - } - #[doc = "Set metadata for an asset."] - #[doc = ""] - #[doc = "- `asset_id`: Asset identifier."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet` event when successful."] - pub fn set_metadata( - &self, - asset_id: ::core::primitive::u32, - symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - decimals: ::core::primitive::u8, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssetRegistry", - "set_metadata", - types::SetMetadata { - asset_id, - symbol, - decimals, - }, - [ - 9u8, 120u8, 57u8, 240u8, 115u8, 83u8, 59u8, 131u8, - 253u8, 150u8, 149u8, 66u8, 75u8, 74u8, 35u8, 97u8, - 62u8, 134u8, 103u8, 15u8, 121u8, 202u8, 35u8, - 240u8, 138u8, 20u8, 146u8, 174u8, 99u8, 252u8, - 110u8, 194u8, - ], - ) - } - #[doc = "Set asset native location."] - #[doc = ""] - #[doc = "Adds mapping between native location and local asset id and vice"] - #[doc = "versa."] - #[doc = ""] - #[doc = "Mainly used in XCM."] - #[doc = ""] - #[doc = "Emits `LocationSet` event when successful."] - pub fn set_location( - &self, - asset_id: ::core::primitive::u32, - location: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssetRegistry", - "set_location", - types::SetLocation { asset_id, location }, - [ - 235u8, 57u8, 17u8, 193u8, 114u8, 60u8, 211u8, - 237u8, 163u8, 80u8, 178u8, 91u8, 195u8, 168u8, - 220u8, 77u8, 64u8, 129u8, 242u8, 37u8, 36u8, 166u8, - 28u8, 157u8, 222u8, 9u8, 197u8, 128u8, 175u8, - 118u8, 131u8, 237u8, - ], - ) - } - #[doc = "Add an asset to an existing pool."] - pub fn add_asset_to_pool( - &self, - pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "AssetRegistry", - "add_asset_to_pool", - types::AddAssetToPool { pool, asset_id }, - [ - 150u8, 36u8, 8u8, 105u8, 253u8, 91u8, 165u8, 163u8, - 178u8, 235u8, 110u8, 227u8, 183u8, 8u8, 126u8, - 217u8, 243u8, 37u8, 13u8, 66u8, 72u8, 239u8, 2u8, - 178u8, 152u8, 26u8, 39u8, 131u8, 225u8, 10u8, - 123u8, 134u8, - ], - ) - } - #[doc = "Remove an asset from an existing pool."] - pub fn delete_asset_from_pool( - &self, - pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - asset_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "AssetRegistry", - "delete_asset_from_pool", - types::DeleteAssetFromPool { pool, asset_id }, - [ - 41u8, 72u8, 157u8, 129u8, 82u8, 30u8, 47u8, 66u8, - 180u8, 182u8, 0u8, 171u8, 251u8, 195u8, 72u8, - 181u8, 1u8, 45u8, 233u8, 220u8, 7u8, 45u8, 43u8, - 68u8, 164u8, 107u8, 196u8, 34u8, 225u8, 174u8, - 22u8, 102u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_asset_registry::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Asset was registered."] - pub struct Registered { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } - impl ::subxt::events::StaticEvent for Registered { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "Registered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Asset was updated."] - pub struct Updated { pub asset_id : :: core :: primitive :: u32 , pub name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } - impl ::subxt::events::StaticEvent for Updated { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "Updated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata set for an asset."] - pub struct MetadataSet { - pub asset_id: ::core::primitive::u32, - pub symbol: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub decimals: ::core::primitive::u8, - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Native location set for an asset."] - pub struct LocationSet { - pub asset_id: ::core::primitive::u32, - pub location: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for LocationSet { - const PALLET: &'static str = "AssetRegistry"; - const EVENT: &'static str = "LocationSet"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of an asset."] pub fn assets (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "Assets" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [182u8 , 114u8 , 167u8 , 11u8 , 64u8 , 250u8 , 48u8 , 87u8 , 231u8 , 111u8 , 138u8 , 236u8 , 205u8 , 82u8 , 37u8 , 218u8 , 41u8 , 136u8 , 38u8 , 62u8 , 215u8 , 152u8 , 76u8 , 17u8 , 209u8 , 60u8 , 196u8 , 247u8 , 99u8 , 45u8 , 32u8 , 224u8 ,]) - } - #[doc = " Details of an asset."] pub fn assets_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetDetails < :: core :: primitive :: u32 , :: core :: primitive :: u128 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "AssetRegistry", - "Assets", - Vec::new(), - [ - 182u8, 114u8, 167u8, 11u8, 64u8, 250u8, 48u8, 87u8, - 231u8, 111u8, 138u8, 236u8, 205u8, 82u8, 37u8, - 218u8, 41u8, 136u8, 38u8, 62u8, 215u8, 152u8, 76u8, - 17u8, 209u8, 60u8, 196u8, 247u8, 99u8, 45u8, 32u8, - 224u8, - ], - ) - } - #[doc = " Next available asset id. This is sequential id assigned for each new"] - #[doc = " registered asset."] - pub fn next_asset_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "AssetRegistry", - "NextAssetId", - vec![], - [ - 130u8, 214u8, 178u8, 195u8, 222u8, 57u8, 89u8, - 143u8, 138u8, 218u8, 234u8, 251u8, 36u8, 221u8, - 51u8, 213u8, 130u8, 249u8, 153u8, 24u8, 245u8, - 51u8, 126u8, 71u8, 51u8, 148u8, 167u8, 143u8, 33u8, - 15u8, 44u8, 115u8, - ], - ) - } - #[doc = " Mapping between asset name and asset id."] - pub fn asset_ids( - &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetIds" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [142u8 , 138u8 , 84u8 , 162u8 , 209u8 , 97u8 , 173u8 , 83u8 , 185u8 , 226u8 , 233u8 , 40u8 , 74u8 , 97u8 , 166u8 , 13u8 , 199u8 , 229u8 , 235u8 , 15u8 , 6u8 , 196u8 , 7u8 , 35u8 , 87u8 , 202u8 , 4u8 , 101u8 , 212u8 , 84u8 , 250u8 , 251u8 ,]) - } - #[doc = " Mapping between asset name and asset id."] - pub fn asset_ids_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "AssetRegistry", - "AssetIds", - Vec::new(), - [ - 142u8, 138u8, 84u8, 162u8, 209u8, 97u8, 173u8, - 83u8, 185u8, 226u8, 233u8, 40u8, 74u8, 97u8, 166u8, - 13u8, 199u8, 229u8, 235u8, 15u8, 6u8, 196u8, 7u8, - 35u8, 87u8, 202u8, 4u8, 101u8, 212u8, 84u8, 250u8, - 251u8, - ], - ) - } - #[doc = " Native location of an asset."] - pub fn asset_locations( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetLocations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [146u8 , 222u8 , 59u8 , 210u8 , 64u8 , 240u8 , 139u8 , 32u8 , 171u8 , 75u8 , 247u8 , 43u8 , 179u8 , 108u8 , 20u8 , 64u8 , 24u8 , 154u8 , 133u8 , 154u8 , 208u8 , 98u8 , 241u8 , 62u8 , 158u8 , 126u8 , 19u8 , 188u8 , 237u8 , 70u8 , 178u8 , 197u8 ,]) - } - #[doc = " Native location of an asset."] - pub fn asset_locations_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "AssetRegistry", - "AssetLocations", - Vec::new(), - [ - 146u8, 222u8, 59u8, 210u8, 64u8, 240u8, 139u8, - 32u8, 171u8, 75u8, 247u8, 43u8, 179u8, 108u8, 20u8, - 64u8, 24u8, 154u8, 133u8, 154u8, 208u8, 98u8, - 241u8, 62u8, 158u8, 126u8, 19u8, 188u8, 237u8, - 70u8, 178u8, 197u8, - ], - ) - } - #[doc = " Local asset for native location."] - pub fn location_assets( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "LocationAssets" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [82u8 , 140u8 , 248u8 , 178u8 , 200u8 , 49u8 , 11u8 , 121u8 , 43u8 , 2u8 , 125u8 , 44u8 , 253u8 , 10u8 , 29u8 , 242u8 , 56u8 , 45u8 , 249u8 , 223u8 , 136u8 , 40u8 , 155u8 , 201u8 , 99u8 , 166u8 , 243u8 , 79u8 , 47u8 , 93u8 , 211u8 , 241u8 ,]) - } - #[doc = " Local asset for native location."] - pub fn location_assets_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "AssetRegistry", - "LocationAssets", - Vec::new(), - [ - 82u8, 140u8, 248u8, 178u8, 200u8, 49u8, 11u8, - 121u8, 43u8, 2u8, 125u8, 44u8, 253u8, 10u8, 29u8, - 242u8, 56u8, 45u8, 249u8, 223u8, 136u8, 40u8, - 155u8, 201u8, 99u8, 166u8, 243u8, 79u8, 47u8, 93u8, - 211u8, 241u8, - ], - ) - } - #[doc = " Metadata of an asset."] pub fn asset_metadata_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("AssetRegistry" , "AssetMetadataMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [44u8 , 143u8 , 207u8 , 24u8 , 27u8 , 113u8 , 207u8 , 155u8 , 211u8 , 232u8 , 91u8 , 255u8 , 153u8 , 141u8 , 196u8 , 195u8 , 124u8 , 164u8 , 72u8 , 41u8 , 185u8 , 232u8 , 190u8 , 195u8 , 205u8 , 146u8 , 56u8 , 154u8 , 1u8 , 113u8 , 54u8 , 86u8 ,]) - } - #[doc = " Metadata of an asset."] pub fn asset_metadata_map_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_asset_registry :: types :: AssetMetadata < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "AssetRegistry", - "AssetMetadataMap", - Vec::new(), - [ - 44u8, 143u8, 207u8, 24u8, 27u8, 113u8, 207u8, - 155u8, 211u8, 232u8, 91u8, 255u8, 153u8, 141u8, - 196u8, 195u8, 124u8, 164u8, 72u8, 41u8, 185u8, - 232u8, 190u8, 195u8, 205u8, 146u8, 56u8, 154u8, - 1u8, 113u8, 54u8, 86u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Native Asset Id"] - pub fn native_asset_id( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "AssetRegistry", - "NativeAssetId", - [ - 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 currencies { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::orml_currencies::module::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::orml_currencies::module::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Currencies"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferNativeCurrency { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferNativeCurrency { - const PALLET: &'static str = "Currencies"; - const CALL: &'static str = "transfer_native_currency"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UpdateBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - pub amount: ::core::primitive::i128, - } - impl ::subxt::blocks::StaticExtrinsic for UpdateBalance { - const PALLET: &'static str = "Currencies"; - const CALL: &'static str = "update_balance"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some balance to another account under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Currencies", - "transfer", - types::Transfer { - dest, - currency_id, - amount, - }, - [ - 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, - 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, - 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, - 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, - 176u8, 62u8, - ], - ) - } - #[doc = "Transfer some native currency to another account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - pub fn transfer_native_currency( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Currencies", - "transfer_native_currency", - types::TransferNativeCurrency { dest, amount }, - [ - 212u8, 113u8, 64u8, 214u8, 137u8, 16u8, 101u8, - 17u8, 123u8, 43u8, 143u8, 69u8, 53u8, 22u8, 227u8, - 62u8, 117u8, 160u8, 162u8, 73u8, 195u8, 177u8, - 99u8, 75u8, 48u8, 237u8, 145u8, 164u8, 72u8, 47u8, - 215u8, 117u8, - ], - ) - } - #[doc = "update amount of account `who` under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - pub fn update_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::i128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Currencies", - "update_balance", - types::UpdateBalance { - who, - currency_id, - amount, - }, - [ - 10u8, 79u8, 233u8, 250u8, 126u8, 190u8, 236u8, - 106u8, 73u8, 243u8, 163u8, 187u8, 206u8, 132u8, - 241u8, 254u8, 76u8, 0u8, 38u8, 159u8, 147u8, 102u8, - 126u8, 6u8, 36u8, 129u8, 235u8, 240u8, 233u8, - 100u8, 81u8, 8u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn get_native_currency_id( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Currencies", - "GetNativeCurrencyId", - [ - 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 tokens { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::orml_tokens::module::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::orml_tokens::module::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Tokens"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - pub keep_alive: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const PALLET: &'static str = "Tokens"; - const CALL: &'static str = "transfer_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "Tokens"; - const CALL: &'static str = "transfer_keep_alive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Tokens"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub currency_id: ::core::primitive::u32, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for SetBalance { - const PALLET: &'static str = "Tokens"; - const CALL: &'static str = "set_balance"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "It will decrease the total issuance of the system by the"] - #[doc = "`TransferFee`. If the sender's account is below the existential"] - #[doc = "deposit as a result of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tokens", - "transfer", - types::Transfer { - dest, - currency_id, - amount, - }, - [ - 168u8, 138u8, 194u8, 235u8, 60u8, 53u8, 247u8, - 34u8, 181u8, 92u8, 83u8, 184u8, 75u8, 29u8, 9u8, - 21u8, 99u8, 159u8, 142u8, 244u8, 49u8, 45u8, 21u8, - 206u8, 172u8, 222u8, 92u8, 48u8, 185u8, 234u8, - 176u8, 62u8, - ], - ) - } - #[doc = "Transfer all remaining balance to the given account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_"] - #[doc = "balances. This means that any locked, reserved, or existential"] - #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] - #[doc = "this function. To ensure that this function results in a killed"] - #[doc = "account, you might need to prepare the account by removing any"] - #[doc = "reference counters, storage deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] - #[doc = " operation should send all of the funds the account has, causing"] - #[doc = " the sender account to be killed (false), or transfer everything"] - #[doc = " except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tokens", - "transfer_all", - types::TransferAll { - dest, - currency_id, - keep_alive, - }, - [ - 83u8, 119u8, 29u8, 13u8, 126u8, 23u8, 51u8, 229u8, - 26u8, 65u8, 104u8, 86u8, 68u8, 42u8, 83u8, 171u8, - 177u8, 241u8, 88u8, 235u8, 122u8, 180u8, 216u8, - 118u8, 52u8, 210u8, 95u8, 234u8, 9u8, 188u8, 122u8, - 34u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] - #[doc = "will not kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Tokens", - "transfer_keep_alive", - types::TransferKeepAlive { - dest, - currency_id, - amount, - }, - [ - 76u8, 132u8, 171u8, 42u8, 174u8, 55u8, 166u8, - 171u8, 22u8, 191u8, 234u8, 185u8, 156u8, 22u8, - 210u8, 10u8, 104u8, 253u8, 183u8, 231u8, 42u8, - 95u8, 204u8, 28u8, 177u8, 5u8, 147u8, 51u8, 160u8, - 132u8, 194u8, 74u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source"] - #[doc = "account may be specified."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The sender of the transfer."] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Tokens", - "force_transfer", - types::ForceTransfer { - source, - dest, - currency_id, - amount, - }, - [ - 196u8, 35u8, 25u8, 247u8, 46u8, 2u8, 11u8, 188u8, - 120u8, 147u8, 123u8, 147u8, 174u8, 111u8, 237u8, - 23u8, 25u8, 50u8, 34u8, 69u8, 189u8, 211u8, 235u8, - 61u8, 183u8, 42u8, 110u8, 62u8, 44u8, 20u8, 43u8, - 214u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] - #[doc = "will also decrease the total issuance of the system"] - #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] - #[doc = "existential deposit, it will reap the `AccountInfo`."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tokens", - "set_balance", - types::SetBalance { - who, - currency_id, - new_free, - new_reserved, - }, - [ - 155u8, 189u8, 114u8, 37u8, 193u8, 38u8, 48u8, 39u8, - 149u8, 224u8, 232u8, 189u8, 205u8, 248u8, 215u8, - 97u8, 50u8, 171u8, 118u8, 214u8, 47u8, 13u8, 104u8, - 3u8, 77u8, 34u8, 37u8, 135u8, 56u8, 94u8, 17u8, - 213u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::orml_tokens::module::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was removed whose balance was non-zero but below"] - #[doc = "ExistentialDeposit, resulting in an outright loss."] - pub struct DustLost { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub currency_id: ::core::primitive::u32, - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some reserved balance was repatriated (moved from reserved to"] - #[doc = "another account)."] - pub struct ReserveRepatriated { pub currency_id : :: core :: primitive :: u32 , pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The total issuance of an currency has been set"] - pub struct TotalIssuanceSet { - pub currency_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TotalIssuanceSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "TotalIssuanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] - pub struct Withdrawn { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balances were slashed (e.g. due to mis-behavior)"] - pub struct Slashed { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub free_amount: ::core::primitive::u128, - pub reserved_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Deposited some balance into an account"] - pub struct Deposited { - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposited { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "Deposited"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some funds are locked"] - pub struct LockSet { - pub lock_id: [::core::primitive::u8; 8usize], - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for LockSet { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "LockSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some locked funds were unlocked"] - pub struct LockRemoved { - pub lock_id: [::core::primitive::u8; 8usize], - pub currency_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for LockRemoved { - const PALLET: &'static str = "Tokens"; - const EVENT: &'static str = "LockRemoved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total issuance of a token type."] - pub fn total_issuance( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "TotalIssuance" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [98u8 , 233u8 , 210u8 , 150u8 , 87u8 , 41u8 , 162u8 , 54u8 , 32u8 , 221u8 , 211u8 , 10u8 , 170u8 , 237u8 , 65u8 , 73u8 , 46u8 , 4u8 , 5u8 , 209u8 , 170u8 , 13u8 , 231u8 , 113u8 , 196u8 , 133u8 , 38u8 , 213u8 , 225u8 , 160u8 , 31u8 , 122u8 ,]) - } - #[doc = " The total issuance of a token type."] - pub fn total_issuance_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Tokens", - "TotalIssuance", - Vec::new(), - [ - 98u8, 233u8, 210u8, 150u8, 87u8, 41u8, 162u8, 54u8, - 32u8, 221u8, 211u8, 10u8, 170u8, 237u8, 65u8, 73u8, - 46u8, 4u8, 5u8, 209u8, 170u8, 13u8, 231u8, 113u8, - 196u8, 133u8, 38u8, 213u8, 225u8, 160u8, 31u8, - 122u8, - ], - ) - } - #[doc = " Any liquidity locks of a token type under an account."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] - pub fn locks( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::orml_tokens::BalanceLock< - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [69u8 , 159u8 , 129u8 , 252u8 , 160u8 , 61u8 , 216u8 , 240u8 , 79u8 , 172u8 , 194u8 , 168u8 , 1u8 , 214u8 , 69u8 , 208u8 , 56u8 , 220u8 , 176u8 , 5u8 , 196u8 , 19u8 , 70u8 , 60u8 , 229u8 , 79u8 , 223u8 , 11u8 , 253u8 , 150u8 , 5u8 , 99u8 ,]) - } - #[doc = " Any liquidity locks of a token type under an account."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] - pub fn locks_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::orml_tokens::BalanceLock< - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Tokens", - "Locks", - Vec::new(), - [ - 69u8, 159u8, 129u8, 252u8, 160u8, 61u8, 216u8, - 240u8, 79u8, 172u8, 194u8, 168u8, 1u8, 214u8, 69u8, - 208u8, 56u8, 220u8, 176u8, 5u8, 196u8, 19u8, 70u8, - 60u8, 229u8, 79u8, 223u8, 11u8, 253u8, 150u8, 5u8, - 99u8, - ], - ) - } - #[doc = " The balance of a token type under an account."] - #[doc = ""] - #[doc = " NOTE: If the total is ever zero, decrease account ref account."] - #[doc = ""] - #[doc = " NOTE: This is only used in the case that this module is used to store"] - #[doc = " balances."] - pub fn accounts( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::orml_tokens::AccountData< - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [136u8 , 147u8 , 98u8 , 221u8 , 153u8 , 10u8 , 206u8 , 218u8 , 153u8 , 159u8 , 62u8 , 152u8 , 110u8 , 198u8 , 125u8 , 15u8 , 127u8 , 21u8 , 31u8 , 191u8 , 241u8 , 167u8 , 124u8 , 77u8 , 138u8 , 133u8 , 204u8 , 30u8 , 180u8 , 253u8 , 126u8 , 214u8 ,]) - } - #[doc = " The balance of a token type under an account."] - #[doc = ""] - #[doc = " NOTE: If the total is ever zero, decrease account ref account."] - #[doc = ""] - #[doc = " NOTE: This is only used in the case that this module is used to store"] - #[doc = " balances."] - pub fn accounts_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::orml_tokens::AccountData< - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Tokens", - "Accounts", - Vec::new(), - [ - 136u8, 147u8, 98u8, 221u8, 153u8, 10u8, 206u8, - 218u8, 153u8, 159u8, 62u8, 152u8, 110u8, 198u8, - 125u8, 15u8, 127u8, 21u8, 31u8, 191u8, 241u8, - 167u8, 124u8, 77u8, 138u8, 133u8, 204u8, 30u8, - 180u8, 253u8, 126u8, 214u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::orml_tokens::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Tokens" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [103u8 , 137u8 , 30u8 , 231u8 , 144u8 , 86u8 , 36u8 , 246u8 , 38u8 , 138u8 , 76u8 , 9u8 , 82u8 , 232u8 , 100u8 , 7u8 , 48u8 , 111u8 , 249u8 , 59u8 , 57u8 , 60u8 , 5u8 , 70u8 , 144u8 , 190u8 , 122u8 , 205u8 , 36u8 , 237u8 , 57u8 , 254u8 ,]) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::orml_tokens::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Tokens", - "Reserves", - Vec::new(), - [ - 103u8, 137u8, 30u8, 231u8, 144u8, 86u8, 36u8, - 246u8, 38u8, 138u8, 76u8, 9u8, 82u8, 232u8, 100u8, - 7u8, 48u8, 111u8, 249u8, 59u8, 57u8, 60u8, 5u8, - 70u8, 144u8, 190u8, 122u8, 205u8, 36u8, 237u8, - 57u8, 254u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn max_locks( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Tokens", - "MaxLocks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Tokens", - "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, - ], - ) - } - } - } - } - pub mod token_wrapper { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_token_wrapper::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_token_wrapper::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetWrappingFee { - pub fee: ::core::primitive::u128, - pub into_pool_share_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetWrappingFee { - const PALLET: &'static str = "TokenWrapper"; - const CALL: &'static str = "set_wrapping_fee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetFeeRecipient { - pub pool_share_id: ::core::primitive::u32, - pub fee_recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetFeeRecipient { - const PALLET: &'static str = "TokenWrapper"; - const CALL: &'static str = "set_fee_recipient"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Wrap { - pub from_asset_id: ::core::primitive::u32, - pub into_pool_share_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for Wrap { - const PALLET: &'static str = "TokenWrapper"; - const CALL: &'static str = "wrap"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unwrap { - pub from_pool_share_id: ::core::primitive::u32, - pub into_asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for Unwrap { - const PALLET: &'static str = "TokenWrapper"; - const CALL: &'static str = "unwrap"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RescueTokens { - pub from_pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for RescueTokens { - const PALLET: &'static str = "TokenWrapper"; - const CALL: &'static str = "rescue_tokens"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn set_wrapping_fee( - &self, - fee: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapper", - "set_wrapping_fee", - types::SetWrappingFee { - fee, - into_pool_share_id, - nonce, - }, - [ - 60u8, 135u8, 246u8, 184u8, 70u8, 22u8, 245u8, 60u8, - 190u8, 224u8, 114u8, 168u8, 238u8, 146u8, 49u8, - 213u8, 85u8, 107u8, 221u8, 241u8, 218u8, 121u8, - 170u8, 227u8, 254u8, 146u8, 84u8, 21u8, 249u8, - 65u8, 1u8, 73u8, - ], - ) - } - pub fn set_fee_recipient( - &self, - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapper", - "set_fee_recipient", - types::SetFeeRecipient { - pool_share_id, - fee_recipient, - nonce, - }, - [ - 4u8, 219u8, 75u8, 151u8, 219u8, 115u8, 91u8, 35u8, - 73u8, 226u8, 132u8, 46u8, 137u8, 243u8, 186u8, - 25u8, 49u8, 233u8, 67u8, 218u8, 187u8, 182u8, 52u8, - 11u8, 139u8, 91u8, 69u8, 112u8, 141u8, 80u8, 141u8, - 210u8, - ], - ) - } - pub fn wrap( - &self, - from_asset_id: ::core::primitive::u32, - into_pool_share_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TokenWrapper", - "wrap", - types::Wrap { - from_asset_id, - into_pool_share_id, - amount, - recipient, - }, - [ - 151u8, 42u8, 129u8, 19u8, 51u8, 10u8, 96u8, 207u8, - 223u8, 91u8, 43u8, 25u8, 221u8, 146u8, 64u8, 244u8, - 239u8, 74u8, 177u8, 62u8, 28u8, 41u8, 125u8, 63u8, - 191u8, 218u8, 188u8, 23u8, 196u8, 98u8, 201u8, - 82u8, - ], - ) - } - pub fn unwrap( - &self, - from_pool_share_id: ::core::primitive::u32, - into_asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TokenWrapper", - "unwrap", - types::Unwrap { - from_pool_share_id, - into_asset_id, - amount, - recipient, - }, - [ - 3u8, 113u8, 42u8, 230u8, 32u8, 79u8, 31u8, 174u8, - 5u8, 72u8, 213u8, 19u8, 44u8, 117u8, 75u8, 170u8, - 14u8, 1u8, 18u8, 30u8, 32u8, 142u8, 2u8, 3u8, - 218u8, 244u8, 201u8, 16u8, 192u8, 142u8, 194u8, - 6u8, - ], - ) - } - pub fn rescue_tokens( - &self, - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TokenWrapper", - "rescue_tokens", - types::RescueTokens { - from_pool_share_id, - asset_id, - amount, - recipient, - nonce, - }, - [ - 253u8, 87u8, 167u8, 31u8, 39u8, 125u8, 110u8, 56u8, - 163u8, 190u8, 120u8, 179u8, 145u8, 82u8, 214u8, - 146u8, 61u8, 70u8, 48u8, 19u8, 156u8, 21u8, 176u8, - 146u8, 195u8, 127u8, 118u8, 61u8, 170u8, 119u8, - 187u8, 106u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_token_wrapper::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WrappedToken { - pub pool_share_asset: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for WrappedToken { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "WrappedToken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnwrappedToken { - pub pool_share_asset: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for UnwrappedToken { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UnwrappedToken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UpdatedWrappingFeePercent { - pub into_pool_share_id: ::core::primitive::u32, - pub wrapping_fee_percent: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UpdatedWrappingFeePercent"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UpdatedFeeRecipient { - pub fee_recipient: ::subxt::utils::AccountId32, - pub pool_share_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for UpdatedFeeRecipient { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "UpdatedFeeRecipient"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TokensRescued { - pub from_pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TokensRescued { - const PALLET: &'static str = "TokenWrapper"; - const EVENT: &'static str = "TokensRescued"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Percentage of amount to be used as wrapping fee"] - pub fn wrapping_fee_percent( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "WrappingFeePercent" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 126u8 , 185u8 , 195u8 , 250u8 , 224u8 , 247u8 , 225u8 , 251u8 , 232u8 , 118u8 , 36u8 , 104u8 , 42u8 , 118u8 , 184u8 , 232u8 , 148u8 , 238u8 , 142u8 , 123u8 , 71u8 , 37u8 , 218u8 , 200u8 , 216u8 , 84u8 , 184u8 , 4u8 , 56u8 , 13u8 , 94u8 ,]) - } - #[doc = " Percentage of amount to be used as wrapping fee"] - pub fn wrapping_fee_percent_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "TokenWrapper", - "WrappingFeePercent", - Vec::new(), - [ - 31u8, 126u8, 185u8, 195u8, 250u8, 224u8, 247u8, - 225u8, 251u8, 232u8, 118u8, 36u8, 104u8, 42u8, - 118u8, 184u8, 232u8, 148u8, 238u8, 142u8, 123u8, - 71u8, 37u8, 218u8, 200u8, 216u8, 84u8, 184u8, 4u8, - 56u8, 13u8, 94u8, - ], - ) - } - #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] - pub fn fee_recipient( - &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "FeeRecipient" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [79u8 , 99u8 , 123u8 , 161u8 , 162u8 , 129u8 , 150u8 , 254u8 , 231u8 , 49u8 , 234u8 , 102u8 , 25u8 , 234u8 , 86u8 , 145u8 , 97u8 , 30u8 , 37u8 , 85u8 , 223u8 , 139u8 , 16u8 , 16u8 , 12u8 , 70u8 , 12u8 , 113u8 , 95u8 , 141u8 , 134u8 , 142u8 ,]) - } - #[doc = " Fee recipient, account which will be receiving wrapping cost fee."] - pub fn fee_recipient_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "TokenWrapper", - "FeeRecipient", - Vec::new(), - [ - 79u8, 99u8, 123u8, 161u8, 162u8, 129u8, 150u8, - 254u8, 231u8, 49u8, 234u8, 102u8, 25u8, 234u8, - 86u8, 145u8, 97u8, 30u8, 37u8, 85u8, 223u8, 139u8, - 16u8, 16u8, 12u8, 70u8, 12u8, 113u8, 95u8, 141u8, - 134u8, 142u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] - pub fn proposal_nonce( - &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("TokenWrapper" , "ProposalNonce" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [255u8 , 130u8 , 216u8 , 75u8 , 22u8 , 132u8 , 182u8 , 54u8 , 158u8 , 158u8 , 6u8 , 185u8 , 86u8 , 163u8 , 142u8 , 247u8 , 135u8 , 96u8 , 187u8 , 53u8 , 18u8 , 142u8 , 28u8 , 247u8 , 190u8 , 42u8 , 246u8 , 180u8 , 25u8 , 163u8 , 134u8 , 228u8 ,]) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] - pub fn proposal_nonce_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "TokenWrapper", - "ProposalNonce", - Vec::new(), - [ - 255u8, 130u8, 216u8, 75u8, 22u8, 132u8, 182u8, - 54u8, 158u8, 158u8, 6u8, 185u8, 86u8, 163u8, 142u8, - 247u8, 135u8, 96u8, 187u8, 53u8, 18u8, 142u8, 28u8, - 247u8, 190u8, 42u8, 246u8, 180u8, 25u8, 163u8, - 134u8, 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "TokenWrapper", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - pub fn treasury_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "TokenWrapper", - "TreasuryId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - pub fn wrapping_fee_divider( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "TokenWrapper", - "WrappingFeeDivider", - [ - 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 token_wrapper_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = - runtime_types::pallet_token_wrapper_handler::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = - runtime_types::pallet_token_wrapper_handler::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteWrappingFeeProposal { - pub wrapping_fee_percent: ::core::primitive::u128, - pub into_pool_share_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteWrappingFeeProposal { - const PALLET: &'static str = "TokenWrapperHandler"; - const CALL: &'static str = "execute_wrapping_fee_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteAddTokenToPoolShare { - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub asset_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteAddTokenToPoolShare { - const PALLET: &'static str = "TokenWrapperHandler"; - const CALL: &'static str = - "execute_add_token_to_pool_share"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteRemoveTokenFromPoolShare { - pub name: ::std::vec::Vec<::core::primitive::u8>, - pub asset_id: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteRemoveTokenFromPoolShare { - const PALLET: &'static str = "TokenWrapperHandler"; - const CALL: &'static str = - "execute_remove_token_from_pool_share"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteSetFeeRecipientProposal { - pub pool_share_id: ::core::primitive::u32, - pub fee_recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteSetFeeRecipientProposal { - const PALLET: &'static str = "TokenWrapperHandler"; - const CALL: &'static str = - "execute_set_fee_recipient_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteRescueTokensProposal { - pub pool_share_id: ::core::primitive::u32, - pub asset_id: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub recipient: ::subxt::utils::AccountId32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteRescueTokensProposal { - const PALLET: &'static str = "TokenWrapperHandler"; - const CALL: &'static str = "execute_rescue_tokens_proposal"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] - #[doc = "method. Ensures that only the bridge can call this function."] - pub fn execute_wrapping_fee_proposal( - &self, - wrapping_fee_percent: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapperHandler", - "execute_wrapping_fee_proposal", - types::ExecuteWrappingFeeProposal { - wrapping_fee_percent, - into_pool_share_id, - nonce, - }, - [ - 151u8, 198u8, 139u8, 120u8, 128u8, 232u8, 69u8, - 120u8, 115u8, 47u8, 107u8, 79u8, 227u8, 240u8, - 115u8, 75u8, 93u8, 122u8, 216u8, 5u8, 163u8, 45u8, - 124u8, 42u8, 108u8, 171u8, 164u8, 75u8, 81u8, - 105u8, 156u8, 63u8, - ], - ) - } - pub fn execute_add_token_to_pool_share( - &self, - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapperHandler", - "execute_add_token_to_pool_share", - types::ExecuteAddTokenToPoolShare { - name, - asset_id, - nonce, - }, - [ - 100u8, 68u8, 240u8, 86u8, 44u8, 153u8, 29u8, 25u8, - 97u8, 95u8, 237u8, 202u8, 172u8, 150u8, 40u8, - 206u8, 67u8, 115u8, 11u8, 48u8, 2u8, 97u8, 41u8, - 2u8, 22u8, 172u8, 6u8, 11u8, 251u8, 248u8, 193u8, - 11u8, - ], - ) - } - pub fn execute_remove_token_from_pool_share( - &self, - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapperHandler", - "execute_remove_token_from_pool_share", - types::ExecuteRemoveTokenFromPoolShare { - name, - asset_id, - nonce, - }, - [ - 174u8, 253u8, 31u8, 62u8, 240u8, 34u8, 230u8, - 165u8, 169u8, 90u8, 189u8, 44u8, 12u8, 169u8, - 136u8, 98u8, 192u8, 79u8, 223u8, 153u8, 239u8, - 84u8, 71u8, 108u8, 178u8, 143u8, 61u8, 148u8, 6u8, - 204u8, 105u8, 144u8, - ], - ) - } - #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] - #[doc = "who will be receiving wrapping fee cost for given asset."] - #[doc = "Ensures that only the bridge can call this function."] - pub fn execute_set_fee_recipient_proposal( - &self, - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapperHandler", - "execute_set_fee_recipient_proposal", - types::ExecuteSetFeeRecipientProposal { - pool_share_id, - fee_recipient, - nonce, - }, - [ - 5u8, 50u8, 89u8, 17u8, 97u8, 30u8, 250u8, 167u8, - 227u8, 198u8, 222u8, 211u8, 6u8, 165u8, 94u8, - 252u8, 151u8, 49u8, 74u8, 244u8, 131u8, 196u8, - 234u8, 202u8, 19u8, 92u8, 247u8, 183u8, 242u8, - 89u8, 98u8, 40u8, - ], - ) - } - #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] - #[doc = "fee recipient to given recipient address from given asset."] - #[doc = "Ensures that only the bridge can call this function."] - pub fn execute_rescue_tokens_proposal( - &self, - pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "TokenWrapperHandler", - "execute_rescue_tokens_proposal", - types::ExecuteRescueTokensProposal { - pool_share_id, - asset_id, - amount, - recipient, - nonce, - }, - [ - 152u8, 151u8, 76u8, 65u8, 60u8, 153u8, 36u8, 0u8, - 46u8, 254u8, 155u8, 205u8, 61u8, 153u8, 8u8, 137u8, - 53u8, 66u8, 49u8, 14u8, 53u8, 250u8, 95u8, 98u8, - 148u8, 141u8, 135u8, 142u8, 163u8, 123u8, 250u8, - 235u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_token_wrapper_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UpdatedWrappingFeePercent { - pub wrapping_fee_percent: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UpdatedWrappingFeePercent { - const PALLET: &'static str = "TokenWrapperHandler"; - const EVENT: &'static str = "UpdatedWrappingFeePercent"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi {} - } - } - pub mod mixer_verifier_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_verifier::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_verifier::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSetParameters { pub parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { - const PALLET: &'static str = "MixerVerifierBn254"; - const CALL: &'static str = "force_set_parameters"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "MixerVerifierBn254", - "force_set_parameters", - types::ForceSetParameters { parameters }, - [ - 164u8, 96u8, 131u8, 130u8, 176u8, 108u8, 49u8, - 79u8, 125u8, 104u8, 58u8, 116u8, 254u8, 112u8, - 73u8, 10u8, 227u8, 10u8, 108u8, 151u8, 235u8, - 227u8, 236u8, 239u8, 198u8, 67u8, 109u8, 35u8, - 75u8, 166u8, 90u8, 127u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_verifier::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] - pub fn parameters( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MixerVerifierBn254", - "Parameters", - vec![], - [ - 115u8, 190u8, 204u8, 203u8, 92u8, 187u8, 147u8, - 31u8, 11u8, 101u8, 219u8, 202u8, 203u8, 127u8, - 27u8, 15u8, 137u8, 160u8, 235u8, 43u8, 8u8, 103u8, - 255u8, 216u8, 79u8, 130u8, 122u8, 146u8, 81u8, - 110u8, 163u8, 192u8, - ], - ) - } - } - } - } - pub mod v_anchor_verifier { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_vanchor_verifier::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_vanchor_verifier::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSetParameters { pub configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , pub parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for ForceSetParameters { - const PALLET: &'static str = "VAnchorVerifier"; - const CALL: &'static str = "force_set_parameters"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn force_set_parameters( - &self, - configuration: ( - ::core::primitive::u8, - ::core::primitive::u8, - ), - parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorVerifier", - "force_set_parameters", - types::ForceSetParameters { - configuration, - parameters, - }, - [ - 21u8, 13u8, 77u8, 47u8, 51u8, 143u8, 238u8, 56u8, - 197u8, 27u8, 184u8, 112u8, 150u8, 225u8, 90u8, - 114u8, 85u8, 223u8, 80u8, 180u8, 87u8, 224u8, 88u8, - 240u8, 31u8, 155u8, 173u8, 71u8, 22u8, 223u8, - 162u8, 180u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor_verifier::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters for different vanchor configurations"] - pub fn parameters( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u8>, - _1: impl ::std::borrow::Borrow<::core::primitive::u8>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("VAnchorVerifier" , "Parameters" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [158u8 , 70u8 , 6u8 , 255u8 , 76u8 , 199u8 , 208u8 , 93u8 , 218u8 , 86u8 , 190u8 , 70u8 , 232u8 , 57u8 , 91u8 , 148u8 , 223u8 , 50u8 , 229u8 , 94u8 , 50u8 , 78u8 , 22u8 , 207u8 , 30u8 , 179u8 , 158u8 , 85u8 , 139u8 , 166u8 , 240u8 , 136u8 ,]) - } - #[doc = " Details of the module's parameters for different vanchor configurations"] - pub fn parameters_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "VAnchorVerifier", - "Parameters", - Vec::new(), - [ - 158u8, 70u8, 6u8, 255u8, 76u8, 199u8, 208u8, 93u8, - 218u8, 86u8, 190u8, 70u8, 232u8, 57u8, 91u8, 148u8, - 223u8, 50u8, 229u8, 94u8, 50u8, 78u8, 22u8, 207u8, - 30u8, 179u8, 158u8, 85u8, 139u8, 166u8, 240u8, - 136u8, - ], - ) - } - } - } - } - pub mod merkle_tree_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_mt::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_mt::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - pub depth: ::core::primitive::u8, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "MerkleTreeBn254"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Insert { - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::blocks::StaticExtrinsic for Insert { - const PALLET: &'static str = "MerkleTreeBn254"; - const CALL: &'static str = "insert"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSetDefaultHashes { pub default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element > , } - impl ::subxt::blocks::StaticExtrinsic for ForceSetDefaultHashes { - const PALLET: &'static str = "MerkleTreeBn254"; - const CALL: &'static str = "force_set_default_hashes"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - depth: ::core::primitive::u8, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MerkleTreeBn254", - "create", - types::Create { depth }, - [ - 101u8, 141u8, 101u8, 131u8, 97u8, 194u8, 160u8, - 159u8, 181u8, 29u8, 158u8, 167u8, 174u8, 21u8, 2u8, - 191u8, 254u8, 131u8, 228u8, 162u8, 70u8, 187u8, - 140u8, 95u8, 113u8, 138u8, 81u8, 219u8, 109u8, - 176u8, 131u8, 58u8, - ], - ) - } - pub fn insert( - &self, - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MerkleTreeBn254", - "insert", - types::Insert { tree_id, leaf }, - [ - 151u8, 86u8, 79u8, 4u8, 158u8, 170u8, 235u8, 236u8, - 161u8, 51u8, 108u8, 207u8, 113u8, 70u8, 64u8, 5u8, - 94u8, 5u8, 147u8, 87u8, 250u8, 27u8, 111u8, 46u8, - 141u8, 67u8, 223u8, 254u8, 177u8, 171u8, 111u8, - 103u8, - ], - ) - } - pub fn force_set_default_hashes( - &self, - default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "MerkleTreeBn254", - "force_set_default_hashes", - types::ForceSetDefaultHashes { default_hashes }, - [ - 39u8, 13u8, 28u8, 236u8, 30u8, 33u8, 206u8, 43u8, - 40u8, 220u8, 116u8, 91u8, 123u8, 161u8, 227u8, - 42u8, 155u8, 46u8, 27u8, 13u8, 101u8, 23u8, 103u8, - 151u8, 216u8, 71u8, 97u8, 160u8, 209u8, 76u8, 71u8, - 74u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_mt::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New tree created"] - pub struct TreeCreation { - pub tree_id: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for TreeCreation { - const PALLET: &'static str = "MerkleTreeBn254"; - const EVENT: &'static str = "TreeCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New leaf inserted"] - pub struct LeafInsertion { - pub tree_id: ::core::primitive::u32, - pub leaf_index: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::events::StaticEvent for LeafInsertion { - const PALLET: &'static str = "MerkleTreeBn254"; - const EVENT: &'static str = "LeafInsertion"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Details of the module's parameters"] - pub fn deposit( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::types::DepositDetails< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "Deposit", - vec![], - [ - 175u8, 238u8, 72u8, 65u8, 101u8, 152u8, 252u8, - 101u8, 127u8, 181u8, 93u8, 29u8, 16u8, 241u8, - 243u8, 226u8, 128u8, 149u8, 202u8, 94u8, 15u8, - 35u8, 11u8, 240u8, 16u8, 177u8, 120u8, 193u8, - 213u8, 236u8, 151u8, 36u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] - pub fn next_tree_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "NextTreeId", - vec![], - [ - 173u8, 89u8, 80u8, 58u8, 200u8, 64u8, 201u8, 3u8, - 169u8, 139u8, 75u8, 117u8, 56u8, 52u8, 163u8, 25u8, - 83u8, 189u8, 66u8, 245u8, 249u8, 30u8, 211u8, - 225u8, 16u8, 47u8, 232u8, 148u8, 75u8, 156u8, - 233u8, 74u8, - ], - ) - } - #[doc = " The map of trees to their metadata"] - pub fn trees( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_mt::types::TreeMetadata< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - runtime_types::webb_primitives::runtime::Element, - runtime_types::webb_standalone_runtime::MaxEdges, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "Trees" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [64u8 , 52u8 , 2u8 , 9u8 , 150u8 , 70u8 , 94u8 , 245u8 , 245u8 , 212u8 , 230u8 , 204u8 , 106u8 , 58u8 , 79u8 , 64u8 , 17u8 , 36u8 , 212u8 , 85u8 , 67u8 , 39u8 , 90u8 , 194u8 , 193u8 , 110u8 , 85u8 , 133u8 , 224u8 , 193u8 , 13u8 , 46u8 ,]) - } - #[doc = " The map of trees to their metadata"] - pub fn trees_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_mt::types::TreeMetadata< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - runtime_types::webb_primitives::runtime::Element, - runtime_types::webb_standalone_runtime::MaxEdges, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "Trees", - Vec::new(), - [ - 64u8, 52u8, 2u8, 9u8, 150u8, 70u8, 94u8, 245u8, - 245u8, 212u8, 230u8, 204u8, 106u8, 58u8, 79u8, - 64u8, 17u8, 36u8, 212u8, 85u8, 67u8, 39u8, 90u8, - 194u8, 193u8, 110u8, 85u8, 133u8, 224u8, 193u8, - 13u8, 46u8, - ], - ) - } - #[doc = " The default hashes for this tree pallet"] - pub fn default_hashes( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::webb_primitives::runtime::Element, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "DefaultHashes", - vec![], - [ - 5u8, 167u8, 42u8, 194u8, 16u8, 7u8, 44u8, 239u8, - 119u8, 4u8, 126u8, 229u8, 53u8, 70u8, 117u8, 18u8, - 91u8, 186u8, 181u8, 55u8, 188u8, 230u8, 11u8, - 196u8, 247u8, 30u8, 98u8, 58u8, 193u8, 76u8, 9u8, - 212u8, - ], - ) - } - #[doc = " The map of (tree_id, index) to the leaf commitment"] - pub fn leaves( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::runtime::Element, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "Leaves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [254u8 , 175u8 , 119u8 , 127u8 , 20u8 , 24u8 , 100u8 , 16u8 , 25u8 , 49u8 , 82u8 , 151u8 , 73u8 , 145u8 , 127u8 , 130u8 , 154u8 , 198u8 , 137u8 , 37u8 , 202u8 , 114u8 , 151u8 , 31u8 , 246u8 , 162u8 , 210u8 , 127u8 , 139u8 , 44u8 , 35u8 , 13u8 ,]) - } - #[doc = " The map of (tree_id, index) to the leaf commitment"] - pub fn leaves_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::runtime::Element, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "Leaves", - Vec::new(), - [ - 254u8, 175u8, 119u8, 127u8, 20u8, 24u8, 100u8, - 16u8, 25u8, 49u8, 82u8, 151u8, 73u8, 145u8, 127u8, - 130u8, 154u8, 198u8, 137u8, 37u8, 202u8, 114u8, - 151u8, 31u8, 246u8, 162u8, 210u8, 127u8, 139u8, - 44u8, 35u8, 13u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] - pub fn next_root_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "NextRootIndex", - vec![], - [ - 175u8, 70u8, 212u8, 119u8, 231u8, 181u8, 88u8, - 15u8, 186u8, 22u8, 1u8, 117u8, 56u8, 178u8, 191u8, - 154u8, 150u8, 203u8, 131u8, 128u8, 22u8, 141u8, - 171u8, 148u8, 160u8, 177u8, 38u8, 48u8, 76u8, - 198u8, 224u8, 126u8, - ], - ) - } - #[doc = " The next tree identifier up for grabs"] - pub fn next_leaf_index( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "NextLeafIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [50u8 , 243u8 , 135u8 , 181u8 , 149u8 , 69u8 , 42u8 , 31u8 , 72u8 , 206u8 , 86u8 , 230u8 , 207u8 , 247u8 , 60u8 , 27u8 , 91u8 , 95u8 , 103u8 , 48u8 , 101u8 , 252u8 , 136u8 , 220u8 , 56u8 , 246u8 , 184u8 , 208u8 , 140u8 , 82u8 , 250u8 , 22u8 ,]) - } - #[doc = " The next tree identifier up for grabs"] - pub fn next_leaf_index_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "NextLeafIndex", - Vec::new(), - [ - 50u8, 243u8, 135u8, 181u8, 149u8, 69u8, 42u8, 31u8, - 72u8, 206u8, 86u8, 230u8, 207u8, 247u8, 60u8, 27u8, - 91u8, 95u8, 103u8, 48u8, 101u8, 252u8, 136u8, - 220u8, 56u8, 246u8, 184u8, 208u8, 140u8, 82u8, - 250u8, 22u8, - ], - ) - } - #[doc = " Map of root history from tree id to root index to root values"] - pub fn cached_roots( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::runtime::Element, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("MerkleTreeBn254" , "CachedRoots" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [60u8 , 183u8 , 112u8 , 98u8 , 129u8 , 52u8 , 122u8 , 187u8 , 82u8 , 235u8 , 222u8 , 75u8 , 72u8 , 150u8 , 53u8 , 69u8 , 76u8 , 144u8 , 11u8 , 131u8 , 140u8 , 152u8 , 243u8 , 122u8 , 168u8 , 92u8 , 219u8 , 42u8 , 229u8 , 208u8 , 78u8 , 105u8 ,]) - } - #[doc = " Map of root history from tree id to root index to root values"] - pub fn cached_roots_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::runtime::Element, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MerkleTreeBn254", - "CachedRoots", - Vec::new(), - [ - 60u8, 183u8, 112u8, 98u8, 129u8, 52u8, 122u8, - 187u8, 82u8, 235u8, 222u8, 75u8, 72u8, 150u8, 53u8, - 69u8, 76u8, 144u8, 11u8, 131u8, 140u8, 152u8, - 243u8, 122u8, 168u8, 92u8, 219u8, 42u8, 229u8, - 208u8, 78u8, 105u8, - ], - ) - } - } - } - } - pub mod linkable_tree_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_linkable_tree::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_linkable_tree::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - pub max_edges: ::core::primitive::u32, - pub depth: ::core::primitive::u8, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "LinkableTreeBn254"; - const CALL: &'static str = "create"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "LinkableTreeBn254", - "create", - types::Create { max_edges, depth }, - [ - 95u8, 217u8, 213u8, 178u8, 133u8, 233u8, 101u8, - 67u8, 62u8, 233u8, 188u8, 150u8, 111u8, 88u8, 0u8, - 241u8, 215u8, 208u8, 245u8, 191u8, 52u8, 162u8, - 79u8, 231u8, 228u8, 232u8, 49u8, 103u8, 178u8, - 96u8, 176u8, 206u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_linkable_tree::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New tree created"] - pub struct LinkableTreeCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for LinkableTreeCreation { - const PALLET: &'static str = "LinkableTreeBn254"; - const EVENT: &'static str = "LinkableTreeCreation"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to the maximum number of anchor edges they can have"] - pub fn max_edges( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "MaxEdges" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [198u8 , 254u8 , 155u8 , 234u8 , 177u8 , 109u8 , 109u8 , 57u8 , 207u8 , 37u8 , 12u8 , 234u8 , 187u8 , 187u8 , 77u8 , 227u8 , 100u8 , 135u8 , 111u8 , 195u8 , 194u8 , 104u8 , 52u8 , 186u8 , 10u8 , 128u8 , 248u8 , 88u8 , 87u8 , 154u8 , 229u8 , 90u8 ,]) - } - #[doc = " The map of trees to the maximum number of anchor edges they can have"] - pub fn max_edges_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "LinkableTreeBn254", - "MaxEdges", - Vec::new(), - [ - 198u8, 254u8, 155u8, 234u8, 177u8, 109u8, 109u8, - 57u8, 207u8, 37u8, 12u8, 234u8, 187u8, 187u8, 77u8, - 227u8, 100u8, 135u8, 111u8, 195u8, 194u8, 104u8, - 52u8, 186u8, 10u8, 128u8, 248u8, 88u8, 87u8, 154u8, - 229u8, 90u8, - ], - ) - } - #[doc = " The map of trees and chain ids to their edge metadata"] - pub fn edge_list( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_linkable_tree::types::EdgeMetadata< - ::core::primitive::u64, - runtime_types::webb_primitives::runtime::Element, - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "EdgeList" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [129u8 , 93u8 , 177u8 , 204u8 , 167u8 , 37u8 , 32u8 , 189u8 , 47u8 , 99u8 , 19u8 , 161u8 , 55u8 , 2u8 , 224u8 , 1u8 , 223u8 , 145u8 , 51u8 , 138u8 , 243u8 , 185u8 , 255u8 , 32u8 , 6u8 , 123u8 , 244u8 , 248u8 , 133u8 , 189u8 , 97u8 , 159u8 ,]) - } - #[doc = " The map of trees and chain ids to their edge metadata"] - pub fn edge_list_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_linkable_tree::types::EdgeMetadata< - ::core::primitive::u64, - runtime_types::webb_primitives::runtime::Element, - ::core::primitive::u32, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "LinkableTreeBn254", - "EdgeList", - Vec::new(), - [ - 129u8, 93u8, 177u8, 204u8, 167u8, 37u8, 32u8, - 189u8, 47u8, 99u8, 19u8, 161u8, 55u8, 2u8, 224u8, - 1u8, 223u8, 145u8, 51u8, 138u8, 243u8, 185u8, - 255u8, 32u8, 6u8, 123u8, 244u8, 248u8, 133u8, - 189u8, 97u8, 159u8, - ], - ) - } - #[doc = " A helper map for denoting whether an tree is bridged to given chain"] - pub fn linkable_tree_has_edge( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "LinkableTreeHasEdge" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [159u8 , 137u8 , 120u8 , 239u8 , 119u8 , 134u8 , 14u8 , 74u8 , 253u8 , 30u8 , 22u8 , 29u8 , 177u8 , 255u8 , 4u8 , 81u8 , 86u8 , 20u8 , 141u8 , 192u8 , 23u8 , 16u8 , 200u8 , 87u8 , 93u8 , 252u8 , 91u8 , 240u8 , 162u8 , 163u8 , 146u8 , 163u8 ,]) - } - #[doc = " A helper map for denoting whether an tree is bridged to given chain"] - pub fn linkable_tree_has_edge_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "LinkableTreeBn254", - "LinkableTreeHasEdge", - Vec::new(), - [ - 159u8, 137u8, 120u8, 239u8, 119u8, 134u8, 14u8, - 74u8, 253u8, 30u8, 22u8, 29u8, 177u8, 255u8, 4u8, - 81u8, 86u8, 20u8, 141u8, 192u8, 23u8, 16u8, 200u8, - 87u8, 93u8, 252u8, 91u8, 240u8, 162u8, 163u8, - 146u8, 163u8, - ], - ) - } - #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] - pub fn neighbor_roots( - &self, - _0: impl ::std::borrow::Borrow<( - ::core::primitive::u32, - ::core::primitive::u64, - )>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::runtime::Element, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "NeighborRoots" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [240u8 , 198u8 , 38u8 , 115u8 , 71u8 , 53u8 , 46u8 , 249u8 , 243u8 , 197u8 , 50u8 , 11u8 , 181u8 , 11u8 , 183u8 , 61u8 , 213u8 , 66u8 , 191u8 , 220u8 , 225u8 , 203u8 , 3u8 , 190u8 , 131u8 , 47u8 , 66u8 , 12u8 , 68u8 , 201u8 , 181u8 , 99u8 ,]) - } - #[doc = " The map of (tree, chain id) pairs to their latest recorded merkle root"] - pub fn neighbor_roots_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_primitives::runtime::Element, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "LinkableTreeBn254", - "NeighborRoots", - Vec::new(), - [ - 240u8, 198u8, 38u8, 115u8, 71u8, 53u8, 46u8, 249u8, - 243u8, 197u8, 50u8, 11u8, 181u8, 11u8, 183u8, 61u8, - 213u8, 66u8, 191u8, 220u8, 225u8, 203u8, 3u8, - 190u8, 131u8, 47u8, 66u8, 12u8, 68u8, 201u8, 181u8, - 99u8, - ], - ) - } - #[doc = " The next neighbor root index to store the merkle root update record"] - pub fn current_neighbor_root_index( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("LinkableTreeBn254" , "CurrentNeighborRootIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [114u8 , 40u8 , 99u8 , 72u8 , 241u8 , 89u8 , 253u8 , 122u8 , 226u8 , 181u8 , 168u8 , 58u8 , 70u8 , 0u8 , 110u8 , 141u8 , 58u8 , 12u8 , 177u8 , 129u8 , 103u8 , 45u8 , 160u8 , 139u8 , 99u8 , 198u8 , 181u8 , 154u8 , 78u8 , 62u8 , 201u8 , 227u8 ,]) - } - #[doc = " The next neighbor root index to store the merkle root update record"] - pub fn current_neighbor_root_index_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "LinkableTreeBn254", - "CurrentNeighborRootIndex", - Vec::new(), - [ - 114u8, 40u8, 99u8, 72u8, 241u8, 89u8, 253u8, 122u8, - 226u8, 181u8, 168u8, 58u8, 70u8, 0u8, 110u8, 141u8, - 58u8, 12u8, 177u8, 129u8, 103u8, 45u8, 160u8, - 139u8, 99u8, 198u8, 181u8, 154u8, 78u8, 62u8, - 201u8, 227u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " ChainID type for this chain"] - pub fn chain_type( - &self, - ) -> ::subxt::constants::Address<[::core::primitive::u8; 2usize]> - { - ::subxt::constants::Address::new_static( - "LinkableTreeBn254", - "ChainType", - [ - 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, - 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, - 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, - 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, - 240u8, 86u8, - ], - ) - } - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "LinkableTreeBn254", - "ChainIdentifier", - [ - 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 pruning length for neighbor root histories"] - pub fn history_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "LinkableTreeBn254", - "HistoryLength", - [ - 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 mixer_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_mixer::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_mixer::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - pub deposit_size: ::core::primitive::u128, - pub depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "MixerBn254"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Deposit { - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::blocks::StaticExtrinsic for Deposit { - const PALLET: &'static str = "MixerBn254"; - const CALL: &'static str = "deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Withdraw { - pub id: ::core::primitive::u32, - pub proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - pub root: runtime_types::webb_primitives::runtime::Element, - pub nullifier_hash: - runtime_types::webb_primitives::runtime::Element, - pub recipient: ::subxt::utils::AccountId32, - pub relayer: ::subxt::utils::AccountId32, - pub fee: ::core::primitive::u128, - pub refund: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Withdraw { - const PALLET: &'static str = "MixerBn254"; - const CALL: &'static str = "withdraw"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - deposit_size: ::core::primitive::u128, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MixerBn254", - "create", - types::Create { - deposit_size, - depth, - asset, - }, - [ - 53u8, 217u8, 41u8, 250u8, 195u8, 125u8, 121u8, - 239u8, 62u8, 136u8, 254u8, 202u8, 250u8, 97u8, - 183u8, 23u8, 85u8, 249u8, 212u8, 217u8, 218u8, - 162u8, 212u8, 89u8, 76u8, 95u8, 239u8, 34u8, 76u8, - 231u8, 27u8, 151u8, - ], - ) - } - pub fn deposit( - &self, - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MixerBn254", - "deposit", - types::Deposit { tree_id, leaf }, - [ - 104u8, 199u8, 158u8, 83u8, 100u8, 27u8, 207u8, - 32u8, 124u8, 162u8, 5u8, 227u8, 125u8, 197u8, - 251u8, 180u8, 199u8, 250u8, 95u8, 69u8, 174u8, - 124u8, 66u8, 95u8, 122u8, 84u8, 231u8, 8u8, 205u8, - 71u8, 23u8, 224u8, - ], - ) - } - pub fn withdraw( - &self, - id: ::core::primitive::u32, - proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - root: runtime_types::webb_primitives::runtime::Element, - nullifier_hash : runtime_types :: webb_primitives :: runtime :: Element, - recipient: ::subxt::utils::AccountId32, - relayer: ::subxt::utils::AccountId32, - fee: ::core::primitive::u128, - refund: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MixerBn254", - "withdraw", - types::Withdraw { - id, - proof_bytes, - root, - nullifier_hash, - recipient, - relayer, - fee, - refund, - }, - [ - 30u8, 228u8, 205u8, 113u8, 251u8, 11u8, 150u8, - 32u8, 63u8, 227u8, 217u8, 126u8, 154u8, 250u8, - 95u8, 192u8, 203u8, 107u8, 241u8, 221u8, 251u8, - 83u8, 70u8, 84u8, 69u8, 190u8, 222u8, 57u8, 29u8, - 183u8, 17u8, 68u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_mixer::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New tree created"] - pub struct MixerCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for MixerCreation { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "MixerCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Deposit { - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Withdraw { - pub tree_id: ::core::primitive::u32, - pub recipient: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "MixerBn254"; - const EVENT: &'static str = "Withdraw"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to their mixer metadata"] - pub fn mixers( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_mixer::types::MixerMetadata< - ::core::primitive::u128, - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("MixerBn254" , "Mixers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [30u8 , 216u8 , 0u8 , 53u8 , 203u8 , 108u8 , 202u8 , 45u8 , 173u8 , 173u8 , 108u8 , 254u8 , 29u8 , 23u8 , 97u8 , 163u8 , 102u8 , 196u8 , 204u8 , 14u8 , 30u8 , 68u8 , 217u8 , 162u8 , 175u8 , 88u8 , 138u8 , 153u8 , 228u8 , 74u8 , 125u8 , 11u8 ,]) - } - #[doc = " The map of trees to their mixer metadata"] - pub fn mixers_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_mixer::types::MixerMetadata< - ::core::primitive::u128, - ::core::primitive::u32, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MixerBn254", - "Mixers", - Vec::new(), - [ - 30u8, 216u8, 0u8, 53u8, 203u8, 108u8, 202u8, 45u8, - 173u8, 173u8, 108u8, 254u8, 29u8, 23u8, 97u8, - 163u8, 102u8, 196u8, 204u8, 14u8, 30u8, 68u8, - 217u8, 162u8, 175u8, 88u8, 138u8, 153u8, 228u8, - 74u8, 125u8, 11u8, - ], - ) - } - #[doc = " The map of trees to their spent nullifier hashes"] - pub fn nullifier_hashes( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::webb_primitives::runtime::Element, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("MixerBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) - } - #[doc = " The map of trees to their spent nullifier hashes"] - pub fn nullifier_hashes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MixerBn254", - "NullifierHashes", - Vec::new(), - [ - 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, - 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, - 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, - 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, - 185u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "MixerBn254", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " Native currency id"] - pub fn native_currency_id( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "MixerBn254", - "NativeCurrencyId", - [ - 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 v_anchor_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_vanchor::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_vanchor::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - pub max_edges: ::core::primitive::u32, - pub depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "VAnchorBn254"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transact { pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } - impl ::subxt::blocks::StaticExtrinsic for Transact { - const PALLET: &'static str = "VAnchorBn254"; - const CALL: &'static str = "transact"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RegisterAndTransact { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub id : :: core :: primitive :: u32 , pub proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , pub ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } - impl ::subxt::blocks::StaticExtrinsic for RegisterAndTransact { - const PALLET: &'static str = "VAnchorBn254"; - const CALL: &'static str = "register_and_transact"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMaxDepositAmount { - pub max_deposit_amount: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxDepositAmount { - const PALLET: &'static str = "VAnchorBn254"; - const CALL: &'static str = "set_max_deposit_amount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMinWithdrawAmount { - pub min_withdraw_amount: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetMinWithdrawAmount { - const PALLET: &'static str = "VAnchorBn254"; - const CALL: &'static str = "set_min_withdraw_amount"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn create( - &self, - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "VAnchorBn254", - "create", - types::Create { - max_edges, - depth, - asset, - }, - [ - 179u8, 67u8, 213u8, 88u8, 4u8, 208u8, 165u8, 229u8, - 106u8, 59u8, 181u8, 181u8, 67u8, 139u8, 48u8, - 227u8, 237u8, 190u8, 95u8, 118u8, 70u8, 177u8, - 106u8, 67u8, 253u8, 70u8, 125u8, 78u8, 22u8, 142u8, - 161u8, 100u8, - ], - ) - } - pub fn transact( - &self, - id: ::core::primitive::u32, - proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element >, - ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "VAnchorBn254", - "transact", - types::Transact { - id, - proof_data, - ext_data, - }, - [ - 157u8, 31u8, 193u8, 175u8, 45u8, 95u8, 117u8, - 197u8, 158u8, 109u8, 20u8, 9u8, 148u8, 218u8, - 112u8, 129u8, 151u8, 106u8, 221u8, 47u8, 172u8, - 114u8, 172u8, 173u8, 2u8, 7u8, 145u8, 32u8, 157u8, - 61u8, 215u8, 176u8, - ], - ) - } - pub fn register_and_transact( - &self, - owner: ::subxt::utils::AccountId32, - public_key: ::std::vec::Vec<::core::primitive::u8>, - id: ::core::primitive::u32, - proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element >, - ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorBn254", - "register_and_transact", - types::RegisterAndTransact { - owner, - public_key, - id, - proof_data, - ext_data, - }, - [ - 21u8, 243u8, 134u8, 214u8, 148u8, 56u8, 53u8, 92u8, - 137u8, 39u8, 119u8, 189u8, 110u8, 72u8, 76u8, 84u8, - 233u8, 62u8, 147u8, 247u8, 172u8, 9u8, 69u8, 49u8, - 141u8, 145u8, 161u8, 32u8, 86u8, 13u8, 74u8, 119u8, - ], - ) - } - pub fn set_max_deposit_amount( - &self, - max_deposit_amount: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorBn254", - "set_max_deposit_amount", - types::SetMaxDepositAmount { - max_deposit_amount, - nonce, - }, - [ - 176u8, 129u8, 140u8, 194u8, 38u8, 99u8, 96u8, - 123u8, 223u8, 127u8, 142u8, 201u8, 168u8, 229u8, - 117u8, 84u8, 88u8, 187u8, 141u8, 17u8, 227u8, - 250u8, 61u8, 213u8, 138u8, 191u8, 79u8, 233u8, - 219u8, 157u8, 162u8, 131u8, - ], - ) - } - pub fn set_min_withdraw_amount( - &self, - min_withdraw_amount: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorBn254", - "set_min_withdraw_amount", - types::SetMinWithdrawAmount { - min_withdraw_amount, - nonce, - }, - [ - 57u8, 249u8, 24u8, 174u8, 12u8, 147u8, 47u8, 89u8, - 196u8, 217u8, 27u8, 19u8, 74u8, 241u8, 51u8, 27u8, - 209u8, 252u8, 129u8, 50u8, 7u8, 162u8, 115u8, 60u8, - 92u8, 168u8, 238u8, 168u8, 139u8, 240u8, 58u8, - 16u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New tree created"] - pub struct VAnchorCreation { - pub tree_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for VAnchorCreation { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "VAnchorCreation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Transaction has been made"] - pub struct Transaction { - pub transactor: ::subxt::utils::AccountId32, - pub tree_id: ::core::primitive::u32, - pub leafs: ::std::vec::Vec< - runtime_types::webb_primitives::runtime::Element, - >, - pub encrypted_output1: ::std::vec::Vec<::core::primitive::u8>, - pub encrypted_output2: ::std::vec::Vec<::core::primitive::u8>, - pub amount: ::core::primitive::i128, - } - impl ::subxt::events::StaticEvent for Transaction { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "Transaction"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Deposit hook has executed successfully"] - pub struct Deposit { - pub depositor: ::subxt::utils::AccountId32, - pub tree_id: ::core::primitive::u32, - pub leaf: runtime_types::webb_primitives::runtime::Element, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MaxDepositAmountChanged { - pub max_deposit_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for MaxDepositAmountChanged { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "MaxDepositAmountChanged"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MinWithdrawAmountChanged { - pub min_withdraw_amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for MinWithdrawAmountChanged { - const PALLET: &'static str = "VAnchorBn254"; - const EVENT: &'static str = "MinWithdrawAmountChanged"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn max_deposit_amount( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "VAnchorBn254", - "MaxDepositAmount", - vec![], - [ - 103u8, 143u8, 218u8, 145u8, 13u8, 227u8, 200u8, - 72u8, 147u8, 151u8, 21u8, 63u8, 38u8, 101u8, 23u8, - 45u8, 67u8, 250u8, 184u8, 206u8, 10u8, 184u8, 98u8, - 179u8, 120u8, 62u8, 92u8, 199u8, 30u8, 255u8, 26u8, - 84u8, - ], - ) - } - pub fn min_withdraw_amount( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "VAnchorBn254", - "MinWithdrawAmount", - vec![], - [ - 217u8, 143u8, 57u8, 19u8, 253u8, 60u8, 103u8, - 182u8, 70u8, 55u8, 27u8, 66u8, 117u8, 86u8, 196u8, - 163u8, 41u8, 18u8, 117u8, 125u8, 232u8, 109u8, - 197u8, 177u8, 54u8, 157u8, 165u8, 251u8, 16u8, - 49u8, 113u8, 240u8, - ], - ) - } - #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("VAnchorBn254" , "VAnchors" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [36u8 , 134u8 , 67u8 , 39u8 , 166u8 , 66u8 , 25u8 , 61u8 , 47u8 , 227u8 , 59u8 , 137u8 , 206u8 , 140u8 , 252u8 , 38u8 , 69u8 , 243u8 , 65u8 , 15u8 , 127u8 , 65u8 , 200u8 , 12u8 , 60u8 , 140u8 , 19u8 , 168u8 , 135u8 , 135u8 , 38u8 , 219u8 ,]) - } - #[doc = " The map of trees to their anchor metadata"] pub fn v_anchors_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: webb_primitives :: types :: vanchor :: VAnchorMetadata < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "VAnchorBn254", - "VAnchors", - Vec::new(), - [ - 36u8, 134u8, 67u8, 39u8, 166u8, 66u8, 25u8, 61u8, - 47u8, 227u8, 59u8, 137u8, 206u8, 140u8, 252u8, - 38u8, 69u8, 243u8, 65u8, 15u8, 127u8, 65u8, 200u8, - 12u8, 60u8, 140u8, 19u8, 168u8, 135u8, 135u8, 38u8, - 219u8, - ], - ) - } - #[doc = " The map of trees to their spent nullifier hashes"] - pub fn nullifier_hashes( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::webb_primitives::runtime::Element, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("VAnchorBn254" , "NullifierHashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [118u8 , 48u8 , 191u8 , 59u8 , 166u8 , 221u8 , 49u8 , 193u8 , 0u8 , 50u8 , 25u8 , 33u8 , 205u8 , 227u8 , 229u8 , 11u8 , 33u8 , 170u8 , 184u8 , 241u8 , 205u8 , 14u8 , 84u8 , 58u8 , 107u8 , 60u8 , 32u8 , 0u8 , 192u8 , 106u8 , 143u8 , 185u8 ,]) - } - #[doc = " The map of trees to their spent nullifier hashes"] - pub fn nullifier_hashes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "VAnchorBn254", - "NullifierHashes", - Vec::new(), - [ - 118u8, 48u8, 191u8, 59u8, 166u8, 221u8, 49u8, - 193u8, 0u8, 50u8, 25u8, 33u8, 205u8, 227u8, 229u8, - 11u8, 33u8, 170u8, 184u8, 241u8, 205u8, 14u8, 84u8, - 58u8, 107u8, 60u8, 32u8, 0u8, 192u8, 106u8, 143u8, - 185u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] - pub fn proposal_nonce( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "VAnchorBn254", - "ProposalNonce", - vec![], - [ - 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, - 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, - 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, - 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "VAnchorBn254", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " Native currency id"] - pub fn native_currency_id( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "VAnchorBn254", - "NativeCurrencyId", - [ - 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 v_anchor_handler_bn254 { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_vanchor_handler::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_vanchor_handler::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteVanchorCreateProposal { - pub src_chain_id: ::core::primitive::u64, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub max_edges: ::core::primitive::u32, - pub tree_depth: ::core::primitive::u8, - pub asset: ::core::primitive::u32, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteVanchorCreateProposal { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const CALL: &'static str = - "execute_vanchor_create_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteVanchorUpdateProposal { - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub merkle_root: - runtime_types::webb_primitives::runtime::Element, - pub src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteVanchorUpdateProposal { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const CALL: &'static str = - "execute_vanchor_update_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteSetResourceProposal { - pub r_id: runtime_types::webb_proposals::header::ResourceId, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteSetResourceProposal { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const CALL: &'static str = "execute_set_resource_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteSetMaxDepositLimitProposal { - pub max_deposit_limit: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteSetMaxDepositLimitProposal { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const CALL: &'static str = - "execute_set_max_deposit_limit_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteSetMinWithdrawalLimitProposal { - pub min_withdraw_limit: ::core::primitive::u128, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteSetMinWithdrawalLimitProposal { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const CALL: &'static str = - "execute_set_min_withdrawal_limit_proposal"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "This will be called by bridge when proposal to create a"] - #[doc = "vanchor has been successfully voted on."] - pub fn execute_vanchor_create_proposal( - &self, - src_chain_id: ::core::primitive::u64, - r_id: runtime_types::webb_proposals::header::ResourceId, - max_edges: ::core::primitive::u32, - tree_depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorHandlerBn254", - "execute_vanchor_create_proposal", - types::ExecuteVanchorCreateProposal { - src_chain_id, - r_id, - max_edges, - tree_depth, - asset, - nonce, - }, - [ - 87u8, 197u8, 136u8, 226u8, 195u8, 230u8, 78u8, - 200u8, 62u8, 131u8, 194u8, 106u8, 230u8, 87u8, - 105u8, 141u8, 52u8, 10u8, 34u8, 132u8, 152u8, 12u8, - 182u8, 110u8, 124u8, 248u8, 42u8, 37u8, 184u8, - 160u8, 30u8, 239u8, - ], - ) - } - #[doc = "This will be called by bridge when proposal to add/update edge of a"] - #[doc = "vanchor has been successfully voted on."] - pub fn execute_vanchor_update_proposal( - &self, - r_id: runtime_types::webb_proposals::header::ResourceId, - merkle_root : runtime_types :: webb_primitives :: runtime :: Element, - src_resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorHandlerBn254", - "execute_vanchor_update_proposal", - types::ExecuteVanchorUpdateProposal { - r_id, - merkle_root, - src_resource_id, - nonce, - }, - [ - 248u8, 213u8, 40u8, 228u8, 156u8, 188u8, 16u8, - 104u8, 13u8, 176u8, 140u8, 155u8, 185u8, 97u8, - 109u8, 27u8, 12u8, 209u8, 41u8, 174u8, 158u8, - 208u8, 85u8, 120u8, 128u8, 218u8, 147u8, 71u8, - 165u8, 153u8, 7u8, 249u8, - ], - ) - } - #[doc = "This will by called by bridge when proposal to set new resource for"] - #[doc = "handler has been successfully voted on."] - pub fn execute_set_resource_proposal( - &self, - r_id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "VAnchorHandlerBn254", - "execute_set_resource_proposal", - types::ExecuteSetResourceProposal { r_id }, - [ - 228u8, 152u8, 137u8, 216u8, 49u8, 178u8, 221u8, - 163u8, 89u8, 90u8, 63u8, 173u8, 170u8, 175u8, 30u8, - 31u8, 77u8, 198u8, 214u8, 169u8, 52u8, 13u8, 63u8, - 98u8, 218u8, 108u8, 82u8, 222u8, 224u8, 50u8, - 151u8, 247u8, - ], - ) - } - #[doc = "Execute set max deposit limit proposal."] - #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] - #[doc = "anchor system."] - pub fn execute_set_max_deposit_limit_proposal( - &self, - max_deposit_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload< - types::ExecuteSetMaxDepositLimitProposal, - > { - ::subxt::tx::Payload::new_static( - "VAnchorHandlerBn254", - "execute_set_max_deposit_limit_proposal", - types::ExecuteSetMaxDepositLimitProposal { - max_deposit_limit, - nonce, - }, - [ - 60u8, 64u8, 168u8, 137u8, 52u8, 27u8, 152u8, 36u8, - 248u8, 102u8, 189u8, 30u8, 35u8, 149u8, 173u8, - 199u8, 22u8, 113u8, 146u8, 120u8, 59u8, 222u8, - 215u8, 146u8, 165u8, 220u8, 17u8, 107u8, 118u8, - 224u8, 13u8, 47u8, - ], - ) - } - #[doc = "Execute set min withdrawal limit proposal."] - #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] - #[doc = "variable anchor system."] - pub fn execute_set_min_withdrawal_limit_proposal( - &self, - min_withdraw_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - ) -> ::subxt::tx::Payload< - types::ExecuteSetMinWithdrawalLimitProposal, - > { - ::subxt::tx::Payload::new_static( - "VAnchorHandlerBn254", - "execute_set_min_withdrawal_limit_proposal", - types::ExecuteSetMinWithdrawalLimitProposal { - min_withdraw_limit, - nonce, - }, - [ - 53u8, 181u8, 146u8, 2u8, 51u8, 158u8, 29u8, 5u8, - 70u8, 72u8, 54u8, 41u8, 190u8, 172u8, 173u8, 239u8, - 53u8, 244u8, 186u8, 76u8, 58u8, 162u8, 227u8, - 128u8, 174u8, 199u8, 121u8, 162u8, 88u8, 92u8, - 207u8, 128u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_vanchor_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AnchorCreated; - impl ::subxt::events::StaticEvent for AnchorCreated { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AnchorEdgeAdded; - impl ::subxt::events::StaticEvent for AnchorEdgeAdded { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorEdgeAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AnchorEdgeUpdated; - impl ::subxt::events::StaticEvent for AnchorEdgeUpdated { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "AnchorEdgeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ResourceAnchored; - impl ::subxt::events::StaticEvent for ResourceAnchored { - const PALLET: &'static str = "VAnchorHandlerBn254"; - const EVENT: &'static str = "ResourceAnchored"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of trees to their anchor metadata"] - pub fn anchor_list( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::ResourceId, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("VAnchorHandlerBn254" , "AnchorList" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [208u8 , 135u8 , 255u8 , 171u8 , 144u8 , 24u8 , 220u8 , 50u8 , 12u8 , 31u8 , 90u8 , 255u8 , 252u8 , 78u8 , 107u8 , 239u8 , 162u8 , 141u8 , 248u8 , 201u8 , 149u8 , 98u8 , 234u8 , 116u8 , 212u8 , 184u8 , 249u8 , 242u8 , 41u8 , 40u8 , 66u8 , 72u8 ,]) - } - #[doc = " The map of trees to their anchor metadata"] - pub fn anchor_list_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "VAnchorHandlerBn254", - "AnchorList", - Vec::new(), - [ - 208u8, 135u8, 255u8, 171u8, 144u8, 24u8, 220u8, - 50u8, 12u8, 31u8, 90u8, 255u8, 252u8, 78u8, 107u8, - 239u8, 162u8, 141u8, 248u8, 201u8, 149u8, 98u8, - 234u8, 116u8, 212u8, 184u8, 249u8, 242u8, 41u8, - 40u8, 66u8, 72u8, - ], - ) - } - } - } - } - pub mod signature_bridge { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_signature_bridge::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_signature_bridge::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMaintainer { pub message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for SetMaintainer { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "set_maintainer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSetMaintainer { pub nonce : :: core :: primitive :: u32 , pub new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for ForceSetMaintainer { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "force_set_maintainer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - impl ::subxt::blocks::StaticExtrinsic for SetResource { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "set_resource"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveResource { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "remove_resource"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WhitelistChain { - pub id: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "whitelist_chain"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetResourceWithSignature { pub src_id : :: core :: primitive :: u64 , pub proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for SetResourceWithSignature { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "set_resource_with_signature"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExecuteProposal { pub src_id : :: core :: primitive :: u64 , pub proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for ExecuteProposal { - const PALLET: &'static str = "SignatureBridge"; - const CALL: &'static str = "execute_proposal"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Sets the maintainer."] - pub fn set_maintainer( - &self, - message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "set_maintainer", - types::SetMaintainer { message, signature }, - [ - 132u8, 42u8, 94u8, 104u8, 168u8, 131u8, 130u8, - 157u8, 33u8, 175u8, 220u8, 71u8, 33u8, 117u8, - 255u8, 142u8, 5u8, 101u8, 176u8, 48u8, 222u8, - 220u8, 24u8, 87u8, 34u8, 29u8, 104u8, 35u8, 245u8, - 119u8, 109u8, 20u8, - ], - ) - } - pub fn force_set_maintainer( - &self, - nonce: ::core::primitive::u32, - new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "force_set_maintainer", - types::ForceSetMaintainer { - nonce, - new_maintainer, - }, - [ - 172u8, 54u8, 216u8, 12u8, 194u8, 151u8, 209u8, - 122u8, 232u8, 194u8, 137u8, 135u8, 126u8, 150u8, - 144u8, 41u8, 26u8, 244u8, 43u8, 49u8, 161u8, 209u8, - 85u8, 212u8, 86u8, 59u8, 57u8, 120u8, 157u8, 38u8, - 180u8, 254u8, - ], - ) - } - #[doc = "Stores a method name on chain under an associated resource ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) write"] - #[doc = "# "] - pub fn set_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "set_resource", - types::SetResource { id }, - [ - 100u8, 124u8, 197u8, 183u8, 34u8, 42u8, 154u8, - 55u8, 12u8, 151u8, 135u8, 152u8, 211u8, 151u8, - 33u8, 14u8, 67u8, 222u8, 3u8, 109u8, 144u8, 235u8, - 253u8, 116u8, 76u8, 145u8, 90u8, 158u8, 138u8, - 33u8, 204u8, 170u8, - ], - ) - } - #[doc = "Removes a resource ID from the resource mapping."] - #[doc = ""] - #[doc = "After this call, bridge transfers with the associated resource ID"] - #[doc = "will be rejected."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) removal"] - #[doc = "# "] - pub fn remove_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "remove_resource", - types::RemoveResource { id }, - [ - 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, - 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, - 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, - 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, - 172u8, 92u8, 67u8, - ], - ) - } - #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn whitelist_chain( - &self, - id: ::core::primitive::u64, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "whitelist_chain", - types::WhitelistChain { id }, - [ - 230u8, 109u8, 92u8, 10u8, 127u8, 214u8, 167u8, - 56u8, 125u8, 37u8, 161u8, 108u8, 98u8, 250u8, 3u8, - 146u8, 224u8, 178u8, 139u8, 72u8, 21u8, 159u8, - 54u8, 225u8, 172u8, 88u8, 214u8, 162u8, 235u8, - 87u8, 125u8, 23u8, - ], - ) - } - #[doc = "@param origin"] - #[doc = "@param src_id"] - #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] - #[doc = "@param signature: a signature over the proposal_data"] - #[doc = ""] - #[doc = "We check:"] - #[doc = "1. That the signature is actually over the proposal data"] - #[doc = "2. Add ResourceId to the Storage"] - #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] - #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] - #[doc = "indeed this chain's id type"] - #[doc = ""] - #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] - #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] - #[doc = "the anchor-handler or token-wrapper-handler pallet."] - #[doc = ""] - #[doc = "There are a few TODOs left in the function."] - #[doc = ""] - #[doc = "In the set_resource_with_signature"] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn set_resource_with_signature( - &self, - src_id: ::core::primitive::u64, - proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "set_resource_with_signature", - types::SetResourceWithSignature { - src_id, - proposal_data, - signature, - }, - [ - 77u8, 91u8, 104u8, 22u8, 207u8, 86u8, 57u8, 238u8, - 168u8, 243u8, 218u8, 73u8, 192u8, 133u8, 163u8, - 164u8, 252u8, 145u8, 103u8, 1u8, 0u8, 128u8, 145u8, - 83u8, 213u8, 58u8, 228u8, 190u8, 46u8, 114u8, - 227u8, 86u8, - ], - ) - } - #[doc = "@param origin"] - #[doc = "@param src_id"] - #[doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] - #[doc = "@param signature: a signature over the proposal_data"] - #[doc = ""] - #[doc = "We check:"] - #[doc = "1. That the signature is actually over the proposal data"] - #[doc = "2. That the r_id parsed from the proposal data exists"] - #[doc = "3. That the call from the proposal data and the call input parameter to the function are"] - #[doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] - #[doc = "indeed this chain's id type"] - #[doc = ""] - #[doc = "If all these checks pass then we call finalize_execution which actually executes the"] - #[doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] - #[doc = "the anchor-handler or token-wrapper-handler pallet."] - #[doc = ""] - #[doc = "There are a few TODOs left in the function."] - #[doc = ""] - #[doc = "In the execute_proposal"] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn execute_proposal( - &self, - src_id: ::core::primitive::u64, - proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "SignatureBridge", - "execute_proposal", - types::ExecuteProposal { - src_id, - proposal_data, - signature, - }, - [ - 206u8, 23u8, 14u8, 145u8, 199u8, 21u8, 242u8, 83u8, - 4u8, 46u8, 238u8, 210u8, 121u8, 48u8, 75u8, 151u8, - 188u8, 20u8, 165u8, 177u8, 67u8, 34u8, 129u8, 92u8, - 155u8, 141u8, 199u8, 127u8, 227u8, 255u8, 237u8, - 128u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_signature_bridge::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Maintainer is set"] - pub struct MaintainerSet { - pub old_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub new_maintainer: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - impl ::subxt::events::StaticEvent for MaintainerSet { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "MaintainerSet"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Chain now available for transfers (chain_id)"] - pub struct ChainWhitelisted { - pub chain_id: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ChainWhitelisted { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ChainWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Proposal has been approved"] - pub struct ProposalApproved { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalApproved { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalApproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Execution of call succeeded"] - pub struct ProposalSucceeded { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalSucceeded { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalSucceeded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Execution of call failed"] - pub struct ProposalFailed { - pub chain_id: ::core::primitive::u64, - pub proposal_nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalFailed { - const PALLET: &'static str = "SignatureBridge"; - const EVENT: &'static str = "ProposalFailed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The parameter maintainer who can change the parameters"] - pub fn maintainer( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "SignatureBridge", - "Maintainer", - vec![], - [ - 104u8, 164u8, 76u8, 22u8, 55u8, 166u8, 230u8, 23u8, - 129u8, 166u8, 199u8, 31u8, 66u8, 142u8, 10u8, - 119u8, 72u8, 63u8, 10u8, 213u8, 69u8, 49u8, 243u8, - 128u8, 212u8, 125u8, 202u8, 208u8, 180u8, 62u8, - 84u8, 157u8, - ], - ) - } - #[doc = " All whitelisted chains and their respective transaction counts"] - pub fn chain_nonces( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("SignatureBridge" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [46u8 , 115u8 , 113u8 , 107u8 , 117u8 , 64u8 , 44u8 , 249u8 , 225u8 , 85u8 , 228u8 , 126u8 , 121u8 , 101u8 , 13u8 , 244u8 , 174u8 , 210u8 , 21u8 , 34u8 , 248u8 , 203u8 , 38u8 , 35u8 , 113u8 , 149u8 , 100u8 , 157u8 , 8u8 , 100u8 , 113u8 , 68u8 ,]) - } - #[doc = " All whitelisted chains and their respective transaction counts"] - pub fn chain_nonces_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "SignatureBridge", - "ChainNonces", - Vec::new(), - [ - 46u8, 115u8, 113u8, 107u8, 117u8, 64u8, 44u8, - 249u8, 225u8, 85u8, 228u8, 126u8, 121u8, 101u8, - 13u8, 244u8, 174u8, 210u8, 21u8, 34u8, 248u8, - 203u8, 38u8, 35u8, 113u8, 149u8, 100u8, 157u8, 8u8, - 100u8, 113u8, 68u8, - ], - ) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] - pub fn resources( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::ResourceId, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("SignatureBridge" , "Resources" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [244u8 , 76u8 , 108u8 , 200u8 , 197u8 , 2u8 , 102u8 , 136u8 , 158u8 , 135u8 , 102u8 , 251u8 , 56u8 , 170u8 , 225u8 , 248u8 , 37u8 , 168u8 , 49u8 , 184u8 , 241u8 , 15u8 , 4u8 , 100u8 , 144u8 , 154u8 , 29u8 , 128u8 , 69u8 , 188u8 , 80u8 , 121u8 ,]) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] - pub fn resources_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "SignatureBridge", - "Resources", - Vec::new(), - [ - 244u8, 76u8, 108u8, 200u8, 197u8, 2u8, 102u8, - 136u8, 158u8, 135u8, 102u8, 251u8, 56u8, 170u8, - 225u8, 248u8, 37u8, 168u8, 49u8, 184u8, 241u8, - 15u8, 4u8, 100u8, 144u8, 154u8, 29u8, 128u8, 69u8, - 188u8, 80u8, 121u8, - ], - ) - } - #[doc = " The proposal nonce used to prevent replay attacks on execute_proposal"] - pub fn proposal_nonce( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "SignatureBridge", - "ProposalNonce", - vec![], - [ - 154u8, 253u8, 37u8, 31u8, 8u8, 75u8, 192u8, 196u8, - 188u8, 21u8, 59u8, 170u8, 99u8, 150u8, 145u8, 96u8, - 22u8, 161u8, 68u8, 112u8, 214u8, 239u8, 240u8, 5u8, - 99u8, 141u8, 14u8, 94u8, 183u8, 202u8, 78u8, 42u8, - ], - ) - } - pub fn maintainer_nonce( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "SignatureBridge", - "MaintainerNonce", - vec![], - [ - 139u8, 246u8, 239u8, 180u8, 188u8, 73u8, 234u8, - 114u8, 211u8, 68u8, 84u8, 178u8, 142u8, 49u8, 24u8, - 160u8, 32u8, 180u8, 211u8, 16u8, 75u8, 91u8, 40u8, - 132u8, 120u8, 68u8, 221u8, 167u8, 138u8, 53u8, - 71u8, 250u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The identifier for this chain."] - #[doc = " This must be unique and must not collide with existing IDs within a"] - #[doc = " set of bridged chains."] - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "SignatureBridge", - "ChainIdentifier", - [ - 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 chain type for this chain."] - #[doc = " This is either a standalone Substrate chain, relay chain, or parachain"] - pub fn chain_type( - &self, - ) -> ::subxt::constants::Address<[::core::primitive::u8; 2usize]> - { - ::subxt::constants::Address::new_static( - "SignatureBridge", - "ChainType", - [ - 163u8, 171u8, 193u8, 121u8, 113u8, 71u8, 193u8, - 113u8, 218u8, 13u8, 107u8, 113u8, 90u8, 90u8, 0u8, - 52u8, 37u8, 41u8, 230u8, 189u8, 210u8, 64u8, 128u8, - 75u8, 183u8, 21u8, 157u8, 145u8, 53u8, 100u8, - 240u8, 86u8, - ], - ) - } - pub fn proposal_lifetime( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "SignatureBridge", - "ProposalLifetime", - [ - 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 fn bridge_account_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "SignatureBridge", - "BridgeAccountId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - } - } - } - pub mod relayer_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_relayer_registry::pallet::Error; - #[doc = "Identity pallet declaration."] - pub type Call = runtime_types::pallet_relayer_registry::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetResource { pub resource_id : runtime_types :: webb_proposals :: header :: ResourceId , pub info : :: std :: boxed :: Box < runtime_types :: pallet_relayer_registry :: types :: ResourceInfo > , } - impl ::subxt::blocks::StaticExtrinsic for SetResource { - const PALLET: &'static str = "RelayerRegistry"; - const CALL: &'static str = "set_resource"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClearResource { - pub resource_id: - runtime_types::webb_proposals::header::ResourceId, - } - impl ::subxt::blocks::StaticExtrinsic for ClearResource { - const PALLET: &'static str = "RelayerRegistry"; - const CALL: &'static str = "clear_resource"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set a resource's information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the resource already has resource information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The resource information."] - #[doc = ""] - #[doc = "Emits `ResourceSet` if successful."] - pub fn set_resource( - &self, - resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - info : runtime_types :: pallet_relayer_registry :: types :: ResourceInfo, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "RelayerRegistry", - "set_resource", - types::SetResource { - resource_id, - info: ::std::boxed::Box::new(info), - }, - [ - 166u8, 246u8, 237u8, 192u8, 22u8, 46u8, 194u8, 9u8, - 231u8, 182u8, 27u8, 204u8, 242u8, 15u8, 131u8, - 111u8, 87u8, 15u8, 90u8, 74u8, 105u8, 242u8, 40u8, - 250u8, 17u8, 14u8, 155u8, 76u8, 179u8, 0u8, 86u8, - 29u8, - ], - ) - } - #[doc = "Clear an account's resource record."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "resource."] - #[doc = ""] - #[doc = "Emits `ResourceCleared` if successful."] - pub fn clear_resource( - &self, - resource_id : runtime_types :: webb_proposals :: header :: ResourceId, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "RelayerRegistry", - "clear_resource", - types::ClearResource { resource_id }, - [ - 92u8, 192u8, 248u8, 135u8, 120u8, 84u8, 22u8, - 226u8, 51u8, 182u8, 16u8, 88u8, 235u8, 113u8, - 231u8, 29u8, 194u8, 72u8, 78u8, 181u8, 35u8, 68u8, - 80u8, 100u8, 64u8, 164u8, 236u8, 19u8, 25u8, 255u8, - 121u8, 63u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_relayer_registry::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A resource was set or reset (which will remove all judgements)."] - pub struct ResourceSet { - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ResourceSet { - const PALLET: &'static str = "RelayerRegistry"; - const EVENT: &'static str = "ResourceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A resource was cleared, and the given balance returned."] - pub struct ResourceCleared { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for ResourceCleared { - const PALLET: &'static str = "RelayerRegistry"; - const EVENT: &'static str = "ResourceCleared"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " A map that allows accounts to store metadata about each resource they are interested in."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn resource_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: ResourceId > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_relayer_registry :: types :: ResourceRecord < :: core :: primitive :: u128 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("RelayerRegistry" , "ResourceOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [185u8 , 81u8 , 138u8 , 7u8 , 131u8 , 31u8 , 61u8 , 187u8 , 117u8 , 12u8 , 0u8 , 178u8 , 133u8 , 254u8 , 247u8 , 85u8 , 113u8 , 184u8 , 82u8 , 178u8 , 182u8 , 103u8 , 240u8 , 30u8 , 20u8 , 126u8 , 187u8 , 120u8 , 113u8 , 119u8 , 53u8 , 250u8 ,]) - } - #[doc = " A map that allows accounts to store metadata about each resource they are interested in."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn resource_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_relayer_registry :: types :: ResourceRecord < :: core :: primitive :: u128 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "RelayerRegistry", - "ResourceOf", - Vec::new(), - [ - 185u8, 81u8, 138u8, 7u8, 131u8, 31u8, 61u8, 187u8, - 117u8, 12u8, 0u8, 178u8, 133u8, 254u8, 247u8, 85u8, - 113u8, 184u8, 82u8, 178u8, 182u8, 103u8, 240u8, - 30u8, 20u8, 126u8, 187u8, 120u8, 113u8, 119u8, - 53u8, 250u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The amount held on deposit for a registered identity"] - pub fn basic_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "RelayerRegistry", - "BasicDeposit", - [ - 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 additional field for a registered identity."] - pub fn field_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "RelayerRegistry", - "FieldDeposit", - [ - 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 number of additional fields that may be stored in an ID. Needed to bound the I/O"] - #[doc = " required to access an identity, but can be pretty high."] - pub fn max_additional_fields( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "RelayerRegistry", - "MaxAdditionalFields", - [ - 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 key_storage { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_key_storage::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_key_storage::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Register { pub owner : :: subxt :: utils :: AccountId32 , pub public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for Register { - const PALLET: &'static str = "KeyStorage"; - const CALL: &'static str = "register"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn register( - &self, - owner: ::subxt::utils::AccountId32, - public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "KeyStorage", - "register", - types::Register { owner, public_key }, - [ - 171u8, 208u8, 174u8, 130u8, 196u8, 84u8, 27u8, 8u8, - 186u8, 246u8, 169u8, 204u8, 151u8, 151u8, 172u8, - 47u8, 198u8, 250u8, 162u8, 161u8, 37u8, 144u8, - 193u8, 107u8, 125u8, 202u8, 8u8, 209u8, 244u8, - 108u8, 81u8, 62u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_key_storage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Public key registration"] - pub struct PublicKeyRegistration { - pub owner: ::subxt::utils::AccountId32, - pub public_key: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - } - impl ::subxt::events::StaticEvent for PublicKeyRegistration { - const PALLET: &'static str = "KeyStorage"; - const EVENT: &'static str = "PublicKeyRegistration"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The map of owners to public keys"] pub fn public_key_owners (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "KeyStorage", - "PublicKeyOwners", - vec![], - [ - 45u8, 68u8, 75u8, 191u8, 222u8, 164u8, 64u8, 224u8, - 76u8, 232u8, 244u8, 187u8, 33u8, 179u8, 192u8, - 168u8, 172u8, 102u8, 222u8, 81u8, 68u8, 213u8, - 182u8, 173u8, 161u8, 126u8, 247u8, 9u8, 226u8, - 119u8, 185u8, 18u8, - ], - ) - } - } - } - } - pub mod runtime_types { - use super::runtime_types; - pub mod finality_grandpa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - } - pub mod frame_support { - use super::runtime_types; - pub mod dispatch { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DispatchClass { - #[codec(index = 0)] - Normal, - #[codec(index = 1)] - Operational, - #[codec(index = 2)] - Mandatory, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Pays { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Root, - #[codec(index = 1)] - Signed(_0), - #[codec(index = 2)] - None, - } - } - pub mod traits { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } - pub mod preimages { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Bounded<_0> { - # [codec (index = 0)] Legacy { hash : :: subxt :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } - } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckNonce( - #[codec(compact)] pub ::core::primitive::u32, - ); - } - pub mod check_spec_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckSpecVersion; - } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckTxVersion; - } - pub mod check_weight { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckWeight; - } - } - pub mod limits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] - remark { - remark: ::std::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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] - set_code { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] - set_code_without_checks { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "Set some items of storage."] - set_storage { - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 5)] - #[doc = "Kill some items from storage."] - kill_storage { - keys: ::std::vec::Vec< - ::std::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: ::std::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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Event 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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, - pub data: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::std::vec::Vec<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::std::string::String, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, - } - } - pub mod orml_currencies { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some balance to another account under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Transfer some native currency to another account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - transfer_native_currency { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "update amount of account `who` under `currency_id`."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - update_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - amount: ::core::primitive::i128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Unable to convert the Amount type into Balance."] - AmountIntoBalanceFailed, - #[codec(index = 1)] - #[doc = "Balance is too low."] - BalanceTooLow, - #[codec(index = 2)] - #[doc = "Deposit result is not expected"] - DepositFailed, - } - } - } - pub mod orml_tokens { - use super::runtime_types; - pub mod module { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "It will decrease the total issuance of the system by the"] - #[doc = "`TransferFee`. If the sender's account is below the existential"] - #[doc = "deposit as a result of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Transfer all remaining balance to the given account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_"] - #[doc = "balances. This means that any locked, reserved, or existential"] - #[doc = "deposits (when `keep_alive` is `true`), will not be transferred by"] - #[doc = "this function. To ensure that this function results in a killed"] - #[doc = "account, you might need to prepare the account by removing any"] - #[doc = "reference counters, storage deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all`"] - #[doc = " operation should send all of the funds the account has, causing"] - #[doc = " the sender account to be killed (false), or transfer everything"] - #[doc = " except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - keep_alive: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer"] - #[doc = "will not kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the"] - #[doc = "transactor."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source"] - #[doc = "account may be specified."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The sender of the transfer."] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `currency_id`: currency type."] - #[doc = "- `amount`: free balance amount to tranfer."] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it"] - #[doc = "will also decrease the total issuance of the system"] - #[doc = "(`TotalIssuance`). If the new free or reserved balance is below the"] - #[doc = "existential deposit, it will reap the `AccountInfo`."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - currency_id: ::core::primitive::u32, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The balance is too low"] - BalanceTooLow, - #[codec(index = 1)] - #[doc = "Cannot convert Amount into Balance type"] - AmountIntoBalanceFailed, - #[codec(index = 2)] - #[doc = "Failed because liquidity restrictions due to locking"] - LiquidityRestrictions, - #[codec(index = 3)] - #[doc = "Failed because the maximum locks was exceeded"] - MaxLocksExceeded, - #[codec(index = 4)] - #[doc = "Transfer/payment would kill account"] - KeepAlive, - #[codec(index = 5)] - #[doc = "Value too low to create account due to existential deposit"] - ExistentialDeposit, - #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist"] - DeadAccount, - #[codec(index = 7)] - TooManyReserves, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below"] # [doc = "ExistentialDeposit, resulting in an outright loss."] DustLost { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some reserved balance was repatriated (moved from reserved to"] # [doc = "another account)."] ReserveRepatriated { currency_id : :: core :: primitive :: u32 , from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 6)] # [doc = "A balance was set by root."] BalanceSet { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "The total issuance of an currency has been set"] TotalIssuanceSet { currency_id : :: core :: primitive :: u32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some balances were withdrawn (e.g. pay for transaction fee)"] Withdrawn { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some balances were slashed (e.g. due to mis-behavior)"] Slashed { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , free_amount : :: core :: primitive :: u128 , reserved_amount : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Deposited some balance into an account"] Deposited { currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Some funds are locked"] LockSet { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "Some locked funds were unlocked"] LockRemoved { lock_id : [:: core :: primitive :: u8 ; 8usize] , currency_id : :: core :: primitive :: u32 , who : :: subxt :: utils :: AccountId32 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_asset_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Register a new asset."] # [doc = ""] # [doc = "Asset is identified by `name` and the name must not be used to"] # [doc = "register another asset."] # [doc = ""] # [doc = "New asset is given `NextAssetId` - sequential asset id"] # [doc = ""] # [doc = "Adds mapping between `name` and assigned `asset_id` so asset id can"] # [doc = "be retrieved by name too (Note: this approach is used in AMM"] # [doc = "implementation (xyk))"] # [doc = ""] # [doc = "Emits 'Registered` event when successful."] register { name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , existential_deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Update registered asset."] # [doc = ""] # [doc = "Updates also mapping between name and asset id if provided name is"] # [doc = "different than currently registered."] # [doc = ""] # [doc = "Emits `Updated` event when successful."] update { asset_id : :: core :: primitive :: u32 , bounded_name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , existential_deposit : :: core :: option :: Option < :: core :: primitive :: u128 > , } , # [codec (index = 2)] # [doc = "Set metadata for an asset."] # [doc = ""] # [doc = "- `asset_id`: Asset identifier."] # [doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] # [doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] # [doc = ""] # [doc = "Emits `MetadataSet` event when successful."] set_metadata { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Set asset native location."] # [doc = ""] # [doc = "Adds mapping between native location and local asset id and vice"] # [doc = "versa."] # [doc = ""] # [doc = "Mainly used in XCM."] # [doc = ""] # [doc = "Emits `LocationSet` event when successful."] set_location { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Add an asset to an existing pool."] add_asset_to_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Remove an asset from an existing pool."] delete_asset_from_pool { pool : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_id : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Asset Id is not available. This only happens when it reaches the MAX"] - #[doc = "value of given id type."] - NoIdAvailable, - #[codec(index = 1)] - #[doc = "Invalid asset name or symbol."] - AssetNotFound, - #[codec(index = 2)] - #[doc = "Invalid asset name or symbol."] - TooLong, - #[codec(index = 3)] - #[doc = "Asset ID is not registered in the asset-registry."] - AssetNotRegistered, - #[codec(index = 4)] - #[doc = "Asset is already registered."] - AssetAlreadyRegistered, - #[codec(index = 5)] - #[doc = "Incorrect number of assets provided to create shared asset."] - InvalidSharedAssetLen, - #[codec(index = 6)] - #[doc = "Asset exists in to pool"] - AssetExistsInPool, - #[codec(index = 7)] - #[doc = "Asset not found in pool"] - AssetNotFoundInPool, - #[codec(index = 8)] - #[doc = "Max number of assets in pool is reached"] - MaxAssetIdInPoolReached, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Asset was registered."] Registered { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } , # [codec (index = 1)] # [doc = "Asset was updated."] Updated { asset_id : :: core :: primitive :: u32 , name : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , asset_type : runtime_types :: pallet_asset_registry :: types :: AssetType < :: core :: primitive :: u32 , runtime_types :: webb_standalone_runtime :: MaxAssetIdInPool > , } , # [codec (index = 2)] # [doc = "Metadata set for an asset."] MetadataSet { asset_id : :: core :: primitive :: u32 , symbol : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , decimals : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Native location set for an asset."] LocationSet { asset_id : :: core :: primitive :: u32 , location : :: core :: primitive :: u32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AssetDetails<_0, _1, _2, _3> { - pub name: _2, - pub asset_type: - runtime_types::pallet_asset_registry::types::AssetType< - _0, - _3, - >, - pub existential_deposit: _1, - pub locked: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AssetMetadata<_0> { - pub symbol: _0, - pub decimals: ::core::primitive::u8, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum AssetType<_0, _1> { - # [codec (index = 0)] Token , # [codec (index = 1)] PoolShare (runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _0 > ,) , __Ignore (:: core :: marker :: PhantomData < _1 >) , } - } - } - pub mod pallet_asset_tx_payment { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] - #[doc = "has been paid by `who` in an asset `asset_id`."] - AssetTxFeePaid { - who: ::subxt::utils::AccountId32, - actual_fee: ::core::primitive::u128, - tip: ::core::primitive::u128, - asset_id: - ::core::option::Option<::core::primitive::u32>, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ChargeAssetTxPayment { - #[codec(compact)] - pub tip: ::core::primitive::u128, - pub asset_id: ::core::option::Option<::core::primitive::u32>, - } - } - pub mod pallet_assets { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Issue a new class of fungible assets from a public origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially and its owner is the origin."] - #[doc = ""] - #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] - #[doc = ""] - #[doc = "Funds of sender are reserved by `AssetDeposit`."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] - #[doc = "member of the asset class's admin team."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `Created` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - create { - #[codec(compact)] - id: ::core::primitive::u32, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - min_balance: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Issue a new class of fungible assets from a privileged origin."] - #[doc = ""] - #[doc = "This new asset class has no assets initially."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin`."] - #[doc = ""] - #[doc = "Unlike `create`, no funds are reserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] - #[doc = "an existing asset."] - #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] - #[doc = "over this asset, but may later change and configure the permissions using"] - #[doc = "`transfer_ownership` and `set_team`."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = ""] - #[doc = "Emits `ForceCreated` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_create { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - is_sufficient: ::core::primitive::bool, - #[codec(compact)] - min_balance: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Start the process of destroying a fungible asset class."] - #[doc = ""] - #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] - #[doc = "destruction of an asset class."] - #[doc = ""] - #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "The asset class must be frozen before calling `start_destroy`."] - start_destroy { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Destroy all accounts associated with a given asset."] - #[doc = ""] - #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedAccounts` event."] - destroy_accounts { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] - #[doc = ""] - #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state."] - #[doc = ""] - #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] - #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each call emits the `Event::DestroyedApprovals` event."] - destroy_approvals { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "Complete destroying asset and unreserve currency."] - #[doc = ""] - #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] - #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] - #[doc = "hand."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] - #[doc = " asset."] - #[doc = ""] - #[doc = "Each successful call emits the `Event::Destroyed` event."] - finish_destroy { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "Mint assets of a particular class."] - #[doc = ""] - #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount minted."] - #[doc = "- `beneficiary`: The account to be credited with the minted assets."] - #[doc = "- `amount`: The amount of the asset to be minted."] - #[doc = ""] - #[doc = "Emits `Issued` event when successful."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] - mint { - #[codec(compact)] - id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 7)] - #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] - #[doc = ""] - #[doc = "Bails with `NoAccount` if the `who` is already dead."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount burned."] - #[doc = "- `who`: The account to be debited from."] - #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] - #[doc = ""] - #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] - #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] - burn { - #[codec(compact)] - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "Move some assets from the sender account to another."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - transfer { - #[codec(compact)] - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `target`: The account to be credited."] - #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] - #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] - #[doc = "the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] - #[doc = "`target`."] - transfer_keep_alive { - #[codec(compact)] - id: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "Move some assets from one account to another."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to have some amount transferred."] - #[doc = "- `source`: The account to be debited."] - #[doc = "- `dest`: The account to be credited."] - #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] - #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] - #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] - #[doc = "below the minimum balance. Must be greater than zero."] - #[doc = ""] - #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] - #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] - #[doc = "to zero."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] - #[doc = "`dest`."] - force_transfer { - #[codec(compact)] - id: ::core::primitive::u32, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "Disallow further unprivileged transfers from an account."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - freeze { - #[codec(compact)] - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 12)] - #[doc = "Allow unprivileged transfers from an account again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `who`: The account to be unfrozen."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - thaw { - #[codec(compact)] - id: ::core::primitive::u32, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 13)] - #[doc = "Disallow further unprivileged transfers for the asset class."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = ""] - #[doc = "Emits `Frozen`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - freeze_asset { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 14)] - #[doc = "Allow unprivileged transfers for the asset again."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be thawed."] - #[doc = ""] - #[doc = "Emits `Thawed`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - thaw_asset { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 15)] - #[doc = "Change the Owner of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = ""] - #[doc = "Emits `OwnerChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - transfer_ownership { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 16)] - #[doc = "Change the Issuer, Admin and Freezer of an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to be frozen."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = ""] - #[doc = "Emits `TeamChanged`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - set_team { - #[codec(compact)] - id: ::core::primitive::u32, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 17)] - #[doc = "Set the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Funds of sender are reserved according to the formula:"] - #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] - #[doc = "account any already reserved funds."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - set_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - }, - #[codec(index = 18)] - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] - #[doc = ""] - #[doc = "Any deposit is freed for the asset owner."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - clear_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 19)] - #[doc = "Force the metadata for an asset to some value."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is left alone."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to update."] - #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] - #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] - #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] - #[doc = ""] - #[doc = "Emits `MetadataSet`."] - #[doc = ""] - #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] - force_set_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - is_frozen: ::core::primitive::bool, - }, - #[codec(index = 20)] - #[doc = "Clear the metadata for an asset."] - #[doc = ""] - #[doc = "Origin must be ForceOrigin."] - #[doc = ""] - #[doc = "Any deposit is returned."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset to clear."] - #[doc = ""] - #[doc = "Emits `MetadataCleared`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_clear_metadata { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 21)] - #[doc = "Alter the attributes of a given asset."] - #[doc = ""] - #[doc = "Origin must be `ForceOrigin`."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The new Owner of this asset."] - #[doc = "- `issuer`: The new Issuer of this asset."] - #[doc = "- `admin`: The new Admin of this asset."] - #[doc = "- `freezer`: The new Freezer of this asset."] - #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] - #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] - #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] - #[doc = "value to account for the state bloat associated with its balance storage. If set to"] - #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] - #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] - #[doc = "growth)."] - #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] - #[doc = "instructions."] - #[doc = ""] - #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_asset_status { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - issuer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - admin: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - freezer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - min_balance: ::core::primitive::u128, - is_sufficient: ::core::primitive::bool, - is_frozen: ::core::primitive::bool, - }, - #[codec(index = 22)] - #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed."] - #[doc = ""] - #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] - #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] - #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] - #[doc = "meet the right value."] - #[doc = ""] - #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] - #[doc = "making this call."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account to delegate permission to transfer asset."] - #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] - #[doc = "already an approval in place, then this acts additively."] - #[doc = ""] - #[doc = "Emits `ApprovedTransfer` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - approve_transfer { - #[codec(compact)] - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 23)] - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place between signer and"] - #[doc = "`delegate`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - cancel_approval { - #[codec(compact)] - id: ::core::primitive::u32, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 24)] - #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] - #[doc = ""] - #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] - #[doc = "account of the asset `id`."] - #[doc = ""] - #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `delegate`: The account delegated permission to transfer asset."] - #[doc = ""] - #[doc = "Emits `ApprovalCancelled` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - force_cancel_approval { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - delegate: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 25)] - #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] - #[doc = "account."] - #[doc = ""] - #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] - #[doc = "signer."] - #[doc = ""] - #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] - #[doc = "reserved by `approve_transfer` is unreserved."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset."] - #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] - #[doc = "from which the asset balance will be withdrawn."] - #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] - #[doc = "- `amount`: The amount of assets to transfer."] - #[doc = ""] - #[doc = "Emits `TransferredApproved` on success."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] - transfer_approved { - #[codec(compact)] - id: ::core::primitive::u32, - owner: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - destination: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 26)] - #[doc = "Create an asset account for non-provider assets."] - #[doc = ""] - #[doc = "A deposit will be taken from the signer account."] - #[doc = ""] - #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] - #[doc = " to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = ""] - #[doc = "Emits `Touched` event when successful."] - touch { - #[codec(compact)] - id: ::core::primitive::u32, - }, - #[codec(index = 27)] - #[doc = "Return the deposit (if any) of an asset account."] - #[doc = ""] - #[doc = "The origin must be Signed."] - #[doc = ""] - #[doc = "- `id`: The identifier of the asset for the account to be created."] - #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] - #[doc = ""] - #[doc = "Emits `Refunded` event when successful."] - refund { - #[codec(compact)] - id: ::core::primitive::u32, - allow_burn: ::core::primitive::bool, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account balance must be greater than or equal to the transfer amount."] - BalanceLow, - #[codec(index = 1)] - #[doc = "The account to alter does not exist."] - NoAccount, - #[codec(index = 2)] - #[doc = "The signing account has no permission to do the operation."] - NoPermission, - #[codec(index = 3)] - #[doc = "The given asset ID is unknown."] - Unknown, - #[codec(index = 4)] - #[doc = "The origin account is frozen."] - Frozen, - #[codec(index = 5)] - #[doc = "The asset ID is already taken."] - InUse, - #[codec(index = 6)] - #[doc = "Invalid witness data given."] - BadWitness, - #[codec(index = 7)] - #[doc = "Minimum balance should be non-zero."] - MinBalanceZero, - #[codec(index = 8)] - #[doc = "Unable to increment the consumer reference counters on the account. Either no provider"] - #[doc = "reference exists to allow a non-zero balance of a non-self-sufficient asset, or the"] - #[doc = "maximum number of consumers has been reached."] - NoProvider, - #[codec(index = 9)] - #[doc = "Invalid metadata given."] - BadMetadata, - #[codec(index = 10)] - #[doc = "No approval exists that would allow the transfer."] - Unapproved, - #[codec(index = 11)] - #[doc = "The source account would not survive the transfer and it needs to stay alive."] - WouldDie, - #[codec(index = 12)] - #[doc = "The asset-account already exists."] - AlreadyExists, - #[codec(index = 13)] - #[doc = "The asset-account doesn't have an associated deposit."] - NoDeposit, - #[codec(index = 14)] - #[doc = "The operation would result in funds being burned."] - WouldBurn, - #[codec(index = 15)] - #[doc = "The asset is a live asset and is actively being used. Usually emit for operations such"] - #[doc = "as `start_destroy` which require the asset to be in a destroying state."] - LiveAsset, - #[codec(index = 16)] - #[doc = "The asset is not live, and likely being destroyed."] - AssetNotLive, - #[codec(index = 17)] - #[doc = "The asset status is not the expected status."] - IncorrectStatus, - #[codec(index = 18)] - #[doc = "The asset should be frozen before the given operation."] - NotFrozen, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Some asset class was created."] - Created { - asset_id: ::core::primitive::u32, - creator: ::subxt::utils::AccountId32, - owner: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - #[doc = "Some assets were issued."] - Issued { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - total_supply: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Some assets were transferred."] - Transferred { - asset_id: ::core::primitive::u32, - from: ::subxt::utils::AccountId32, - to: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Some assets were destroyed."] - Burned { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - balance: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "The management team changed."] - TeamChanged { - asset_id: ::core::primitive::u32, - issuer: ::subxt::utils::AccountId32, - admin: ::subxt::utils::AccountId32, - freezer: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "The owner changed."] - OwnerChanged { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - }, - #[codec(index = 6)] - #[doc = "Some account `who` was frozen."] - Frozen { - asset_id: ::core::primitive::u32, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 7)] - #[doc = "Some account `who` was thawed."] - Thawed { - asset_id: ::core::primitive::u32, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "Some asset `asset_id` was frozen."] - AssetFrozen { asset_id: ::core::primitive::u32 }, - #[codec(index = 9)] - #[doc = "Some asset `asset_id` was thawed."] - AssetThawed { asset_id: ::core::primitive::u32 }, - #[codec(index = 10)] - #[doc = "Accounts were destroyed for given asset."] - AccountsDestroyed { - asset_id: ::core::primitive::u32, - accounts_destroyed: ::core::primitive::u32, - accounts_remaining: ::core::primitive::u32, - }, - #[codec(index = 11)] - #[doc = "Approvals were destroyed for given asset."] - ApprovalsDestroyed { - asset_id: ::core::primitive::u32, - approvals_destroyed: ::core::primitive::u32, - approvals_remaining: ::core::primitive::u32, - }, - #[codec(index = 12)] - #[doc = "An asset class is in the process of being destroyed."] - DestructionStarted { asset_id: ::core::primitive::u32 }, - #[codec(index = 13)] - #[doc = "An asset class was destroyed."] - Destroyed { asset_id: ::core::primitive::u32 }, - #[codec(index = 14)] - #[doc = "Some asset class was force-created."] - ForceCreated { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - }, - #[codec(index = 15)] - #[doc = "New metadata has been set for an asset."] - MetadataSet { - asset_id: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - symbol: ::std::vec::Vec<::core::primitive::u8>, - decimals: ::core::primitive::u8, - is_frozen: ::core::primitive::bool, - }, - #[codec(index = 16)] - #[doc = "Metadata has been cleared for an asset."] - MetadataCleared { asset_id: ::core::primitive::u32 }, - #[codec(index = 17)] - #[doc = "(Additional) funds have been approved for transfer to a destination account."] - ApprovedTransfer { - asset_id: ::core::primitive::u32, - source: ::subxt::utils::AccountId32, - delegate: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 18)] - #[doc = "An approval for account `delegate` was cancelled by `owner`."] - ApprovalCancelled { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - delegate: ::subxt::utils::AccountId32, - }, - #[codec(index = 19)] - #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] - #[doc = "the approved `delegate`."] - TransferredApproved { - asset_id: ::core::primitive::u32, - owner: ::subxt::utils::AccountId32, - delegate: ::subxt::utils::AccountId32, - destination: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 20)] - #[doc = "An asset has had its attributes changed by the `Force` origin."] - AssetStatusChanged { asset_id: ::core::primitive::u32 }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Approval<_0, _1> { - pub amount: _0, - pub deposit: _0, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AssetAccount<_0, _1, _2> { - pub balance: _0, - pub is_frozen: ::core::primitive::bool, - pub reason: - runtime_types::pallet_assets::types::ExistenceReason< - _0, - >, - pub extra: _2, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AssetDetails<_0, _1, _2> { - pub owner: _1, - pub issuer: _1, - pub admin: _1, - pub freezer: _1, - pub supply: _0, - pub deposit: _0, - pub min_balance: _0, - pub is_sufficient: ::core::primitive::bool, - pub accounts: ::core::primitive::u32, - pub sufficients: ::core::primitive::u32, - pub approvals: ::core::primitive::u32, - pub status: - runtime_types::pallet_assets::types::AssetStatus, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_2>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AssetMetadata<_0, _1> { - pub deposit: _0, - pub name: _1, - pub symbol: _1, - pub decimals: ::core::primitive::u8, - pub is_frozen: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum AssetStatus { - #[codec(index = 0)] - Live, - #[codec(index = 1)] - Frozen, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ExistenceReason<_0> { - #[codec(index = 0)] - Consumer, - #[codec(index = 1)] - Sufficient, - #[codec(index = 2)] - DepositHeld(_0), - #[codec(index = 3)] - DepositRefunded, - } - } - } - pub mod pallet_authorship { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Provide a set of uncles."] - set_uncles { - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The uncle parent not in the chain."] - InvalidUncleParent, - #[codec(index = 1)] - #[doc = "Uncles already set in the block."] - UnclesAlreadySet, - #[codec(index = 2)] - #[doc = "Too many uncles."] - TooManyUncles, - #[codec(index = 3)] - #[doc = "The uncle is genesis."] - GenesisUncle, - #[codec(index = 4)] - #[doc = "The uncle is too high in chain."] - TooHighUncle, - #[codec(index = 5)] - #[doc = "The uncle is already included."] - UncleAlreadyIncluded, - #[codec(index = 6)] - #[doc = "The uncle isn't recent enough to be included."] - OldUncle, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum UncleEntryItem<_0, _1, _2> { - #[codec(index = 0)] - InclusionHeight(_0), - #[codec(index = 1)] - Uncle(_1, ::core::option::Option<_2>), - } - } - pub mod pallet_babe { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , 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 : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Bag { - pub head: - ::core::option::Option<::subxt::utils::AccountId32>, - pub tail: - ::core::option::Option<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ListError { - #[codec(index = 0)] - Duplicate, - #[codec(index = 1)] - NotHeavier, - #[codec(index = 2)] - NotInSameBag, - #[codec(index = 3)] - NodeNotFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Node { - pub id: ::subxt::utils::AccountId32, - pub prev: - ::core::option::Option<::subxt::utils::AccountId32>, - pub next: - ::core::option::Option<::subxt::utils::AccountId32>, - pub bag_upper: ::core::primitive::u64, - pub score: ::core::primitive::u64, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] - put_in_front_of { - lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "A error in the list interface implementation."] - List(runtime_types::pallet_bags_list::list::ListError), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Moved an account from one bag to another."] - Rebagged { - who: ::subxt::utils::AccountId32, - from: ::core::primitive::u64, - to: ::core::primitive::u64, - }, - #[codec(index = 1)] - #[doc = "Updated the score of some account to the given amount."] - ScoreUpdated { - who: ::subxt::utils::AccountId32, - new_score: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_balances { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] - KeepAlive, - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - approve_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - propose_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - award_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - 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 = "# "] - #[doc = "- O(1)."] - #[doc = "# "] - extend_bounty_expiry { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "A bounty is claimed by beneficiary."] - BountyClaimed { - index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::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 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum 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_child_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::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::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A child-bounty is cancelled."] - Canceled { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum 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_collective { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] - set_members { - new_members: - ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: - ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] - execute { - proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] - propose { - #[codec(compact)] - threshold: ::core::primitive::u32, - proposal: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] - vote { - proposal: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - }, - #[codec(index = 4)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close_old_weight { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: - runtime_types::sp_weights::OldWeight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] - disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - proposal_weight_bound: - runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account is not a member"] - NotMember, - #[codec(index = 1)] - #[doc = "Duplicate proposals not allowed"] - DuplicateProposal, - #[codec(index = 2)] - #[doc = "Proposal must exist"] - ProposalMissing, - #[codec(index = 3)] - #[doc = "Mismatched index"] - WrongIndex, - #[codec(index = 4)] - #[doc = "Duplicate vote ignored"] - DuplicateVote, - #[codec(index = 5)] - #[doc = "Members are already initialized!"] - AlreadyInitialized, - #[codec(index = 6)] - #[doc = "The close call was made too early, before the end of the voting."] - TooEarly, - #[codec(index = 7)] - #[doc = "There can only be a maximum of `MaxProposals` active proposals."] - TooManyProposals, - #[codec(index = 8)] - #[doc = "The given weight bound for the proposal was too low."] - WrongProposalWeight, - #[codec(index = 9)] - #[doc = "The given length bound for the proposal was too low."] - WrongProposalLength, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - Proposed { - account: ::subxt::utils::AccountId32, - proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::utils::H256, - threshold: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - Voted { - account: ::subxt::utils::AccountId32, - proposal_hash: ::subxt::utils::H256, - voted: ::core::primitive::bool, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "A motion was approved by the required threshold."] - Approved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 3)] - #[doc = "A motion was not approved by the required threshold."] - Disapproved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 4)] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - Executed { - proposal_hash: ::subxt::utils::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 5)] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - MemberExecuted { - proposal_hash: ::subxt::utils::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 6)] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - Closed { - proposal_hash: ::subxt::utils::H256, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Members(::core::primitive::u32, ::core::primitive::u32), - #[codec(index = 1)] - Member(_0), - #[codec(index = 2)] - _Phantom, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Votes<_0, _1> { - pub index: ::core::primitive::u32, - pub threshold: ::core::primitive::u32, - pub ayes: ::std::vec::Vec<_0>, - pub nays: ::std::vec::Vec<_0>, - pub end: _1, - } - } - pub mod pallet_democracy { - use super::runtime_types; - pub mod conviction { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Conviction { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Locked1x, - #[codec(index = 2)] - Locked2x, - #[codec(index = 3)] - Locked3x, - #[codec(index = 4)] - Locked4x, - #[codec(index = 5)] - Locked5x, - #[codec(index = 6)] - Locked6x, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Propose a sensitive action to be taken."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender must"] # [doc = "have funds to cover the deposit."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the proposal preimage."] # [doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] # [doc = ""] # [doc = "Emits `Proposed`."] propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Signals agreement with a particular proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the sender"] # [doc = "must have funds to cover the deposit, equal to the original deposit."] # [doc = ""] # [doc = "- `proposal`: The index of the proposal to second."] second { # [codec (compact)] proposal : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Vote in a referendum. 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 = "- `ref_index`: The index of the referendum to vote for."] # [doc = "- `vote`: The vote configuration."] vote { # [codec (compact)] ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 3)] # [doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancellationOrigin`."] # [doc = ""] # [doc = "-`ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "Weight: `O(1)`."] emergency_cancel { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] # [doc = "referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be `ExternalOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] # [doc = "an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_majority { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] # [doc = "schedule an external referendum."] # [doc = ""] # [doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal."] # [doc = ""] # [doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] # [doc = "pre-scheduled `external_propose` call."] # [doc = ""] # [doc = "Weight: `O(1)`"] external_propose_default { proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: webb_standalone_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] # [doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] # [doc = "but it is not a majority-carries referendum then it fails."] # [doc = ""] # [doc = "The dispatch of this call must be `FastTrackOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The hash of the current external proposal."] # [doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] # [doc = "\tMust be always greater than zero."] # [doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] # [doc = "- `delay`: The number of block after voting has ended in approval and this should be"] # [doc = " enacted. This doesn't have a minimum amount."] # [doc = ""] # [doc = "Emits `Started`."] # [doc = ""] # [doc = "Weight: `O(1)`"] fast_track { proposal_hash : :: subxt :: utils :: H256 , voting_period : :: core :: primitive :: u64 , delay : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "Veto and blacklist the external proposal hash."] # [doc = ""] # [doc = "The dispatch origin of this call must be `VetoOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] # [doc = ""] # [doc = "Emits `Vetoed`."] # [doc = ""] # [doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Remove a referendum."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "- `ref_index`: The index of the referendum to cancel."] # [doc = ""] # [doc = "# Weight: `O(1)`."] cancel_referendum { # [codec (compact)] ref_index : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Delegate the voting power (with some given conviction) of the sending account."] # [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/consolidated"] # [doc = " through `reap_vote` or `unvote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [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 referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] delegate { to : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , balance : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Undelegate the voting power of the sending account."] # [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."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] # [doc = " voted on. Weight is charged as if maximum votes."] undelegate , # [codec (index = 12)] # [doc = "Clears all public proposals."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Root_."] # [doc = ""] # [doc = "Weight: `O(1)`."] clear_public_proposals , # [codec (index = 13)] # [doc = "Unlock tokens that have an expired lock."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] unlock { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove a vote for a referendum."] # [doc = ""] # [doc = "If:"] # [doc = "- the referendum was cancelled, or"] # [doc = "- the referendum is ongoing, or"] # [doc = "- the referendum 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 referendum 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 referendum `index`."] # [doc = ""] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_vote { index : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Remove a vote for a referendum."] # [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 referendum was cancelled, because the voter lost the referendum 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"] # [doc = " referendum `index`."] # [doc = "- `index`: The index of referendum of the vote to be removed."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , index : :: core :: primitive :: u32 , } , # [codec (index = 16)] # [doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] # [doc = "proposed again."] # [doc = ""] # [doc = "If called on a queued public or external proposal, then this will result in it being"] # [doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] # [doc = "then it will be cancelled."] # [doc = ""] # [doc = "The dispatch origin of this call must be `BlacklistOrigin`."] # [doc = ""] # [doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] # [doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] # [doc = "cancelled."] # [doc = ""] # [doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] # [doc = " reasonable value)."] blacklist { proposal_hash : :: subxt :: utils :: H256 , maybe_ref_index : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 17)] # [doc = "Remove a proposal."] # [doc = ""] # [doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] # [doc = ""] # [doc = "- `prop_index`: The index of the proposal to cancel."] # [doc = ""] # [doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { # [codec (compact)] prop_index : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Value too low"] - ValueLow, - #[codec(index = 1)] - #[doc = "Proposal does not exist"] - ProposalMissing, - #[codec(index = 2)] - #[doc = "Cannot cancel the same proposal twice"] - AlreadyCanceled, - #[codec(index = 3)] - #[doc = "Proposal already made"] - DuplicateProposal, - #[codec(index = 4)] - #[doc = "Proposal still blacklisted"] - ProposalBlacklisted, - #[codec(index = 5)] - #[doc = "Next external proposal not simple majority"] - NotSimpleMajority, - #[codec(index = 6)] - #[doc = "Invalid hash"] - InvalidHash, - #[codec(index = 7)] - #[doc = "No external proposal"] - NoProposal, - #[codec(index = 8)] - #[doc = "Identity may not veto a proposal twice"] - AlreadyVetoed, - #[codec(index = 9)] - #[doc = "Vote given for invalid referendum"] - ReferendumInvalid, - #[codec(index = 10)] - #[doc = "No proposals waiting"] - NoneWaiting, - #[codec(index = 11)] - #[doc = "The given account did not vote on the referendum."] - NotVoter, - #[codec(index = 12)] - #[doc = "The actor has no permission to conduct the action."] - NoPermission, - #[codec(index = 13)] - #[doc = "The account is already delegating."] - AlreadyDelegating, - #[codec(index = 14)] - #[doc = "Too high a balance was provided that the account cannot afford."] - InsufficientFunds, - #[codec(index = 15)] - #[doc = "The account is not currently delegating."] - NotDelegating, - #[codec(index = 16)] - #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] - #[doc = "these are removed, either through `unvote` or `reap_vote`."] - VotesExist, - #[codec(index = 17)] - #[doc = "The instant referendum origin is currently disallowed."] - InstantNotAllowed, - #[codec(index = 18)] - #[doc = "Delegation to oneself makes no sense."] - Nonsense, - #[codec(index = 19)] - #[doc = "Invalid upper bound."] - WrongUpperBound, - #[codec(index = 20)] - #[doc = "Maximum number of votes reached."] - MaxVotesReached, - #[codec(index = 21)] - #[doc = "Maximum number of items reached."] - TooMany, - #[codec(index = 22)] - #[doc = "Voting period too low"] - VotingPeriodLow, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A motion has been proposed by a public account."] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "An external proposal has been tabled."] ExternalTabled , # [codec (index = 3)] # [doc = "A referendum has begun."] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] # [doc = "A proposal has been approved by referendum."] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proposal has been rejected by referendum."] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A referendum has been cancelled."] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "An account has delegated their vote to another account."] Delegated { who : :: subxt :: utils :: AccountId32 , target : :: subxt :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An account has cancelled a previous delegation operation."] Undelegated { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An external proposal has been vetoed."] Vetoed { who : :: subxt :: utils :: AccountId32 , proposal_hash : :: subxt :: utils :: H256 , until : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash : :: subxt :: utils :: H256 , } , # [codec (index = 11)] # [doc = "An account has voted in a referendum"] Voted { voter : :: subxt :: utils :: AccountId32 , ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 12)] # [doc = "An account has secconded a proposal"] Seconded { seconder : :: subxt :: utils :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , # [codec (index = 13)] # [doc = "A proposal got canceled."] ProposalCanceled { prop_index : :: core :: primitive :: u32 , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ReferendumInfo<_0, _1, _2> { - # [codec (index = 0)] Ongoing (runtime_types :: pallet_democracy :: types :: ReferendumStatus < _0 , _1 , _2 > ,) , # [codec (index = 1)] Finished { approved : :: core :: primitive :: bool , end : _0 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReferendumStatus < _0 , _1 , _2 > { pub end : _0 , pub proposal : _1 , pub threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , pub delay : _0 , pub tally : runtime_types :: pallet_democracy :: types :: Tally < _2 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub turnout: _0, - } - } - pub mod vote { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum AccountVote<_0> { - #[codec(index = 0)] - Standard { - vote: runtime_types::pallet_democracy::vote::Vote, - balance: _0, - }, - #[codec(index = 1)] - Split { aye: _0, nay: _0 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PriorLock<_0, _1>(pub _0, pub _1); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Vote(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Voting<_0, _1, _2> { - # [codec (index = 0)] Direct { votes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_democracy :: vote :: AccountVote < _0 > ,) > , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , # [codec (index = 1)] Delegating { balance : _0 , target : _1 , conviction : runtime_types :: pallet_democracy :: conviction :: Conviction , delegations : runtime_types :: pallet_democracy :: types :: Delegations < _0 > , prior : runtime_types :: pallet_democracy :: vote :: PriorLock < _2 , _0 > , } , } - } - pub mod vote_threshold { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum VoteThreshold { - #[codec(index = 0)] - SuperMajorityApprove, - #[codec(index = 1)] - SuperMajorityAgainst, - #[codec(index = 2)] - SimpleMajority, - } - } - } - pub mod pallet_election_provider_multi_phase { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: webb_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error of the pallet that can be returned in response to dispatches."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Submission was too early."] - PreDispatchEarlySubmission, - #[codec(index = 1)] - #[doc = "Wrong number of winners presented."] - PreDispatchWrongWinnerCount, - #[codec(index = 2)] - #[doc = "Submission was too weak, score-wise."] - PreDispatchWeakSubmission, - #[codec(index = 3)] - #[doc = "The queue was full, and the solution was not better than any of the existing ones."] - SignedQueueFull, - #[codec(index = 4)] - #[doc = "The origin failed to pay the deposit."] - SignedCannotPayDeposit, - #[codec(index = 5)] - #[doc = "Witness data to dispatchable is invalid."] - SignedInvalidWitness, - #[codec(index = 6)] - #[doc = "The signed submission consumes too much weight"] - SignedTooMuchWeight, - #[codec(index = 7)] - #[doc = "OCW submitted solution for wrong round"] - OcwCallWrongEra, - #[codec(index = 8)] - #[doc = "Snapshot metadata should exist but didn't."] - MissingSnapshotMetadata, - #[codec(index = 9)] - #[doc = "`Self::insert_submission` returned an invalid index."] - InvalidSubmissionIndex, - #[codec(index = 10)] - #[doc = "The call is not allowed at this point."] - CallNotAllowed, - #[codec(index = 11)] - #[doc = "The fallback failed"] - FallbackFailed, - #[codec(index = 12)] - #[doc = "Some bound not met"] - BoundNotMet, - #[codec(index = 13)] - #[doc = "Submitted solution has too many winners"] - TooManyWinners, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } - } - pub mod signed { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ElectionCompute { - #[codec(index = 0)] - OnChain, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned, - #[codec(index = 3)] - Fallback, - #[codec(index = 4)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Phase<_0> { - #[codec(index = 0)] - Off, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned((::core::primitive::bool, _0)), - #[codec(index = 3)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub round: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReadySolution { pub supports : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: ::core::primitive::u32, - #[codec(compact)] - pub targets: ::core::primitive::u32, - } - } - pub mod pallet_elections_phragmen { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] # [doc = "set the initial votes, or update already existing votes."] # [doc = ""] # [doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] # [doc = "reserved. The deposit is based on the number of votes and can be updated over time."] # [doc = ""] # [doc = "The `votes` should:"] # [doc = " - not be empty."] # [doc = " - be less than the number of possible candidates. Note that all current members and"] # [doc = " runners-up are also automatically candidates for the next round."] # [doc = ""] # [doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] # [doc = "lock and keep some for further operations."] # [doc = ""] # [doc = "# "] # [doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] # [doc = "# "] vote { votes : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Remove `origin` as a voter."] # [doc = ""] # [doc = "This removes the lock and returns the deposit."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter , # [codec (index = 2)] # [doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] # [doc = ""] # [doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] # [doc = "or leave the system while their deposit is slashed."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed."] # [doc = ""] # [doc = "### Warning"] # [doc = ""] # [doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] # [doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] # [doc = ""] # [doc = "# "] # [doc = "The number of current candidates must be provided as witness data."] # [doc = "# "] submit_candidacy { # [codec (compact)] candidate_count : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] # [doc = "outcomes exist:"] # [doc = ""] # [doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] # [doc = " unreserved, returned and origin is removed as a candidate."] # [doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] # [doc = " origin is removed as a runner-up."] # [doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] # [doc = " removed as a member, consequently not being a candidate for the next round anymore."] # [doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] # [doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] # [doc = " next round."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed, and have one of the above roles."] # [doc = ""] # [doc = "# "] # [doc = "The type of renouncing must be provided as witness data."] # [doc = "# "] renounce_candidacy { renouncing : runtime_types :: pallet_elections_phragmen :: Renouncing , } , # [codec (index = 4)] # [doc = "Remove a particular member from the set. This is effective immediately and the bond of"] # [doc = "the outgoing member is slashed."] # [doc = ""] # [doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] # [doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] # [doc = "started, else, nothing happens."] # [doc = ""] # [doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] # [doc = "it is returned."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "Note that this does not affect the designated block number of the next election."] # [doc = ""] # [doc = "# "] # [doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] # [doc = "will go into phragmen, we assume full block for now."] # [doc = "# "] remove_member { who : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , slash_bond : :: core :: primitive :: bool , rerun_election : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] # [doc = "deposit of the removed voters are returned."] # [doc = ""] # [doc = "This is an root function to be used only for cleaning the state."] # [doc = ""] # [doc = "The dispatch origin of this call must be root."] # [doc = ""] # [doc = "# "] # [doc = "The total number of voters and those that are defunct must be provided as witness data."] # [doc = "# "] clean_defunct_voters { num_voters : :: core :: primitive :: u32 , num_defunct : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Cannot vote when no candidates or members exist."] - UnableToVote, - #[codec(index = 1)] - #[doc = "Must vote for at least one candidate."] - NoVotes, - #[codec(index = 2)] - #[doc = "Cannot vote more than candidates."] - TooManyVotes, - #[codec(index = 3)] - #[doc = "Cannot vote more than maximum allowed."] - MaximumVotesExceeded, - #[codec(index = 4)] - #[doc = "Cannot vote with stake less than minimum balance."] - LowBalance, - #[codec(index = 5)] - #[doc = "Voter can not pay voting bond."] - UnableToPayBond, - #[codec(index = 6)] - #[doc = "Must be a voter."] - MustBeVoter, - #[codec(index = 7)] - #[doc = "Duplicated candidate submission."] - DuplicatedCandidate, - #[codec(index = 8)] - #[doc = "Too many candidates have been created."] - TooManyCandidates, - #[codec(index = 9)] - #[doc = "Member cannot re-submit candidacy."] - MemberSubmit, - #[codec(index = 10)] - #[doc = "Runner cannot re-submit candidacy."] - RunnerUpSubmit, - #[codec(index = 11)] - #[doc = "Candidate does not have enough funds."] - InsufficientCandidateFunds, - #[codec(index = 12)] - #[doc = "Not a member."] - NotMember, - #[codec(index = 13)] - #[doc = "The provided count of number of candidates is incorrect."] - InvalidWitnessData, - #[codec(index = 14)] - #[doc = "The provided count of number of votes is incorrect."] - InvalidVoteCount, - #[codec(index = 15)] - #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] - InvalidRenouncing, - #[codec(index = 16)] - #[doc = "Prediction regarding replacement after member removal is wrong."] - InvalidReplacement, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - NewTerm { - new_members: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - }, - #[codec(index = 1)] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - EmptyTerm, - #[codec(index = 2)] - #[doc = "Internal error happened while trying to perform election."] - ElectionError, - #[codec(index = 3)] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - MemberKicked { member: ::subxt::utils::AccountId32 }, - #[codec(index = 4)] - #[doc = "Someone has renounced their candidacy."] - Renounced { - candidate: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - CandidateSlashed { - candidate: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - SeatHolderSlashed { - seat_holder: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Renouncing { - #[codec(index = 0)] - Member, - #[codec(index = 1)] - RunnerUp, - #[codec(index = 2)] - Candidate(#[codec(compact)] ::core::primitive::u32), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SeatHolder<_0, _1> { - pub who: _0, - pub stake: _1, - pub deposit: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Voter<_0, _1> { - pub votes: ::std::vec::Vec<_0>, - pub stake: _1, - pub deposit: _1, - } - } - pub mod pallet_grandpa { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u64 > > , 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 :: u64 , best_finalized_block_number : :: core :: primitive :: u64 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New authority set has been applied."] - NewAuthorities { - authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , _0 ,) > , pub forced : :: core :: option :: Option < _0 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum 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_hasher { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - HashingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during hashing"] - HashError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_identity { - use super::runtime_types; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Data { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Raw0([::core::primitive::u8; 0usize]), - #[codec(index = 2)] - Raw1([::core::primitive::u8; 1usize]), - #[codec(index = 3)] - Raw2([::core::primitive::u8; 2usize]), - #[codec(index = 4)] - Raw3([::core::primitive::u8; 3usize]), - #[codec(index = 5)] - Raw4([::core::primitive::u8; 4usize]), - #[codec(index = 6)] - Raw5([::core::primitive::u8; 5usize]), - #[codec(index = 7)] - Raw6([::core::primitive::u8; 6usize]), - #[codec(index = 8)] - Raw7([::core::primitive::u8; 7usize]), - #[codec(index = 9)] - Raw8([::core::primitive::u8; 8usize]), - #[codec(index = 10)] - Raw9([::core::primitive::u8; 9usize]), - #[codec(index = 11)] - Raw10([::core::primitive::u8; 10usize]), - #[codec(index = 12)] - Raw11([::core::primitive::u8; 11usize]), - #[codec(index = 13)] - Raw12([::core::primitive::u8; 12usize]), - #[codec(index = 14)] - Raw13([::core::primitive::u8; 13usize]), - #[codec(index = 15)] - Raw14([::core::primitive::u8; 14usize]), - #[codec(index = 16)] - Raw15([::core::primitive::u8; 15usize]), - #[codec(index = 17)] - Raw16([::core::primitive::u8; 16usize]), - #[codec(index = 18)] - Raw17([::core::primitive::u8; 17usize]), - #[codec(index = 19)] - Raw18([::core::primitive::u8; 18usize]), - #[codec(index = 20)] - Raw19([::core::primitive::u8; 19usize]), - #[codec(index = 21)] - Raw20([::core::primitive::u8; 20usize]), - #[codec(index = 22)] - Raw21([::core::primitive::u8; 21usize]), - #[codec(index = 23)] - Raw22([::core::primitive::u8; 22usize]), - #[codec(index = 24)] - Raw23([::core::primitive::u8; 23usize]), - #[codec(index = 25)] - Raw24([::core::primitive::u8; 24usize]), - #[codec(index = 26)] - Raw25([::core::primitive::u8; 25usize]), - #[codec(index = 27)] - Raw26([::core::primitive::u8; 26usize]), - #[codec(index = 28)] - Raw27([::core::primitive::u8; 27usize]), - #[codec(index = 29)] - Raw28([::core::primitive::u8; 28usize]), - #[codec(index = 30)] - Raw29([::core::primitive::u8; 29usize]), - #[codec(index = 31)] - Raw30([::core::primitive::u8; 30usize]), - #[codec(index = 32)] - Raw31([::core::primitive::u8; 31usize]), - #[codec(index = 33)] - Raw32([::core::primitive::u8; 32usize]), - #[codec(index = 34)] - BlakeTwo256([::core::primitive::u8; 32usize]), - #[codec(index = 35)] - Sha256([::core::primitive::u8; 32usize]), - #[codec(index = 36)] - Keccak256([::core::primitive::u8; 32usize]), - #[codec(index = 37)] - ShaThree256([::core::primitive::u8; 32usize]), - } - } - } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u64 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Non existent public key."] - InvalidKey, - #[codec(index = 1)] - #[doc = "Duplicated heartbeat."] - DuplicatedHeartbeat, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } - } - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public( - pub runtime_types::sp_core::sr25519::Public, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature( - pub runtime_types::sp_core::sr25519::Signature, - ); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_core :: bounded :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub network_state: - runtime_types::sp_core::offchain::OpaqueNetworkState, - pub session_index: ::core::primitive::u32, - pub authority_index: ::core::primitive::u32, - pub validators_len: ::core::primitive::u32, - } - } - pub mod pallet_indices { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] - transfer { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] - force_transfer { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] - freeze { index: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A account index was assigned."] - IndexAssigned { - who: ::subxt::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::utils::AccountId32, - }, - } - } - } - pub mod pallet_key_storage { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] register { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - PubKeyOutOfBounds, - #[codec(index = 1)] - MaxPubkeyOwnersExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Public key registration"] PublicKeyRegistration { owner : :: subxt :: utils :: AccountId32 , public_key : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - } - } - pub mod pallet_linkable_tree { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - create { - max_edges: ::core::primitive::u32, - depth: ::core::primitive::u8, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - UnknownRoot, - #[codec(index = 1)] - #[doc = "Invalid Merkle Roots"] - InvalidMerkleRoots, - #[codec(index = 2)] - #[doc = "Invalid neighbor root passed in withdrawal"] - #[doc = "(neighbor root is not in neighbor history)"] - InvalidNeighborWithdrawRoot, - #[codec(index = 3)] - #[doc = "Anchor is at maximum number of edges for the given tree"] - TooManyEdges, - #[codec(index = 4)] - #[doc = "Edge already exists"] - EdgeAlreadyExists, - #[codec(index = 5)] - #[doc = "Edge does not exist"] - EdgeDoesntExists, - #[codec(index = 6)] - #[doc = "Invalid latest leaf index"] - InvalidLatestLeafIndex, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - LinkableTreeCreation { tree_id: ::core::primitive::u32 }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct EdgeMetadata<_0, _1, _2> { - pub src_chain_id: _0, - pub root: _1, - pub latest_leaf_index: _2, - pub src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - } - } - } - pub mod pallet_mixer { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - create { - deposit_size: ::core::primitive::u128, - depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - }, - #[codec(index = 1)] - deposit { - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - #[codec(index = 2)] - withdraw { - id: ::core::primitive::u32, - proof_bytes: ::std::vec::Vec<::core::primitive::u8>, - root: runtime_types::webb_primitives::runtime::Element, - nullifier_hash: - runtime_types::webb_primitives::runtime::Element, - recipient: ::subxt::utils::AccountId32, - relayer: ::subxt::utils::AccountId32, - fee: ::core::primitive::u128, - refund: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Invalid withdraw proof"] - InvalidWithdrawProof, - #[codec(index = 2)] - #[doc = "Invalid nullifier that is already used"] - #[doc = "(this error is returned when a nullifier is used twice)"] - AlreadyRevealedNullifier, - #[codec(index = 3)] - InvalidArbitraryData, - #[codec(index = 4)] - #[doc = "Invalid root"] - UnknownRoot, - #[codec(index = 5)] - #[doc = "No mixer found"] - NoMixerFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - MixerCreation { tree_id: ::core::primitive::u32 }, - #[codec(index = 1)] - Deposit { - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - #[codec(index = 2)] - Withdraw { - tree_id: ::core::primitive::u32, - recipient: ::subxt::utils::AccountId32, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct MixerMetadata<_0, _1> { - pub deposit_size: _0, - pub asset: _1, - } - } - } - pub mod pallet_mt { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { depth : :: core :: primitive :: u8 , } , # [codec (index = 1)] insert { tree_id : :: core :: primitive :: u32 , leaf : runtime_types :: webb_primitives :: runtime :: Element , } , # [codec (index = 2)] force_set_default_hashes { default_hashes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < runtime_types :: webb_primitives :: runtime :: Element > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Invalid depth of the tree specified"] - InvalidTreeDepth, - #[codec(index = 2)] - #[doc = "Invalid leaf index, either taken or too large"] - InvalidLeafIndex, - #[codec(index = 3)] - #[doc = "Tree is full"] - ExceedsMaxLeaves, - #[codec(index = 4)] - #[doc = "Tree doesnt exist"] - TreeDoesntExist, - #[codec(index = 5)] - #[doc = "Invalid length for default hashes"] - ExceedsMaxDefaultHashes, - #[codec(index = 6)] - #[doc = "Invalid length for edges"] - ExceedsMaxEdges, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - TreeCreation { - tree_id: ::core::primitive::u32, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - #[doc = "New leaf inserted"] - LeafInsertion { - tree_id: ::core::primitive::u32, - leaf_index: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TreeMetadata < _0 , _1 , _2 , _3 > { pub creator : :: core :: option :: Option < _0 > , pub paused : :: core :: primitive :: bool , pub leaf_count : _1 , pub max_leaves : _1 , pub depth : :: core :: primitive :: u8 , pub root : _2 , pub edge_nodes : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < _2 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } - } - } - pub mod pallet_multisig { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - as_multi_threshold_1 { - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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 = "# "] - #[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`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] - as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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 = "# "] - #[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`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] - approve_as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - >, - 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 = "# "] - #[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."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] - cancel_as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::utils::AccountId32>, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - call_hash: [::core::primitive::u8; 32usize], - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new multisig operation has begun."] - NewMultisig { - approving: ::subxt::utils::AccountId32, - multisig: ::subxt::utils::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, - #[codec(index = 1)] - #[doc = "A multisig operation has been approved by someone."] - MultisigApproval { - approving: ::subxt::utils::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - multisig: ::subxt::utils::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - #[doc = "A multisig operation has been executed."] - MultisigExecuted { - approving: ::subxt::utils::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - multisig: ::subxt::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::utils::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u64, - >, - multisig: ::subxt::utils::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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::sp_core::bounded::bounded_vec::BoundedVec< - _2, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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."] - 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 there 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\"."] - 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 state-toggler. This is"] - #[doc = " refereed to 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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 their 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 state-toggler."] - #[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."] - withdraw_unbonded { - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[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` transferrable."] - create { - #[codec(compact)] - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - state_toggler: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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."] - nominate { - pool_id: ::core::primitive::u32, - validators: - ::std::vec::Vec<::subxt::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 state toggler, 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 state toggler, or the root role"] - #[doc = "of the pool."] - set_metadata { - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - 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, - >, - }, - #[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::utils::AccountId32, - >, - new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_state_toggler: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 13)] - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - chill { pool_id: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DefensiveError { - #[codec(index = 0)] - NotEnoughSpaceInUnbondPool, - #[codec(index = 1)] - PoolNotFound, - #[codec(index = 2)] - RewardPoolNotFound, - #[codec(index = 3)] - SubPoolsNotFound, - #[codec(index = 4)] - BondedStashKilledPrematurely, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Events of this pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "A pool has been created."] - Created { - depositor: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A member has became bonded in a pool."] - Bonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - bonded: ::core::primitive::u128, - joined: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "A payout has been made to a member."] - PaidOut { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - payout: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - Unbonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - era: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - Withdrawn { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "A pool has been destroyed."] - Destroyed { pool_id: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "The state of a pool has changed"] - StateChanged { - pool_id: ::core::primitive::u32, - new_state: - runtime_types::pallet_nomination_pools::PoolState, - }, - #[codec(index = 7)] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - MemberRemoved { - pool_id: ::core::primitive::u32, - member: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - RolesUpdated { - root: - ::core::option::Option<::subxt::utils::AccountId32>, - state_toggler: - ::core::option::Option<::subxt::utils::AccountId32>, - nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 9)] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - PoolSlashed { - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - UnbondingPoolSlashed { - pool_id: ::core::primitive::u32, - era: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BondExtra<_0> { - #[codec(index = 0)] - FreeBalance(_0), - #[codec(index = 1)] - Rewards, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondedPoolInner { - pub points: ::core::primitive::u128, - pub state: runtime_types::pallet_nomination_pools::PoolState, - pub member_counter: ::core::primitive::u32, - pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolMember { pub pool_id : :: core :: primitive :: u32 , pub points : :: core :: primitive :: u128 , pub last_recorded_reward_counter : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub unbonding_eras : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolRoles<_0> { - pub depositor: _0, - pub root: ::core::option::Option<_0>, - pub nominator: ::core::option::Option<_0>, - pub state_toggler: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PoolState { - #[codec(index = 0)] - Open, - #[codec(index = 1)] - Blocked, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RewardPool { - pub last_recorded_reward_counter: - runtime_types::sp_arithmetic::fixed_point::FixedU128, - pub last_recorded_total_payouts: ::core::primitive::u128, - pub total_rewards_claimed: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: sp_core :: bounded :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnbondPool { - pub points: ::core::primitive::u128, - pub balance: ::core::primitive::u128, - } - } - pub mod pallet_offences { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Events 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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - } - } - pub mod pallet_preimage { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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: ::std::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::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::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::utils::H256 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A preimage has been noted."] - Noted { hash: ::subxt::utils::H256 }, - #[codec(index = 1)] - #[doc = "A preimage has been requested."] - Requested { hash: ::subxt::utils::H256 }, - #[codec(index = 2)] - #[doc = "A preimage has ben cleared."] - Cleared { hash: ::subxt::utils::H256 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RequestStatus<_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>, - }, - } - } - pub mod pallet_proxy { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "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 { - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - #[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::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - index: ::core::primitive::u16, - #[codec(compact)] - height: ::core::primitive::u64, - #[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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call_hash: ::subxt::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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - real: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - force_proxy_type: ::core::option::Option< - runtime_types::webb_standalone_runtime::ProxyType, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - who: ::subxt::utils::AccountId32, - proxy_type: - runtime_types::webb_standalone_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::utils::AccountId32, - proxy: ::subxt::utils::AccountId32, - call_hash: ::subxt::utils::H256, - }, - #[codec(index = 3)] - #[doc = "A proxy was added."] - ProxyAdded { - delegator: ::subxt::utils::AccountId32, - delegatee: ::subxt::utils::AccountId32, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - #[codec(index = 4)] - #[doc = "A proxy was removed."] - ProxyRemoved { - delegator: ::subxt::utils::AccountId32, - delegatee: ::subxt::utils::AccountId32, - proxy_type: - runtime_types::webb_standalone_runtime::ProxyType, - delay: ::core::primitive::u64, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Announcement<_0, _1, _2> { - pub real: _0, - pub call_hash: _1, - pub height: _2, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProxyDefinition<_0, _1, _2> { - pub delegate: _0, - pub proxy_type: _1, - pub delay: _2, - } - } - pub mod pallet_relayer_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Identity pallet declaration."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set a resource's information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the resource already has resource information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The resource information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_resource { resource_id : runtime_types :: webb_proposals :: header :: ResourceId , info : :: std :: boxed :: Box < runtime_types :: pallet_relayer_registry :: types :: ResourceInfo > , } , # [codec (index = 1)] # [doc = "Clear an account's resource record."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "resource."] # [doc = ""] # [doc = "Emits `ResourceCleared` if successful."] clear_resource { resource_id : runtime_types :: webb_proposals :: header :: ResourceId , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account isn't found."] - NotFound, - #[codec(index = 1)] - #[doc = "Account isn't named."] - NotNamed, - #[codec(index = 2)] - #[doc = "Too many additional fields."] - TooManyFields, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A resource was set or reset (which will remove all judgements)."] - ResourceSet { who: ::subxt::utils::AccountId32 }, - #[codec(index = 1)] - #[doc = "A resource was cleared, and the given balance returned."] - ResourceCleared { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ResourceInfo { pub additional : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub target_system : runtime_types :: webb_proposals :: target_system :: TargetSystem , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ResourceRecord < _0 > { pub deposit : _0 , pub info : runtime_types :: pallet_relayer_registry :: types :: ResourceInfo , } - } - } - pub mod pallet_scheduler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Anonymously schedule a task."] - schedule { - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - #[codec(index = 1)] - #[doc = "Cancel an anonymously scheduled task."] - cancel { - when: ::core::primitive::u64, - index: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Schedule a named task."] - schedule_named { - id: [::core::primitive::u8; 32usize], - when: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_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."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] - schedule_after { - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - #[codec(index = 5)] - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] - schedule_named_after { - id: [::core::primitive::u8; 32usize], - after: ::core::primitive::u64, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Events type."] - pub enum Event { - #[codec(index = 0)] - #[doc = "Scheduled some task."] - Scheduled { - when: ::core::primitive::u64, - index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Canceled some task."] - Canceled { - when: ::core::primitive::u64, - index: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Dispatched some task."] - Dispatched { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 3)] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - CallUnavailable { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - }, - #[codec(index = 4)] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - PeriodicFailed { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - }, - #[codec(index = 5)] - #[doc = "The given task can never be executed since it is overweight."] - PermanentlyOverweight { - task: (::core::primitive::u64, ::core::primitive::u32), - id: ::core::option::Option< - [::core::primitive::u8; 32usize], - >, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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, ::core::primitive::u32)>, - pub origin: _3, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, - } - } - pub mod pallet_session { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - set_keys { - keys: - runtime_types::webb_standalone_runtime::SessionKeys, - proof: ::std::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 = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] - purge_keys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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_signature_bridge { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Sets the maintainer."] set_maintainer { message : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] force_set_maintainer { nonce : :: core :: primitive :: u32 , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 4)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { id : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. Add ResourceId to the Storage"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the set_resource_with_signature"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] set_resource_with_signature { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 6)] # [doc = "@param origin"] # [doc = "@param src_id"] # [doc = "@param proposal_data: (r_id, nonce, 4 bytes of zeroes, call)"] # [doc = "@param signature: a signature over the proposal_data"] # [doc = ""] # [doc = "We check:"] # [doc = "1. That the signature is actually over the proposal data"] # [doc = "2. That the r_id parsed from the proposal data exists"] # [doc = "3. That the call from the proposal data and the call input parameter to the function are"] # [doc = "consistent with each other 4. That the execution chain id type parsed from the r_id is"] # [doc = "indeed this chain's id type"] # [doc = ""] # [doc = "If all these checks pass then we call finalize_execution which actually executes the"] # [doc = "dispatchable call. The dispatchable call is usually a handler function, for instance in"] # [doc = "the anchor-handler or token-wrapper-handler pallet."] # [doc = ""] # [doc = "There are a few TODOs left in the function."] # [doc = ""] # [doc = "In the execute_proposal"] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] execute_proposal { src_id : :: core :: primitive :: u64 , proposal_data : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Provided chain Id is not valid"] - InvalidChainId, - #[codec(index = 2)] - #[doc = "Interactions with this chain is not permitted"] - ChainNotWhitelisted, - #[codec(index = 3)] - #[doc = "Chain has already been enabled"] - ChainAlreadyWhitelisted, - #[codec(index = 4)] - #[doc = "Resource ID provided isn't mapped to anything"] - ResourceDoesNotExist, - #[codec(index = 5)] - #[doc = "Resource ID provided is already mapped to anchor"] - ResourceAlreadyExists, - #[codec(index = 6)] - #[doc = "Provided signature is not from the active maintainer"] - SignatureInvalid, - #[codec(index = 7)] - #[doc = "Protected operation, must be performed by relayer"] - MustBeMaintainer, - #[codec(index = 8)] - #[doc = "A proposal with these parameters has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 9)] - #[doc = "Call does not match parsed call from proposal data"] - CallNotConsistentWithProposalData, - #[codec(index = 10)] - #[doc = "Call does not match resource id according to resources mapping"] - CallDoesNotMatchResourceId, - #[codec(index = 11)] - #[doc = "Chain Id Type from the r_id does not match this chain"] - IncorrectExecutionChainIdType, - #[codec(index = 12)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 13)] - #[doc = "Invalid proposal data"] - InvalidProposalData, - #[codec(index = 14)] - #[doc = "Invalid call - calls must be delegated to handler pallets"] - InvalidCall, - #[codec(index = 15)] - #[doc = "The max limit for string is exceeded"] - StringLimitExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Maintainer is set"] MaintainerSet { old_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , new_maintainer : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Proposal has been approved"] ProposalApproved { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Execution of call succeeded"] ProposalSucceeded { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Execution of call failed"] ProposalFailed { chain_id : :: core :: primitive :: u64 , proposal_nonce : :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [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_ and gets removed as dust."] # [doc = "------------------"] # [doc = "# "] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] # [doc = "# "] 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"] # [doc = "whatever 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 = "# "] # [doc = "Complexity O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] # [doc = "# "] 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 = "# "] # [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."] # [doc = "# "] nominate { targets : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "# "] 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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] # [doc = "- Weight: O(1)"] # [doc = "- DB Weight:"] # [doc = " - Read: Ledger"] # [doc = " - Write: Payee"] # [doc = "# "] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 = "# "] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "----------"] # [doc = "Weight: O(1)"] # [doc = "DB Weight:"] # [doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] # [doc = "# "] set_controller { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Weight: O(1)"] # [doc = "Write: Validator Count"] # [doc = "# "] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor upto maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# "] # [doc = "Same as [`Self::set_validator_count`]."] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write: ForceEra"] # [doc = "# "] 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 = "# "] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] # [doc = "- Write ForceEra"] # [doc = "# "] 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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::SlashCancelOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "# "] # [doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] # [doc = "- Contains a limited number of reads and writes."] # [doc = "-----------"] # [doc = "N is the Number of payouts for the validator (including the validator)"] # [doc = "Weight:"] # [doc = "- Reward Destination Staked: O(N)"] # [doc = "- Reward Destination Controller (Creating): O(N)"] # [doc = ""] # [doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] # [doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] # [doc = "# "] payout_stakers { validator_stash : :: subxt :: 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 = "# "] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] # [doc = "- Storage changes: Can't increase storage, only decrease it."] # [doc = "# "] 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: utils :: AccountId32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 = "Incorrect previous history depth input provided."] - IncorrectHistoryDepth, - #[codec(index = 16)] - #[doc = "Incorrect number of slashing spans provided."] - IncorrectSlashingSpans, - #[codec(index = 17)] - #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] - BadState, - #[codec(index = 18)] - #[doc = "Too many nomination targets supplied."] - TooManyTargets, - #[codec(index = 19)] - #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] - BadTarget, - #[codec(index = 20)] - #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] - CannotChillOther, - #[codec(index = 21)] - #[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 = 22)] - #[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 = 23)] - #[doc = "Commission is too low. Must be at least `MinCommission`."] - CommissionTooLow, - #[codec(index = 24)] - #[doc = "Some bound is not met."] - BoundNotMet, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , } - } - } - pub mod slashing { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SlashingSpans { - pub span_index: ::core::primitive::u32, - pub last_start: ::core::primitive::u32, - pub last_nonzero_slash: ::core::primitive::u32, - pub prior: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ActiveEraInfo { - pub index: ::core::primitive::u32, - pub start: ::core::option::Option<::core::primitive::u64>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EraRewardPoints<_0> { - pub total: ::core::primitive::u32, - pub individual: - ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: ::std::vec::Vec< - runtime_types::pallet_staking::IndividualExposure<_0, _1>, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Forcing { - #[codec(index = 0)] - NotForcing, - #[codec(index = 1)] - ForceNew, - #[codec(index = 2)] - ForceNone, - #[codec(index = 3)] - ForceAlways, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Nominations { - pub targets: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - pub submitted_in: ::core::primitive::u32, - pub suppressed: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Releases { - #[codec(index = 0)] - V1_0_0Ancient, - #[codec(index = 1)] - V2_0_0, - #[codec(index = 2)] - V3_0_0, - #[codec(index = 3)] - V4_0_0, - #[codec(index = 4)] - V5_0_0, - #[codec(index = 5)] - V6_0_0, - #[codec(index = 6)] - V7_0_0, - #[codec(index = 7)] - V8_0_0, - #[codec(index = 8)] - V9_0_0, - #[codec(index = 9)] - V10_0_0, - #[codec(index = 10)] - V11_0_0, - #[codec(index = 11)] - V12_0_0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RewardDestination<_0> { - #[codec(index = 0)] - Staked, - #[codec(index = 1)] - Stash, - #[codec(index = 2)] - Controller, - #[codec(index = 3)] - Account(_0), - #[codec(index = 4)] - None, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct StakingLedger { - pub stash: ::subxt::utils::AccountId32, - #[codec(compact)] - pub total: ::core::primitive::u128, - #[codec(compact)] - pub active: ::core::primitive::u128, - pub unlocking: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk< - ::core::primitive::u128, - >, - >, - pub claimed_rewards: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnappliedSlash<_0, _1> { - pub validator: _0, - pub own: _1, - pub others: ::std::vec::Vec<(_0, _1)>, - pub reporters: ::std::vec::Vec<_0>, - pub payout: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: - runtime_types::sp_arithmetic::per_things::Perbill, - pub blocked: ::core::primitive::bool, - } - } - pub mod pallet_sudo { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - sudo { - call: ::std::boxed::Box< - runtime_types::webb_standalone_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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] - sudo_unchecked_weight { - call: ::std::boxed::Box< - runtime_types::webb_standalone_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."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] - set_key { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] - sudo_as { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: ::std::boxed::Box< - runtime_types::webb_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the Sudo pallet"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Sender must be the Sudo account"] - RequireSudo, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A sudo just took place. \\[result\\]"] - Sudid { - sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 1)] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 2)] - #[doc = "A sudo just took place. \\[result\\]"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[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)`."] - #[doc = "# "] - set { - #[codec(compact)] - now: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_token_wrapper { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - set_wrapping_fee { - fee: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - set_fee_recipient { - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - wrap { - from_asset_id: ::core::primitive::u32, - into_pool_share_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - unwrap { - from_pool_share_id: ::core::primitive::u32, - into_asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - rescue_tokens { - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid transaction amount"] - InvalidAmount, - #[codec(index = 1)] - #[doc = "AssetId not found in selected pool share"] - UnregisteredAssetId, - #[codec(index = 2)] - #[doc = "Assets not found in selected pool"] - NotFoundInPool, - #[codec(index = 3)] - #[doc = "Insufficient Balance for an asset"] - InsufficientBalance, - #[codec(index = 4)] - NoWrappingFeePercentFound, - #[codec(index = 5)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 6)] - #[doc = "Name exceeds maximum limit"] - NameExceedsMaximumLimit, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - WrappedToken { - pool_share_asset: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - UnwrappedToken { - pool_share_asset: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - #[codec(index = 2)] - UpdatedWrappingFeePercent { - into_pool_share_id: ::core::primitive::u32, - wrapping_fee_percent: ::core::primitive::u128, - }, - #[codec(index = 3)] - UpdatedFeeRecipient { - fee_recipient: ::subxt::utils::AccountId32, - pool_share_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - TokensRescued { - from_pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - }, - } - } - } - pub mod pallet_token_wrapper_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Execute the wrapping fee proposal by calling the update_wrapping_fee"] - #[doc = "method. Ensures that only the bridge can call this function."] - execute_wrapping_fee_proposal { - wrapping_fee_percent: ::core::primitive::u128, - into_pool_share_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - execute_add_token_to_pool_share { - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - execute_remove_token_from_pool_share { - name: ::std::vec::Vec<::core::primitive::u8>, - asset_id: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Executes `SetFeeRecipient` proposal which will set new fee recipient,"] - #[doc = "who will be receiving wrapping fee cost for given asset."] - #[doc = "Ensures that only the bridge can call this function."] - execute_set_fee_recipient_proposal { - pool_share_id: ::core::primitive::u32, - fee_recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Executes `RescueTokenProposal`, which will transfer tokens from"] - #[doc = "fee recipient to given recipient address from given asset."] - #[doc = "Ensures that only the bridge can call this function."] - execute_rescue_tokens_proposal { - pool_share_id: ::core::primitive::u32, - asset_id: ::core::primitive::u32, - amount: ::core::primitive::u128, - recipient: ::subxt::utils::AccountId32, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Access violation."] - InvalidPermissions, - #[codec(index = 1)] - ResourceIsAlreadyAnchored, - #[codec(index = 2)] - TokenWrapperHandlerNotFound, - #[codec(index = 3)] - #[doc = "Storage overflowed."] - StorageOverflow, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - UpdatedWrappingFeePercent { - wrapping_fee_percent: ::core::primitive::u128, - }, - } - } - } - pub mod pallet_transaction_payment { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - actual_fee: ::core::primitive::u128, - tip: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Releases { - #[codec(index = 0)] - V1Ancient, - #[codec(index = 1)] - V2, - } - } - pub mod pallet_treasury { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] - propose_spend { - #[codec(compact)] - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 1)] - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] - reject_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] - approve_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] - spend { - #[codec(compact)] - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 4)] - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] - remove_approval { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the treasury 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 = "Too many approvals in the queue."] - TooManyApprovals, - #[codec(index = 3)] - #[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 = 4)] - #[doc = "Proposal has not been approved."] - ProposalNotApproved, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New proposal."] - Proposed { - proposal_index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "We have ended a spend period and will now allocate funds."] - Spending { - budget_remaining: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Some funds have been allocated."] - Awarded { - proposal_index: ::core::primitive::u32, - award: ::core::primitive::u128, - account: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A proposal was rejected; funds were slashed."] - Rejected { - proposal_index: ::core::primitive::u32, - slashed: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Some of our funds have been burnt."] - Burnt { - burnt_funds: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - Rollover { - rollover_balance: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "Some funds have been deposited."] - Deposit { value: ::core::primitive::u128 }, - #[codec(index = 7)] - #[doc = "A new spend proposal has been approved."] - SpendApproved { - proposal_index: ::core::primitive::u32, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::AccountId32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Proposal<_0, _1> { - pub proposer: _0, - pub value: _1, - pub beneficiary: _0, - pub bond: _1, - } - } - pub mod pallet_utility { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] # [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 : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 : :: std :: boxed :: Box < runtime_types :: webb_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] batch_all { calls : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 = "# "] # [doc = "- O(1)."] # [doc = "- Limited storage reads."] # [doc = "- One DB write (event)."] # [doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] # [doc = "# "] dispatch_as { as_origin : :: std :: boxed :: Box < runtime_types :: webb_standalone_runtime :: OriginCaller > , call : :: std :: boxed :: Box < runtime_types :: webb_standalone_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 = "# "] # [doc = "- Complexity: O(C) where C is the number of calls to be batched."] # [doc = "# "] force_batch { calls : :: std :: vec :: Vec < runtime_types :: webb_standalone_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 : :: std :: boxed :: Box < runtime_types :: webb_standalone_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Too many calls batched."] - TooManyCalls, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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_vanchor { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] create { max_edges : :: core :: primitive :: u32 , depth : :: core :: primitive :: u8 , asset : :: core :: primitive :: u32 , } , # [codec (index = 1)] transact { id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 2)] register_and_transact { owner : :: subxt :: utils :: AccountId32 , public_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , id : :: core :: primitive :: u32 , proof_data : runtime_types :: webb_primitives :: types :: vanchor :: ProofData < runtime_types :: webb_primitives :: runtime :: Element > , ext_data : runtime_types :: webb_primitives :: types :: vanchor :: ExtData < :: subxt :: utils :: AccountId32 , :: core :: primitive :: i128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 3)] set_max_deposit_amount { max_deposit_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , # [codec (index = 4)] set_min_withdraw_amount { min_withdraw_amount : :: core :: primitive :: u128 , nonce : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid transaction proof"] - InvalidTransactionProof, - #[codec(index = 1)] - #[doc = "Variable Anchor not found."] - NoVAnchorFound, - #[codec(index = 2)] - #[doc = "Invalid nullifier that is already used"] - #[doc = "(this error is returned when a nullifier is used twice)"] - AlreadyRevealedNullifier, - #[codec(index = 3)] - InvalidExtAmount, - #[codec(index = 4)] - InvalidDepositAmount, - #[codec(index = 5)] - InvalidWithdrawAmount, - #[codec(index = 6)] - InvalidExtData, - #[codec(index = 7)] - InvalidInputNullifiers, - #[codec(index = 8)] - InvalidFee, - #[codec(index = 9)] - InvalidPublicAmount, - #[codec(index = 10)] - #[doc = "Invalid nonce"] - InvalidNonce, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New tree created"] - VAnchorCreation { tree_id: ::core::primitive::u32 }, - #[codec(index = 1)] - #[doc = "Transaction has been made"] - Transaction { - transactor: ::subxt::utils::AccountId32, - tree_id: ::core::primitive::u32, - leafs: ::std::vec::Vec< - runtime_types::webb_primitives::runtime::Element, - >, - encrypted_output1: - ::std::vec::Vec<::core::primitive::u8>, - encrypted_output2: - ::std::vec::Vec<::core::primitive::u8>, - amount: ::core::primitive::i128, - }, - #[codec(index = 2)] - #[doc = "Deposit hook has executed successfully"] - Deposit { - depositor: ::subxt::utils::AccountId32, - tree_id: ::core::primitive::u32, - leaf: runtime_types::webb_primitives::runtime::Element, - }, - #[codec(index = 3)] - MaxDepositAmountChanged { - max_deposit_amount: ::core::primitive::u128, - }, - #[codec(index = 4)] - MinWithdrawAmountChanged { - min_withdraw_amount: ::core::primitive::u128, - }, - } - } - } - pub mod pallet_vanchor_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "This will be called by bridge when proposal to create a"] - #[doc = "vanchor has been successfully voted on."] - execute_vanchor_create_proposal { - src_chain_id: ::core::primitive::u64, - r_id: runtime_types::webb_proposals::header::ResourceId, - max_edges: ::core::primitive::u32, - tree_depth: ::core::primitive::u8, - asset: ::core::primitive::u32, - nonce: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "This will be called by bridge when proposal to add/update edge of a"] - #[doc = "vanchor has been successfully voted on."] - execute_vanchor_update_proposal { - r_id: runtime_types::webb_proposals::header::ResourceId, - merkle_root: - runtime_types::webb_primitives::runtime::Element, - src_resource_id: - runtime_types::webb_proposals::header::ResourceId, - nonce: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "This will by called by bridge when proposal to set new resource for"] - #[doc = "handler has been successfully voted on."] - execute_set_resource_proposal { - r_id: runtime_types::webb_proposals::header::ResourceId, - }, - #[codec(index = 3)] - #[doc = "Execute set max deposit limit proposal."] - #[doc = "The `MaxDepositLimitProposal` updates the maximum deposit amount allowed on the variable"] - #[doc = "anchor system."] - execute_set_max_deposit_limit_proposal { - max_deposit_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "Execute set min withdrawal limit proposal."] - #[doc = "The `MinWithdrawalLimitProposal` updates the minimum withdrawal amount allowed on the"] - #[doc = "variable anchor system."] - execute_set_min_withdrawal_limit_proposal { - min_withdraw_limit: ::core::primitive::u128, - nonce: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Access violation."] - InvalidPermissions, - #[codec(index = 1)] - ResourceIsAlreadyAnchored, - #[codec(index = 2)] - AnchorHandlerNotFound, - #[codec(index = 3)] - SourceChainIdNotFound, - #[codec(index = 4)] - #[doc = "Storage overflowed."] - StorageOverflow, - #[codec(index = 5)] - #[doc = "Invalid nonce"] - InvalidNonce, - #[codec(index = 6)] - #[doc = "Invalid resource ID"] - InvalidResourceId, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - AnchorCreated, - #[codec(index = 1)] - AnchorEdgeAdded, - #[codec(index = 2)] - AnchorEdgeUpdated, - #[codec(index = 3)] - ResourceAnchored, - } - } - } - pub mod pallet_vanchor_verifier { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { configuration : (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) , parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - VerifyingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod pallet_verifier { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] force_set_parameters { parameters : runtime_types :: sp_core :: bounded :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - VerifyingParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - } - pub mod sp_arithmetic { - use super::runtime_types; - pub mod fixed_point { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct FixedU128(pub ::core::primitive::u128); - } - pub mod per_things { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PerU16(pub ::core::primitive::u16); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Perbill(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Percent(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Permill(pub ::core::primitive::u32); - } - } - pub mod sp_authority_discovery { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - } - } - pub mod sp_consensus_babe { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - } - pub mod digests { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum NextConfigDescriptor { - #[codec(index = 1)] - V1 { - c: (::core::primitive::u64, ::core::primitive::u64), - allowed_slots: - runtime_types::sp_consensus_babe::AllowedSlots, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PrimaryPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SecondaryPlainPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SecondaryVRFPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AllowedSlots { - #[codec(index = 0)] - PrimarySlots, - #[codec(index = 1)] - PrimaryAndSecondaryPlainSlots, - #[codec(index = 2)] - PrimaryAndSecondaryVRFSlots, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BabeEpochConfiguration { - pub c: (::core::primitive::u64, ::core::primitive::u64), - pub allowed_slots: - runtime_types::sp_consensus_babe::AllowedSlots, - } - } - pub mod sp_consensus_slots { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Slot(pub ::core::primitive::u64); - } - pub mod sp_core { - use super::runtime_types; - pub mod bounded { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BoundedBTreeMap<_0, _1>( - pub ::subxt::utils::KeyedVec<_0, _1>, - ); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } - pub mod crypto { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); - } - pub mod ecdsa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature(pub [::core::primitive::u8; 65usize]); - } - pub mod ed25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct OpaqueMultiaddr( - pub ::std::vec::Vec<::core::primitive::u8>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: ::std::vec::Vec< - runtime_types::sp_core::offchain::OpaqueMultiaddr, - >, - } - } - pub mod sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Void {} - } - pub mod sp_finality_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature( - pub runtime_types::sp_core::ed25519::Signature, - ); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Equivocation<_0, _1> { - #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EquivocationProof<_0, _1> { - pub set_id: _1, - pub equivocation: - runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, - } - } - pub mod sp_npos_elections { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ElectionScore { - pub minimal_stake: ::core::primitive::u128, - pub sum_stake: ::core::primitive::u128, - pub sum_stake_squared: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Support<_0> { - pub total: ::core::primitive::u128, - pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, - } - } - pub mod sp_runtime { - use super::runtime_types; - pub mod generic { - use super::runtime_types; - pub mod digest { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DigestItem { - #[codec(index = 6)] - PreRuntime( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 4)] - Consensus( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 5)] - Seal( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 0)] - Other(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 8)] - RuntimeEnvironmentUpdated, - } - } - pub mod era { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Header<_0, _1> { - pub parent_hash: ::subxt::utils::H256, - #[codec(compact)] - pub number: _0, - pub state_root: ::subxt::utils::H256, - pub extrinsics_root: ::subxt::utils::H256, - pub digest: - runtime_types::sp_runtime::generic::digest::Digest, - #[codec(skip)] - pub __subxt_unused_type_params: - ::core::marker::PhantomData<_1>, - } - } - pub mod unchecked_extrinsic { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UncheckedExtrinsic<_0, _1, _2, _3>( - pub ::std::vec::Vec<::core::primitive::u8>, - #[codec(skip)] - pub ::core::marker::PhantomData<(_0, _1, _2, _3)>, - ); - } - } - pub mod traits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BlakeTwo256; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ArithmeticError { - #[codec(index = 0)] - Underflow, - #[codec(index = 1)] - Overflow, - #[codec(index = 2)] - DivisionByZero, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum 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_runtime::ArithmeticError), - #[codec(index = 9)] - Transactional(runtime_types::sp_runtime::TransactionalError), - #[codec(index = 10)] - Exhausted, - #[codec(index = 11)] - Corruption, - #[codec(index = 12)] - Unavailable, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ModuleError { - pub index: ::core::primitive::u8, - pub error: [::core::primitive::u8; 4usize], - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MultiSignature { - #[codec(index = 0)] - Ed25519(runtime_types::sp_core::ed25519::Signature), - #[codec(index = 1)] - Sr25519(runtime_types::sp_core::sr25519::Signature), - #[codec(index = 2)] - Ecdsa(runtime_types::sp_core::ecdsa::Signature), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum TokenError { - #[codec(index = 0)] - NoFunds, - #[codec(index = 1)] - WouldDie, - #[codec(index = 2)] - BelowMinimum, - #[codec(index = 3)] - CannotCreate, - #[codec(index = 4)] - UnknownAsset, - #[codec(index = 5)] - Frozen, - #[codec(index = 6)] - Unsupported, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum TransactionalError { - #[codec(index = 0)] - LimitReached, - #[codec(index = 1)] - NoLayer, - } - } - pub mod sp_session { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MembershipProof { - pub session: ::core::primitive::u32, - pub trie_nodes: - ::std::vec::Vec<::std::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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct OffenceDetails<_0, _1> { - pub offender: _1, - pub reporters: ::std::vec::Vec<_0>, - } - } - } - pub mod sp_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RuntimeVersion { - pub spec_name: ::std::string::String, - pub impl_name: ::std::string::String, - pub authoring_version: ::core::primitive::u32, - pub spec_version: ::core::primitive::u32, - pub impl_version: ::core::primitive::u32, - pub apis: ::std::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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OldWeight(pub ::core::primitive::u64); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RuntimeDbWeight { - pub read: ::core::primitive::u64, - pub write: ::core::primitive::u64, - } - } - pub mod webb_primitives { - use super::runtime_types; - pub mod runtime { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Element(pub [::core::primitive::u8; 32usize]); - } - pub mod types { - use super::runtime_types; - pub mod vanchor { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ExtData<_0, _1, _2, _3> { - pub recipient: _0, - pub relayer: _0, - pub ext_amount: _1, - pub fee: _2, - pub refund: _2, - pub token: _3, - pub encrypted_output1: - ::std::vec::Vec<::core::primitive::u8>, - pub encrypted_output2: - ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProofData<_0> { - pub proof: ::std::vec::Vec<::core::primitive::u8>, - pub public_amount: _0, - pub roots: ::std::vec::Vec<_0>, - pub input_nullifiers: ::std::vec::Vec<_0>, - pub output_commitments: ::std::vec::Vec<_0>, - pub ext_data_hash: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct VAnchorMetadata<_0, _1> { - pub creator: ::core::option::Option<_0>, - pub asset: _1, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct DepositDetails<_0, _1> { - pub depositor: _0, - pub deposit: _1, - } - } - } - pub mod webb_proposals { - use super::runtime_types; - pub mod header { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ResourceId(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum TypedChainId { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Evm(::core::primitive::u32), - #[codec(index = 2)] - Substrate(::core::primitive::u32), - #[codec(index = 3)] - PolkadotParachain(::core::primitive::u32), - #[codec(index = 4)] - KusamaParachain(::core::primitive::u32), - #[codec(index = 5)] - RococoParachain(::core::primitive::u32), - #[codec(index = 6)] - Cosmos(::core::primitive::u32), - #[codec(index = 7)] - Solana(::core::primitive::u32), - #[codec(index = 8)] - Ink(::core::primitive::u32), - } - } - pub mod target_system { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubstrateTargetSystem { - pub pallet_index: ::core::primitive::u8, - pub tree_id: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum TargetSystem { - # [codec (index = 0)] ContractAddress ([:: core :: primitive :: u8 ; 20usize] ,) , # [codec (index = 1)] Substrate (runtime_types :: webb_proposals :: target_system :: SubstrateTargetSystem ,) , } - } - } - pub mod webb_standalone_runtime { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MaxAssetIdInPool; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MaxEdges; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NposSolution16 { - pub votes1: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes2: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ), - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes3: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 2usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes4: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 3usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes5: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 4usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes6: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 5usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes7: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 6usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes8: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 7usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes9: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 8usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes10: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 9usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes11: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 10usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes12: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 11usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes13: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 12usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes14: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 13usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes15: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 14usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes16: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 15usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum OriginCaller { - #[codec(index = 0)] - system( - runtime_types::frame_support::dispatch::RawOrigin< - ::subxt::utils::AccountId32, - >, - ), - #[codec(index = 13)] - Council( - runtime_types::pallet_collective::RawOrigin< - ::subxt::utils::AccountId32, - >, - ), - #[codec(index = 2)] - Void(runtime_types::sp_core::Void), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ProxyType { - #[codec(index = 0)] - Any, - #[codec(index = 1)] - NonTransfer, - #[codec(index = 2)] - CancelProxy, - #[codec(index = 3)] - Assets, - #[codec(index = 4)] - AssetOwner, - #[codec(index = 5)] - AssetManager, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Runtime; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeCall { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 2)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 3)] Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , # [codec (index = 4)] Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , # [codec (index = 5)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 9)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 10)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 11)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 12)] Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , # [codec (index = 13)] Council (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 14)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , # [codec (index = 15)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 16)] Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , # [codec (index = 17)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 18)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 19)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 20)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 21)] Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , # [codec (index = 22)] Assets (runtime_types :: pallet_assets :: pallet :: Call ,) , # [codec (index = 23)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 24)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 28)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 29)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 30)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 31)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 32)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Call ,) , # [codec (index = 33)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Call ,) , # [codec (index = 34)] Currencies (runtime_types :: orml_currencies :: module :: Call ,) , # [codec (index = 35)] Tokens (runtime_types :: orml_tokens :: module :: Call ,) , # [codec (index = 36)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Call ,) , # [codec (index = 37)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Call ,) , # [codec (index = 38)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Call ,) , # [codec (index = 39)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Call ,) , # [codec (index = 40)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Call ,) , # [codec (index = 41)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Call ,) , # [codec (index = 42)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Call ,) , # [codec (index = 43)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Call ,) , # [codec (index = 44)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Call ,) , # [codec (index = 45)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Call ,) , # [codec (index = 46)] RelayerRegistry (runtime_types :: pallet_relayer_registry :: pallet :: Call ,) , # [codec (index = 47)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Call ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeEvent { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 5)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 8)] AssetTxPayment (runtime_types :: pallet_asset_tx_payment :: pallet :: Event ,) , # [codec (index = 9)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 10)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 11)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 12)] Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , # [codec (index = 13)] Council (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 14)] Elections (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , # [codec (index = 15)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 16)] Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , # [codec (index = 17)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 18)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 19)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 20)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 21)] Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , # [codec (index = 22)] Assets (runtime_types :: pallet_assets :: pallet :: Event ,) , # [codec (index = 23)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 24)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 26)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 28)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 29)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 30)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 31)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 32)] HasherBn254 (runtime_types :: pallet_hasher :: pallet :: Event ,) , # [codec (index = 33)] AssetRegistry (runtime_types :: pallet_asset_registry :: pallet :: Event ,) , # [codec (index = 35)] Tokens (runtime_types :: orml_tokens :: module :: Event ,) , # [codec (index = 36)] TokenWrapper (runtime_types :: pallet_token_wrapper :: pallet :: Event ,) , # [codec (index = 37)] TokenWrapperHandler (runtime_types :: pallet_token_wrapper_handler :: pallet :: Event ,) , # [codec (index = 38)] MixerVerifierBn254 (runtime_types :: pallet_verifier :: pallet :: Event ,) , # [codec (index = 39)] VAnchorVerifier (runtime_types :: pallet_vanchor_verifier :: pallet :: Event ,) , # [codec (index = 40)] MerkleTreeBn254 (runtime_types :: pallet_mt :: pallet :: Event ,) , # [codec (index = 41)] LinkableTreeBn254 (runtime_types :: pallet_linkable_tree :: pallet :: Event ,) , # [codec (index = 42)] MixerBn254 (runtime_types :: pallet_mixer :: pallet :: Event ,) , # [codec (index = 43)] VAnchorBn254 (runtime_types :: pallet_vanchor :: pallet :: Event ,) , # [codec (index = 44)] VAnchorHandlerBn254 (runtime_types :: pallet_vanchor_handler :: pallet :: Event ,) , # [codec (index = 45)] SignatureBridge (runtime_types :: pallet_signature_bridge :: pallet :: Event ,) , # [codec (index = 46)] RelayerRegistry (runtime_types :: pallet_relayer_registry :: pallet :: Event ,) , # [codec (index = 47)] KeyStorage (runtime_types :: pallet_key_storage :: pallet :: Event ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionKeys { pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub babe : runtime_types :: sp_consensus_babe :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub authority_discovery : runtime_types :: sp_authority_discovery :: app :: Public , } - } - } -} From 23ead0574ad5487dbd98af96a7abc67c127b5d7b Mon Sep 17 00:00:00 2001 From: shekohex Date: Mon, 15 May 2023 14:47:36 +0300 Subject: [PATCH 5/8] Delete dkg_runtime.rs --- src/substrate/dkg_runtime.rs | 22905 --------------------------------- 1 file changed, 22905 deletions(-) delete mode 100644 src/substrate/dkg_runtime.rs diff --git a/src/substrate/dkg_runtime.rs b/src/substrate/dkg_runtime.rs deleted file mode 100644 index 9e0109e..0000000 --- a/src/substrate/dkg_runtime.rs +++ /dev/null @@ -1,22905 +0,0 @@ -#[allow(dead_code, unused_imports, non_camel_case_types)] -#[allow(clippy::all)] -pub mod api { - #[allow(unused_imports)] - mod root_mod { - pub use super::*; - } - pub static PALLETS: [&str; 21usize] = [ - "System", - "Indices", - "RandomnessCollectiveFlip", - "Timestamp", - "Aura", - "Grandpa", - "Balances", - "DKG", - "DKGProposals", - "DKGProposalHandler", - "TransactionPayment", - "Sudo", - "ElectionProviderMultiPhase", - "BagsList", - "NominationPools", - "Staking", - "Session", - "Historical", - "BridgeRegistry", - "Identity", - "ImOnline", - ]; - #[doc = r" The error type returned when there is a runtime issue."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Event { - #[codec(index = 0)] - System(system::Event), - #[codec(index = 1)] - Indices(indices::Event), - #[codec(index = 5)] - Grandpa(grandpa::Event), - #[codec(index = 6)] - Balances(balances::Event), - #[codec(index = 7)] - DKG(dkg::Event), - #[codec(index = 8)] - DKGProposals(dkg_proposals::Event), - #[codec(index = 9)] - DKGProposalHandler(dkg_proposal_handler::Event), - #[codec(index = 10)] - TransactionPayment(transaction_payment::Event), - #[codec(index = 11)] - Sudo(sudo::Event), - #[codec(index = 12)] - ElectionProviderMultiPhase(election_provider_multi_phase::Event), - #[codec(index = 13)] - BagsList(bags_list::Event), - #[codec(index = 14)] - NominationPools(nomination_pools::Event), - #[codec(index = 15)] - Staking(staking::Event), - #[codec(index = 16)] - Session(session::Event), - #[codec(index = 18)] - BridgeRegistry(bridge_registry::Event), - #[codec(index = 19)] - Identity(identity::Event), - #[codec(index = 20)] - ImOnline(im_online::Event), - } - impl ::subxt::events::RootEvent for Event { - fn root_event( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_ty: u32, - metadata: &::subxt::Metadata, - ) -> Result { - use ::subxt::metadata::DecodeWithMetadata; - if pallet_name == "System" { - return Ok(Event::System(system::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Indices" { - return Ok(Event::Indices( - indices::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Grandpa" { - return Ok(Event::Grandpa( - grandpa::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Balances" { - return Ok(Event::Balances( - balances::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "DKG" { - return Ok(Event::DKG(dkg::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "DKGProposals" { - return Ok(Event::DKGProposals( - dkg_proposals::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "DKGProposalHandler" { - return Ok(Event::DKGProposalHandler( - dkg_proposal_handler::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "TransactionPayment" { - return Ok(Event::TransactionPayment( - transaction_payment::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Sudo" { - return Ok(Event::Sudo(sudo::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ElectionProviderMultiPhase" { - return Ok(Event::ElectionProviderMultiPhase( - election_provider_multi_phase::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "BagsList" { - return Ok(Event::BagsList( - bags_list::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "NominationPools" { - return Ok(Event::NominationPools( - nomination_pools::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Staking" { - return Ok(Event::Staking( - staking::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Session" { - return Ok(Event::Session( - session::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "BridgeRegistry" { - return Ok(Event::BridgeRegistry( - bridge_registry::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Identity" { - return Ok(Event::Identity( - identity::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ImOnline" { - return Ok(Event::ImOnline( - im_online::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Event enum", - pallet_name - )) - .into()) - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Call { - #[codec(index = 0)] - System(system::Call), - #[codec(index = 1)] - Indices(indices::Call), - #[codec(index = 3)] - Timestamp(timestamp::Call), - #[codec(index = 5)] - Grandpa(grandpa::Call), - #[codec(index = 6)] - Balances(balances::Call), - #[codec(index = 7)] - DKG(dkg::Call), - #[codec(index = 8)] - DKGProposals(dkg_proposals::Call), - #[codec(index = 9)] - DKGProposalHandler(dkg_proposal_handler::Call), - #[codec(index = 11)] - Sudo(sudo::Call), - #[codec(index = 12)] - ElectionProviderMultiPhase(election_provider_multi_phase::Call), - #[codec(index = 13)] - BagsList(bags_list::Call), - #[codec(index = 14)] - NominationPools(nomination_pools::Call), - #[codec(index = 15)] - Staking(staking::Call), - #[codec(index = 16)] - Session(session::Call), - #[codec(index = 18)] - BridgeRegistry(bridge_registry::Call), - #[codec(index = 19)] - Identity(identity::Call), - #[codec(index = 20)] - ImOnline(im_online::Call), - } - impl ::subxt::blocks::RootExtrinsic for Call { - fn root_extrinsic( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_ty: u32, - metadata: &::subxt::Metadata, - ) -> Result { - use ::subxt::metadata::DecodeWithMetadata; - if pallet_name == "System" { - return Ok(Call::System(system::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Indices" { - return Ok(Call::Indices(indices::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Timestamp" { - return Ok(Call::Timestamp( - timestamp::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Grandpa" { - return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Balances" { - return Ok(Call::Balances( - balances::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "DKG" { - return Ok(Call::DKG(dkg::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "DKGProposals" { - return Ok(Call::DKGProposals( - dkg_proposals::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "DKGProposalHandler" { - return Ok(Call::DKGProposalHandler( - dkg_proposal_handler::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Sudo" { - return Ok(Call::Sudo(sudo::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ElectionProviderMultiPhase" { - return Ok(Call::ElectionProviderMultiPhase( - election_provider_multi_phase::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "BagsList" { - return Ok(Call::BagsList( - bags_list::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "NominationPools" { - return Ok(Call::NominationPools( - nomination_pools::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Staking" { - return Ok(Call::Staking(staking::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Session" { - return Ok(Call::Session(session::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "BridgeRegistry" { - return Ok(Call::BridgeRegistry( - bridge_registry::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Identity" { - return Ok(Call::Identity( - identity::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ImOnline" { - return Ok(Call::ImOnline( - im_online::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Call enum", - pallet_name - )) - .into()) - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Error { - #[codec(index = 0)] - System(system::Error), - #[codec(index = 1)] - Indices(indices::Error), - #[codec(index = 5)] - Grandpa(grandpa::Error), - #[codec(index = 6)] - Balances(balances::Error), - #[codec(index = 7)] - DKG(dkg::Error), - #[codec(index = 8)] - DKGProposals(dkg_proposals::Error), - #[codec(index = 9)] - DKGProposalHandler(dkg_proposal_handler::Error), - #[codec(index = 11)] - Sudo(sudo::Error), - #[codec(index = 12)] - ElectionProviderMultiPhase(election_provider_multi_phase::Error), - #[codec(index = 13)] - BagsList(bags_list::Error), - #[codec(index = 14)] - NominationPools(nomination_pools::Error), - #[codec(index = 15)] - Staking(staking::Error), - #[codec(index = 16)] - Session(session::Error), - #[codec(index = 18)] - BridgeRegistry(bridge_registry::Error), - #[codec(index = 19)] - Identity(identity::Error), - #[codec(index = 20)] - ImOnline(im_online::Error), - } - impl ::subxt::error::RootError for Error { - fn root_error( - pallet_bytes: &[u8], - pallet_name: &str, - metadata: &::subxt::Metadata, - ) -> Result { - use ::subxt::metadata::DecodeWithMetadata; - let cursor = &mut &pallet_bytes[..]; - if pallet_name == "System" { - let variant_error = system::Error::decode_with_metadata( - cursor, 106u32, metadata, - )?; - return Ok(Error::System(variant_error)); - } - if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata( - cursor, 111u32, metadata, - )?; - return Ok(Error::Indices(variant_error)); - } - if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata( - cursor, 135u32, metadata, - )?; - return Ok(Error::Grandpa(variant_error)); - } - if pallet_name == "Balances" { - let variant_error = balances::Error::decode_with_metadata( - cursor, 144u32, metadata, - )?; - return Ok(Error::Balances(variant_error)); - } - if pallet_name == "DKG" { - let variant_error = - dkg::Error::decode_with_metadata(cursor, 164u32, metadata)?; - return Ok(Error::DKG(variant_error)); - } - if pallet_name == "DKGProposals" { - let variant_error = dkg_proposals::Error::decode_with_metadata( - cursor, 181u32, metadata, - )?; - return Ok(Error::DKGProposals(variant_error)); - } - if pallet_name == "DKGProposalHandler" { - let variant_error = - dkg_proposal_handler::Error::decode_with_metadata( - cursor, 186u32, metadata, - )?; - return Ok(Error::DKGProposalHandler(variant_error)); - } - if pallet_name == "Sudo" { - let variant_error = sudo::Error::decode_with_metadata( - cursor, 325u32, metadata, - )?; - return Ok(Error::Sudo(variant_error)); - } - if pallet_name == "ElectionProviderMultiPhase" { - let variant_error = - election_provider_multi_phase::Error::decode_with_metadata( - cursor, 336u32, metadata, - )?; - return Ok(Error::ElectionProviderMultiPhase(variant_error)); - } - if pallet_name == "BagsList" { - let variant_error = bags_list::Error::decode_with_metadata( - cursor, 340u32, metadata, - )?; - return Ok(Error::BagsList(variant_error)); - } - if pallet_name == "NominationPools" { - let variant_error = - nomination_pools::Error::decode_with_metadata( - cursor, 358u32, metadata, - )?; - return Ok(Error::NominationPools(variant_error)); - } - if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata( - cursor, 380u32, metadata, - )?; - return Ok(Error::Staking(variant_error)); - } - if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata( - cursor, 385u32, metadata, - )?; - return Ok(Error::Session(variant_error)); - } - if pallet_name == "BridgeRegistry" { - let variant_error = - bridge_registry::Error::decode_with_metadata( - cursor, 389u32, metadata, - )?; - return Ok(Error::BridgeRegistry(variant_error)); - } - if pallet_name == "Identity" { - let variant_error = identity::Error::decode_with_metadata( - cursor, 400u32, metadata, - )?; - return Ok(Error::Identity(variant_error)); - } - if pallet_name == "ImOnline" { - let variant_error = im_online::Error::decode_with_metadata( - cursor, 408u32, metadata, - )?; - return Ok(Error::ImOnline(variant_error)); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Error enum", - pallet_name - )) - .into()) - } - } - 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::codec::Encode; - pub struct RuntimeApi; - impl RuntimeApi {} - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn indices(&self) -> indices::constants::ConstantsApi { - indices::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi - } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi - } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi - } - pub fn dkg(&self) -> dkg::constants::ConstantsApi { - dkg::constants::ConstantsApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::constants::ConstantsApi { - dkg_proposals::constants::ConstantsApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::constants::ConstantsApi { - dkg_proposal_handler::constants::ConstantsApi - } - pub fn transaction_payment( - &self, - ) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi - } - pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn bridge_registry( - &self, - ) -> bridge_registry::constants::ConstantsApi { - bridge_registry::constants::ConstantsApi - } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi - } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi - } - } - pub struct StorageApi; - impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { - system::storage::StorageApi - } - pub fn indices(&self) -> indices::storage::StorageApi { - indices::storage::StorageApi - } - pub fn randomness_collective_flip( - &self, - ) -> randomness_collective_flip::storage::StorageApi { - randomness_collective_flip::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn aura(&self) -> aura::storage::StorageApi { - aura::storage::StorageApi - } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { - grandpa::storage::StorageApi - } - pub fn balances(&self) -> balances::storage::StorageApi { - balances::storage::StorageApi - } - pub fn dkg(&self) -> dkg::storage::StorageApi { - dkg::storage::StorageApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::storage::StorageApi { - dkg_proposals::storage::StorageApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::storage::StorageApi { - dkg_proposal_handler::storage::StorageApi - } - pub fn transaction_payment( - &self, - ) -> transaction_payment::storage::StorageApi { - transaction_payment::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi { - election_provider_multi_phase::storage::StorageApi - } - pub fn bags_list(&self) -> bags_list::storage::StorageApi { - bags_list::storage::StorageApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn historical(&self) -> historical::storage::StorageApi { - historical::storage::StorageApi - } - pub fn bridge_registry(&self) -> bridge_registry::storage::StorageApi { - bridge_registry::storage::StorageApi - } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi - } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi - } - pub fn indices(&self) -> indices::calls::TransactionApi { - indices::calls::TransactionApi - } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi - } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { - grandpa::calls::TransactionApi - } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi - } - pub fn dkg(&self) -> dkg::calls::TransactionApi { - dkg::calls::TransactionApi - } - pub fn dkg_proposals(&self) -> dkg_proposals::calls::TransactionApi { - dkg_proposals::calls::TransactionApi - } - pub fn dkg_proposal_handler( - &self, - ) -> dkg_proposal_handler::calls::TransactionApi { - dkg_proposal_handler::calls::TransactionApi - } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi { - election_provider_multi_phase::calls::TransactionApi - } - pub fn bags_list(&self) -> bags_list::calls::TransactionApi { - bags_list::calls::TransactionApi - } - pub fn nomination_pools( - &self, - ) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi - } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi - } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi - } - pub fn bridge_registry( - &self, - ) -> bridge_registry::calls::TransactionApi { - bridge_registry::calls::TransactionApi - } - pub fn identity(&self) -> identity::calls::TransactionApi { - identity::calls::TransactionApi - } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::calls::TransactionApi - } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen< - T: ::subxt::Config, - C: ::subxt::client::OfflineClientT, - >( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 107u8, 94u8, 6u8, 38u8, 200u8, 105u8, 151u8, 128u8, 25u8, - 222u8, 113u8, 57u8, 249u8, 10u8, 7u8, 79u8, 221u8, 214u8, - 135u8, 36u8, 246u8, 57u8, 189u8, 221u8, 144u8, 203u8, 21u8, - 215u8, 239u8, 113u8, 144u8, 213u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) - } - } - 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Remark { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for Remark { - const PALLET: &'static str = "System"; - const CALL: &'static str = "remark"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetHeapPages { - pub pages: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_heap_pages"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetCode { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetCode { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_code"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetCodeWithoutChecks { - pub code: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_code_without_checks"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetStorage { - pub items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetStorage { - const PALLET: &'static str = "System"; - const CALL: &'static str = "set_storage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KillStorage { - pub keys: - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - } - impl ::subxt::blocks::StaticExtrinsic for KillStorage { - const PALLET: &'static str = "System"; - const CALL: &'static str = "kill_storage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KillPrefix { - pub prefix: ::std::vec::Vec<::core::primitive::u8>, - pub subkeys: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for KillPrefix { - const PALLET: &'static str = "System"; - const CALL: &'static str = "kill_prefix"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemarkWithEvent { - pub remark: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { - const PALLET: &'static str = "System"; - const CALL: &'static str = "remark_with_event"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`"] - pub fn remark( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "remark", - types::Remark { remark }, - [ - 101u8, 80u8, 195u8, 226u8, 224u8, 247u8, 60u8, - 128u8, 3u8, 101u8, 51u8, 147u8, 96u8, 126u8, 76u8, - 230u8, 194u8, 227u8, 191u8, 73u8, 160u8, 146u8, - 87u8, 147u8, 243u8, 28u8, 228u8, 116u8, 224u8, - 181u8, 129u8, 160u8, - ], - ) - } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub fn set_heap_pages( - &self, - pages: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "set_heap_pages", - types::SetHeapPages { pages }, - [ - 43u8, 103u8, 128u8, 49u8, 156u8, 136u8, 11u8, - 204u8, 80u8, 6u8, 244u8, 86u8, 171u8, 44u8, 140u8, - 225u8, 142u8, 198u8, 43u8, 87u8, 26u8, 45u8, 125u8, - 222u8, 165u8, 254u8, 172u8, 158u8, 39u8, 178u8, - 86u8, 87u8, - ], - ) - } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - pub fn set_code( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "set_code", - types::SetCode { code }, - [ - 27u8, 104u8, 244u8, 205u8, 188u8, 254u8, 121u8, - 13u8, 106u8, 120u8, 244u8, 108u8, 97u8, 84u8, - 100u8, 68u8, 26u8, 69u8, 93u8, 128u8, 107u8, 4u8, - 3u8, 142u8, 13u8, 134u8, 196u8, 62u8, 113u8, 181u8, - 14u8, 40u8, - ], - ) - } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C)` where `C` length of `code`"] - pub fn set_code_without_checks( - &self, - code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "System", - "set_code_without_checks", - types::SetCodeWithoutChecks { code }, - [ - 102u8, 160u8, 125u8, 235u8, 30u8, 23u8, 45u8, - 239u8, 112u8, 148u8, 159u8, 158u8, 42u8, 93u8, - 206u8, 94u8, 80u8, 250u8, 66u8, 195u8, 60u8, 40u8, - 142u8, 169u8, 183u8, 80u8, 80u8, 96u8, 3u8, 231u8, - 99u8, 216u8, - ], - ) - } - #[doc = "Set some items of storage."] - pub fn set_storage( - &self, - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "set_storage", - types::SetStorage { items }, - [ - 74u8, 43u8, 106u8, 255u8, 50u8, 151u8, 192u8, - 155u8, 14u8, 90u8, 19u8, 45u8, 165u8, 16u8, 235u8, - 242u8, 21u8, 131u8, 33u8, 172u8, 119u8, 78u8, - 140u8, 10u8, 107u8, 202u8, 122u8, 235u8, 181u8, - 191u8, 22u8, 116u8, - ], - ) - } - #[doc = "Kill some items from storage."] - pub fn kill_storage( - &self, - keys: ::std::vec::Vec< - ::std::vec::Vec<::core::primitive::u8>, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "kill_storage", - types::KillStorage { keys }, - [ - 174u8, 174u8, 13u8, 174u8, 75u8, 138u8, 128u8, - 235u8, 222u8, 216u8, 85u8, 18u8, 198u8, 1u8, 138u8, - 70u8, 19u8, 108u8, 209u8, 41u8, 228u8, 67u8, 130u8, - 230u8, 160u8, 207u8, 11u8, 180u8, 139u8, 242u8, - 41u8, 15u8, - ], - ) - } - #[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: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "System", - "kill_prefix", - types::KillPrefix { prefix, subkeys }, - [ - 203u8, 116u8, 217u8, 42u8, 154u8, 215u8, 77u8, - 217u8, 13u8, 22u8, 193u8, 2u8, 128u8, 115u8, 179u8, - 115u8, 187u8, 218u8, 129u8, 34u8, 80u8, 4u8, 173u8, - 120u8, 92u8, 35u8, 237u8, 112u8, 201u8, 207u8, - 200u8, 48u8, - ], - ) - } - #[doc = "Make some on-chain remark and emit event."] - pub fn remark_with_event( - &self, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "System", - "remark_with_event", - types::RemarkWithEvent { remark }, - [ - 123u8, 225u8, 180u8, 179u8, 144u8, 74u8, 27u8, - 85u8, 101u8, 75u8, 134u8, 44u8, 181u8, 25u8, 183u8, - 158u8, 14u8, 213u8, 56u8, 225u8, 136u8, 88u8, 26u8, - 114u8, 178u8, 43u8, 176u8, 43u8, 240u8, 84u8, - 116u8, 46u8, - ], - ) - } - } - } - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An extrinsic completed successfully."] - pub struct ExtrinsicSuccess { - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicSuccess { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicSuccess"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An extrinsic failed."] - pub struct ExtrinsicFailed { - pub dispatch_error: runtime_types::sp_runtime::DispatchError, - pub dispatch_info: - runtime_types::frame_support::dispatch::DispatchInfo, - } - impl ::subxt::events::StaticEvent for ExtrinsicFailed { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "ExtrinsicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "`:code` was updated."] - pub struct CodeUpdated; - impl ::subxt::events::StaticEvent for CodeUpdated { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "CodeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new account was created."] - pub struct NewAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for NewAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "NewAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was reaped."] - pub struct KilledAccount { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for KilledAccount { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "KilledAccount"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "On on-chain remark happened."] - pub struct Remarked { - pub sender: ::subxt::utils::AccountId32, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Remarked { - const PALLET: &'static str = "System"; - const EVENT: &'static str = "Remarked"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The full account information for a particular account ID."] - pub fn account( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 187u8 , 21u8 , 220u8 , 159u8 , 204u8 , 127u8 , 14u8 , 21u8 , 69u8 , 77u8 , 114u8 , 230u8 , 141u8 , 107u8 , 79u8 , 23u8 , 16u8 , 174u8 , 243u8 , 252u8 , 42u8 , 65u8 , 120u8 , 229u8 , 38u8 , 210u8 , 255u8 , 22u8 , 40u8 , 109u8 , 223u8 ,]) - } - #[doc = " The full account information for a particular account ID."] - pub fn account_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "Account", - Vec::new(), - [ - 176u8, 187u8, 21u8, 220u8, 159u8, 204u8, 127u8, - 14u8, 21u8, 69u8, 77u8, 114u8, 230u8, 141u8, 107u8, - 79u8, 23u8, 16u8, 174u8, 243u8, 252u8, 42u8, 65u8, - 120u8, 229u8, 38u8, 210u8, 255u8, 22u8, 40u8, - 109u8, 223u8, - ], - ) - } - #[doc = " Total extrinsics count for the current block."] - pub fn extrinsic_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "ExtrinsicCount", - vec![], - [ - 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, - 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, - 249u8, 8u8, 225u8, 28u8, 232u8, 4u8, 136u8, 41u8, - 151u8, 82u8, 189u8, 149u8, 49u8, 166u8, 139u8, 9u8, - 163u8, 231u8, - ], - ) - } - #[doc = " The current weight for the block."] - pub fn block_weight( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::sp_weights::weight_v2::Weight, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "BlockWeight", - vec![], - [ - 120u8, 67u8, 71u8, 163u8, 36u8, 202u8, 52u8, 106u8, - 143u8, 155u8, 144u8, 87u8, 142u8, 241u8, 232u8, - 183u8, 56u8, 235u8, 27u8, 237u8, 20u8, 202u8, 33u8, - 85u8, 189u8, 0u8, 28u8, 52u8, 198u8, 40u8, 219u8, - 54u8, - ], - ) - } - #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] - pub fn all_extrinsics_len( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "AllExtrinsicsLen", - vec![], - [ - 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, - 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, - 32u8, 117u8, 96u8, 149u8, 53u8, 145u8, 219u8, 64u8, - 234u8, 18u8, 217u8, 200u8, 203u8, 141u8, 145u8, - 28u8, 134u8, 60u8, - ], - ) - } - #[doc = " Map of block numbers to block hashes."] - pub fn block_hash( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "BlockHash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [50u8 , 112u8 , 176u8 , 239u8 , 175u8 , 18u8 , 205u8 , 20u8 , 241u8 , 195u8 , 21u8 , 228u8 , 186u8 , 57u8 , 200u8 , 25u8 , 38u8 , 44u8 , 106u8 , 20u8 , 168u8 , 80u8 , 76u8 , 235u8 , 12u8 , 51u8 , 137u8 , 149u8 , 200u8 , 4u8 , 220u8 , 237u8 ,]) - } - #[doc = " Map of block numbers to block hashes."] - pub fn block_hash_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "BlockHash", - Vec::new(), - [ - 50u8, 112u8, 176u8, 239u8, 175u8, 18u8, 205u8, - 20u8, 241u8, 195u8, 21u8, 228u8, 186u8, 57u8, - 200u8, 25u8, 38u8, 44u8, 106u8, 20u8, 168u8, 80u8, - 76u8, 235u8, 12u8, 51u8, 137u8, 149u8, 200u8, 4u8, - 220u8, 237u8, - ], - ) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] - pub fn extrinsic_data( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "ExtrinsicData" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [210u8 , 224u8 , 211u8 , 186u8 , 118u8 , 210u8 , 185u8 , 194u8 , 238u8 , 211u8 , 254u8 , 73u8 , 67u8 , 184u8 , 31u8 , 229u8 , 168u8 , 125u8 , 98u8 , 23u8 , 241u8 , 59u8 , 49u8 , 86u8 , 126u8 , 9u8 , 114u8 , 163u8 , 160u8 , 62u8 , 50u8 , 67u8 ,]) - } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] - pub fn extrinsic_data_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "ExtrinsicData", - Vec::new(), - [ - 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, - 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, - 31u8, 229u8, 168u8, 125u8, 98u8, 23u8, 241u8, 59u8, - 49u8, 86u8, 126u8, 9u8, 114u8, 163u8, 160u8, 62u8, - 50u8, 67u8, - ], - ) - } - #[doc = " The current block number being processed. Set by `execute_block`."] - pub fn number( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "Number", - vec![], - [ - 228u8, 96u8, 102u8, 190u8, 252u8, 130u8, 239u8, - 172u8, 126u8, 235u8, 246u8, 139u8, 208u8, 15u8, - 88u8, 245u8, 141u8, 232u8, 43u8, 204u8, 36u8, 87u8, - 211u8, 141u8, 187u8, 68u8, 236u8, 70u8, 193u8, - 235u8, 164u8, 191u8, - ], - ) - } - #[doc = " Hash of the previous block."] - pub fn parent_hash( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "ParentHash", - vec![], - [ - 232u8, 206u8, 177u8, 119u8, 38u8, 57u8, 233u8, - 50u8, 225u8, 49u8, 169u8, 176u8, 210u8, 51u8, - 231u8, 176u8, 234u8, 186u8, 188u8, 112u8, 15u8, - 152u8, 195u8, 232u8, 201u8, 97u8, 208u8, 249u8, - 9u8, 163u8, 69u8, 36u8, - ], - ) - } - #[doc = " Digest of the current block, also part of the block header."] - pub fn digest( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_runtime::generic::digest::Digest, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "Digest", - vec![], - [ - 83u8, 141u8, 200u8, 132u8, 182u8, 55u8, 197u8, - 122u8, 13u8, 159u8, 31u8, 42u8, 60u8, 191u8, 89u8, - 221u8, 242u8, 47u8, 199u8, 213u8, 48u8, 216u8, - 131u8, 168u8, 245u8, 82u8, 56u8, 190u8, 62u8, 69u8, - 96u8, 37u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::frame_system::EventRecord< - runtime_types::dkg_standalone_runtime::RuntimeEvent, - ::subxt::utils::H256, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "Events", - vec![], - [ - 179u8, 156u8, 178u8, 132u8, 168u8, 104u8, 192u8, - 121u8, 183u8, 200u8, 191u8, 184u8, 232u8, 165u8, - 82u8, 225u8, 206u8, 252u8, 0u8, 237u8, 6u8, 4u8, - 206u8, 251u8, 216u8, 254u8, 222u8, 148u8, 9u8, - 82u8, 105u8, 140u8, - ], - ) - } - #[doc = " The number of events in the `Events` list."] - pub fn event_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "EventCount", - vec![], - [ - 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, - 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, - 227u8, 9u8, 249u8, 25u8, 202u8, 185u8, 161u8, - 144u8, 167u8, 104u8, 127u8, 187u8, 38u8, 18u8, - 52u8, 61u8, 66u8, 112u8, - ], - ) - } - #[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 `(T::BlockNumber, 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 ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("System" , "EventTopics" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [205u8 , 90u8 , 142u8 , 190u8 , 176u8 , 37u8 , 94u8 , 82u8 , 98u8 , 1u8 , 129u8 , 63u8 , 246u8 , 101u8 , 130u8 , 58u8 , 216u8 , 16u8 , 139u8 , 196u8 , 154u8 , 111u8 , 110u8 , 178u8 , 24u8 , 44u8 , 183u8 , 176u8 , 232u8 , 82u8 , 223u8 , 38u8 ,]) - } - #[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 `(T::BlockNumber, 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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "System", - "EventTopics", - Vec::new(), - [ - 205u8, 90u8, 142u8, 190u8, 176u8, 37u8, 94u8, 82u8, - 98u8, 1u8, 129u8, 63u8, 246u8, 101u8, 130u8, 58u8, - 216u8, 16u8, 139u8, 196u8, 154u8, 111u8, 110u8, - 178u8, 24u8, 44u8, 183u8, 176u8, 232u8, 82u8, - 223u8, 38u8, - ], - ) - } - #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] - pub fn last_runtime_upgrade( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::LastRuntimeUpgradeInfo, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "LastRuntimeUpgrade", - vec![], - [ - 52u8, 37u8, 117u8, 111u8, 57u8, 130u8, 196u8, 14u8, - 99u8, 77u8, 91u8, 126u8, 178u8, 249u8, 78u8, 34u8, - 9u8, 194u8, 92u8, 105u8, 113u8, 81u8, 185u8, 127u8, - 245u8, 184u8, 60u8, 29u8, 234u8, 182u8, 96u8, - 196u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "UpgradedToU32RefCount", - vec![], - [ - 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, - 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, - 59u8, 222u8, 141u8, 32u8, 107u8, 3u8, 114u8, 83u8, - 250u8, 180u8, 233u8, 152u8, 54u8, 187u8, 99u8, - 131u8, 204u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "UpgradedToTripleRefCount", - vec![], - [ - 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, - 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, - 18u8, 51u8, 105u8, 14u8, 230u8, 103u8, 155u8, - 246u8, 99u8, 53u8, 207u8, 225u8, 128u8, 186u8, - 76u8, 40u8, 185u8, - ], - ) - } - #[doc = " The execution phase of the block."] - pub fn execution_phase( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::Phase, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "System", - "ExecutionPhase", - vec![], - [ - 230u8, 183u8, 221u8, 135u8, 226u8, 223u8, 55u8, - 104u8, 138u8, 224u8, 103u8, 156u8, 222u8, 99u8, - 203u8, 199u8, 164u8, 168u8, 193u8, 133u8, 201u8, - 155u8, 63u8, 95u8, 17u8, 206u8, 165u8, 123u8, - 161u8, 33u8, 172u8, 93u8, - ], - ) - } - } - } - 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::constants::Address< - runtime_types::frame_system::limits::BlockWeights, - > { - ::subxt::constants::Address::new_static( - "System", - "BlockWeights", - [ - 118u8, 253u8, 239u8, 217u8, 145u8, 115u8, 85u8, - 86u8, 172u8, 248u8, 139u8, 32u8, 158u8, 126u8, - 172u8, 188u8, 197u8, 105u8, 145u8, 235u8, 171u8, - 50u8, 31u8, 225u8, 167u8, 187u8, 241u8, 87u8, 6u8, - 17u8, 234u8, 185u8, - ], - ) - } - #[doc = " The maximum length of a block (in bytes)."] - pub fn block_length( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_system::limits::BlockLength, - > { - ::subxt::constants::Address::new_static( - "System", - "BlockLength", - [ - 116u8, 184u8, 225u8, 228u8, 207u8, 203u8, 4u8, - 220u8, 234u8, 198u8, 150u8, 108u8, 205u8, 87u8, - 194u8, 131u8, 229u8, 51u8, 140u8, 4u8, 47u8, 12u8, - 200u8, 144u8, 153u8, 62u8, 51u8, 39u8, 138u8, - 205u8, 203u8, 236u8, - ], - ) - } - #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] - pub fn block_hash_count( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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::constants::Address< - runtime_types::sp_weights::RuntimeDbWeight, - > { - ::subxt::constants::Address::new_static( - "System", - "DbWeight", - [ - 124u8, 162u8, 190u8, 149u8, 49u8, 177u8, 162u8, - 231u8, 62u8, 167u8, 199u8, 181u8, 43u8, 232u8, - 185u8, 116u8, 195u8, 51u8, 233u8, 223u8, 20u8, - 129u8, 246u8, 13u8, 65u8, 180u8, 64u8, 9u8, 157u8, - 59u8, 245u8, 118u8, - ], - ) - } - #[doc = " Get the chain's current version."] - pub fn version( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_version::RuntimeVersion, - > { - ::subxt::constants::Address::new_static( - "System", - "Version", - [ - 93u8, 98u8, 57u8, 243u8, 229u8, 8u8, 234u8, 231u8, - 72u8, 230u8, 139u8, 47u8, 63u8, 181u8, 17u8, 2u8, - 220u8, 231u8, 104u8, 237u8, 185u8, 143u8, 165u8, - 253u8, 188u8, 76u8, 147u8, 12u8, 170u8, 26u8, 74u8, - 200u8, - ], - ) - } - #[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::constants::Address<::core::primitive::u16> - { - ::subxt::constants::Address::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 indices { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_indices::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Claim { - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Claim { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "claim"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Free { - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Free { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "free"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Freeze { - pub index: ::core::primitive::u32, - } - impl ::subxt::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: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "claim", - types::Claim { index }, - [ - 5u8, 24u8, 11u8, 173u8, 226u8, 170u8, 0u8, 30u8, - 193u8, 102u8, 214u8, 59u8, 252u8, 32u8, 221u8, - 88u8, 196u8, 189u8, 244u8, 18u8, 233u8, 37u8, - 228u8, 248u8, 76u8, 175u8, 212u8, 233u8, 238u8, - 203u8, 162u8, 68u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "transfer", - types::Transfer { new, index }, - [ - 1u8, 83u8, 197u8, 184u8, 8u8, 96u8, 48u8, 146u8, - 116u8, 76u8, 229u8, 115u8, 226u8, 215u8, 41u8, - 154u8, 27u8, 34u8, 205u8, 188u8, 10u8, 169u8, - 203u8, 39u8, 2u8, 236u8, 181u8, 162u8, 115u8, - 254u8, 42u8, 28u8, - ], - ) - } - #[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: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "free", - types::Free { index }, - [ - 133u8, 202u8, 225u8, 127u8, 69u8, 145u8, 43u8, - 13u8, 160u8, 248u8, 215u8, 243u8, 232u8, 166u8, - 74u8, 203u8, 235u8, 138u8, 255u8, 27u8, 163u8, - 71u8, 254u8, 217u8, 6u8, 208u8, 202u8, 204u8, - 238u8, 70u8, 126u8, 252u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Indices", - "force_transfer", - types::ForceTransfer { new, index, freeze }, - [ - 126u8, 8u8, 145u8, 175u8, 177u8, 153u8, 131u8, - 123u8, 184u8, 53u8, 72u8, 207u8, 21u8, 140u8, 87u8, - 181u8, 172u8, 64u8, 37u8, 165u8, 121u8, 111u8, - 173u8, 224u8, 181u8, 79u8, 76u8, 134u8, 93u8, - 169u8, 65u8, 131u8, - ], - ) - } - #[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: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "freeze", - types::Freeze { index }, - [ - 121u8, 45u8, 118u8, 2u8, 72u8, 48u8, 38u8, 7u8, - 234u8, 204u8, 68u8, 20u8, 76u8, 251u8, 205u8, - 246u8, 149u8, 31u8, 168u8, 186u8, 208u8, 90u8, - 40u8, 47u8, 100u8, 228u8, 188u8, 33u8, 79u8, 220u8, - 105u8, 209u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_indices::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index was assigned."] - pub struct IndexAssigned { - pub who: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexAssigned { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index has been freed up (unassigned)."] - pub struct IndexFreed { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for IndexFreed { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFreed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index has been frozen to its current account ID."] - pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IndexFrozen { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFrozen"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The lookup from index to account."] - pub fn accounts( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Indices" , "Accounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [211u8 , 169u8 , 54u8 , 254u8 , 88u8 , 57u8 , 22u8 , 223u8 , 108u8 , 27u8 , 38u8 , 9u8 , 202u8 , 209u8 , 111u8 , 209u8 , 144u8 , 13u8 , 211u8 , 114u8 , 239u8 , 127u8 , 75u8 , 166u8 , 234u8 , 222u8 , 225u8 , 35u8 , 160u8 , 163u8 , 112u8 , 242u8 ,]) - } - #[doc = " The lookup from index to account."] - pub fn accounts_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Indices", - "Accounts", - Vec::new(), - [ - 211u8, 169u8, 54u8, 254u8, 88u8, 57u8, 22u8, 223u8, - 108u8, 27u8, 38u8, 9u8, 202u8, 209u8, 111u8, 209u8, - 144u8, 13u8, 211u8, 114u8, 239u8, 127u8, 75u8, - 166u8, 234u8, 222u8, 225u8, 35u8, 160u8, 163u8, - 112u8, 242u8, - ], - ) - } - } - } - 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::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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 randomness_collective_flip { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] - #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] - #[doc = " the oldest hash."] - pub fn random_material( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::H256, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "RandomnessCollectiveFlip", - "RandomMaterial", - vec![], - [ - 152u8, 126u8, 73u8, 88u8, 54u8, 147u8, 6u8, 19u8, - 214u8, 40u8, 159u8, 30u8, 236u8, 61u8, 240u8, 65u8, - 178u8, 94u8, 146u8, 152u8, 135u8, 252u8, 160u8, - 86u8, 123u8, 114u8, 251u8, 140u8, 98u8, 143u8, - 217u8, 242u8, - ], - ) - } - } - } - } - pub mod timestamp { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Set { - #[codec(compact)] - pub now: ::core::primitive::u64, - } - impl ::subxt::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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[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: ::core::primitive::u64, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Timestamp", - "set", - types::Set { now }, - [ - 6u8, 97u8, 172u8, 236u8, 118u8, 238u8, 228u8, - 114u8, 15u8, 115u8, 102u8, 85u8, 66u8, 151u8, 16u8, - 33u8, 187u8, 17u8, 166u8, 88u8, 127u8, 214u8, - 182u8, 51u8, 168u8, 88u8, 43u8, 101u8, 185u8, 8u8, - 1u8, 28u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current time for the current block."] - pub fn now( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "Now", - vec![], - [ - 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, - 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, - 39u8, 123u8, 106u8, 134u8, 202u8, 185u8, 83u8, - 85u8, 60u8, 41u8, 120u8, 96u8, 210u8, 34u8, 2u8, - 250u8, - ], - ) - } - #[doc = " Did the timestamp get updated in this block?"] - pub fn did_update( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "DidUpdate", - vec![], - [ - 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, - 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, - 16u8, 6u8, 39u8, 158u8, 167u8, 85u8, 27u8, 47u8, - 122u8, 73u8, 127u8, 26u8, 35u8, 168u8, 72u8, 204u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] - #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] - #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] - #[doc = " double this period on default settings."] - pub fn minimum_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::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 aura { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "Aura", - "Authorities", - vec![], - [ - 199u8, 89u8, 94u8, 48u8, 249u8, 35u8, 105u8, 90u8, - 15u8, 86u8, 218u8, 85u8, 22u8, 236u8, 228u8, 36u8, - 137u8, 64u8, 236u8, 171u8, 242u8, 217u8, 91u8, - 240u8, 205u8, 205u8, 226u8, 16u8, 147u8, 235u8, - 181u8, 41u8, - ], - ) - } - #[doc = " The current slot of this block."] - #[doc = ""] - #[doc = " This will be set in `on_initialize`."] - pub fn current_slot( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_slots::Slot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Aura", - "CurrentSlot", - vec![], - [ - 139u8, 237u8, 185u8, 137u8, 251u8, 179u8, 69u8, - 167u8, 133u8, 168u8, 204u8, 64u8, 178u8, 123u8, - 92u8, 250u8, 119u8, 190u8, 208u8, 178u8, 208u8, - 176u8, 124u8, 187u8, 74u8, 165u8, 33u8, 78u8, - 161u8, 206u8, 8u8, 108u8, - ], - ) - } - } - } - } - pub mod grandpa { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_grandpa::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_core::Void, - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "report_equivocation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_core::Void, - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "report_equivocation_unsigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct NoteStalled { - pub delay: ::core::primitive::u32, - pub best_finalized_block_number: ::core::primitive::u32, - } - impl ::subxt::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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, - key_owner_proof: runtime_types::sp_core::Void, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Grandpa", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 99u8, 59u8, 234u8, 30u8, 150u8, 187u8, 133u8, - 167u8, 92u8, 34u8, 231u8, 208u8, 141u8, 40u8, - 182u8, 200u8, 82u8, 198u8, 254u8, 56u8, 72u8, 77u8, - 41u8, 186u8, 80u8, 213u8, 78u8, 214u8, 215u8, - 225u8, 187u8, 28u8, - ], - ) - } - #[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 : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 >, - key_owner_proof: runtime_types::sp_core::Void, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Grandpa", - "report_equivocation_unsigned", - types::ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new( - equivocation_proof, - ), - key_owner_proof, - }, - [ - 145u8, 84u8, 164u8, 4u8, 14u8, 22u8, 157u8, 100u8, - 5u8, 21u8, 60u8, 65u8, 183u8, 32u8, 212u8, 33u8, - 183u8, 167u8, 54u8, 57u8, 204u8, 4u8, 28u8, 71u8, - 250u8, 151u8, 1u8, 206u8, 222u8, 102u8, 89u8, 55u8, - ], - ) - } - #[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: ::core::primitive::u32, - best_finalized_block_number: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Grandpa", - "note_stalled", - types::NoteStalled { - delay, - best_finalized_block_number, - }, - [ - 197u8, 236u8, 137u8, 32u8, 46u8, 200u8, 144u8, - 13u8, 89u8, 181u8, 235u8, 73u8, 167u8, 131u8, - 174u8, 93u8, 42u8, 136u8, 238u8, 59u8, 129u8, 60u8, - 83u8, 100u8, 5u8, 182u8, 99u8, 250u8, 145u8, 180u8, - 1u8, 199u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_grandpa::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New authority set has been applied."] - pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, - ::core::primitive::u64, - )>, - } - impl ::subxt::events::StaticEvent for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current authority set has been paused."] - pub struct Paused; - impl ::subxt::events::StaticEvent for Paused { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Paused"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current authority set has been resumed."] - pub struct Resumed; - impl ::subxt::events::StaticEvent for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " State of the current authority set."] - pub fn state( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredState< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "State", - vec![], - [ - 211u8, 149u8, 114u8, 217u8, 206u8, 194u8, 115u8, - 67u8, 12u8, 218u8, 246u8, 213u8, 208u8, 29u8, - 216u8, 104u8, 2u8, 39u8, 123u8, 172u8, 252u8, - 210u8, 52u8, 129u8, 147u8, 237u8, 244u8, 68u8, - 252u8, 169u8, 97u8, 148u8, - ], - ) - } - #[doc = " Pending change: (signaled at, scheduled change)."] - pub fn pending_change( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredPendingChange< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "PendingChange", - vec![], - [ - 178u8, 24u8, 140u8, 7u8, 8u8, 196u8, 18u8, 58u8, - 3u8, 226u8, 181u8, 47u8, 155u8, 160u8, 70u8, 12u8, - 75u8, 189u8, 38u8, 255u8, 104u8, 141u8, 64u8, 34u8, - 134u8, 201u8, 102u8, 21u8, 75u8, 81u8, 218u8, 60u8, - ], - ) - } - #[doc = " next block number where we can force a change."] - pub fn next_forced( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "NextForced", - vec![], - [ - 99u8, 43u8, 245u8, 201u8, 60u8, 9u8, 122u8, 99u8, - 188u8, 29u8, 67u8, 6u8, 193u8, 133u8, 179u8, 67u8, - 202u8, 208u8, 62u8, 179u8, 19u8, 169u8, 196u8, - 119u8, 107u8, 75u8, 100u8, 3u8, 121u8, 18u8, 80u8, - 156u8, - ], - ) - } - #[doc = " `true` if we are currently stalled."] - pub fn stalled( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "Stalled", - vec![], - [ - 219u8, 8u8, 37u8, 78u8, 150u8, 55u8, 0u8, 57u8, - 201u8, 170u8, 186u8, 189u8, 56u8, 161u8, 44u8, - 15u8, 53u8, 178u8, 224u8, 208u8, 231u8, 109u8, - 14u8, 209u8, 57u8, 205u8, 237u8, 153u8, 231u8, - 156u8, 24u8, 185u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "CurrentSetId", - vec![], - [ - 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, - 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, - 197u8, 157u8, 163u8, 116u8, 36u8, 105u8, 52u8, - 149u8, 244u8, 108u8, 94u8, 109u8, 111u8, 244u8, - 137u8, 7u8, 108u8, - ], - ) - } - #[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 ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Grandpa" , "SetIdSession" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [91u8 , 175u8 , 145u8 , 127u8 , 242u8 , 81u8 , 13u8 , 231u8 , 110u8 , 11u8 , 166u8 , 169u8 , 103u8 , 146u8 , 123u8 , 133u8 , 157u8 , 15u8 , 33u8 , 234u8 , 108u8 , 13u8 , 88u8 , 115u8 , 254u8 , 9u8 , 145u8 , 199u8 , 102u8 , 47u8 , 53u8 , 134u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "SetIdSession", - Vec::new(), - [ - 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, - 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, - 123u8, 133u8, 157u8, 15u8, 33u8, 234u8, 108u8, - 13u8, 88u8, 115u8, 254u8, 9u8, 145u8, 199u8, 102u8, - 47u8, 53u8, 134u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max Authorities in use"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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 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::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::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 balances { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_balances::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetBalance { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for SetBalance { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "set_balance"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_keep_alive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub keep_alive: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_unreserve"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer", - types::Transfer { dest, value }, - [ - 255u8, 181u8, 144u8, 248u8, 64u8, 167u8, 5u8, - 134u8, 208u8, 20u8, 223u8, 103u8, 235u8, 35u8, - 66u8, 184u8, 27u8, 94u8, 176u8, 60u8, 233u8, 236u8, - 145u8, 218u8, 44u8, 138u8, 240u8, 224u8, 16u8, - 193u8, 220u8, 95u8, - ], - ) - } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "set_balance", - types::SetBalance { - who, - new_free, - new_reserved, - }, - [ - 174u8, 34u8, 80u8, 252u8, 193u8, 51u8, 228u8, - 236u8, 234u8, 16u8, 173u8, 214u8, 122u8, 21u8, - 254u8, 7u8, 49u8, 176u8, 18u8, 128u8, 122u8, 68u8, - 72u8, 181u8, 119u8, 90u8, 167u8, 46u8, 203u8, - 220u8, 109u8, 110u8, - ], - ) - } - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "## Complexity"] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Balances", - "force_transfer", - types::ForceTransfer { - source, - dest, - value, - }, - [ - 56u8, 80u8, 186u8, 45u8, 134u8, 147u8, 200u8, 19u8, - 53u8, 221u8, 213u8, 32u8, 13u8, 51u8, 130u8, 42u8, - 244u8, 85u8, 50u8, 246u8, 189u8, 51u8, 93u8, 1u8, - 108u8, 142u8, 112u8, 245u8, 104u8, 255u8, 15u8, - 62u8, - ], - ) - } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_keep_alive", - types::TransferKeepAlive { dest, value }, - [ - 202u8, 239u8, 204u8, 0u8, 52u8, 57u8, 158u8, 8u8, - 252u8, 178u8, 91u8, 197u8, 238u8, 186u8, 205u8, - 56u8, 217u8, 250u8, 21u8, 44u8, 239u8, 66u8, 79u8, - 99u8, 25u8, 106u8, 70u8, 226u8, 50u8, 255u8, 176u8, - 71u8, - ], - ) - } - #[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). ## Complexity"] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_all", - types::TransferAll { dest, keep_alive }, - [ - 118u8, 215u8, 198u8, 243u8, 4u8, 173u8, 108u8, - 224u8, 113u8, 203u8, 149u8, 23u8, 130u8, 176u8, - 53u8, 205u8, 112u8, 147u8, 88u8, 167u8, 197u8, - 32u8, 104u8, 117u8, 201u8, 168u8, 144u8, 230u8, - 120u8, 29u8, 122u8, 159u8, - ], - ) - } - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] - pub fn force_unreserve( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Balances", - "force_unreserve", - types::ForceUnreserve { who, amount }, - [ - 39u8, 229u8, 111u8, 44u8, 147u8, 80u8, 7u8, 26u8, - 185u8, 121u8, 149u8, 25u8, 151u8, 37u8, 124u8, - 46u8, 108u8, 136u8, 167u8, 145u8, 103u8, 65u8, - 33u8, 168u8, 36u8, 214u8, 126u8, 237u8, 180u8, - 61u8, 108u8, 110u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_balances::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was moved from the reserve of the first account to the second account."] - #[doc = "Final argument indicates the destination balance type."] - pub struct ReserveRepatriated { pub from : :: subxt :: utils :: AccountId32 , pub to : :: subxt :: utils :: AccountId32 , pub amount : :: core :: primitive :: u128 , pub destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - pub struct Deposit { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Withdraw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Slashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The total units issued in the system."] - pub fn total_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "TotalIssuance", - vec![], - [ - 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, - 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, - 187u8, 44u8, 84u8, 25u8, 164u8, 235u8, 20u8, 86u8, - 242u8, 124u8, 23u8, 28u8, 140u8, 26u8, 73u8, 231u8, - 51u8, - ], - ) - } - #[doc = " The total units of outstanding deactivated balance in the system."] - pub fn inactive_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "InactiveIssuance", - vec![], - [ - 74u8, 203u8, 111u8, 142u8, 225u8, 104u8, 173u8, - 51u8, 226u8, 12u8, 85u8, 135u8, 41u8, 206u8, 177u8, - 238u8, 94u8, 246u8, 184u8, 250u8, 140u8, 213u8, - 91u8, 118u8, 163u8, 111u8, 211u8, 46u8, 204u8, - 160u8, 154u8, 21u8, - ], - ) - } - #[doc = " The Balances pallet example of storing the balance of an account."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " You can also store the balance of an account in the `System` pallet."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = System"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] - #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] - #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] - pub fn account( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Account" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [246u8 , 154u8 , 253u8 , 71u8 , 192u8 , 192u8 , 192u8 , 236u8 , 128u8 , 80u8 , 40u8 , 252u8 , 201u8 , 43u8 , 3u8 , 131u8 , 19u8 , 49u8 , 141u8 , 240u8 , 172u8 , 217u8 , 215u8 , 109u8 , 87u8 , 135u8 , 248u8 , 57u8 , 98u8 , 185u8 , 22u8 , 4u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::AccountData< - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Account", - Vec::new(), - [ - 246u8, 154u8, 253u8, 71u8, 192u8, 192u8, 192u8, - 236u8, 128u8, 80u8, 40u8, 252u8, 201u8, 43u8, 3u8, - 131u8, 19u8, 49u8, 141u8, 240u8, 172u8, 217u8, - 215u8, 109u8, 87u8, 135u8, 248u8, 57u8, 98u8, - 185u8, 22u8, 4u8, - ], - ) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Locks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [216u8 , 253u8 , 87u8 , 73u8 , 24u8 , 218u8 , 35u8 , 0u8 , 244u8 , 134u8 , 195u8 , 58u8 , 255u8 , 64u8 , 153u8 , 212u8 , 210u8 , 232u8 , 4u8 , 122u8 , 90u8 , 212u8 , 136u8 , 14u8 , 127u8 , 232u8 , 8u8 , 192u8 , 40u8 , 233u8 , 18u8 , 250u8 ,]) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Balances", - "Locks", - Vec::new(), - [ - 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, - 244u8, 134u8, 195u8, 58u8, 255u8, 64u8, 153u8, - 212u8, 210u8, 232u8, 4u8, 122u8, 90u8, 212u8, - 136u8, 14u8, 127u8, 232u8, 8u8, 192u8, 40u8, 233u8, - 18u8, 250u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Balances" , "Reserves" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [17u8 , 32u8 , 191u8 , 46u8 , 76u8 , 220u8 , 101u8 , 100u8 , 42u8 , 250u8 , 128u8 , 167u8 , 117u8 , 44u8 , 85u8 , 96u8 , 105u8 , 216u8 , 16u8 , 147u8 , 74u8 , 55u8 , 183u8 , 94u8 , 160u8 , 177u8 , 26u8 , 187u8 , 71u8 , 197u8 , 187u8 , 163u8 ,]) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Reserves", - Vec::new(), - [ - 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, - 42u8, 250u8, 128u8, 167u8, 117u8, 44u8, 85u8, 96u8, - 105u8, 216u8, 16u8, 147u8, 74u8, 55u8, 183u8, 94u8, - 160u8, 177u8, 26u8, 187u8, 71u8, 197u8, 187u8, - 163u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount required to keep an account open."] - pub fn existential_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::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."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::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, - ], - ) - } - } - } - } - pub mod dkg { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_dkg_metadata::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_dkg_metadata::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetSignatureThreshold { - pub new_threshold: ::core::primitive::u16, - } - impl ::subxt::blocks::StaticExtrinsic for SetSignatureThreshold { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "set_signature_threshold"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetKeygenThreshold { - pub new_threshold: ::core::primitive::u16, - } - impl ::subxt::blocks::StaticExtrinsic for SetKeygenThreshold { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "set_keygen_threshold"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetRefreshDelay { - pub new_delay: ::core::primitive::u8, - } - impl ::subxt::blocks::StaticExtrinsic for SetRefreshDelay { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "set_refresh_delay"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitPublicKey { pub keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } - impl ::subxt::blocks::StaticExtrinsic for SubmitPublicKey { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "submit_public_key"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitNextPublicKey { pub keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } - impl ::subxt::blocks::StaticExtrinsic for SubmitNextPublicKey { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "submit_next_public_key"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitPublicKeySignature { pub signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } - impl ::subxt::blocks::StaticExtrinsic for SubmitPublicKeySignature { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "submit_public_key_signature"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitMisbehaviourReports { pub reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } - impl ::subxt::blocks::StaticExtrinsic for SubmitMisbehaviourReports { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "submit_misbehaviour_reports"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unjail; - impl ::subxt::blocks::StaticExtrinsic for Unjail { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "unjail"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceUnjailKeygen { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnjailKeygen { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "force_unjail_keygen"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceUnjailSigning { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnjailSigning { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "force_unjail_signing"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceChangeAuthorities; - impl ::subxt::blocks::StaticExtrinsic for ForceChangeAuthorities { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "force_change_authorities"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct TriggerEmergencyKeygen; - impl ::subxt::blocks::StaticExtrinsic for TriggerEmergencyKeygen { - const PALLET: &'static str = "DKG"; - const CALL: &'static str = "trigger_emergency_keygen"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set the pending signature threshold for the session following the next session."] - #[doc = ""] - #[doc = "We cannot assume that the next DKG has not already completed keygen."] - #[doc = "After all, if we are in a new session the next DKG may have already completed."] - #[doc = "Therefore, when we update the thresholds we are updating a threshold"] - #[doc = "that will become the next threshold after the next session update."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `new_threshold` - The new signature threshold for the DKG."] - pub fn set_signature_threshold( - &self, - new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "set_signature_threshold", - types::SetSignatureThreshold { new_threshold }, - [ - 160u8, 195u8, 237u8, 69u8, 171u8, 13u8, 28u8, - 110u8, 245u8, 159u8, 172u8, 115u8, 125u8, 245u8, - 207u8, 23u8, 227u8, 200u8, 227u8, 120u8, 183u8, - 185u8, 240u8, 153u8, 127u8, 14u8, 106u8, 85u8, 4u8, - 55u8, 227u8, 65u8, - ], - ) - } - #[doc = "Set the pending keygen threshold for the session following the next session."] - #[doc = ""] - #[doc = "We cannot assume that the next DKG has not already completed keygen."] - #[doc = "After all, if we are in a new session the next DKG may have already completed."] - #[doc = "Therefore, when we update the thresholds we are updating a threshold"] - #[doc = "that will become the next threshold after the next session update."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `new_threshold` - The new keygen threshold for the DKG."] - pub fn set_keygen_threshold( - &self, - new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "set_keygen_threshold", - types::SetKeygenThreshold { new_threshold }, - [ - 181u8, 23u8, 76u8, 117u8, 56u8, 235u8, 59u8, 254u8, - 242u8, 114u8, 147u8, 247u8, 248u8, 168u8, 235u8, - 50u8, 128u8, 167u8, 99u8, 110u8, 2u8, 15u8, 26u8, - 110u8, 216u8, 7u8, 189u8, 46u8, 73u8, 229u8, 24u8, - 9u8, - ], - ) - } - #[doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] - #[doc = "proposal queue."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] - #[doc = " unsigned refresh proposal to the unsigned proposal queue."] - pub fn set_refresh_delay( - &self, - new_delay: ::core::primitive::u8, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "set_refresh_delay", - types::SetRefreshDelay { new_delay }, - [ - 16u8, 74u8, 191u8, 229u8, 37u8, 51u8, 217u8, 83u8, - 211u8, 119u8, 177u8, 127u8, 207u8, 133u8, 218u8, - 245u8, 162u8, 21u8, 93u8, 42u8, 250u8, 63u8, 218u8, - 33u8, 217u8, 215u8, 61u8, 122u8, 28u8, 53u8, 157u8, - 108u8, - ], - ) - } - #[doc = "Submits and stores the active public key for the genesis session into the on-chain"] - #[doc = "storage. This is primarily used to separate the genesis public key submission from"] - #[doc = "non-genesis rounds."] - #[doc = ""] - #[doc = "Can only be submitted by the current authorities. It is also required that a"] - #[doc = "`SignatureThreshold` of submissions is reached in order to successfully"] - #[doc = "store the public key on-chain."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] - #[doc = " DKG public keys."] - pub fn submit_public_key( - &self, - keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "submit_public_key", - types::SubmitPublicKey { - keys_and_signatures, - }, - [ - 39u8, 55u8, 155u8, 151u8, 44u8, 91u8, 66u8, 109u8, - 115u8, 132u8, 68u8, 187u8, 202u8, 41u8, 234u8, - 114u8, 79u8, 78u8, 65u8, 245u8, 192u8, 38u8, 172u8, - 71u8, 54u8, 170u8, 53u8, 122u8, 58u8, 135u8, 234u8, - 49u8, - ], - ) - } - #[doc = "Submits and stores the next public key for the next session into the on-chain storage."] - #[doc = ""] - #[doc = "Can only be submitted by the next authorities. It is also required that a"] - #[doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] - #[doc = "store the public key on-chain."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] - #[doc = " DKG public keys."] - pub fn submit_next_public_key( - &self, - keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "submit_next_public_key", - types::SubmitNextPublicKey { - keys_and_signatures, - }, - [ - 248u8, 166u8, 238u8, 156u8, 241u8, 216u8, 68u8, - 78u8, 95u8, 106u8, 167u8, 238u8, 113u8, 117u8, - 109u8, 169u8, 253u8, 75u8, 154u8, 30u8, 170u8, - 94u8, 187u8, 192u8, 193u8, 34u8, 50u8, 66u8, 32u8, - 68u8, 81u8, 205u8, - ], - ) - } - #[doc = "Submits the public key signature for the key refresh/rotation process."] - #[doc = ""] - #[doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] - #[doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] - #[doc = "DKG's public key. Successful storage of this public key signature also removes"] - #[doc = "the unsigned `RefreshProposal` from the unsigned queue."] - #[doc = ""] - #[doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] - #[doc = "the keys are immediately refreshed and the authority set is immediately rotated"] - #[doc = "and incremented."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] - #[doc = " and nonce."] - pub fn submit_public_key_signature( - &self, - signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "submit_public_key_signature", - types::SubmitPublicKeySignature { signature_proposal }, - [ - 74u8, 197u8, 64u8, 71u8, 121u8, 35u8, 252u8, 67u8, - 136u8, 25u8, 110u8, 230u8, 219u8, 44u8, 146u8, - 203u8, 151u8, 165u8, 62u8, 83u8, 236u8, 75u8, - 220u8, 112u8, 160u8, 192u8, 220u8, 0u8, 203u8, - 34u8, 195u8, 76u8, - ], - ) - } - #[doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] - #[doc = "verified against the current or next authorities depending on the type of misbehaviour."] - #[doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] - #[doc = "- Signing: Verifies against the current authorities, since they are doing signing."] - #[doc = ""] - #[doc = "Verifies the reports against the respective thresholds and if enough reports are met"] - #[doc = "begins to jail and decrease the reputation of the offending authority."] - #[doc = ""] - #[doc = "The misbehaviour reputation update is:"] - #[doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] - #[doc = ""] - #[doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] - #[doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] - #[doc = "accordingly."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] - #[doc = " authority"] - pub fn submit_misbehaviour_reports( - &self, - reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "submit_misbehaviour_reports", - types::SubmitMisbehaviourReports { reports }, - [ - 217u8, 75u8, 94u8, 66u8, 26u8, 160u8, 229u8, 184u8, - 66u8, 97u8, 190u8, 21u8, 127u8, 165u8, 67u8, 85u8, - 246u8, 173u8, 133u8, 253u8, 173u8, 33u8, 61u8, - 229u8, 148u8, 101u8, 1u8, 210u8, 109u8, 116u8, - 251u8, 134u8, - ], - ) - } - #[doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] - #[doc = "This can only be called by the controller of the authority in jail. The"] - #[doc = "origin must map directly to the authority in jail."] - #[doc = ""] - #[doc = "The authority's jail sentence for either keygen or signing must be elapsed"] - #[doc = "for the authority to be removed from the jail."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - pub fn unjail(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "DKG", - "unjail", - types::Unjail {}, - [ - 209u8, 5u8, 90u8, 85u8, 167u8, 92u8, 85u8, 132u8, - 48u8, 27u8, 89u8, 149u8, 242u8, 209u8, 97u8, 87u8, - 13u8, 58u8, 124u8, 41u8, 155u8, 103u8, 62u8, 115u8, - 58u8, 143u8, 233u8, 105u8, 18u8, 198u8, 173u8, - 77u8, - ], - ) - } - #[doc = "Force removes an authority from keygen jail."] - #[doc = ""] - #[doc = "Can only be called by DKG"] - #[doc = "* `origin` - The account origin."] - #[doc = "* `authority` - The authority to be removed from the keygen jail."] - pub fn force_unjail_keygen( - &self, - authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "force_unjail_keygen", - types::ForceUnjailKeygen { authority }, - [ - 7u8, 2u8, 72u8, 189u8, 190u8, 208u8, 55u8, 117u8, - 205u8, 174u8, 223u8, 90u8, 12u8, 136u8, 64u8, - 212u8, 57u8, 31u8, 227u8, 103u8, 72u8, 157u8, - 156u8, 101u8, 66u8, 5u8, 149u8, 175u8, 3u8, 98u8, - 60u8, 44u8, - ], - ) - } - #[doc = "Force removes an authority from signing jail."] - #[doc = ""] - #[doc = "Can only be called by the root origin."] - #[doc = ""] - #[doc = "* `origin` - The account origin."] - #[doc = "* `authority` - The authority to be removed from the signing jail."] - pub fn force_unjail_signing( - &self, - authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "force_unjail_signing", - types::ForceUnjailSigning { authority }, - [ - 195u8, 160u8, 19u8, 141u8, 200u8, 170u8, 41u8, - 189u8, 18u8, 98u8, 112u8, 34u8, 55u8, 46u8, 101u8, - 216u8, 177u8, 135u8, 70u8, 24u8, 219u8, 153u8, - 167u8, 130u8, 110u8, 187u8, 146u8, 103u8, 3u8, - 253u8, 5u8, 185u8, - ], - ) - } - #[doc = "Forcefully rotate the DKG"] - #[doc = ""] - #[doc = "This forces the next authorities into the current authority spot and"] - #[doc = "automatically increments the authority ID. It uses `change_authorities`"] - #[doc = "to execute the rotation forcefully."] - pub fn force_change_authorities( - &self, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "force_change_authorities", - types::ForceChangeAuthorities {}, - [ - 98u8, 226u8, 238u8, 39u8, 98u8, 79u8, 85u8, 160u8, - 82u8, 3u8, 34u8, 195u8, 220u8, 178u8, 25u8, 110u8, - 12u8, 72u8, 165u8, 126u8, 207u8, 173u8, 210u8, - 74u8, 54u8, 106u8, 255u8, 243u8, 240u8, 22u8, - 161u8, 255u8, - ], - ) - } - #[doc = "Triggers an Emergency Keygen Porotocol."] - #[doc = ""] - #[doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] - #[doc = "storage, which will be picked up by the on chain worker and stored on chain."] - #[doc = ""] - #[doc = "Note that, this will clear the next public key and its signature, if any."] - pub fn trigger_emergency_keygen( - &self, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKG", - "trigger_emergency_keygen", - types::TriggerEmergencyKeygen {}, - [ - 169u8, 123u8, 131u8, 42u8, 202u8, 219u8, 162u8, - 1u8, 134u8, 223u8, 197u8, 245u8, 64u8, 51u8, 46u8, - 231u8, 155u8, 25u8, 6u8, 253u8, 170u8, 251u8, 15u8, - 156u8, 76u8, 127u8, 142u8, 218u8, 142u8, 65u8, - 197u8, 160u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_dkg_metadata::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current public key submitted"] - pub struct PublicKeySubmitted { - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for PublicKeySubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PublicKeySubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Next public key submitted"] - pub struct NextPublicKeySubmitted { - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for NextPublicKeySubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextPublicKeySubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Next public key signature submitted"] - pub struct NextPublicKeySignatureSubmitted { - pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NextPublicKeySignatureSubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextPublicKeySignatureSubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current Public Key Changed."] - pub struct PublicKeyChanged { - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::events::StaticEvent for PublicKeyChanged { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PublicKeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current Public Key Signature Changed."] - pub struct PublicKeySignatureChanged { - pub pub_key_sig: ::std::vec::Vec<::core::primitive::u8>, - pub compressed_pub_key: ::std::vec::Vec<::core::primitive::u8>, - pub uncompressed_pub_key: - ::std::vec::Vec<::core::primitive::u8>, - pub nonce: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for PublicKeySignatureChanged { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PublicKeySignatureChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Misbehaviour reports submitted"] - pub struct MisbehaviourReportsSubmitted { - pub misbehaviour_type: - runtime_types::dkg_runtime_primitives::MisbehaviourType, - pub reporters: ::std::vec::Vec< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - pub offender: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::events::StaticEvent for MisbehaviourReportsSubmitted { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "MisbehaviourReportsSubmitted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Refresh DKG Keys Finished (forcefully)."] - pub struct RefreshKeysFinished { - pub next_authority_set_id: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for RefreshKeysFinished { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "RefreshKeysFinished"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "NextKeygenThreshold updated"] - pub struct NextKeygenThresholdUpdated { - pub next_keygen_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for NextKeygenThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextKeygenThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "NextSignatureThreshold updated"] - pub struct NextSignatureThresholdUpdated { - pub next_signature_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for NextSignatureThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "NextSignatureThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "PendingKeygenThreshold updated"] - pub struct PendingKeygenThresholdUpdated { - pub pending_keygen_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for PendingKeygenThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PendingKeygenThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "PendingSignatureThreshold updated"] - pub struct PendingSignatureThresholdUpdated { - pub pending_signature_threshold: ::core::primitive::u16, - } - impl ::subxt::events::StaticEvent for PendingSignatureThresholdUpdated { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "PendingSignatureThresholdUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An Emergency Keygen Protocol was triggered."] - pub struct EmergencyKeygenTriggered; - impl ::subxt::events::StaticEvent for EmergencyKeygenTriggered { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "EmergencyKeygenTriggered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An authority has been jailed for misbehaviour"] - pub struct AuthorityJailed { - pub misbehaviour_type: - runtime_types::dkg_runtime_primitives::MisbehaviourType, - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::events::StaticEvent for AuthorityJailed { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "AuthorityJailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An authority has been unjailed"] - pub struct AuthorityUnJailed { - pub authority: - runtime_types::dkg_runtime_primitives::crypto::Public, - } - impl ::subxt::events::StaticEvent for AuthorityUnJailed { - const PALLET: &'static str = "DKG"; - const EVENT: &'static str = "AuthorityUnJailed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Public key Signatures for past sessions"] pub fn used_signatures (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "UsedSignatures", - vec![], - [ - 46u8, 101u8, 56u8, 181u8, 166u8, 247u8, 210u8, - 177u8, 219u8, 97u8, 159u8, 183u8, 246u8, 101u8, - 210u8, 242u8, 165u8, 160u8, 106u8, 162u8, 44u8, - 46u8, 107u8, 151u8, 156u8, 220u8, 221u8, 229u8, - 178u8, 156u8, 73u8, 85u8, - ], - ) - } - #[doc = " Nonce value for next refresh proposal"] - pub fn refresh_nonce( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "RefreshNonce", - vec![], - [ - 184u8, 107u8, 53u8, 61u8, 92u8, 121u8, 77u8, 93u8, - 141u8, 192u8, 238u8, 92u8, 15u8, 155u8, 1u8, 153u8, - 55u8, 64u8, 83u8, 144u8, 127u8, 250u8, 207u8, 14u8, - 62u8, 137u8, 151u8, 230u8, 86u8, 236u8, 27u8, - 175u8, - ], - ) - } - #[doc = " Session progress required to kickstart refresh process"] - pub fn refresh_delay( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Permill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "RefreshDelay", - vec![], - [ - 79u8, 178u8, 57u8, 227u8, 1u8, 170u8, 0u8, 55u8, - 231u8, 155u8, 114u8, 9u8, 197u8, 101u8, 112u8, - 176u8, 169u8, 138u8, 67u8, 127u8, 127u8, 59u8, - 56u8, 99u8, 113u8, 242u8, 15u8, 43u8, 254u8, 79u8, - 9u8, 161u8, - ], - ) - } - #[doc = " Defines the block when next unsigned transaction will be accepted."] - #[doc = ""] - #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] - #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] - #[doc = " This storage entry defines when new transaction is going to be accepted."] - pub fn next_unsigned_at( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextUnsignedAt", - vec![], - [ - 175u8, 176u8, 254u8, 20u8, 27u8, 31u8, 70u8, 46u8, - 201u8, 118u8, 22u8, 200u8, 95u8, 116u8, 223u8, - 63u8, 191u8, 85u8, 55u8, 21u8, 70u8, 24u8, 225u8, - 203u8, 66u8, 213u8, 94u8, 229u8, 234u8, 223u8, - 255u8, 28u8, - ], - ) - } - #[doc = " Check if there is a refresh in progress."] - pub fn refresh_in_progress( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "RefreshInProgress", - vec![], - [ - 150u8, 114u8, 14u8, 254u8, 132u8, 254u8, 10u8, - 89u8, 109u8, 4u8, 182u8, 128u8, 114u8, 15u8, 82u8, - 35u8, 88u8, 86u8, 32u8, 82u8, 83u8, 175u8, 123u8, - 98u8, 120u8, 180u8, 167u8, 185u8, 57u8, 221u8, - 12u8, 62u8, - ], - ) - } - #[doc = " Should we start a new Keygen"] - pub fn should_execute_new_keygen( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "ShouldExecuteNewKeygen", - vec![], - [ - 125u8, 105u8, 100u8, 215u8, 34u8, 62u8, 234u8, - 88u8, 98u8, 221u8, 122u8, 143u8, 214u8, 192u8, - 91u8, 77u8, 98u8, 63u8, 149u8, 118u8, 159u8, 158u8, - 163u8, 112u8, 198u8, 59u8, 106u8, 233u8, 239u8, - 216u8, 151u8, 18u8, - ], - ) - } - #[doc = " Holds public key for next session"] pub fn next_dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "NextDKGPublicKey", - vec![], - [ - 190u8, 8u8, 19u8, 247u8, 57u8, 79u8, 143u8, 79u8, - 251u8, 110u8, 255u8, 86u8, 175u8, 77u8, 78u8, - 173u8, 183u8, 5u8, 94u8, 97u8, 12u8, 101u8, 26u8, - 75u8, 223u8, 196u8, 22u8, 202u8, 152u8, 67u8, - 170u8, 22u8, - ], - ) - } - #[doc = " Signature of the DKG public key for the next session"] - pub fn next_public_key_signature( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextPublicKeySignature", - vec![], - [ - 7u8, 23u8, 208u8, 171u8, 234u8, 66u8, 219u8, 107u8, - 109u8, 127u8, 166u8, 218u8, 179u8, 97u8, 137u8, - 57u8, 64u8, 48u8, 104u8, 56u8, 58u8, 93u8, 132u8, - 191u8, 206u8, 134u8, 129u8, 107u8, 223u8, 178u8, - 87u8, 25u8, - ], - ) - } - #[doc = " Holds active public key for ongoing session"] pub fn dkg_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "DKGPublicKey", - vec![], - [ - 171u8, 148u8, 67u8, 160u8, 252u8, 26u8, 71u8, 2u8, - 13u8, 45u8, 214u8, 185u8, 187u8, 219u8, 153u8, - 108u8, 240u8, 150u8, 103u8, 59u8, 210u8, 211u8, - 218u8, 147u8, 49u8, 223u8, 194u8, 130u8, 69u8, - 131u8, 24u8, 81u8, - ], - ) - } - #[doc = " Signature of the current DKG public key"] - pub fn dkg_public_key_signature( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "DKGPublicKeySignature", - vec![], - [ - 63u8, 104u8, 181u8, 61u8, 227u8, 143u8, 48u8, 34u8, - 38u8, 3u8, 149u8, 124u8, 90u8, 4u8, 39u8, 253u8, - 102u8, 169u8, 179u8, 87u8, 213u8, 132u8, 137u8, - 218u8, 216u8, 141u8, 189u8, 159u8, 141u8, 147u8, - 101u8, 102u8, - ], - ) - } - #[doc = " Holds public key for immediate past session"] pub fn previous_public_key (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "PreviousPublicKey", - vec![], - [ - 211u8, 151u8, 16u8, 209u8, 65u8, 128u8, 48u8, - 209u8, 242u8, 91u8, 253u8, 156u8, 196u8, 190u8, - 249u8, 91u8, 59u8, 142u8, 75u8, 72u8, 104u8, 83u8, - 42u8, 176u8, 14u8, 147u8, 73u8, 73u8, 194u8, 203u8, - 143u8, 86u8, - ], - ) - } - #[doc = " Tracks current proposer set"] - pub fn historical_rounds( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_dkg_metadata::types::RoundMetadata< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKG" , "HistoricalRounds" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [69u8 , 172u8 , 38u8 , 240u8 , 139u8 , 118u8 , 160u8 , 111u8 , 95u8 , 143u8 , 196u8 , 94u8 , 149u8 , 125u8 , 176u8 , 142u8 , 53u8 , 141u8 , 70u8 , 132u8 , 71u8 , 23u8 , 174u8 , 221u8 , 72u8 , 69u8 , 14u8 , 191u8 , 225u8 , 43u8 , 67u8 , 79u8 ,]) - } - #[doc = " Tracks current proposer set"] - pub fn historical_rounds_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_dkg_metadata::types::RoundMetadata< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "HistoricalRounds", - Vec::new(), - [ - 69u8, 172u8, 38u8, 240u8, 139u8, 118u8, 160u8, - 111u8, 95u8, 143u8, 196u8, 94u8, 149u8, 125u8, - 176u8, 142u8, 53u8, 141u8, 70u8, 132u8, 71u8, 23u8, - 174u8, 221u8, 72u8, 69u8, 14u8, 191u8, 225u8, 43u8, - 67u8, 79u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] - pub fn signature_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u16, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "SignatureThreshold", - vec![], - [ - 228u8, 213u8, 121u8, 182u8, 49u8, 44u8, 159u8, - 113u8, 209u8, 234u8, 107u8, 232u8, 192u8, 211u8, - 144u8, 183u8, 170u8, 37u8, 236u8, 48u8, 177u8, 7u8, - 62u8, 63u8, 39u8, 134u8, 158u8, 72u8, 52u8, 179u8, - 184u8, 217u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] - pub fn keygen_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u16, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "KeygenThreshold", - vec![], - [ - 52u8, 253u8, 133u8, 19u8, 89u8, 89u8, 8u8, 246u8, - 87u8, 16u8, 72u8, 213u8, 230u8, 168u8, 223u8, 38u8, - 33u8, 83u8, 79u8, 28u8, 2u8, 92u8, 141u8, 197u8, - 73u8, 190u8, 6u8, 177u8, 240u8, 245u8, 119u8, 70u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `t` in t-of-n)"] - pub fn next_signature_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u16, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextSignatureThreshold", - vec![], - [ - 83u8, 91u8, 234u8, 198u8, 71u8, 140u8, 138u8, - 136u8, 26u8, 244u8, 93u8, 37u8, 141u8, 37u8, 91u8, - 236u8, 135u8, 137u8, 86u8, 35u8, 240u8, 136u8, - 144u8, 203u8, 230u8, 163u8, 66u8, 121u8, 18u8, - 128u8, 102u8, 124u8, - ], - ) - } - #[doc = " The current signature threshold (i.e. the `n` in t-of-n)"] - pub fn next_keygen_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u16, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextKeygenThreshold", - vec![], - [ - 244u8, 125u8, 22u8, 245u8, 44u8, 192u8, 133u8, - 170u8, 115u8, 173u8, 56u8, 200u8, 83u8, 192u8, - 65u8, 213u8, 71u8, 28u8, 15u8, 200u8, 47u8, 103u8, - 215u8, 179u8, 6u8, 95u8, 214u8, 89u8, 223u8, 133u8, - 161u8, 191u8, - ], - ) - } - #[doc = " The pending signature threshold (i.e. the `t` in t-of-n)"] - pub fn pending_signature_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u16, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "PendingSignatureThreshold", - vec![], - [ - 69u8, 20u8, 129u8, 76u8, 67u8, 68u8, 122u8, 151u8, - 39u8, 116u8, 35u8, 34u8, 96u8, 168u8, 39u8, 43u8, - 64u8, 185u8, 126u8, 145u8, 247u8, 150u8, 96u8, - 125u8, 109u8, 208u8, 254u8, 121u8, 227u8, 235u8, - 108u8, 169u8, - ], - ) - } - #[doc = " The pending signature threshold (i.e. the `n` in t-of-n)"] - pub fn pending_keygen_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u16, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "PendingKeygenThreshold", - vec![], - [ - 80u8, 94u8, 41u8, 244u8, 115u8, 174u8, 75u8, 71u8, - 225u8, 122u8, 125u8, 141u8, 81u8, 69u8, 51u8, - 200u8, 129u8, 143u8, 14u8, 106u8, 228u8, 177u8, - 196u8, 167u8, 18u8, 70u8, 31u8, 137u8, 8u8, 233u8, - 249u8, 202u8, - ], - ) - } - #[doc = " The current authorities set"] - pub fn authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "Authorities", - vec![], - [ - 180u8, 103u8, 249u8, 204u8, 109u8, 0u8, 211u8, - 102u8, 59u8, 184u8, 31u8, 52u8, 140u8, 248u8, 10u8, - 127u8, 19u8, 50u8, 254u8, 116u8, 124u8, 5u8, 94u8, - 42u8, 9u8, 138u8, 159u8, 94u8, 26u8, 136u8, 236u8, - 141u8, - ], - ) - } - #[doc = " The current authority set id"] - pub fn authority_set_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "AuthoritySetId", - vec![], - [ - 97u8, 57u8, 86u8, 112u8, 28u8, 206u8, 59u8, 216u8, - 109u8, 216u8, 119u8, 48u8, 31u8, 112u8, 189u8, - 19u8, 234u8, 38u8, 14u8, 212u8, 191u8, 203u8, 72u8, - 164u8, 131u8, 57u8, 77u8, 192u8, 182u8, 168u8, - 185u8, 114u8, - ], - ) - } - #[doc = " The next authority set id"] - pub fn next_authority_set_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextAuthoritySetId", - vec![], - [ - 27u8, 226u8, 90u8, 171u8, 61u8, 158u8, 36u8, 48u8, - 88u8, 240u8, 189u8, 234u8, 176u8, 40u8, 78u8, - 239u8, 201u8, 189u8, 111u8, 160u8, 5u8, 232u8, - 196u8, 228u8, 19u8, 238u8, 185u8, 98u8, 73u8, - 207u8, 135u8, 20u8, - ], - ) - } - #[doc = " Authorities set scheduled to be used with the next session"] - pub fn next_authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextAuthorities", - vec![], - [ - 64u8, 174u8, 216u8, 177u8, 95u8, 133u8, 175u8, - 16u8, 171u8, 110u8, 7u8, 244u8, 111u8, 89u8, 57u8, - 46u8, 52u8, 28u8, 150u8, 117u8, 156u8, 47u8, 91u8, - 135u8, 196u8, 102u8, 46u8, 4u8, 224u8, 155u8, 83u8, - 36u8, - ], - ) - } - #[doc = " Accounts for the current authorities"] - pub fn current_authorities_accounts( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "CurrentAuthoritiesAccounts", - vec![], - [ - 63u8, 248u8, 43u8, 115u8, 47u8, 190u8, 73u8, 201u8, - 191u8, 159u8, 118u8, 31u8, 140u8, 144u8, 242u8, - 207u8, 239u8, 39u8, 67u8, 163u8, 111u8, 104u8, - 173u8, 254u8, 214u8, 226u8, 133u8, 239u8, 31u8, - 134u8, 124u8, 245u8, - ], - ) - } - #[doc = " Authority account ids scheduled for the next session"] - pub fn next_authorities_accounts( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "NextAuthoritiesAccounts", - vec![], - [ - 189u8, 126u8, 179u8, 166u8, 252u8, 67u8, 141u8, - 167u8, 7u8, 113u8, 103u8, 25u8, 152u8, 171u8, 26u8, - 0u8, 151u8, 68u8, 167u8, 156u8, 225u8, 66u8, 87u8, - 0u8, 119u8, 29u8, 226u8, 16u8, 176u8, 148u8, 153u8, - 158u8, - ], - ) - } - #[doc = " Authority account ids scheduled for the next session"] - pub fn account_to_authority( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::dkg_runtime_primitives::crypto::Public, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKG" , "AccountToAuthority" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [153u8 , 156u8 , 238u8 , 107u8 , 10u8 , 129u8 , 109u8 , 32u8 , 111u8 , 45u8 , 223u8 , 84u8 , 30u8 , 115u8 , 139u8 , 254u8 , 58u8 , 194u8 , 205u8 , 73u8 , 249u8 , 102u8 , 217u8 , 125u8 , 137u8 , 206u8 , 87u8 , 34u8 , 100u8 , 45u8 , 223u8 , 252u8 ,]) - } - #[doc = " Authority account ids scheduled for the next session"] - pub fn account_to_authority_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::dkg_runtime_primitives::crypto::Public, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "AccountToAuthority", - Vec::new(), - [ - 153u8, 156u8, 238u8, 107u8, 10u8, 129u8, 109u8, - 32u8, 111u8, 45u8, 223u8, 84u8, 30u8, 115u8, 139u8, - 254u8, 58u8, 194u8, 205u8, 73u8, 249u8, 102u8, - 217u8, 125u8, 137u8, 206u8, 87u8, 34u8, 100u8, - 45u8, 223u8, 252u8, - ], - ) - } - #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: MisbehaviourType > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u64 > , _2 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: crypto :: Public > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("DKG" , "MisbehaviourReports" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_2 . borrow ())] , [2u8 , 14u8 , 23u8 , 57u8 , 168u8 , 205u8 , 55u8 , 220u8 , 203u8 , 236u8 , 126u8 , 46u8 , 31u8 , 215u8 , 25u8 , 163u8 , 138u8 , 62u8 , 188u8 , 146u8 , 131u8 , 165u8 , 100u8 , 50u8 , 66u8 , 94u8 , 236u8 , 25u8 , 147u8 , 11u8 , 231u8 , 182u8 ,]) - } - #[doc = " Tracks misbehaviour reports"] pub fn misbehaviour_reports_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "MisbehaviourReports", - Vec::new(), - [ - 2u8, 14u8, 23u8, 57u8, 168u8, 205u8, 55u8, 220u8, - 203u8, 236u8, 126u8, 46u8, 31u8, 215u8, 25u8, - 163u8, 138u8, 62u8, 188u8, 146u8, 131u8, 165u8, - 100u8, 50u8, 66u8, 94u8, 236u8, 25u8, 147u8, 11u8, - 231u8, 182u8, - ], - ) - } - #[doc = " Tracks authority reputations"] - pub fn authority_reputations( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKG" , "AuthorityReputations" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [232u8 , 88u8 , 120u8 , 58u8 , 141u8 , 39u8 , 76u8 , 249u8 , 250u8 , 154u8 , 173u8 , 127u8 , 163u8 , 70u8 , 186u8 , 193u8 , 210u8 , 43u8 , 225u8 , 11u8 , 254u8 , 208u8 , 46u8 , 87u8 , 66u8 , 21u8 , 111u8 , 228u8 , 54u8 , 200u8 , 46u8 , 2u8 ,]) - } - #[doc = " Tracks authority reputations"] - pub fn authority_reputations_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "AuthorityReputations", - Vec::new(), - [ - 232u8, 88u8, 120u8, 58u8, 141u8, 39u8, 76u8, 249u8, - 250u8, 154u8, 173u8, 127u8, 163u8, 70u8, 186u8, - 193u8, 210u8, 43u8, 225u8, 11u8, 254u8, 208u8, - 46u8, 87u8, 66u8, 21u8, 111u8, 228u8, 54u8, 200u8, - 46u8, 2u8, - ], - ) - } - #[doc = " Tracks jailed authorities for keygen by mapping"] - #[doc = " to the block number when the authority was last jailed"] - pub fn jailed_keygen_authorities( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKG" , "JailedKeygenAuthorities" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [59u8 , 86u8 , 235u8 , 7u8 , 94u8 , 26u8 , 253u8 , 179u8 , 186u8 , 33u8 , 6u8 , 242u8 , 46u8 , 174u8 , 254u8 , 118u8 , 92u8 , 208u8 , 166u8 , 181u8 , 45u8 , 137u8 , 41u8 , 87u8 , 109u8 , 37u8 , 171u8 , 59u8 , 169u8 , 48u8 , 78u8 , 107u8 ,]) - } - #[doc = " Tracks jailed authorities for keygen by mapping"] - #[doc = " to the block number when the authority was last jailed"] - pub fn jailed_keygen_authorities_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "JailedKeygenAuthorities", - Vec::new(), - [ - 59u8, 86u8, 235u8, 7u8, 94u8, 26u8, 253u8, 179u8, - 186u8, 33u8, 6u8, 242u8, 46u8, 174u8, 254u8, 118u8, - 92u8, 208u8, 166u8, 181u8, 45u8, 137u8, 41u8, 87u8, - 109u8, 37u8, 171u8, 59u8, 169u8, 48u8, 78u8, 107u8, - ], - ) - } - #[doc = " Tracks jailed authorities for signing by mapping"] - #[doc = " to the block number when the authority was last jailed"] - pub fn jailed_signing_authorities( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::dkg_runtime_primitives::crypto::Public, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKG" , "JailedSigningAuthorities" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [32u8 , 100u8 , 53u8 , 234u8 , 245u8 , 105u8 , 136u8 , 132u8 , 225u8 , 219u8 , 138u8 , 165u8 , 124u8 , 174u8 , 201u8 , 219u8 , 255u8 , 214u8 , 104u8 , 204u8 , 14u8 , 32u8 , 181u8 , 79u8 , 135u8 , 172u8 , 26u8 , 1u8 , 115u8 , 98u8 , 110u8 , 89u8 ,]) - } - #[doc = " Tracks jailed authorities for signing by mapping"] - #[doc = " to the block number when the authority was last jailed"] - pub fn jailed_signing_authorities_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "JailedSigningAuthorities", - Vec::new(), - [ - 32u8, 100u8, 53u8, 234u8, 245u8, 105u8, 136u8, - 132u8, 225u8, 219u8, 138u8, 165u8, 124u8, 174u8, - 201u8, 219u8, 255u8, 214u8, 104u8, 204u8, 14u8, - 32u8, 181u8, 79u8, 135u8, 172u8, 26u8, 1u8, 115u8, - 98u8, 110u8, 89u8, - ], - ) - } - #[doc = " The current best authorities of the active keygen set"] pub fn best_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "BestAuthorities", - vec![], - [ - 229u8, 47u8, 85u8, 153u8, 16u8, 203u8, 19u8, 51u8, - 70u8, 158u8, 223u8, 231u8, 218u8, 68u8, 216u8, - 119u8, 55u8, 157u8, 50u8, 82u8, 242u8, 13u8, 185u8, - 188u8, 35u8, 85u8, 230u8, 213u8, 110u8, 27u8, 38u8, - 86u8, - ], - ) - } - #[doc = " The next best authorities of the active keygen set"] pub fn next_best_authorities (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u16 , runtime_types :: dkg_runtime_primitives :: crypto :: Public ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "DKG", - "NextBestAuthorities", - vec![], - [ - 243u8, 43u8, 60u8, 70u8, 51u8, 232u8, 171u8, 95u8, - 25u8, 228u8, 57u8, 221u8, 51u8, 115u8, 111u8, 19u8, - 140u8, 179u8, 245u8, 243u8, 240u8, 145u8, 59u8, - 63u8, 75u8, 70u8, 105u8, 22u8, 195u8, 145u8, 47u8, - 68u8, - ], - ) - } - #[doc = " The last BlockNumber at which the session rotation happened"] - pub fn last_session_rotation_block( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKG", - "LastSessionRotationBlock", - vec![], - [ - 221u8, 138u8, 110u8, 204u8, 255u8, 254u8, 229u8, - 185u8, 225u8, 170u8, 60u8, 234u8, 12u8, 6u8, 235u8, - 76u8, 245u8, 206u8, 254u8, 229u8, 239u8, 140u8, - 111u8, 58u8, 254u8, 131u8, 255u8, 112u8, 88u8, - 134u8, 241u8, 86u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Percentage session should have progressed for refresh to begin"] - pub fn refresh_delay( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Permill, - > { - ::subxt::constants::Address::new_static( - "DKG", - "RefreshDelay", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " Number of blocks of cooldown after unsigned transaction is included."] - #[doc = ""] - #[doc = " This ensures that we only accept unsigned transactions once, every `UnsignedInterval`"] - #[doc = " blocks."] - pub fn unsigned_interval( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKG", - "UnsignedInterval", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "DKG", - "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, - ], - ) - } - #[doc = " Session length helper allowing to query session length across runtime upgrades."] - pub fn session_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKG", - "SessionPeriod", - [ - 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 = " MaxLength for keys"] - pub fn max_key_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKG", - "MaxKeyLength", - [ - 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 = " MaxLength for signature"] - pub fn max_signature_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKG", - "MaxSignatureLength", - [ - 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 = " Max authorities to store"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKG", - "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 = " Max reporters to store"] - pub fn max_reporters( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKG", - "MaxReporters", - [ - 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 dkg_proposals { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_dkg_proposals::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_dkg_proposals::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetThreshold { - pub threshold: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetThreshold { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "set_threshold"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - pub method: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetResource { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "set_resource"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveResource { - pub id: runtime_types::webb_proposals::header::ResourceId, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveResource { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "remove_resource"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WhitelistChain { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "whitelist_chain"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AddProposer { - pub native_account: ::subxt::utils::AccountId32, - pub external_account: - ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for AddProposer { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "add_proposer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveProposer { - pub v: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveProposer { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "remove_proposer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AcknowledgeProposal { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - } - impl ::subxt::blocks::StaticExtrinsic for AcknowledgeProposal { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "acknowledge_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RejectProposal { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub r_id: runtime_types::webb_proposals::header::ResourceId, - pub prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - } - impl ::subxt::blocks::StaticExtrinsic for RejectProposal { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "reject_proposal"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct EvalVoteState { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - } - impl ::subxt::blocks::StaticExtrinsic for EvalVoteState { - const PALLET: &'static str = "DKGProposals"; - const CALL: &'static str = "eval_vote_state"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Sets the vote threshold for proposals."] - #[doc = ""] - #[doc = "This threshold is used to determine how many votes are required"] - #[doc = "before a proposal is executed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn set_threshold( - &self, - threshold: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "set_threshold", - types::SetThreshold { threshold }, - [ - 97u8, 156u8, 187u8, 176u8, 219u8, 218u8, 220u8, - 12u8, 153u8, 121u8, 167u8, 142u8, 88u8, 249u8, - 99u8, 44u8, 183u8, 26u8, 130u8, 71u8, 228u8, 33u8, - 233u8, 203u8, 93u8, 138u8, 130u8, 146u8, 242u8, - 169u8, 196u8, 225u8, - ], - ) - } - #[doc = "Stores a method name on chain under an associated resource ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) write"] - #[doc = "# "] - pub fn set_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - method: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "set_resource", - types::SetResource { id, method }, - [ - 72u8, 53u8, 0u8, 252u8, 156u8, 111u8, 215u8, 92u8, - 184u8, 69u8, 64u8, 26u8, 251u8, 229u8, 240u8, - 155u8, 243u8, 21u8, 7u8, 57u8, 14u8, 251u8, 44u8, - 55u8, 238u8, 91u8, 134u8, 175u8, 239u8, 76u8, - 181u8, 17u8, - ], - ) - } - #[doc = "Removes a resource ID from the resource mapping."] - #[doc = ""] - #[doc = "After this call, bridge transfers with the associated resource ID"] - #[doc = "will be rejected."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) removal"] - #[doc = "# "] - pub fn remove_resource( - &self, - id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "remove_resource", - types::RemoveResource { id }, - [ - 98u8, 85u8, 131u8, 94u8, 224u8, 152u8, 145u8, - 154u8, 26u8, 36u8, 199u8, 221u8, 240u8, 200u8, - 190u8, 184u8, 0u8, 140u8, 90u8, 36u8, 11u8, 250u8, - 103u8, 150u8, 246u8, 70u8, 170u8, 94u8, 210u8, - 172u8, 92u8, 67u8, - ], - ) - } - #[doc = "Enables a chain ID as a source or destination for a bridge transfer."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn whitelist_chain( - &self, - chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "whitelist_chain", - types::WhitelistChain { chain_id }, - [ - 143u8, 172u8, 215u8, 87u8, 23u8, 86u8, 95u8, 116u8, - 205u8, 140u8, 58u8, 104u8, 6u8, 162u8, 28u8, 115u8, - 64u8, 94u8, 184u8, 169u8, 225u8, 28u8, 180u8, 13u8, - 242u8, 35u8, 58u8, 114u8, 120u8, 220u8, 48u8, - 162u8, - ], - ) - } - #[doc = "Adds a new proposer to the proposer set."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and insert"] - #[doc = "# "] - pub fn add_proposer( - &self, - native_account: ::subxt::utils::AccountId32, - external_account: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "add_proposer", - types::AddProposer { - native_account, - external_account, - }, - [ - 160u8, 92u8, 87u8, 9u8, 152u8, 22u8, 53u8, 235u8, - 151u8, 20u8, 251u8, 54u8, 150u8, 195u8, 177u8, - 181u8, 190u8, 9u8, 209u8, 246u8, 99u8, 150u8, 40u8, - 77u8, 191u8, 175u8, 100u8, 75u8, 5u8, 244u8, 184u8, - 122u8, - ], - ) - } - #[doc = "Removes an existing proposer from the set."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1) lookup and removal"] - #[doc = "# "] - pub fn remove_proposer( - &self, - v: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "remove_proposer", - types::RemoveProposer { v }, - [ - 21u8, 136u8, 197u8, 105u8, 101u8, 203u8, 64u8, - 170u8, 57u8, 37u8, 253u8, 246u8, 124u8, 127u8, - 131u8, 73u8, 55u8, 218u8, 160u8, 22u8, 232u8, - 198u8, 208u8, 166u8, 73u8, 24u8, 234u8, 117u8, - 17u8, 232u8, 72u8, 234u8, - ], - ) - } - #[doc = "Commits a vote in favour of the provided proposal."] - #[doc = ""] - #[doc = "If a proposal with the given nonce and source chain ID does not"] - #[doc = "already exist, it will be created with an initial vote in favour"] - #[doc = "from the caller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn acknowledge_proposal( - &self, - nonce: runtime_types::webb_proposals::nonce::Nonce, - src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - r_id: runtime_types::webb_proposals::header::ResourceId, - prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "acknowledge_proposal", - types::AcknowledgeProposal { - nonce, - src_chain_id, - r_id, - prop, - }, - [ - 144u8, 178u8, 224u8, 126u8, 92u8, 178u8, 113u8, - 91u8, 41u8, 61u8, 192u8, 103u8, 105u8, 37u8, 23u8, - 66u8, 122u8, 248u8, 92u8, 7u8, 251u8, 212u8, 99u8, - 254u8, 65u8, 117u8, 126u8, 225u8, 131u8, 116u8, - 187u8, 212u8, - ], - ) - } - #[doc = "Commits a vote against a provided proposal."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Fixed, since execution of proposal should not be included"] - #[doc = "# "] - pub fn reject_proposal( - &self, - nonce: runtime_types::webb_proposals::nonce::Nonce, - src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - r_id: runtime_types::webb_proposals::header::ResourceId, - prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "reject_proposal", - types::RejectProposal { - nonce, - src_chain_id, - r_id, - prop, - }, - [ - 86u8, 225u8, 153u8, 170u8, 61u8, 160u8, 19u8, 23u8, - 224u8, 202u8, 159u8, 226u8, 178u8, 49u8, 91u8, - 251u8, 220u8, 131u8, 149u8, 175u8, 146u8, 28u8, - 67u8, 188u8, 156u8, 246u8, 255u8, 58u8, 181u8, 2u8, - 127u8, 255u8, - ], - ) - } - #[doc = "Evaluate the state of a proposal given the current vote threshold."] - #[doc = ""] - #[doc = "A proposal with enough votes will be either executed or cancelled,"] - #[doc = "and the status will be updated accordingly."] - #[doc = ""] - #[doc = "# "] - #[doc = "- weight of proposed call, regardless of whether execution is performed"] - #[doc = "# "] - pub fn eval_vote_state( - &self, - nonce: runtime_types::webb_proposals::nonce::Nonce, - src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId, - prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposals", - "eval_vote_state", - types::EvalVoteState { - nonce, - src_chain_id, - prop, - }, - [ - 216u8, 162u8, 146u8, 194u8, 180u8, 203u8, 200u8, - 87u8, 101u8, 48u8, 152u8, 60u8, 208u8, 57u8, 114u8, - 147u8, 210u8, 247u8, 95u8, 217u8, 209u8, 73u8, - 54u8, 202u8, 29u8, 82u8, 255u8, 125u8, 188u8, - 130u8, 34u8, 77u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_dkg_proposals::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Vote threshold has changed (new_threshold)"] - pub struct ProposerThresholdChanged { - pub new_threshold: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposerThresholdChanged { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposerThresholdChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Chain now available for transfers (chain_id)"] - pub struct ChainWhitelisted { - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - } - impl ::subxt::events::StaticEvent for ChainWhitelisted { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ChainWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Proposer added to set"] - pub struct ProposerAdded { - pub proposer_id: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ProposerAdded { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposerAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Proposer removed from set"] - pub struct ProposerRemoved { - pub proposer_id: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for ProposerRemoved { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposerRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Vote submitted in favour of proposal"] - pub struct VoteFor { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for VoteFor { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "VoteFor"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Vot submitted against proposal"] - pub struct VoteAgainst { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for VoteAgainst { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "VoteAgainst"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Voting successful for a proposal"] - pub struct ProposalApproved { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalApproved { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalApproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Voting rejected a proposal"] - pub struct ProposalRejected { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalRejected { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalRejected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Execution of call succeeded"] - pub struct ProposalSucceeded { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalSucceeded { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalSucceeded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Execution of call failed"] - pub struct ProposalFailed { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub chain_id: - runtime_types::webb_proposals::header::TypedChainId, - pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, - } - impl ::subxt::events::StaticEvent for ProposalFailed { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "ProposalFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Proposers have been reset"] - pub struct AuthorityProposersReset { - pub proposers: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for AuthorityProposersReset { - const PALLET: &'static str = "DKGProposals"; - const EVENT: &'static str = "AuthorityProposersReset"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " All whitelisted chains and their respective transaction counts"] - pub fn chain_nonces( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::TypedChainId, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_proposals::nonce::Nonce, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "ChainNonces" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [153u8 , 41u8 , 103u8 , 222u8 , 96u8 , 64u8 , 161u8 , 162u8 , 39u8 , 95u8 , 154u8 , 67u8 , 167u8 , 127u8 , 163u8 , 149u8 , 38u8 , 175u8 , 245u8 , 223u8 , 182u8 , 86u8 , 163u8 , 10u8 , 143u8 , 190u8 , 137u8 , 192u8 , 227u8 , 12u8 , 135u8 , 227u8 ,]) - } - #[doc = " All whitelisted chains and their respective transaction counts"] - pub fn chain_nonces_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_proposals::nonce::Nonce, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "ChainNonces", - Vec::new(), - [ - 153u8, 41u8, 103u8, 222u8, 96u8, 64u8, 161u8, - 162u8, 39u8, 95u8, 154u8, 67u8, 167u8, 127u8, - 163u8, 149u8, 38u8, 175u8, 245u8, 223u8, 182u8, - 86u8, 163u8, 10u8, 143u8, 190u8, 137u8, 192u8, - 227u8, 12u8, 135u8, 227u8, - ], - ) - } - #[doc = " Number of votes required for a proposal to execute"] - pub fn proposer_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "ProposerThreshold", - vec![], - [ - 129u8, 174u8, 171u8, 36u8, 172u8, 108u8, 139u8, - 176u8, 152u8, 127u8, 52u8, 68u8, 109u8, 238u8, - 50u8, 176u8, 49u8, 78u8, 240u8, 36u8, 94u8, 247u8, - 215u8, 82u8, 109u8, 10u8, 81u8, 156u8, 14u8, 247u8, - 39u8, 154u8, - ], - ) - } - #[doc = " Proposer Set Update Proposal Nonce"] - pub fn proposer_set_update_proposal_nonce( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "ProposerSetUpdateProposalNonce", - vec![], - [ - 118u8, 52u8, 184u8, 159u8, 206u8, 28u8, 122u8, - 219u8, 168u8, 206u8, 143u8, 16u8, 128u8, 31u8, - 254u8, 40u8, 45u8, 92u8, 183u8, 46u8, 80u8, 19u8, - 131u8, 6u8, 26u8, 105u8, 81u8, 174u8, 10u8, 154u8, - 186u8, 157u8, - ], - ) - } - #[doc = " Tracks current proposer set"] - pub fn proposers( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Proposers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [163u8 , 252u8 , 227u8 , 131u8 , 254u8 , 6u8 , 64u8 , 191u8 , 158u8 , 117u8 , 69u8 , 137u8 , 184u8 , 85u8 , 112u8 , 252u8 , 137u8 , 30u8 , 24u8 , 87u8 , 55u8 , 82u8 , 22u8 , 241u8 , 124u8 , 222u8 , 155u8 , 60u8 , 123u8 , 5u8 , 191u8 , 79u8 ,]) - } - #[doc = " Tracks current proposer set"] - pub fn proposers_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "Proposers", - Vec::new(), - [ - 163u8, 252u8, 227u8, 131u8, 254u8, 6u8, 64u8, - 191u8, 158u8, 117u8, 69u8, 137u8, 184u8, 85u8, - 112u8, 252u8, 137u8, 30u8, 24u8, 87u8, 55u8, 82u8, - 22u8, 241u8, 124u8, 222u8, 155u8, 60u8, 123u8, 5u8, - 191u8, 79u8, - ], - ) - } - #[doc = " Tracks current proposer set external accounts"] - #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] - pub fn external_proposer_accounts( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "ExternalProposerAccounts" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [20u8 , 120u8 , 130u8 , 198u8 , 23u8 , 142u8 , 44u8 , 2u8 , 227u8 , 81u8 , 19u8 , 161u8 , 131u8 , 103u8 , 182u8 , 14u8 , 83u8 , 59u8 , 88u8 , 35u8 , 193u8 , 118u8 , 232u8 , 48u8 , 119u8 , 28u8 , 143u8 , 242u8 , 168u8 , 76u8 , 194u8 , 117u8 ,]) - } - #[doc = " Tracks current proposer set external accounts"] - #[doc = " Currently meant to store Ethereum compatible 64-bytes ECDSA public keys"] - pub fn external_proposer_accounts_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "ExternalProposerAccounts", - Vec::new(), - [ - 20u8, 120u8, 130u8, 198u8, 23u8, 142u8, 44u8, 2u8, - 227u8, 81u8, 19u8, 161u8, 131u8, 103u8, 182u8, - 14u8, 83u8, 59u8, 88u8, 35u8, 193u8, 118u8, 232u8, - 48u8, 119u8, 28u8, 143u8, 242u8, 168u8, 76u8, - 194u8, 117u8, - ], - ) - } - #[doc = " Tracks the authorities that are proposers so we can properly update the proposer set"] - #[doc = " across sessions and authority changes."] - pub fn authority_proposers( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "AuthorityProposers", - vec![], - [ - 13u8, 39u8, 119u8, 156u8, 19u8, 173u8, 56u8, 139u8, - 217u8, 25u8, 136u8, 183u8, 232u8, 196u8, 58u8, - 202u8, 155u8, 60u8, 26u8, 153u8, 218u8, 72u8, - 108u8, 133u8, 30u8, 11u8, 9u8, 41u8, 145u8, 129u8, - 200u8, 248u8, - ], - ) - } - #[doc = " Tracks current proposer set external accounts"] pub fn external_authority_proposer_accounts (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "ExternalAuthorityProposerAccounts", - vec![], - [ - 139u8, 28u8, 211u8, 94u8, 127u8, 243u8, 82u8, - 237u8, 70u8, 205u8, 243u8, 167u8, 161u8, 98u8, - 62u8, 122u8, 118u8, 152u8, 200u8, 230u8, 35u8, - 206u8, 120u8, 128u8, 44u8, 216u8, 113u8, 255u8, - 110u8, 75u8, 108u8, 1u8, - ], - ) - } - #[doc = " Number of proposers in set"] - pub fn proposer_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "ProposerCount", - vec![], - [ - 150u8, 116u8, 125u8, 20u8, 135u8, 11u8, 47u8, - 155u8, 87u8, 113u8, 44u8, 139u8, 67u8, 74u8, 92u8, - 113u8, 173u8, 62u8, 207u8, 79u8, 125u8, 109u8, - 170u8, 166u8, 55u8, 85u8, 3u8, 32u8, 155u8, 45u8, - 236u8, 253u8, - ], - ) - } - #[doc = " All known proposals."] - #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] - #[doc = " unique."] - pub fn votes( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::TypedChainId, - >, - _1 : impl :: std :: borrow :: Borrow < (runtime_types :: webb_proposals :: nonce :: Nonce , runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > ,) >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_dkg_proposals::types::ProposalVotes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - runtime_types::dkg_standalone_runtime::MaxVotes, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Votes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [170u8 , 58u8 , 19u8 , 141u8 , 123u8 , 87u8 , 199u8 , 5u8 , 37u8 , 56u8 , 221u8 , 167u8 , 88u8 , 33u8 , 21u8 , 73u8 , 251u8 , 81u8 , 122u8 , 25u8 , 77u8 , 81u8 , 160u8 , 143u8 , 35u8 , 204u8 , 85u8 , 86u8 , 24u8 , 94u8 , 15u8 , 191u8 ,]) - } - #[doc = " All known proposals."] - #[doc = " The key is the hash of the call and the deposit ID, to ensure it's"] - #[doc = " unique."] - pub fn votes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_dkg_proposals::types::ProposalVotes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - runtime_types::dkg_standalone_runtime::MaxVotes, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "Votes", - Vec::new(), - [ - 170u8, 58u8, 19u8, 141u8, 123u8, 87u8, 199u8, 5u8, - 37u8, 56u8, 221u8, 167u8, 88u8, 33u8, 21u8, 73u8, - 251u8, 81u8, 122u8, 25u8, 77u8, 81u8, 160u8, 143u8, - 35u8, 204u8, 85u8, 86u8, 24u8, 94u8, 15u8, 191u8, - ], - ) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] - pub fn resources( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::ResourceId, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposals" , "Resources" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [137u8 , 242u8 , 218u8 , 244u8 , 20u8 , 237u8 , 53u8 , 254u8 , 119u8 , 30u8 , 2u8 , 81u8 , 72u8 , 214u8 , 164u8 , 126u8 , 73u8 , 252u8 , 191u8 , 64u8 , 154u8 , 248u8 , 124u8 , 6u8 , 200u8 , 218u8 , 221u8 , 35u8 , 15u8 , 129u8 , 65u8 , 182u8 ,]) - } - #[doc = " Utilized by the bridge software to map resource IDs to actual methods"] - pub fn resources_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKGProposals", - "Resources", - Vec::new(), - [ - 137u8, 242u8, 218u8, 244u8, 20u8, 237u8, 53u8, - 254u8, 119u8, 30u8, 2u8, 81u8, 72u8, 214u8, 164u8, - 126u8, 73u8, 252u8, 191u8, 64u8, 154u8, 248u8, - 124u8, 6u8, 200u8, 218u8, 221u8, 35u8, 15u8, 129u8, - 65u8, 182u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The identifier for this chain."] - #[doc = " This must be unique and must not collide with existing IDs within a"] - #[doc = " set of bridged chains."] - pub fn chain_identifier( - &self, - ) -> ::subxt::constants::Address< - runtime_types::webb_proposals::header::TypedChainId, - > { - ::subxt::constants::Address::new_static( - "DKGProposals", - "ChainIdentifier", - [ - 80u8, 245u8, 165u8, 63u8, 83u8, 75u8, 120u8, 198u8, - 51u8, 48u8, 231u8, 27u8, 18u8, 145u8, 145u8, 198u8, - 211u8, 221u8, 19u8, 170u8, 68u8, 87u8, 79u8, 5u8, - 204u8, 71u8, 188u8, 140u8, 38u8, 17u8, 107u8, - 146u8, - ], - ) - } - pub fn proposal_lifetime( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "ProposalLifetime", - [ - 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 session period"] - pub fn period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "Period", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The max votes to store for for and against"] - pub fn max_votes( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "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 max resources that can be stored in storage"] - pub fn max_resources( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "MaxResources", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The max authority proposers that can be stored in storage"] - pub fn max_authority_proposers( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "MaxAuthorityProposers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The max external proposer accounts that can be stored in storage"] - pub fn max_external_proposer_accounts( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "MaxExternalProposerAccounts", - [ - 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 = " Max length of a proposal"] - pub fn max_proposal_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposals", - "MaxProposalLength", - [ - 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 dkg_proposal_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = - runtime_types::pallet_dkg_proposal_handler::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = - runtime_types::pallet_dkg_proposal_handler::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitSignedProposals { pub props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } - impl ::subxt::blocks::StaticExtrinsic for SubmitSignedProposals { - const PALLET: &'static str = "DKGProposalHandler"; - const CALL: &'static str = "submit_signed_proposals"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceSubmitUnsignedProposal { - pub prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ForceSubmitUnsignedProposal { - const PALLET: &'static str = "DKGProposalHandler"; - const CALL: &'static str = "force_submit_unsigned_proposal"; - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn submit_signed_proposals( - &self, - props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposalHandler", - "submit_signed_proposals", - types::SubmitSignedProposals { props }, - [ - 40u8, 38u8, 237u8, 6u8, 145u8, 127u8, 224u8, 153u8, - 97u8, 77u8, 26u8, 198u8, 143u8, 255u8, 229u8, - 178u8, 248u8, 154u8, 41u8, 154u8, 186u8, 56u8, - 74u8, 137u8, 120u8, 36u8, 89u8, 224u8, 224u8, - 189u8, 97u8, 99u8, - ], - ) - } - #[doc = "Force submit an unsigned proposal to the DKG"] - #[doc = ""] - #[doc = "There are certain proposals we'd like to be proposable only"] - #[doc = "through root actions. The currently supported proposals are"] - #[doc = "\t1. Updating"] - pub fn force_submit_unsigned_proposal( - &self, - prop: runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "DKGProposalHandler", - "force_submit_unsigned_proposal", - types::ForceSubmitUnsignedProposal { prop }, - [ - 213u8, 166u8, 49u8, 2u8, 146u8, 30u8, 105u8, 213u8, - 119u8, 50u8, 83u8, 22u8, 234u8, 221u8, 92u8, 156u8, - 120u8, 5u8, 213u8, 174u8, 17u8, 129u8, 49u8, 196u8, - 36u8, 52u8, 59u8, 100u8, 21u8, 204u8, 79u8, 43u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_dkg_proposal_handler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] - pub struct InvalidProposalSignature { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub data: ::std::vec::Vec<::core::primitive::u8>, - pub invalid_signature: ::std::vec::Vec<::core::primitive::u8>, - pub expected_public_key: ::core::option::Option< - ::std::vec::Vec<::core::primitive::u8>, - >, - pub actual_public_key: ::core::option::Option< - ::std::vec::Vec<::core::primitive::u8>, - >, - } - impl ::subxt::events::StaticEvent for InvalidProposalSignature { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "InvalidProposalSignature"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] - pub struct ProposalAdded { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } - impl ::subxt::events::StaticEvent for ProposalAdded { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "ProposalAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] - pub struct ProposalRemoved { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub expired : :: core :: primitive :: bool , } - impl ::subxt::events::StaticEvent for ProposalRemoved { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "ProposalRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] - pub struct ProposalSigned { pub key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , pub target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , pub data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , pub signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } - impl ::subxt::events::StaticEvent for ProposalSigned { - const PALLET: &'static str = "DKGProposalHandler"; - const EVENT: &'static str = "ProposalSigned"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: webb_proposals :: header :: TypedChainId > , _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("DKGProposalHandler" , "UnsignedProposalQueue" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [180u8 , 168u8 , 253u8 , 235u8 , 22u8 , 205u8 , 104u8 , 231u8 , 206u8 , 162u8 , 69u8 , 53u8 , 120u8 , 242u8 , 94u8 , 192u8 , 63u8 , 147u8 , 54u8 , 66u8 , 54u8 , 195u8 , 19u8 , 252u8 , 129u8 , 118u8 , 114u8 , 37u8 , 231u8 , 137u8 , 66u8 , 228u8 ,]) - } - #[doc = " All unsigned proposals."] pub fn unsigned_proposal_queue_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: dkg_runtime_primitives :: proposal :: StoredUnsignedProposal < :: core :: primitive :: u32 , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "DKGProposalHandler", - "UnsignedProposalQueue", - Vec::new(), - [ - 180u8, 168u8, 253u8, 235u8, 22u8, 205u8, 104u8, - 231u8, 206u8, 162u8, 69u8, 53u8, 120u8, 242u8, - 94u8, 192u8, 63u8, 147u8, 54u8, 66u8, 54u8, 195u8, - 19u8, 252u8, 129u8, 118u8, 114u8, 37u8, 231u8, - 137u8, 66u8, 228u8, - ], - ) - } - #[doc = " Defines the block when next unsigned transaction will be accepted."] - #[doc = ""] - #[doc = " To prevent spam of unsigned (and unpayed!) transactions on the network,"] - #[doc = " we only allow one transaction every `T::UnsignedInterval` blocks."] - #[doc = " This storage entry defines when new transaction is going to be accepted."] - pub fn next_unsigned_at( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "DKGProposalHandler", - "NextUnsignedAt", - vec![], - [ - 175u8, 176u8, 254u8, 20u8, 27u8, 31u8, 70u8, 46u8, - 201u8, 118u8, 22u8, 200u8, 95u8, 116u8, 223u8, - 63u8, 191u8, 85u8, 55u8, 21u8, 70u8, 24u8, 225u8, - 203u8, 66u8, 213u8, 94u8, 229u8, 234u8, 223u8, - 255u8, 28u8, - ], - ) - } - #[doc = " All signed proposals."] - pub fn signed_proposals( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::TypedChainId, - >, - _1 : impl :: std :: borrow :: Borrow < runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("DKGProposalHandler" , "SignedProposals" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [40u8 , 252u8 , 222u8 , 220u8 , 87u8 , 195u8 , 206u8 , 177u8 , 252u8 , 151u8 , 163u8 , 130u8 , 212u8 , 57u8 , 250u8 , 155u8 , 16u8 , 65u8 , 94u8 , 201u8 , 52u8 , 174u8 , 75u8 , 9u8 , 185u8 , 240u8 , 218u8 , 241u8 , 208u8 , 36u8 , 17u8 , 196u8 ,]) - } - #[doc = " All signed proposals."] - pub fn signed_proposals_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::webb_proposals::proposal::Proposal< - runtime_types::dkg_runtime_primitives::CustomU32Getter, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "DKGProposalHandler", - "SignedProposals", - Vec::new(), - [ - 40u8, 252u8, 222u8, 220u8, 87u8, 195u8, 206u8, - 177u8, 252u8, 151u8, 163u8, 130u8, 212u8, 57u8, - 250u8, 155u8, 16u8, 65u8, 94u8, 201u8, 52u8, 174u8, - 75u8, 9u8, 185u8, 240u8, 218u8, 241u8, 208u8, 36u8, - 17u8, 196u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Max number of signed proposal submissions per batch;"] - pub fn max_submissions_per_batch( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> - { - ::subxt::constants::Address::new_static( - "DKGProposalHandler", - "MaxSubmissionsPerBatch", - [ - 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, - ], - ) - } - #[doc = " Max blocks to store an unsigned proposal"] - pub fn unsigned_proposal_expiry( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposalHandler", - "UnsignedProposalExpiry", - [ - 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 = " Max length of a proposal"] - pub fn max_proposal_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "DKGProposalHandler", - "MaxProposalLength", - [ - 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 = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_transaction_payment::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] - #[doc = "has been paid by `who`."] - pub struct TransactionFeePaid { - pub who: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for TransactionFeePaid { - const PALLET: &'static str = "TransactionPayment"; - const EVENT: &'static str = "TransactionFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn next_fee_multiplier( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::fixed_point::FixedU128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TransactionPayment", - "NextFeeMultiplier", - vec![], - [ - 210u8, 0u8, 206u8, 165u8, 183u8, 10u8, 206u8, 52u8, - 14u8, 90u8, 218u8, 197u8, 189u8, 125u8, 113u8, - 216u8, 52u8, 161u8, 45u8, 24u8, 245u8, 237u8, - 121u8, 41u8, 106u8, 29u8, 45u8, 129u8, 250u8, - 203u8, 206u8, 180u8, - ], - ) - } - pub fn storage_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_transaction_payment::Releases, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TransactionPayment", - "StorageVersion", - vec![], - [ - 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, - 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, - 166u8, 11u8, 34u8, 12u8, 12u8, 198u8, 58u8, 191u8, - 186u8, 221u8, 221u8, 119u8, 181u8, 253u8, 154u8, - 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] - #[doc = " `priority`"] - #[doc = ""] - #[doc = " This value is multipled 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::constants::Address<::core::primitive::u8> - { - ::subxt::constants::Address::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 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Sudo { - pub call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Sudo { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo_unchecked_weight"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetKey { - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetKey { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "set_key"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SudoAs { - pub who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SudoAs { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo_as"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - pub fn sudo( - &self, - call: runtime_types::dkg_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "sudo", - types::Sudo { - call: ::std::boxed::Box::new(call), - }, - [ - 202u8, 98u8, 94u8, 63u8, 214u8, 23u8, 38u8, 208u8, - 196u8, 169u8, 29u8, 232u8, 133u8, 111u8, 153u8, - 172u8, 55u8, 79u8, 176u8, 193u8, 95u8, 36u8, 53u8, - 33u8, 110u8, 117u8, 52u8, 160u8, 64u8, 133u8, - 225u8, 197u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - pub fn sudo_unchecked_weight( - &self, - call: runtime_types::dkg_standalone_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Sudo", - "sudo_unchecked_weight", - types::SudoUncheckedWeight { - call: ::std::boxed::Box::new(call), - weight, - }, - [ - 237u8, 79u8, 83u8, 45u8, 183u8, 220u8, 36u8, 218u8, - 96u8, 78u8, 220u8, 210u8, 185u8, 104u8, 115u8, - 148u8, 59u8, 112u8, 78u8, 136u8, 71u8, 40u8, 242u8, - 19u8, 99u8, 95u8, 12u8, 0u8, 144u8, 105u8, 130u8, - 48u8, - ], - ) - } - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - pub fn set_key( - &self, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "set_key", - types::SetKey { new }, - [ - 34u8, 116u8, 170u8, 18u8, 106u8, 17u8, 231u8, - 159u8, 110u8, 246u8, 2u8, 27u8, 161u8, 155u8, - 163u8, 41u8, 138u8, 7u8, 81u8, 98u8, 230u8, 182u8, - 23u8, 222u8, 240u8, 117u8, 173u8, 232u8, 192u8, - 55u8, 92u8, 208u8, - ], - ) - } - #[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_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - pub fn sudo_as( - &self, - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: runtime_types::dkg_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "sudo_as", - types::SudoAs { - who, - call: ::std::boxed::Box::new(call), - }, - [ - 22u8, 234u8, 90u8, 83u8, 195u8, 16u8, 66u8, 158u8, - 70u8, 126u8, 218u8, 244u8, 222u8, 35u8, 143u8, - 89u8, 169u8, 194u8, 81u8, 242u8, 169u8, 148u8, - 63u8, 78u8, 135u8, 178u8, 228u8, 20u8, 72u8, 107u8, - 33u8, 79u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_sudo::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct Sudid { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for Sudid { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "Sudid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - pub struct KeyChanged { - pub old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "KeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sudo just took place. \\[result\\]"] - pub struct SudoAsDone { - pub sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - } - impl ::subxt::events::StaticEvent for SudoAsDone { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "SudoAsDone"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The `AccountId` of the sudo key."] - pub fn key( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Sudo", - "Key", - vec![], - [ - 244u8, 73u8, 188u8, 136u8, 218u8, 163u8, 68u8, - 179u8, 122u8, 173u8, 34u8, 108u8, 137u8, 28u8, - 182u8, 16u8, 196u8, 92u8, 138u8, 34u8, 102u8, 80u8, - 199u8, 88u8, 107u8, 207u8, 36u8, 22u8, 168u8, - 167u8, 20u8, 142u8, - ], - ) - } - } - } - } - 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 one variant per dispatchable that can be called by an extrinsic."] - pub type Call = - runtime_types::pallet_election_provider_multi_phase::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } - impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit_unsigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_minimum_untrusted_score"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_emergency_election_result"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Submit { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct GovernanceFallback { - pub maybe_max_voters: - ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: - ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "governance_fallback"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit_unsigned", - types::SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, - }, - [ - 100u8, 240u8, 31u8, 34u8, 93u8, 98u8, 93u8, 57u8, - 41u8, 197u8, 97u8, 58u8, 242u8, 10u8, 69u8, 250u8, - 185u8, 169u8, 21u8, 8u8, 202u8, 61u8, 36u8, 25u8, - 4u8, 148u8, 82u8, 56u8, 242u8, 18u8, 27u8, 219u8, - ], - ) - } - #[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: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_minimum_untrusted_score", - types::SetMinimumUntrustedScore { maybe_next_score }, - [ - 63u8, 101u8, 105u8, 146u8, 133u8, 162u8, 149u8, - 112u8, 150u8, 219u8, 183u8, 213u8, 234u8, 211u8, - 144u8, 74u8, 106u8, 15u8, 62u8, 196u8, 247u8, 49u8, - 20u8, 48u8, 3u8, 105u8, 85u8, 46u8, 76u8, 4u8, - 67u8, 81u8, - ], - ) - } - #[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: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - )>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_emergency_election_result", - types::SetEmergencyElectionResult { supports }, - [ - 115u8, 255u8, 205u8, 58u8, 153u8, 1u8, 246u8, 8u8, - 225u8, 36u8, 66u8, 144u8, 250u8, 145u8, 70u8, 76u8, - 54u8, 63u8, 251u8, 51u8, 214u8, 204u8, 55u8, 112u8, - 46u8, 228u8, 255u8, 250u8, 151u8, 5u8, 44u8, 133u8, - ], - ) - } - #[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 : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit", - types::Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - }, - [ - 220u8, 167u8, 40u8, 47u8, 253u8, 244u8, 72u8, - 124u8, 30u8, 123u8, 127u8, 227u8, 2u8, 66u8, 119u8, - 64u8, 211u8, 200u8, 210u8, 98u8, 248u8, 132u8, - 68u8, 25u8, 34u8, 182u8, 230u8, 225u8, 241u8, 58u8, - 193u8, 134u8, - ], - ) - } - #[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: ::core::option::Option< - ::core::primitive::u32, - >, - maybe_max_targets: ::core::option::Option< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "governance_fallback", - types::GovernanceFallback { - maybe_max_voters, - maybe_max_targets, - }, - [ - 206u8, 247u8, 76u8, 85u8, 7u8, 24u8, 231u8, 226u8, - 192u8, 143u8, 43u8, 67u8, 91u8, 202u8, 88u8, 176u8, - 130u8, 1u8, 83u8, 229u8, 227u8, 200u8, 179u8, 4u8, - 113u8, 60u8, 99u8, 190u8, 53u8, 226u8, 142u8, - 182u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A solution was stored with the given compute."] - #[doc = ""] - #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] - #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] - #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] - #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] - #[doc = "room for this one."] - pub struct SolutionStored { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub origin : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , pub prev_ejected : :: core :: primitive :: bool , } - impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The election has been finalized, with the given computation and score."] - pub struct ElectionFinalized { pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , pub score : runtime_types :: sp_npos_elections :: ElectionScore , } - impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An election failed."] - #[doc = ""] - #[doc = "Not much can be said about which computes failed in the process."] - pub struct ElectionFailed; - impl ::subxt::events::StaticEvent for ElectionFailed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has been rewarded for their signed submission being finalized."] - pub struct Rewarded { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has been slashed for submitting an invalid signed submission."] - pub struct Slashed { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "There was a phase transition in a given round."] - pub struct PhaseTransitioned { - pub from: - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - pub to: - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - pub round: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for PhaseTransitioned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "PhaseTransitioned"; - } - } - pub mod storage { - use super::runtime_types; - pub 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "Round", - vec![], - [ - 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, - 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, - 34u8, 44u8, 166u8, 188u8, 199u8, 210u8, 21u8, 19u8, - 70u8, 96u8, 139u8, 8u8, 53u8, 82u8, 165u8, 239u8, - ], - ) - } - #[doc = " Current phase."] - pub fn current_phase( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "CurrentPhase", - vec![], - [ - 236u8, 101u8, 8u8, 52u8, 68u8, 240u8, 74u8, 159u8, - 181u8, 53u8, 153u8, 101u8, 228u8, 81u8, 96u8, - 161u8, 34u8, 67u8, 35u8, 28u8, 121u8, 44u8, 229u8, - 45u8, 196u8, 87u8, 73u8, 125u8, 216u8, 245u8, - 255u8, 15u8, - ], - ) - } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub fn queued_solution (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: ReadySolution , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "QueuedSolution", - vec![], - [ - 11u8, 152u8, 13u8, 167u8, 204u8, 209u8, 171u8, - 249u8, 59u8, 250u8, 58u8, 152u8, 164u8, 121u8, - 146u8, 112u8, 241u8, 16u8, 159u8, 251u8, 209u8, - 251u8, 114u8, 29u8, 188u8, 30u8, 84u8, 71u8, 136u8, - 173u8, 145u8, 236u8, - ], - ) - } - #[doc = " Snapshot data of the round."] - #[doc = ""] - #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "Snapshot", - vec![], - [ - 239u8, 56u8, 191u8, 77u8, 150u8, 224u8, 248u8, - 88u8, 132u8, 224u8, 164u8, 83u8, 253u8, 36u8, 46u8, - 156u8, 72u8, 152u8, 36u8, 206u8, 72u8, 27u8, 226u8, - 87u8, 146u8, 220u8, 93u8, 178u8, 26u8, 115u8, - 232u8, 71u8, - ], - ) - } - #[doc = " Desired number of targets to elect for this round."] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] - pub fn desired_targets( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "DesiredTargets", - vec![], - [ - 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, - 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, - 90u8, 140u8, 31u8, 210u8, 2u8, 116u8, 220u8, 231u8, - 115u8, 112u8, 118u8, 118u8, 68u8, 34u8, 151u8, - 165u8, - ], - ) - } - #[doc = " The metadata of the [`RoundSnapshot`]"] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , :: subxt :: storage :: address :: Yes , () , () >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SnapshotMetadata", - vec![], - [ - 135u8, 122u8, 60u8, 75u8, 194u8, 240u8, 187u8, - 96u8, 240u8, 203u8, 192u8, 22u8, 117u8, 148u8, - 118u8, 24u8, 240u8, 213u8, 94u8, 22u8, 194u8, 47u8, - 181u8, 245u8, 77u8, 149u8, 11u8, 251u8, 117u8, - 220u8, 205u8, 78u8, - ], - ) - } - #[doc = " The next index to be assigned to an incoming signed submission."] - #[doc = ""] - #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] - #[doc = " submission for the duration of the election. On election finalization, the next index is"] - #[doc = " reset to 0."] - #[doc = ""] - #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] - #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] - #[doc = " because iteration is slow. Instead, we store the value here."] - pub fn signed_submission_next_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionNextIndex", - vec![], - [ - 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, - 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, - 59u8, 42u8, 238u8, 115u8, 8u8, 6u8, 137u8, 45u8, - 2u8, 123u8, 187u8, 53u8, 215u8, 19u8, 129u8, 54u8, - 22u8, - ], - ) - } - #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] - #[doc = " value in `SignedSubmissions`."] - #[doc = ""] - #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] - #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] - #[doc = " them one at a time instead of reading and decoding all of them at once."] - pub fn signed_submission_indices( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ( - runtime_types::sp_npos_elections::ElectionScore, - ::core::primitive::u32, - ::core::primitive::u32, - ), - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionIndices", - vec![], - [ - 228u8, 166u8, 94u8, 248u8, 71u8, 26u8, 125u8, 81u8, - 32u8, 22u8, 46u8, 185u8, 209u8, 123u8, 46u8, 17u8, - 152u8, 149u8, 222u8, 125u8, 112u8, 230u8, 29u8, - 177u8, 162u8, 214u8, 66u8, 38u8, 170u8, 121u8, - 129u8, 100u8, - ], - ) - } - #[doc = " Unchecked, signed solutions."] - #[doc = ""] - #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] - #[doc = " allowing us to keep only a single one in memory at a time."] - #[doc = ""] - #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: dkg_standalone_runtime :: NposSolution16 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [84u8 , 65u8 , 205u8 , 191u8 , 143u8 , 246u8 , 239u8 , 27u8 , 243u8 , 54u8 , 250u8 , 8u8 , 125u8 , 32u8 , 241u8 , 141u8 , 210u8 , 225u8 , 56u8 , 101u8 , 241u8 , 52u8 , 157u8 , 29u8 , 13u8 , 155u8 , 73u8 , 132u8 , 118u8 , 53u8 , 2u8 , 135u8 ,]) - } - #[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_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: dkg_standalone_runtime :: NposSolution16 > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionsMap", - Vec::new(), - [ - 84u8, 65u8, 205u8, 191u8, 143u8, 246u8, 239u8, - 27u8, 243u8, 54u8, 250u8, 8u8, 125u8, 32u8, 241u8, - 141u8, 210u8, 225u8, 56u8, 101u8, 241u8, 52u8, - 157u8, 29u8, 13u8, 155u8, 73u8, 132u8, 118u8, 53u8, - 2u8, 135u8, - ], - ) - } - #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] - #[doc = " feasible."] - #[doc = ""] - #[doc = " Can be set via `set_minimum_untrusted_score`."] - pub fn minimum_untrusted_score( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_npos_elections::ElectionScore, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "MinimumUntrustedScore", - vec![], - [ - 77u8, 235u8, 181u8, 45u8, 230u8, 12u8, 0u8, 179u8, - 152u8, 38u8, 74u8, 199u8, 47u8, 84u8, 85u8, 55u8, - 171u8, 226u8, 217u8, 125u8, 17u8, 194u8, 95u8, - 157u8, 73u8, 245u8, 75u8, 130u8, 248u8, 7u8, 53u8, - 226u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "UnsignedPhase", - [ - 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 = " Duration of the signed phase."] - pub fn signed_phase( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedPhase", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Signed phase."] - pub fn better_signed_threshold( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Perbill, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "BetterSignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Unsigned phase."] - pub fn better_unsigned_threshold( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Perbill, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "BetterUnsignedThreshold", - [ - 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, - 192u8, 254u8, 19u8, 87u8, 80u8, 16u8, 62u8, 42u8, - 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, - 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, - 86u8, 227u8, - ], - ) - } - #[doc = " The repeat threshold of the offchain worker."] - #[doc = ""] - #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] - #[doc = " to submit the worker's solution."] - pub fn offchain_repeat( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "OffchainRepeat", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] - pub fn miner_tx_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerTxPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - #[doc = " Maximum number of signed submissions that can be queued."] - #[doc = ""] - #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] - #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] - #[doc = " update this value during an election, you _must_ ensure that"] - #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] - #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub fn signed_max_submissions( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxSubmissions", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum weight of a signed solution."] - #[doc = ""] - #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] - #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] - #[doc = " this value."] - pub fn signed_max_weight( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_weights::weight_v2::Weight, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] - pub fn signed_max_refunds( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxRefunds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Base reward for a signed solution"] - pub fn signed_reward_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedRewardBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Base deposit for a signed solution."] - pub fn signed_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositWeight", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, - 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, - 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, - 148u8, 156u8, - ], - ) - } - #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] - #[doc = " are only over a single block, but once multi-block elections are introduced they will"] - #[doc = " take place over multiple blocks."] - pub fn max_electing_voters( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectingVoters", - [ - 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 electable targets to put in the snapshot."] - pub fn max_electable_targets( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectableTargets", - [ - 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, - ], - ) - } - #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] - #[doc = " implementation."] - #[doc = ""] - #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxWinners", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_weight( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_weights::weight_v2::Weight, - > { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxWeight", - [ - 206u8, 61u8, 253u8, 247u8, 163u8, 40u8, 161u8, - 52u8, 134u8, 140u8, 206u8, 83u8, 44u8, 166u8, - 226u8, 115u8, 181u8, 14u8, 227u8, 130u8, 210u8, - 32u8, 85u8, 29u8, 230u8, 97u8, 130u8, 165u8, 147u8, - 134u8, 106u8, 76u8, - ], - ) - } - pub fn miner_max_votes_per_voter( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxVotesPerVoter", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod bags_list { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_bags_list::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_bags_list::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Rebag { - const PALLET: &'static str = "BagsList"; - const CALL: &'static str = "rebag"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { - const PALLET: &'static str = "BagsList"; - const CALL: &'static str = "put_in_front_of"; - } - } - 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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "BagsList", - "rebag", - types::Rebag { dislocated }, - [ - 0u8, 168u8, 218u8, 188u8, 236u8, 124u8, 250u8, - 201u8, 237u8, 20u8, 97u8, 150u8, 117u8, 232u8, - 116u8, 237u8, 55u8, 151u8, 71u8, 119u8, 42u8, 48u8, - 10u8, 66u8, 167u8, 208u8, 184u8, 228u8, 146u8, - 181u8, 84u8, 70u8, - ], - ) - } - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "BagsList", - "put_in_front_of", - types::PutInFrontOf { lighter }, - [ - 104u8, 36u8, 96u8, 80u8, 236u8, 75u8, 203u8, 232u8, - 136u8, 167u8, 205u8, 143u8, 200u8, 53u8, 124u8, - 148u8, 76u8, 246u8, 71u8, 246u8, 205u8, 82u8, 32u8, - 186u8, 33u8, 5u8, 183u8, 127u8, 153u8, 232u8, 80u8, - 164u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bags_list::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Moved an account from one bag to another."] - pub struct Rebagged { - pub who: ::subxt::utils::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Rebagged { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "Rebagged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Updated the score of some account to the given amount."] - pub struct ScoreUpdated { - pub who: ::subxt::utils::AccountId32, - pub new_score: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ScoreUpdated { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "ScoreUpdated"; - } - } - pub mod storage { - use super::runtime_types; - 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( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListNodes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [176u8 , 186u8 , 93u8 , 51u8 , 100u8 , 184u8 , 240u8 , 29u8 , 70u8 , 3u8 , 117u8 , 47u8 , 23u8 , 66u8 , 231u8 , 234u8 , 53u8 , 8u8 , 234u8 , 175u8 , 181u8 , 8u8 , 161u8 , 154u8 , 48u8 , 178u8 , 147u8 , 227u8 , 122u8 , 115u8 , 57u8 , 97u8 ,]) - } - #[doc = " A single node, within some bag."] - #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] - pub fn list_nodes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "ListNodes", - Vec::new(), - [ - 176u8, 186u8, 93u8, 51u8, 100u8, 184u8, 240u8, - 29u8, 70u8, 3u8, 117u8, 47u8, 23u8, 66u8, 231u8, - 234u8, 53u8, 8u8, 234u8, 175u8, 181u8, 8u8, 161u8, - 154u8, 48u8, 178u8, 147u8, 227u8, 122u8, 115u8, - 57u8, 97u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_list_nodes( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "CounterForListNodes", - vec![], - [ - 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, - 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, - 210u8, 131u8, 87u8, 0u8, 241u8, 230u8, 160u8, - 142u8, 128u8, 153u8, 83u8, 36u8, 88u8, 247u8, 70u8, - 130u8, - ], - ) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] - pub fn list_bags( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Bag, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("BagsList" , "ListBags" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [38u8 , 86u8 , 63u8 , 92u8 , 85u8 , 59u8 , 225u8 , 244u8 , 14u8 , 155u8 , 76u8 , 249u8 , 153u8 , 140u8 , 179u8 , 7u8 , 96u8 , 170u8 , 236u8 , 179u8 , 4u8 , 18u8 , 232u8 , 146u8 , 216u8 , 51u8 , 135u8 , 116u8 , 196u8 , 117u8 , 143u8 , 153u8 ,]) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] - pub fn list_bags_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Bag, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "ListBags", - Vec::new(), - [ - 38u8, 86u8, 63u8, 92u8, 85u8, 59u8, 225u8, 244u8, - 14u8, 155u8, 76u8, 249u8, 153u8, 140u8, 179u8, 7u8, - 96u8, 170u8, 236u8, 179u8, 4u8, 18u8, 232u8, 146u8, - 216u8, 51u8, 135u8, 116u8, 196u8, 117u8, 143u8, - 153u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The list of thresholds separating the various bags."] - #[doc = ""] - #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] - #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] - #[doc = " is less than or equal to its upper threshold."] - #[doc = ""] - #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] - #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] - #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] - #[doc = ""] - #[doc = " # Expressing the constant"] - #[doc = ""] - #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] - #[doc = " permitted."] - #[doc = ""] - #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] - #[doc = " specified within the bag. For any two threshold lists, if one ends with"] - #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] - #[doc = " lists will behave identically."] - #[doc = ""] - #[doc = " # Calculation"] - #[doc = ""] - #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] - #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] - #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] - #[doc = ""] - #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] - #[doc = ""] - #[doc = " # Examples"] - #[doc = ""] - #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] - #[doc = " iteration is strictly in insertion order."] - #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is equal to 2."] - #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] - #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] - #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] - #[doc = ""] - #[doc = " # Migration"] - #[doc = ""] - #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] - #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub fn bag_thresholds( - &self, - ) -> ::subxt::constants::Address< - ::std::vec::Vec<::core::primitive::u64>, - > { - ::subxt::constants::Address::new_static( - "BagsList", - "BagThresholds", - [ - 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, - 172u8, 112u8, 234u8, 25u8, 175u8, 178u8, 19u8, - 251u8, 73u8, 91u8, 192u8, 227u8, 81u8, 249u8, 45u8, - 126u8, 116u8, 7u8, 37u8, 9u8, 200u8, 167u8, 182u8, - 12u8, 131u8, - ], - ) - } - } - } - } - pub mod nomination_pools { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Join { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Join { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "join"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BondExtra { - pub extra: - runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "bond_extra"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClaimPayout; - impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_payout"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unbond { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "unbond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "pool_withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WithdrawUnbonded { - pub member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Create { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub bouncer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub bouncer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "create_with_pool_id"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: - ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "nominate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: - runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::blocks::StaticExtrinsic for SetState { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_state"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetConfigs { - pub min_join_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub min_create_bond: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub max_pools: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members_per_pool: - runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetConfigs { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_configs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_bouncer: - runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "update_roles"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Chill { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "chill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BondExtraOther { - pub member: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub extra: - runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "bond_extra_other"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetClaimPermission { - pub permission: - runtime_types::pallet_nomination_pools::ClaimPermission, - } - impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_claim_permission"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClaimPayoutOther { - pub other: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_payout_other"; - } - } - 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: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "join", - types::Join { amount, pool_id }, - [ - 205u8, 66u8, 42u8, 72u8, 146u8, 148u8, 119u8, - 162u8, 101u8, 183u8, 46u8, 176u8, 221u8, 204u8, - 197u8, 20u8, 75u8, 226u8, 29u8, 118u8, 208u8, 60u8, - 192u8, 247u8, 222u8, 100u8, 69u8, 80u8, 172u8, - 13u8, 69u8, 250u8, - ], - ) - } - #[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: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "bond_extra", - types::BondExtra { extra }, - [ - 50u8, 72u8, 181u8, 216u8, 249u8, 27u8, 250u8, - 177u8, 253u8, 22u8, 240u8, 100u8, 184u8, 202u8, - 197u8, 34u8, 21u8, 188u8, 248u8, 191u8, 11u8, 10u8, - 236u8, 161u8, 168u8, 37u8, 38u8, 238u8, 61u8, - 183u8, 86u8, 55u8, - ], - ) - } - #[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 there 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 caim rewards on bahalf of some `other` pool member."] - pub fn claim_payout( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_payout", - types::ClaimPayout {}, - [ - 128u8, 58u8, 138u8, 55u8, 64u8, 16u8, 129u8, 25u8, - 211u8, 229u8, 193u8, 115u8, 47u8, 45u8, 155u8, - 221u8, 218u8, 1u8, 222u8, 5u8, 236u8, 32u8, 88u8, - 0u8, 198u8, 72u8, 196u8, 181u8, 104u8, 16u8, 212u8, - 29u8, - ], - ) - } - #[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: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "unbond", - types::Unbond { - member_account, - unbonding_points, - }, - [ - 139u8, 71u8, 78u8, 184u8, 141u8, 89u8, 179u8, - 123u8, 153u8, 30u8, 116u8, 186u8, 148u8, 49u8, - 48u8, 98u8, 33u8, 21u8, 29u8, 106u8, 180u8, 212u8, - 37u8, 251u8, 237u8, 21u8, 255u8, 13u8, 236u8, 73u8, - 250u8, 57u8, - ], - ) - } - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their 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: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "pool_withdraw_unbonded", - types::PoolWithdrawUnbonded { - pool_id, - num_slashing_spans, - }, - [ - 152u8, 245u8, 131u8, 247u8, 106u8, 214u8, 154u8, - 8u8, 7u8, 210u8, 149u8, 218u8, 118u8, 46u8, 242u8, - 182u8, 191u8, 119u8, 28u8, 199u8, 36u8, 49u8, - 219u8, 123u8, 58u8, 203u8, 211u8, 226u8, 217u8, - 36u8, 56u8, 0u8, - ], - ) - } - #[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."] - pub fn withdraw_unbonded( - &self, - member_account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "withdraw_unbonded", - types::WithdrawUnbonded { - member_account, - num_slashing_spans, - }, - [ - 192u8, 183u8, 121u8, 87u8, 176u8, 70u8, 91u8, - 226u8, 156u8, 79u8, 87u8, 34u8, 227u8, 84u8, 22u8, - 235u8, 3u8, 181u8, 166u8, 194u8, 147u8, 72u8, 27u8, - 221u8, 57u8, 14u8, 44u8, 70u8, 253u8, 236u8, 44u8, - 84u8, - ], - ) - } - #[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` transferrable."] - pub fn create( - &self, - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - bouncer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "create", - types::Create { - amount, - root, - nominator, - bouncer, - }, - [ - 19u8, 83u8, 115u8, 108u8, 192u8, 96u8, 44u8, 77u8, - 251u8, 152u8, 61u8, 103u8, 209u8, 17u8, 84u8, - 245u8, 153u8, 174u8, 124u8, 92u8, 236u8, 72u8, - 225u8, 73u8, 89u8, 236u8, 174u8, 180u8, 60u8, - 140u8, 198u8, 59u8, - ], - ) - } - #[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: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - nominator: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - bouncer: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "create_with_pool_id", - types::CreateWithPoolId { - amount, - root, - nominator, - bouncer, - pool_id, - }, - [ - 81u8, 185u8, 201u8, 99u8, 26u8, 96u8, 149u8, 43u8, - 181u8, 3u8, 149u8, 110u8, 158u8, 178u8, 138u8, - 205u8, 79u8, 251u8, 86u8, 18u8, 128u8, 117u8, 66u8, - 220u8, 222u8, 238u8, 122u8, 177u8, 63u8, 117u8, - 104u8, 54u8, - ], - ) - } - #[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."] - pub fn nominate( - &self, - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "nominate", - types::Nominate { - pool_id, - validators, - }, - [ - 10u8, 235u8, 64u8, 157u8, 36u8, 249u8, 186u8, 27u8, - 79u8, 172u8, 25u8, 3u8, 203u8, 19u8, 192u8, 182u8, - 36u8, 103u8, 13u8, 20u8, 89u8, 140u8, 159u8, 4u8, - 132u8, 242u8, 192u8, 146u8, 55u8, 251u8, 216u8, - 255u8, - ], - ) - } - #[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: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_state", - types::SetState { pool_id, state }, - [ - 104u8, 40u8, 213u8, 88u8, 159u8, 115u8, 35u8, - 249u8, 78u8, 180u8, 99u8, 1u8, 225u8, 218u8, 192u8, - 151u8, 25u8, 194u8, 192u8, 187u8, 39u8, 170u8, - 212u8, 125u8, 75u8, 250u8, 248u8, 175u8, 159u8, - 161u8, 151u8, 162u8, - ], - ) - } - #[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"] - #[doc = "of the pool."] - pub fn set_metadata( - &self, - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_metadata", - types::SetMetadata { pool_id, metadata }, - [ - 156u8, 81u8, 170u8, 161u8, 34u8, 100u8, 183u8, - 174u8, 5u8, 81u8, 31u8, 76u8, 12u8, 42u8, 77u8, - 1u8, 6u8, 26u8, 168u8, 7u8, 8u8, 115u8, 158u8, - 151u8, 30u8, 211u8, 52u8, 177u8, 234u8, 87u8, - 125u8, 127u8, - ], - ) - } - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[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`]."] - pub fn set_configs( - &self, - 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 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_configs", - types::SetConfigs { - min_join_bond, - min_create_bond, - max_pools, - max_members, - max_members_per_pool, - }, - [ - 143u8, 196u8, 211u8, 30u8, 71u8, 15u8, 150u8, - 243u8, 7u8, 178u8, 179u8, 168u8, 40u8, 116u8, - 220u8, 140u8, 18u8, 206u8, 6u8, 189u8, 190u8, 37u8, - 68u8, 41u8, 45u8, 233u8, 247u8, 172u8, 185u8, 34u8, - 243u8, 187u8, - ], - ) - } - #[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: ::core::primitive::u32, - new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "update_roles", - types::UpdateRoles { - pool_id, - new_root, - new_nominator, - new_bouncer, - }, - [ - 15u8, 154u8, 204u8, 28u8, 204u8, 120u8, 174u8, - 203u8, 186u8, 33u8, 123u8, 201u8, 143u8, 120u8, - 193u8, 49u8, 164u8, 178u8, 55u8, 234u8, 126u8, - 247u8, 123u8, 73u8, 147u8, 107u8, 43u8, 72u8, - 217u8, 4u8, 199u8, 253u8, - ], - ) - } - #[doc = "Chill 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, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] - pub fn chill( - &self, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "chill", - types::Chill { pool_id }, - [ - 41u8, 114u8, 128u8, 121u8, 244u8, 15u8, 15u8, 52u8, - 129u8, 88u8, 239u8, 167u8, 216u8, 38u8, 123u8, - 240u8, 172u8, 229u8, 132u8, 64u8, 175u8, 87u8, - 217u8, 27u8, 11u8, 124u8, 1u8, 140u8, 40u8, 191u8, - 187u8, 36u8, - ], - ) - } - #[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 = "`PermissionlessAll` or `PermissionlessCompound`."] - pub fn bond_extra_other( - &self, - member: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "bond_extra_other", - types::BondExtraOther { member, extra }, - [ - 1u8, 73u8, 186u8, 39u8, 247u8, 130u8, 155u8, 185u8, - 212u8, 110u8, 151u8, 12u8, 18u8, 195u8, 106u8, - 28u8, 194u8, 130u8, 54u8, 59u8, 184u8, 192u8, - 141u8, 227u8, 102u8, 210u8, 76u8, 41u8, 196u8, - 90u8, 215u8, 84u8, - ], - ) - } - #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] - #[doc = "bonding and withdrawing."] - #[doc = ""] - #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] - #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] - #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] - #[doc = "pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `origin` - Member of a pool."] - #[doc = "* `actor` - Account to claim reward. // improve this"] - pub fn set_claim_permission( - &self, - permission : runtime_types :: pallet_nomination_pools :: ClaimPermission, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_claim_permission", - types::SetClaimPermission { permission }, - [ - 23u8, 253u8, 135u8, 53u8, 83u8, 71u8, 182u8, 223u8, - 123u8, 57u8, 93u8, 154u8, 110u8, 91u8, 63u8, 241u8, - 144u8, 218u8, 129u8, 238u8, 169u8, 9u8, 215u8, - 76u8, 65u8, 168u8, 103u8, 44u8, 40u8, 39u8, 34u8, - 16u8, - ], - ) - } - #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] - #[doc = ""] - #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] - #[doc = "for this call to be successful."] - pub fn claim_payout_other( - &self, - other: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_payout_other", - types::ClaimPayoutOther { other }, - [ - 52u8, 165u8, 191u8, 125u8, 180u8, 54u8, 27u8, - 235u8, 195u8, 22u8, 55u8, 183u8, 209u8, 63u8, - 116u8, 88u8, 154u8, 74u8, 100u8, 103u8, 88u8, 76u8, - 35u8, 14u8, 39u8, 156u8, 219u8, 253u8, 123u8, - 104u8, 168u8, 76u8, - ], - ) - } - } - } - #[doc = "Events of this pallet."] - pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool has been created."] - pub struct Created { - pub depositor: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has became bonded in a pool."] - pub struct Bonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub bonded: ::core::primitive::u128, - pub joined: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A payout has been made to a member."] - pub struct PaidOut { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PaidOut { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PaidOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - pub struct Unbonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - pub era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - pub struct Withdrawn { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool has been destroyed."] - pub struct Destroyed { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The state of a pool has changed"] - pub struct StateChanged { - pub pool_id: ::core::primitive::u32, - pub new_state: - runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::events::StaticEvent for StateChanged { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "StateChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - pub struct MemberRemoved { - pub pool_id: ::core::primitive::u32, - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "MemberRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - pub struct RolesUpdated { - pub root: ::core::option::Option<::subxt::utils::AccountId32>, - pub bouncer: - ::core::option::Option<::subxt::utils::AccountId32>, - pub nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for RolesUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "RolesUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - pub struct PoolSlashed { - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - pub struct UnbondingPoolSlashed { - pub pool_id: ::core::primitive::u32, - pub era: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "UnbondingPoolSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Minimum amount to bond to join a pool."] - pub fn min_join_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MinJoinBond", - vec![], - [ - 125u8, 239u8, 45u8, 225u8, 74u8, 129u8, 247u8, - 184u8, 205u8, 58u8, 45u8, 186u8, 126u8, 170u8, - 112u8, 120u8, 23u8, 190u8, 247u8, 97u8, 131u8, - 126u8, 215u8, 44u8, 147u8, 122u8, 132u8, 212u8, - 217u8, 84u8, 240u8, 91u8, - ], - ) - } - #[doc = " Minimum bond required to create a pool."] - #[doc = ""] - #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] - #[doc = " indication of \"skin in the game\"."] - #[doc = ""] - #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] - #[doc = " while all other accounts leave."] - pub fn min_create_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MinCreateBond", - vec![], - [ - 31u8, 208u8, 240u8, 158u8, 23u8, 218u8, 212u8, - 138u8, 92u8, 210u8, 207u8, 170u8, 32u8, 60u8, 5u8, - 21u8, 84u8, 162u8, 1u8, 111u8, 181u8, 243u8, 24u8, - 148u8, 193u8, 253u8, 248u8, 190u8, 16u8, 222u8, - 219u8, 67u8, - ], - ) - } - #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] - #[doc = " pools can exist."] - pub fn max_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPools", - vec![], - [ - 216u8, 111u8, 68u8, 103u8, 33u8, 50u8, 109u8, 3u8, - 176u8, 195u8, 23u8, 73u8, 112u8, 138u8, 9u8, 194u8, - 233u8, 73u8, 68u8, 215u8, 162u8, 255u8, 217u8, - 173u8, 141u8, 27u8, 72u8, 199u8, 7u8, 240u8, 25u8, - 34u8, - ], - ) - } - #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] - #[doc = " members are not bound on a system wide basis."] - pub fn max_pool_members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPoolMembers", - vec![], - [ - 82u8, 217u8, 26u8, 234u8, 223u8, 241u8, 66u8, - 182u8, 43u8, 233u8, 59u8, 242u8, 202u8, 254u8, - 69u8, 50u8, 254u8, 196u8, 166u8, 89u8, 120u8, 87u8, - 76u8, 148u8, 31u8, 197u8, 49u8, 88u8, 206u8, 41u8, - 242u8, 62u8, - ], - ) - } - #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] - #[doc = " members is not bound on a per pool basis."] - pub fn max_pool_members_per_pool( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPoolMembersPerPool", - vec![], - [ - 93u8, 241u8, 16u8, 169u8, 138u8, 199u8, 128u8, - 149u8, 65u8, 30u8, 55u8, 11u8, 41u8, 252u8, 83u8, - 250u8, 9u8, 33u8, 152u8, 239u8, 195u8, 147u8, 16u8, - 248u8, 180u8, 153u8, 88u8, 231u8, 248u8, 169u8, - 186u8, 48u8, - ], - ) - } - #[doc = " Active members."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn pool_members( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::PoolMember, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "PoolMembers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [252u8 , 236u8 , 201u8 , 127u8 , 219u8 , 1u8 , 19u8 , 144u8 , 5u8 , 108u8 , 70u8 , 30u8 , 177u8 , 232u8 , 253u8 , 237u8 , 211u8 , 91u8 , 63u8 , 62u8 , 155u8 , 151u8 , 153u8 , 165u8 , 206u8 , 53u8 , 111u8 , 31u8 , 60u8 , 120u8 , 100u8 , 249u8 ,]) - } - #[doc = " Active members."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn pool_members_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::PoolMember, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "PoolMembers", - Vec::new(), - [ - 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, - 144u8, 5u8, 108u8, 70u8, 30u8, 177u8, 232u8, 253u8, - 237u8, 211u8, 91u8, 63u8, 62u8, 155u8, 151u8, - 153u8, 165u8, 206u8, 53u8, 111u8, 31u8, 60u8, - 120u8, 100u8, 249u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_pool_members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForPoolMembers", - vec![], - [ - 114u8, 126u8, 27u8, 138u8, 119u8, 44u8, 45u8, - 129u8, 84u8, 107u8, 171u8, 206u8, 117u8, 141u8, - 20u8, 75u8, 229u8, 237u8, 31u8, 229u8, 124u8, - 190u8, 27u8, 124u8, 63u8, 59u8, 167u8, 42u8, 62u8, - 212u8, 160u8, 2u8, - ], - ) - } - #[doc = " Storage for bonded pools."] - pub fn bonded_pools( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::BondedPoolInner, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "BondedPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [212u8 , 206u8 , 61u8 , 226u8 , 20u8 , 35u8 , 147u8 , 132u8 , 46u8 , 199u8 , 141u8 , 175u8 , 77u8 , 16u8 , 253u8 , 92u8 , 6u8 , 197u8 , 209u8 , 39u8 , 192u8 , 226u8 , 188u8 , 67u8 , 47u8 , 196u8 , 249u8 , 68u8 , 148u8 , 193u8 , 203u8 , 81u8 ,]) - } - #[doc = " Storage for bonded pools."] - pub fn bonded_pools_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::BondedPoolInner, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "BondedPools", - Vec::new(), - [ - 212u8, 206u8, 61u8, 226u8, 20u8, 35u8, 147u8, - 132u8, 46u8, 199u8, 141u8, 175u8, 77u8, 16u8, - 253u8, 92u8, 6u8, 197u8, 209u8, 39u8, 192u8, 226u8, - 188u8, 67u8, 47u8, 196u8, 249u8, 68u8, 148u8, - 193u8, 203u8, 81u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_bonded_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForBondedPools", - vec![], - [ - 134u8, 94u8, 199u8, 73u8, 174u8, 253u8, 66u8, - 242u8, 233u8, 244u8, 140u8, 170u8, 242u8, 40u8, - 41u8, 185u8, 183u8, 151u8, 58u8, 111u8, 221u8, - 225u8, 81u8, 71u8, 169u8, 219u8, 223u8, 135u8, 8u8, - 171u8, 180u8, 236u8, - ], - ) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] - pub fn reward_pools( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::RewardPool, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "RewardPools" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [139u8 , 123u8 , 46u8 , 107u8 , 9u8 , 83u8 , 141u8 , 12u8 , 188u8 , 225u8 , 170u8 , 215u8 , 154u8 , 21u8 , 100u8 , 95u8 , 237u8 , 245u8 , 46u8 , 216u8 , 199u8 , 184u8 , 187u8 , 155u8 , 8u8 , 16u8 , 34u8 , 177u8 , 153u8 , 65u8 , 109u8 , 198u8 ,]) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] - pub fn reward_pools_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::RewardPool, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "RewardPools", - Vec::new(), - [ - 139u8, 123u8, 46u8, 107u8, 9u8, 83u8, 141u8, 12u8, - 188u8, 225u8, 170u8, 215u8, 154u8, 21u8, 100u8, - 95u8, 237u8, 245u8, 46u8, 216u8, 199u8, 184u8, - 187u8, 155u8, 8u8, 16u8, 34u8, 177u8, 153u8, 65u8, - 109u8, 198u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_reward_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForRewardPools", - vec![], - [ - 209u8, 139u8, 212u8, 116u8, 210u8, 178u8, 213u8, - 38u8, 75u8, 23u8, 188u8, 57u8, 253u8, 213u8, 95u8, - 118u8, 182u8, 250u8, 45u8, 205u8, 17u8, 175u8, - 17u8, 201u8, 234u8, 14u8, 98u8, 49u8, 143u8, 135u8, - 201u8, 81u8, - ], - ) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] - pub fn sub_pools_storage( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::SubPools, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "SubPoolsStorage" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [231u8 , 13u8 , 111u8 , 248u8 , 1u8 , 208u8 , 179u8 , 134u8 , 224u8 , 196u8 , 94u8 , 201u8 , 229u8 , 29u8 , 155u8 , 211u8 , 163u8 , 150u8 , 157u8 , 34u8 , 68u8 , 238u8 , 55u8 , 4u8 , 222u8 , 96u8 , 186u8 , 29u8 , 205u8 , 237u8 , 80u8 , 42u8 ,]) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] - pub fn sub_pools_storage_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::SubPools, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "SubPoolsStorage", - Vec::new(), - [ - 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, - 134u8, 224u8, 196u8, 94u8, 201u8, 229u8, 29u8, - 155u8, 211u8, 163u8, 150u8, 157u8, 34u8, 68u8, - 238u8, 55u8, 4u8, 222u8, 96u8, 186u8, 29u8, 205u8, - 237u8, 80u8, 42u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_sub_pools_storage( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForSubPoolsStorage", - vec![], - [ - 212u8, 145u8, 212u8, 226u8, 234u8, 31u8, 26u8, - 240u8, 107u8, 91u8, 171u8, 120u8, 41u8, 195u8, - 16u8, 86u8, 55u8, 127u8, 103u8, 93u8, 128u8, 48u8, - 69u8, 104u8, 168u8, 236u8, 81u8, 54u8, 2u8, 184u8, - 215u8, 51u8, - ], - ) - } - #[doc = " Metadata for the pool."] - pub fn metadata( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "Metadata" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [108u8 , 250u8 , 163u8 , 54u8 , 192u8 , 143u8 , 239u8 , 62u8 , 97u8 , 163u8 , 161u8 , 215u8 , 171u8 , 225u8 , 49u8 , 18u8 , 37u8 , 200u8 , 143u8 , 254u8 , 136u8 , 26u8 , 54u8 , 187u8 , 39u8 , 3u8 , 216u8 , 24u8 , 188u8 , 25u8 , 243u8 , 251u8 ,]) - } - #[doc = " Metadata for the pool."] - pub fn metadata_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "Metadata", - Vec::new(), - [ - 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, - 62u8, 97u8, 163u8, 161u8, 215u8, 171u8, 225u8, - 49u8, 18u8, 37u8, 200u8, 143u8, 254u8, 136u8, 26u8, - 54u8, 187u8, 39u8, 3u8, 216u8, 24u8, 188u8, 25u8, - 243u8, 251u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_metadata( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForMetadata", - vec![], - [ - 190u8, 232u8, 77u8, 134u8, 245u8, 89u8, 160u8, - 187u8, 163u8, 68u8, 188u8, 204u8, 31u8, 145u8, - 219u8, 165u8, 213u8, 1u8, 167u8, 90u8, 175u8, - 218u8, 147u8, 144u8, 158u8, 226u8, 23u8, 233u8, - 55u8, 168u8, 161u8, 237u8, - ], - ) - } - #[doc = " Ever increasing number of all pools created so far."] - pub fn last_pool_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "LastPoolId", - vec![], - [ - 50u8, 254u8, 218u8, 41u8, 213u8, 184u8, 170u8, - 166u8, 31u8, 29u8, 196u8, 57u8, 215u8, 20u8, 40u8, - 40u8, 19u8, 22u8, 9u8, 184u8, 11u8, 21u8, 21u8, - 125u8, 97u8, 38u8, 219u8, 209u8, 2u8, 238u8, 247u8, - 51u8, - ], - ) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] - pub fn reverse_pool_id_lookup( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ReversePoolIdLookup" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [178u8 , 161u8 , 51u8 , 220u8 , 128u8 , 1u8 , 135u8 , 83u8 , 236u8 , 159u8 , 36u8 , 237u8 , 120u8 , 128u8 , 6u8 , 191u8 , 41u8 , 159u8 , 94u8 , 178u8 , 174u8 , 235u8 , 221u8 , 173u8 , 44u8 , 81u8 , 211u8 , 255u8 , 231u8 , 81u8 , 16u8 , 87u8 ,]) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] - pub fn reverse_pool_id_lookup_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ReversePoolIdLookup", - Vec::new(), - [ - 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, - 236u8, 159u8, 36u8, 237u8, 120u8, 128u8, 6u8, - 191u8, 41u8, 159u8, 94u8, 178u8, 174u8, 235u8, - 221u8, 173u8, 44u8, 81u8, 211u8, 255u8, 231u8, - 81u8, 16u8, 87u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_reverse_pool_id_lookup( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForReversePoolIdLookup", - vec![], - [ - 148u8, 83u8, 81u8, 33u8, 188u8, 72u8, 148u8, 208u8, - 245u8, 178u8, 52u8, 245u8, 229u8, 140u8, 100u8, - 152u8, 8u8, 217u8, 161u8, 80u8, 226u8, 42u8, 15u8, - 252u8, 90u8, 197u8, 120u8, 114u8, 144u8, 90u8, - 199u8, 123u8, - ], - ) - } - #[doc = " Map from a pool member account to their opted claim permission."] - pub fn claim_permissions( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::ClaimPermission, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("NominationPools" , "ClaimPermissions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [23u8 , 124u8 , 83u8 , 109u8 , 174u8 , 228u8 , 170u8 , 25u8 , 124u8 , 91u8 , 224u8 , 66u8 , 55u8 , 127u8 , 190u8 , 226u8 , 163u8 , 16u8 , 81u8 , 231u8 , 241u8 , 214u8 , 209u8 , 137u8 , 101u8 , 206u8 , 104u8 , 138u8 , 49u8 , 56u8 , 152u8 , 228u8 ,]) - } - #[doc = " Map from a pool member account to their opted claim permission."] - pub fn claim_permissions_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::ClaimPermission, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ClaimPermissions", - Vec::new(), - [ - 23u8, 124u8, 83u8, 109u8, 174u8, 228u8, 170u8, - 25u8, 124u8, 91u8, 224u8, 66u8, 55u8, 127u8, 190u8, - 226u8, 163u8, 16u8, 81u8, 231u8, 241u8, 214u8, - 209u8, 137u8, 101u8, 206u8, 104u8, 138u8, 49u8, - 56u8, 152u8, 228u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The nomination pool's pallet id."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address< - runtime_types::frame_support::PalletId, - > { - ::subxt::constants::Address::new_static( - "NominationPools", - "PalletId", - [ - 139u8, 109u8, 228u8, 151u8, 252u8, 32u8, 130u8, - 69u8, 112u8, 154u8, 174u8, 45u8, 83u8, 245u8, 51u8, - 132u8, 173u8, 5u8, 186u8, 24u8, 243u8, 9u8, 12u8, - 214u8, 80u8, 74u8, 69u8, 189u8, 30u8, 94u8, 22u8, - 39u8, - ], - ) - } - #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] - #[doc = ""] - #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] - #[doc = " ratio becomes disproportional."] - #[doc = ""] - #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] - #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] - #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] - #[doc = " the chain, in the absolute worse case."] - #[doc = ""] - #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] - #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] - pub fn max_points_to_balance( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u8> - { - ::subxt::constants::Address::new_static( - "NominationPools", - "MaxPointsToBalance", - [ - 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, - 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, - 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, - 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, - 228u8, 183u8, 165u8, - ], - ) - } - } - } - } - pub mod staking { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Bond { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Bond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "bond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "bond_extra"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "unbond"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::blocks::StaticExtrinsic for Validate { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "validate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "nominate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Chill; - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "chill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetPayee { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_payee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetController { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_controller"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "increase_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ScaleValidatorCount { - pub factor: - runtime_types::sp_arithmetic::per_things::Percent, - } - impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "scale_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceNoEras; - impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_no_eras"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceNewEra; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetInvulnerables { - pub invulnerables: - ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_invulnerables"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_unstake"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceNewEraAlways; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era_always"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, - } - impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "cancel_deferred_slash"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "payout_stakers"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Rebond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "rebond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ReapStash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "reap_stash"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Kick { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "kick"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetStakingConfigs { - pub min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_staking_configs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ChillOther { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "chill_other"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_apply_min_commission"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMinCommission { - pub new: runtime_types::sp_arithmetic::per_things::Perbill, - } - impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_min_commission"; - } - } - 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_ and gets removed as dust."] - pub fn bond( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "bond", - types::Bond { - controller, - value, - payee, - }, - [ - 140u8, 13u8, 108u8, 181u8, 212u8, 177u8, 190u8, - 212u8, 163u8, 40u8, 120u8, 232u8, 126u8, 213u8, - 6u8, 181u8, 99u8, 252u8, 58u8, 54u8, 139u8, 64u8, - 67u8, 76u8, 53u8, 226u8, 11u8, 133u8, 235u8, 159u8, - 103u8, 210u8, - ], - ) - } - #[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: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "bond_extra", - types::BondExtra { max_additional }, - [ - 60u8, 45u8, 82u8, 223u8, 113u8, 95u8, 0u8, 71u8, - 59u8, 108u8, 228u8, 9u8, 95u8, 210u8, 113u8, 106u8, - 252u8, 15u8, 19u8, 128u8, 11u8, 187u8, 4u8, 151u8, - 103u8, 143u8, 24u8, 33u8, 149u8, 82u8, 35u8, 192u8, - ], - ) - } - #[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: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "unbond", - types::Unbond { value }, - [ - 85u8, 62u8, 34u8, 127u8, 60u8, 241u8, 134u8, 60u8, - 125u8, 91u8, 31u8, 193u8, 50u8, 230u8, 237u8, 42u8, - 114u8, 230u8, 240u8, 146u8, 14u8, 109u8, 185u8, - 151u8, 148u8, 44u8, 147u8, 182u8, 192u8, 253u8, - 51u8, 87u8, - ], - ) - } - #[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"] - #[doc = "whatever 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 = "## 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: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "withdraw_unbonded", - types::WithdrawUnbonded { num_slashing_spans }, - [ - 95u8, 223u8, 122u8, 217u8, 76u8, 208u8, 86u8, - 129u8, 31u8, 104u8, 70u8, 154u8, 23u8, 250u8, - 165u8, 192u8, 149u8, 249u8, 158u8, 159u8, 194u8, - 224u8, 118u8, 134u8, 204u8, 157u8, 72u8, 136u8, - 19u8, 193u8, 183u8, 84u8, - ], - ) - } - #[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: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "validate", - types::Validate { prefs }, - [ - 191u8, 116u8, 139u8, 35u8, 250u8, 211u8, 86u8, - 240u8, 35u8, 9u8, 19u8, 44u8, 148u8, 35u8, 91u8, - 106u8, 200u8, 172u8, 108u8, 145u8, 194u8, 146u8, - 61u8, 145u8, 233u8, 168u8, 2u8, 26u8, 145u8, 101u8, - 114u8, 157u8, - ], - ) - } - #[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: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "nominate", - types::Nominate { targets }, - [ - 249u8, 66u8, 140u8, 39u8, 26u8, 221u8, 135u8, - 225u8, 98u8, 255u8, 13u8, 54u8, 106u8, 215u8, - 129u8, 156u8, 190u8, 83u8, 178u8, 170u8, 116u8, - 27u8, 8u8, 244u8, 56u8, 73u8, 164u8, 223u8, 199u8, - 115u8, 168u8, 83u8, - ], - ) - } - #[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::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill", - types::Chill {}, - [ - 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, - 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, - 166u8, 230u8, 56u8, 16u8, 222u8, 31u8, 153u8, - 120u8, 62u8, 153u8, 67u8, 220u8, 239u8, 11u8, - 234u8, 127u8, 122u8, - ], - ) - } - #[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: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_payee", - types::SetPayee { payee }, - [ - 96u8, 8u8, 254u8, 164u8, 87u8, 46u8, 120u8, 11u8, - 197u8, 63u8, 20u8, 178u8, 167u8, 236u8, 149u8, - 245u8, 14u8, 171u8, 108u8, 195u8, 250u8, 133u8, - 0u8, 75u8, 192u8, 159u8, 84u8, 220u8, 242u8, 133u8, - 60u8, 62u8, - ], - ) - } - #[doc = "(Re-)set the controller of a stash."] - #[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, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_controller", - types::SetController { controller }, - [ - 154u8, 80u8, 184u8, 176u8, 74u8, 106u8, 72u8, - 242u8, 64u8, 81u8, 169u8, 157u8, 200u8, 97u8, - 117u8, 192u8, 143u8, 166u8, 38u8, 235u8, 75u8, - 161u8, 177u8, 229u8, 229u8, 82u8, 95u8, 39u8, 40u8, - 116u8, 9u8, 204u8, - ], - ) - } - #[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: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_validator_count", - types::SetValidatorCount { new }, - [ - 55u8, 232u8, 95u8, 66u8, 228u8, 217u8, 11u8, 27u8, - 3u8, 202u8, 199u8, 242u8, 70u8, 160u8, 250u8, - 187u8, 194u8, 91u8, 15u8, 36u8, 215u8, 36u8, 160u8, - 108u8, 251u8, 60u8, 240u8, 202u8, 249u8, 235u8, - 28u8, 94u8, - ], - ) - } - #[doc = "Increments the ideal number of validators upto 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: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "increase_validator_count", - types::IncreaseValidatorCount { additional }, - [ - 239u8, 184u8, 155u8, 213u8, 25u8, 22u8, 193u8, - 13u8, 102u8, 192u8, 82u8, 153u8, 249u8, 192u8, - 60u8, 158u8, 8u8, 78u8, 175u8, 219u8, 46u8, 51u8, - 222u8, 193u8, 193u8, 201u8, 78u8, 90u8, 58u8, 86u8, - 196u8, 17u8, - ], - ) - } - #[doc = "Scale up the ideal number of validators by a factor upto 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: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "scale_validator_count", - types::ScaleValidatorCount { factor }, - [ - 198u8, 68u8, 227u8, 94u8, 110u8, 157u8, 209u8, - 217u8, 112u8, 37u8, 78u8, 142u8, 12u8, 193u8, - 219u8, 167u8, 149u8, 112u8, 49u8, 139u8, 74u8, - 81u8, 172u8, 72u8, 253u8, 224u8, 56u8, 194u8, - 185u8, 90u8, 87u8, 125u8, - ], - ) - } - #[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::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_no_eras", - types::ForceNoEras {}, - [ - 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, - 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, - 91u8, 120u8, 75u8, 24u8, 125u8, 53u8, 9u8, 28u8, - 242u8, 87u8, 245u8, 55u8, 40u8, 103u8, 151u8, - 178u8, - ], - ) - } - #[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::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era", - types::ForceNewEra {}, - [ - 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, - 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, - 126u8, 73u8, 136u8, 162u8, 158u8, 174u8, 201u8, - 213u8, 230u8, 215u8, 44u8, 200u8, 32u8, 75u8, 27u8, - 23u8, 254u8, - ], - ) - } - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn set_invulnerables( - &self, - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_invulnerables", - types::SetInvulnerables { invulnerables }, - [ - 2u8, 148u8, 221u8, 111u8, 153u8, 48u8, 222u8, 36u8, - 228u8, 84u8, 18u8, 35u8, 168u8, 239u8, 53u8, 245u8, - 27u8, 76u8, 18u8, 203u8, 206u8, 9u8, 8u8, 81u8, - 35u8, 224u8, 22u8, 133u8, 58u8, 99u8, 103u8, 39u8, - ], - ) - } - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - pub fn force_unstake( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_unstake", - types::ForceUnstake { - stash, - num_slashing_spans, - }, - [ - 94u8, 247u8, 238u8, 47u8, 250u8, 6u8, 96u8, 175u8, - 173u8, 123u8, 161u8, 187u8, 162u8, 214u8, 176u8, - 233u8, 33u8, 33u8, 167u8, 239u8, 40u8, 223u8, 19u8, - 131u8, 230u8, 39u8, 175u8, 200u8, 36u8, 182u8, - 76u8, 207u8, - ], - ) - } - #[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::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era_always", - types::ForceNewEraAlways {}, - [ - 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, - 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, - 117u8, 147u8, 225u8, 118u8, 34u8, 177u8, 197u8, - 158u8, 8u8, 82u8, 202u8, 108u8, 208u8, 26u8, 64u8, - 33u8, 74u8, 43u8, - ], - ) - } - #[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: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "cancel_deferred_slash", - types::CancelDeferredSlash { era, slash_indices }, - [ - 120u8, 57u8, 162u8, 105u8, 91u8, 250u8, 129u8, - 240u8, 110u8, 234u8, 170u8, 98u8, 164u8, 65u8, - 106u8, 101u8, 19u8, 88u8, 146u8, 210u8, 171u8, - 44u8, 37u8, 50u8, 65u8, 178u8, 37u8, 223u8, 239u8, - 197u8, 116u8, 168u8, - ], - ) - } - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[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 = "## Complexity"] - #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] - pub fn payout_stakers( - &self, - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "payout_stakers", - types::PayoutStakers { - validator_stash, - era, - }, - [ - 184u8, 194u8, 33u8, 118u8, 7u8, 203u8, 89u8, 119u8, - 214u8, 76u8, 178u8, 20u8, 82u8, 111u8, 57u8, 132u8, - 212u8, 43u8, 232u8, 91u8, 252u8, 49u8, 42u8, 115u8, - 1u8, 181u8, 154u8, 207u8, 144u8, 206u8, 205u8, - 33u8, - ], - ) - } - #[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: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "rebond", - types::Rebond { value }, - [ - 25u8, 22u8, 191u8, 172u8, 133u8, 101u8, 139u8, - 102u8, 134u8, 16u8, 136u8, 56u8, 137u8, 162u8, 4u8, - 253u8, 196u8, 30u8, 234u8, 49u8, 102u8, 68u8, - 145u8, 96u8, 148u8, 219u8, 162u8, 17u8, 177u8, - 184u8, 34u8, 113u8, - ], - ) - } - #[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 = ""] - #[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."] - pub fn reap_stash( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "reap_stash", - types::ReapStash { - stash, - num_slashing_spans, - }, - [ - 34u8, 168u8, 120u8, 161u8, 95u8, 199u8, 106u8, - 233u8, 61u8, 240u8, 166u8, 31u8, 183u8, 165u8, - 158u8, 179u8, 32u8, 130u8, 27u8, 164u8, 112u8, - 44u8, 14u8, 125u8, 227u8, 87u8, 70u8, 203u8, 194u8, - 24u8, 212u8, 177u8, - ], - ) - } - #[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: ::std::vec::Vec< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "kick", - types::Kick { who }, - [ - 94u8, 27u8, 18u8, 16u8, 126u8, 129u8, 47u8, 169u8, - 114u8, 84u8, 48u8, 95u8, 235u8, 237u8, 33u8, 118u8, - 115u8, 243u8, 166u8, 120u8, 121u8, 70u8, 227u8, - 240u8, 205u8, 240u8, 211u8, 202u8, 251u8, 232u8, - 209u8, 12u8, - ], - ) - } - #[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 : 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 >, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_staking_configs", - types::SetStakingConfigs { - min_nominator_bond, - min_validator_bond, - max_nominator_count, - max_validator_count, - chill_threshold, - min_commission, - }, - [ - 176u8, 168u8, 155u8, 176u8, 27u8, 79u8, 223u8, - 92u8, 88u8, 93u8, 223u8, 69u8, 179u8, 250u8, 138u8, - 138u8, 87u8, 220u8, 36u8, 3u8, 126u8, 213u8, 16u8, - 68u8, 3u8, 16u8, 218u8, 151u8, 98u8, 169u8, 217u8, - 75u8, - ], - ) - } - #[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, - controller: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill_other", - types::ChillOther { controller }, - [ - 140u8, 98u8, 4u8, 203u8, 91u8, 131u8, 123u8, 119u8, - 169u8, 47u8, 188u8, 23u8, 205u8, 170u8, 82u8, - 220u8, 166u8, 170u8, 135u8, 176u8, 68u8, 228u8, - 14u8, 67u8, 42u8, 52u8, 140u8, 231u8, 62u8, 167u8, - 80u8, 173u8, - ], - ) - } - #[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: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "force_apply_min_commission", - types::ForceApplyMinCommission { validator_stash }, - [ - 136u8, 163u8, 85u8, 134u8, 240u8, 247u8, 183u8, - 227u8, 226u8, 202u8, 102u8, 186u8, 138u8, 119u8, - 78u8, 123u8, 229u8, 135u8, 129u8, 241u8, 119u8, - 106u8, 41u8, 182u8, 121u8, 181u8, 242u8, 175u8, - 74u8, 207u8, 64u8, 106u8, - ], - ) - } - #[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: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Staking", - "set_min_commission", - types::SetMinCommission { new }, - [ - 62u8, 139u8, 175u8, 245u8, 212u8, 113u8, 117u8, - 130u8, 191u8, 173u8, 78u8, 97u8, 19u8, 104u8, - 185u8, 207u8, 201u8, 14u8, 200u8, 208u8, 184u8, - 195u8, 242u8, 175u8, 158u8, 156u8, 51u8, 58u8, - 118u8, 154u8, 68u8, 221u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] - #[doc = "the remainder from the maximum amount of reward."] - pub struct EraPaid { - pub era_index: ::core::primitive::u32, - pub validator_payout: ::core::primitive::u128, - pub remainder: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for EraPaid { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "EraPaid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The nominator has been rewarded by this amount."] - pub struct Rewarded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A staker (validator or nominator) has been slashed by the given amount."] - pub struct Slashed { - pub staker: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] - #[doc = "era as been reported."] - pub struct SlashReported { - pub validator: ::subxt::utils::AccountId32, - pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, - pub slash_era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "SlashReported"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An old slashing report from a prior era was discarded because it could"] - #[doc = "not be processed."] - pub struct OldSlashingReportDiscarded { - pub session_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "OldSlashingReportDiscarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new set of stakers was elected."] - pub struct StakersElected; - impl ::subxt::events::StaticEvent for StakersElected { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakersElected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has bonded this amount. \\[stash, amount\\]"] - #[doc = ""] - #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] - #[doc = "it will not be emitted for staking rewards when they are added to stake."] - pub struct Bonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has unbonded this amount."] - pub struct Unbonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] - #[doc = "from the unlocking queue."] - pub struct Withdrawn { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A nominator has been kicked from a validator."] - pub struct Kicked { - pub nominator: ::subxt::utils::AccountId32, - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Kicked { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Kicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The election failed. No new era is planned."] - pub struct StakingElectionFailed; - impl ::subxt::events::StaticEvent for StakingElectionFailed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakingElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has stopped participating as either a validator or nominator."] - pub struct Chilled { - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Chilled { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Chilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The stakers' rewards are getting paid."] - pub struct PayoutStarted { - pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for PayoutStarted { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "PayoutStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A validator has set their preferences."] - pub struct ValidatorPrefsSet { - pub stash: ::subxt::utils::AccountId32, - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ValidatorPrefsSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new force era mode was set."] - pub struct ForceEra { - pub mode: runtime_types::pallet_staking::Forcing, - } - impl ::subxt::events::StaticEvent for ForceEra { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ForceEra"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The ideal number of active validators."] - pub fn validator_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorCount", - vec![], - [ - 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, - 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, - 184u8, 207u8, 6u8, 0u8, 126u8, 221u8, 67u8, 125u8, - 218u8, 188u8, 245u8, 156u8, 188u8, 34u8, 85u8, - 208u8, 197u8, - ], - ) - } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] - pub fn minimum_validator_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumValidatorCount", - vec![], - [ - 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, - 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, - 175u8, 1u8, 234u8, 162u8, 91u8, 252u8, 127u8, 68u8, - 243u8, 241u8, 13u8, 107u8, 214u8, 70u8, 87u8, - 249u8, - ], - ) - } - #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] - #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] - #[doc = " invulnerables) and restricted to testnets."] - pub fn invulnerables( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Invulnerables", - vec![], - [ - 77u8, 78u8, 63u8, 199u8, 150u8, 167u8, 135u8, - 130u8, 192u8, 51u8, 202u8, 119u8, 68u8, 49u8, - 241u8, 68u8, 82u8, 90u8, 226u8, 201u8, 96u8, 170u8, - 21u8, 173u8, 236u8, 116u8, 148u8, 8u8, 174u8, 92u8, - 7u8, 11u8, - ], - ) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn bonded( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Bonded" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [35u8 , 197u8 , 156u8 , 60u8 , 22u8 , 59u8 , 103u8 , 83u8 , 77u8 , 15u8 , 118u8 , 193u8 , 155u8 , 97u8 , 229u8 , 36u8 , 119u8 , 128u8 , 224u8 , 162u8 , 21u8 , 46u8 , 199u8 , 221u8 , 15u8 , 74u8 , 59u8 , 70u8 , 77u8 , 218u8 , 73u8 , 165u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Bonded", - Vec::new(), - [ - 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, - 77u8, 15u8, 118u8, 193u8, 155u8, 97u8, 229u8, 36u8, - 119u8, 128u8, 224u8, 162u8, 21u8, 46u8, 199u8, - 221u8, 15u8, 74u8, 59u8, 70u8, 77u8, 218u8, 73u8, - 165u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] - pub fn min_nominator_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinNominatorBond", - vec![], - [ - 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, - 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, - 127u8, 223u8, 58u8, 134u8, 81u8, 165u8, 200u8, - 142u8, 196u8, 158u8, 26u8, 38u8, 165u8, 19u8, 91u8, - 251u8, 119u8, 84u8, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a validator."] - pub fn min_validator_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinValidatorBond", - vec![], - [ - 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, - 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, - 66u8, 182u8, 92u8, 20u8, 22u8, 109u8, 155u8, 174u8, - 87u8, 118u8, 242u8, 216u8, 193u8, 154u8, 4u8, 5u8, - 66u8, 56u8, - ], - ) - } - #[doc = " The minimum active nominator stake of the last successful election."] - pub fn minimum_active_stake( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumActiveStake", - vec![], - [ - 172u8, 190u8, 228u8, 47u8, 47u8, 192u8, 182u8, - 59u8, 9u8, 18u8, 103u8, 46u8, 175u8, 54u8, 17u8, - 79u8, 89u8, 107u8, 255u8, 200u8, 182u8, 107u8, - 89u8, 157u8, 55u8, 16u8, 77u8, 46u8, 154u8, 169u8, - 103u8, 151u8, - ], - ) - } - #[doc = " The minimum amount of commission that validators can set."] - #[doc = ""] - #[doc = " If set to `0`, no limit exists."] - pub fn min_commission( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinCommission", - vec![], - [ - 61u8, 101u8, 69u8, 27u8, 220u8, 179u8, 5u8, 71u8, - 66u8, 227u8, 84u8, 98u8, 18u8, 141u8, 183u8, 49u8, - 98u8, 46u8, 123u8, 114u8, 198u8, 85u8, 15u8, 175u8, - 243u8, 239u8, 133u8, 129u8, 146u8, 174u8, 254u8, - 158u8, - ], - ) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Ledger" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [31u8 , 205u8 , 3u8 , 165u8 , 22u8 , 22u8 , 62u8 , 92u8 , 33u8 , 189u8 , 124u8 , 120u8 , 177u8 , 70u8 , 27u8 , 242u8 , 188u8 , 184u8 , 204u8 , 188u8 , 242u8 , 140u8 , 128u8 , 230u8 , 85u8 , 99u8 , 181u8 , 173u8 , 67u8 , 252u8 , 37u8 , 236u8 ,]) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Ledger", - Vec::new(), - [ - 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, - 33u8, 189u8, 124u8, 120u8, 177u8, 70u8, 27u8, - 242u8, 188u8, 184u8, 204u8, 188u8, 242u8, 140u8, - 128u8, 230u8, 85u8, 99u8, 181u8, 173u8, 67u8, - 252u8, 37u8, 236u8, - ], - ) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn payee( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Payee" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [195u8 , 125u8 , 82u8 , 213u8 , 216u8 , 64u8 , 76u8 , 63u8 , 187u8 , 163u8 , 20u8 , 230u8 , 153u8 , 13u8 , 189u8 , 232u8 , 119u8 , 118u8 , 107u8 , 17u8 , 102u8 , 245u8 , 36u8 , 42u8 , 232u8 , 137u8 , 177u8 , 165u8 , 169u8 , 246u8 , 199u8 , 57u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Payee", - Vec::new(), - [ - 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, - 187u8, 163u8, 20u8, 230u8, 153u8, 13u8, 189u8, - 232u8, 119u8, 118u8, 107u8, 17u8, 102u8, 245u8, - 36u8, 42u8, 232u8, 137u8, 177u8, 165u8, 169u8, - 246u8, 199u8, 57u8, - ], - ) - } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn validators( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Validators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [80u8 , 77u8 , 66u8 , 18u8 , 197u8 , 250u8 , 41u8 , 185u8 , 43u8 , 24u8 , 149u8 , 164u8 , 208u8 , 60u8 , 144u8 , 29u8 , 251u8 , 195u8 , 236u8 , 196u8 , 108u8 , 58u8 , 80u8 , 115u8 , 246u8 , 66u8 , 226u8 , 241u8 , 201u8 , 172u8 , 229u8 , 152u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Validators", - Vec::new(), - [ - 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, - 43u8, 24u8, 149u8, 164u8, 208u8, 60u8, 144u8, 29u8, - 251u8, 195u8, 236u8, 196u8, 108u8, 58u8, 80u8, - 115u8, 246u8, 66u8, 226u8, 241u8, 201u8, 172u8, - 229u8, 152u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CounterForValidators", - vec![], - [ - 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, - 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, - 112u8, 85u8, 49u8, 78u8, 88u8, 11u8, 8u8, 48u8, - 118u8, 34u8, 62u8, 159u8, 239u8, 122u8, 90u8, 45u8, - ], - ) - } - #[doc = " The maximum validator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] - pub fn max_validators_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MaxValidatorsCount", - vec![], - [ - 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, - 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, - 62u8, 131u8, 112u8, 64u8, 26u8, 133u8, 7u8, 130u8, - 1u8, 71u8, 158u8, 14u8, 55u8, 169u8, 239u8, 223u8, - 245u8, - ], - ) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators"] - #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] - #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] - #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] - #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] - #[doc = ""] - #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] - #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] - #[doc = " number of keys that exist."] - #[doc = ""] - #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] - #[doc = " [`Call::chill_other`] dispatchable by anyone."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn nominators( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Nominations, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "Nominators" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 154u8 , 55u8 , 170u8 , 215u8 , 64u8 , 56u8 , 83u8 , 254u8 , 19u8 , 152u8 , 85u8 , 164u8 , 171u8 , 206u8 , 129u8 , 184u8 , 45u8 , 221u8 , 181u8 , 229u8 , 133u8 , 200u8 , 231u8 , 16u8 , 146u8 , 247u8 , 21u8 , 77u8 , 122u8 , 165u8 , 134u8 ,]) - } - #[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 = " [`Config::MaxNominations`] configuration is decreased. 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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Nominations, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Nominators", - Vec::new(), - [ - 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, - 254u8, 19u8, 152u8, 85u8, 164u8, 171u8, 206u8, - 129u8, 184u8, 45u8, 221u8, 181u8, 229u8, 133u8, - 200u8, 231u8, 16u8, 146u8, 247u8, 21u8, 77u8, - 122u8, 165u8, 134u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_nominators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CounterForNominators", - vec![], - [ - 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, - 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, - 40u8, 117u8, 215u8, 46u8, 82u8, 117u8, 225u8, 1u8, - 9u8, 208u8, 83u8, 63u8, 39u8, 187u8, 207u8, 191u8, - ], - ) - } - #[doc = " The maximum nominator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] - pub fn max_nominators_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MaxNominatorsCount", - vec![], - [ - 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, - 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, - 32u8, 119u8, 3u8, 73u8, 86u8, 49u8, 104u8, 17u8, - 186u8, 98u8, 221u8, 175u8, 109u8, 254u8, 207u8, - 245u8, 125u8, 179u8, - ], - ) - } - #[doc = " The current era index."] - #[doc = ""] - #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] - #[doc = " set, it might be active or not."] - pub fn current_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentEra", - vec![], - [ - 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, - 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, - 7u8, 10u8, 117u8, 71u8, 240u8, 74u8, 86u8, 36u8, - 198u8, 37u8, 153u8, 93u8, 196u8, 22u8, 192u8, - 243u8, - ], - ) - } - #[doc = " The active era information, it holds index and start."] - #[doc = ""] - #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] - #[doc = " equal to [`SessionInterface::validators`]."] - pub fn active_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ActiveEraInfo, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ActiveEra", - vec![], - [ - 15u8, 112u8, 251u8, 183u8, 108u8, 61u8, 28u8, 71u8, - 44u8, 150u8, 162u8, 4u8, 143u8, 121u8, 11u8, 37u8, - 83u8, 29u8, 193u8, 21u8, 210u8, 116u8, 190u8, - 236u8, 213u8, 235u8, 49u8, 97u8, 189u8, 142u8, - 251u8, 124u8, - ], - ) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] - pub fn eras_start_session_index( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStartSessionIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [92u8 , 157u8 , 168u8 , 144u8 , 132u8 , 3u8 , 212u8 , 80u8 , 230u8 , 229u8 , 251u8 , 218u8 , 97u8 , 55u8 , 79u8 , 100u8 , 163u8 , 91u8 , 32u8 , 246u8 , 122u8 , 78u8 , 149u8 , 214u8 , 103u8 , 249u8 , 119u8 , 20u8 , 101u8 , 116u8 , 110u8 , 185u8 ,]) - } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` 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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStartSessionIndex", - Vec::new(), - [ - 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, - 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, - 100u8, 163u8, 91u8, 32u8, 246u8, 122u8, 78u8, - 149u8, 214u8, 103u8, 249u8, 119u8, 20u8, 101u8, - 116u8, 110u8, 185u8, - ], - ) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakers" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [192u8 , 50u8 , 152u8 , 151u8 , 92u8 , 180u8 , 206u8 , 15u8 , 139u8 , 210u8 , 128u8 , 65u8 , 92u8 , 253u8 , 43u8 , 35u8 , 139u8 , 171u8 , 73u8 , 185u8 , 32u8 , 78u8 , 20u8 , 197u8 , 154u8 , 90u8 , 233u8 , 231u8 , 23u8 , 22u8 , 187u8 , 156u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", - Vec::new(), - [ - 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, - 15u8, 139u8, 210u8, 128u8, 65u8, 92u8, 253u8, 43u8, - 35u8, 139u8, 171u8, 73u8, 185u8, 32u8, 78u8, 20u8, - 197u8, 154u8, 90u8, 233u8, 231u8, 23u8, 22u8, - 187u8, 156u8, - ], - ) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasStakersClipped" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [43u8 , 159u8 , 113u8 , 223u8 , 122u8 , 169u8 , 98u8 , 153u8 , 26u8 , 55u8 , 71u8 , 119u8 , 174u8 , 48u8 , 158u8 , 45u8 , 214u8 , 26u8 , 136u8 , 215u8 , 46u8 , 161u8 , 185u8 , 17u8 , 174u8 , 204u8 , 206u8 , 246u8 , 49u8 , 87u8 , 134u8 , 169u8 ,]) - } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` 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 = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakersClipped", - Vec::new(), - [ - 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, - 153u8, 26u8, 55u8, 71u8, 119u8, 174u8, 48u8, 158u8, - 45u8, 214u8, 26u8, 136u8, 215u8, 46u8, 161u8, - 185u8, 17u8, 174u8, 204u8, 206u8, 246u8, 49u8, - 87u8, 134u8, 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 `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorPrefs" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [6u8 , 196u8 , 209u8 , 138u8 , 252u8 , 18u8 , 203u8 , 86u8 , 129u8 , 62u8 , 4u8 , 56u8 , 234u8 , 114u8 , 141u8 , 136u8 , 127u8 , 224u8 , 142u8 , 89u8 , 150u8 , 33u8 , 31u8 , 50u8 , 140u8 , 108u8 , 124u8 , 77u8 , 188u8 , 102u8 , 230u8 , 174u8 ,]) - } - #[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 `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorPrefs", - Vec::new(), - [ - 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, - 129u8, 62u8, 4u8, 56u8, 234u8, 114u8, 141u8, 136u8, - 127u8, 224u8, 142u8, 89u8, 150u8, 33u8, 31u8, 50u8, - 140u8, 108u8, 124u8, 77u8, 188u8, 102u8, 230u8, - 174u8, - ], - ) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] - pub fn eras_validator_reward( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasValidatorReward" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [87u8 , 80u8 , 156u8 , 123u8 , 107u8 , 77u8 , 203u8 , 37u8 , 231u8 , 84u8 , 124u8 , 155u8 , 227u8 , 212u8 , 212u8 , 179u8 , 84u8 , 161u8 , 223u8 , 255u8 , 254u8 , 107u8 , 52u8 , 89u8 , 98u8 , 169u8 , 136u8 , 241u8 , 104u8 , 3u8 , 244u8 , 161u8 ,]) - } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] - pub fn eras_validator_reward_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorReward", - Vec::new(), - [ - 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, - 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, - 179u8, 84u8, 161u8, 223u8, 255u8, 254u8, 107u8, - 52u8, 89u8, 98u8, 169u8, 136u8, 241u8, 104u8, 3u8, - 244u8, 161u8, - ], - ) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] - pub fn eras_reward_points( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasRewardPoints" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [194u8 , 29u8 , 20u8 , 83u8 , 200u8 , 47u8 , 158u8 , 102u8 , 88u8 , 65u8 , 24u8 , 255u8 , 120u8 , 178u8 , 23u8 , 232u8 , 15u8 , 64u8 , 206u8 , 0u8 , 170u8 , 40u8 , 18u8 , 149u8 , 45u8 , 90u8 , 179u8 , 127u8 , 52u8 , 59u8 , 37u8 , 192u8 ,]) - } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] - pub fn eras_reward_points_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::utils::AccountId32, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasRewardPoints", - Vec::new(), - [ - 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, - 88u8, 65u8, 24u8, 255u8, 120u8, 178u8, 23u8, 232u8, - 15u8, 64u8, 206u8, 0u8, 170u8, 40u8, 18u8, 149u8, - 45u8, 90u8, 179u8, 127u8, 52u8, 59u8, 37u8, 192u8, - ], - ) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] - pub fn eras_total_stake( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ErasTotalStake" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [224u8 , 240u8 , 168u8 , 69u8 , 148u8 , 140u8 , 249u8 , 240u8 , 4u8 , 46u8 , 77u8 , 11u8 , 224u8 , 65u8 , 26u8 , 239u8 , 1u8 , 110u8 , 53u8 , 11u8 , 247u8 , 235u8 , 142u8 , 234u8 , 22u8 , 43u8 , 24u8 , 36u8 , 37u8 , 43u8 , 170u8 , 40u8 ,]) - } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] - pub fn eras_total_stake_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasTotalStake", - Vec::new(), - [ - 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, - 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, - 239u8, 1u8, 110u8, 53u8, 11u8, 247u8, 235u8, 142u8, - 234u8, 22u8, 43u8, 24u8, 36u8, 37u8, 43u8, 170u8, - 40u8, - ], - ) - } - #[doc = " Mode of era forcing."] - pub fn force_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Forcing, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ForceEra", - vec![], - [ - 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, - 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, - 131u8, 214u8, 136u8, 68u8, 156u8, 140u8, 194u8, - 69u8, 151u8, 115u8, 177u8, 92u8, 147u8, 29u8, 40u8, - 41u8, 31u8, - ], - ) - } - #[doc = " The percentage of the slash that is distributed to reporters."] - #[doc = ""] - #[doc = " The rest of the slashed value is handled by the `Slash`."] - pub fn slash_reward_fraction( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashRewardFraction", - vec![], - [ - 167u8, 79u8, 143u8, 202u8, 199u8, 100u8, 129u8, - 162u8, 23u8, 165u8, 106u8, 170u8, 244u8, 86u8, - 144u8, 242u8, 65u8, 207u8, 115u8, 224u8, 231u8, - 155u8, 55u8, 139u8, 101u8, 129u8, 242u8, 196u8, - 130u8, 50u8, 3u8, 117u8, - ], - ) - } - #[doc = " The amount of currency given to reporters of a slash event which was"] - #[doc = " canceled by extraordinary circumstances (e.g. governance)."] - pub fn canceled_slash_payout( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CanceledSlashPayout", - vec![], - [ - 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, - 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, - 156u8, 83u8, 14u8, 91u8, 15u8, 200u8, 170u8, 3u8, - 127u8, 141u8, 139u8, 151u8, 98u8, 74u8, 96u8, - 238u8, 29u8, - ], - ) - } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "UnappliedSlashes" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 4u8 , 163u8 , 163u8 , 28u8 , 85u8 , 34u8 , 156u8 , 47u8 , 125u8 , 57u8 , 0u8 , 133u8 , 176u8 , 130u8 , 2u8 , 175u8 , 180u8 , 167u8 , 203u8 , 230u8 , 82u8 , 198u8 , 183u8 , 55u8 , 82u8 , 221u8 , 248u8 , 100u8 , 173u8 , 206u8 , 151u8 ,]) - } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "UnappliedSlashes", - Vec::new(), - [ - 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, - 47u8, 125u8, 57u8, 0u8, 133u8, 176u8, 130u8, 2u8, - 175u8, 180u8, 167u8, 203u8, 230u8, 82u8, 198u8, - 183u8, 55u8, 82u8, 221u8, 248u8, 100u8, 173u8, - 206u8, 151u8, - ], - ) - } - #[doc = " A mapping from still-bonded eras to the first session index of that era."] - #[doc = ""] - #[doc = " Must contains information for eras for the range:"] - #[doc = " `[active_era - bounding_duration; active_era]`"] - pub fn bonded_eras( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "BondedEras", - vec![], - [ - 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, - 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, - 89u8, 206u8, 2u8, 155u8, 222u8, 154u8, 116u8, - 124u8, 4u8, 119u8, 155u8, 94u8, 248u8, 30u8, 171u8, - 51u8, 78u8, 106u8, - ], - ) - } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] - pub fn validator_slash_in_era( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "ValidatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [237u8 , 80u8 , 3u8 , 237u8 , 9u8 , 40u8 , 212u8 , 15u8 , 251u8 , 196u8 , 85u8 , 29u8 , 27u8 , 151u8 , 98u8 , 122u8 , 189u8 , 147u8 , 205u8 , 40u8 , 202u8 , 194u8 , 158u8 , 96u8 , 138u8 , 16u8 , 116u8 , 71u8 , 140u8 , 163u8 , 121u8 , 197u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", - Vec::new(), - [ - 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, - 251u8, 196u8, 85u8, 29u8, 27u8, 151u8, 98u8, 122u8, - 189u8, 147u8, 205u8, 40u8, 202u8, 194u8, 158u8, - 96u8, 138u8, 16u8, 116u8, 71u8, 140u8, 163u8, - 121u8, 197u8, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "NominatorSlashInEra" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [249u8 , 85u8 , 170u8 , 41u8 , 179u8 , 194u8 , 180u8 , 12u8 , 53u8 , 101u8 , 80u8 , 96u8 , 166u8 , 71u8 , 239u8 , 23u8 , 153u8 , 19u8 , 152u8 , 38u8 , 138u8 , 136u8 , 221u8 , 200u8 , 18u8 , 165u8 , 26u8 , 228u8 , 195u8 , 199u8 , 62u8 , 4u8 ,]) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", - Vec::new(), - [ - 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, - 12u8, 53u8, 101u8, 80u8, 96u8, 166u8, 71u8, 239u8, - 23u8, 153u8, 19u8, 152u8, 38u8, 138u8, 136u8, - 221u8, 200u8, 18u8, 165u8, 26u8, 228u8, 195u8, - 199u8, 62u8, 4u8, - ], - ) - } - #[doc = " Slashing spans for stash accounts."] - pub fn slashing_spans( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SlashingSpans, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SlashingSpans" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [106u8 , 115u8 , 118u8 , 52u8 , 89u8 , 77u8 , 246u8 , 5u8 , 255u8 , 204u8 , 44u8 , 5u8 , 66u8 , 36u8 , 227u8 , 252u8 , 86u8 , 159u8 , 186u8 , 152u8 , 196u8 , 21u8 , 74u8 , 201u8 , 133u8 , 93u8 , 142u8 , 191u8 , 20u8 , 27u8 , 218u8 , 157u8 ,]) - } - #[doc = " Slashing spans for stash accounts."] - pub fn slashing_spans_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SlashingSpans, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashingSpans", - Vec::new(), - [ - 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, - 255u8, 204u8, 44u8, 5u8, 66u8, 36u8, 227u8, 252u8, - 86u8, 159u8, 186u8, 152u8, 196u8, 21u8, 74u8, - 201u8, 133u8, 93u8, 142u8, 191u8, 20u8, 27u8, - 218u8, 157u8, - ], - ) - } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] - pub fn span_slash( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Staking" , "SpanSlash" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [160u8 , 63u8 , 115u8 , 190u8 , 233u8 , 148u8 , 75u8 , 3u8 , 11u8 , 59u8 , 184u8 , 220u8 , 205u8 , 64u8 , 28u8 , 190u8 , 116u8 , 210u8 , 225u8 , 230u8 , 224u8 , 163u8 , 103u8 , 157u8 , 100u8 , 29u8 , 86u8 , 167u8 , 84u8 , 217u8 , 109u8 , 200u8 ,]) - } - #[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_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SpanSlash", - Vec::new(), - [ - 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, - 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, - 116u8, 210u8, 225u8, 230u8, 224u8, 163u8, 103u8, - 157u8, 100u8, 29u8, 86u8, 167u8, 84u8, 217u8, - 109u8, 200u8, - ], - ) - } - #[doc = " The last planned session scheduled by the session pallet."] - #[doc = ""] - #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] - pub fn current_planned_session( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentPlannedSession", - vec![], - [ - 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, - 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, - 190u8, 53u8, 241u8, 11u8, 185u8, 163u8, 227u8, - 10u8, 77u8, 210u8, 64u8, 156u8, 218u8, 105u8, 16u8, - 1u8, 57u8, - ], - ) - } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] - #[doc = " disabled."] - #[doc = ""] - #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] - #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] - #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] - #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] - #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] - pub fn offending_validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::bool, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "OffendingValidators", - vec![], - [ - 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, - 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, - 82u8, 182u8, 104u8, 167u8, 103u8, 187u8, 168u8, - 86u8, 16u8, 51u8, 235u8, 51u8, 119u8, 38u8, 154u8, - 42u8, 113u8, - ], - ) - } - #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] - #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] - #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] - pub fn chill_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Percent, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ChillThreshold", - vec![], - [ - 174u8, 165u8, 249u8, 105u8, 24u8, 151u8, 115u8, - 166u8, 199u8, 251u8, 28u8, 5u8, 50u8, 95u8, 144u8, - 110u8, 220u8, 76u8, 14u8, 23u8, 179u8, 41u8, 11u8, - 248u8, 28u8, 154u8, 159u8, 255u8, 156u8, 109u8, - 98u8, 92u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominations", - [ - 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 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`,"] - #[doc = " `StakingLedger.claimed_rewards`."] - #[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.claimed_rewards`. Setting this value lower than"] - #[doc = " the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a migration."] - #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "HistoryDepth", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of sessions per era."] - pub fn sessions_per_era( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "SessionsPerEra", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "BondingDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that slashes are deferred by, after computation."] - #[doc = ""] - #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] - #[doc = " should be applied immediately, without opportunity for intervention."] - pub fn slash_defer_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "SlashDeferDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of nominators rewarded for each validator."] - #[doc = ""] - #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] - #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub fn max_nominator_rewarded_per_validator( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominatorRewardedPerValidator", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] - #[doc = " have. Effectively determines how many unique eras a staker may be"] - #[doc = " unbonding in."] - #[doc = ""] - #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] - #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] - #[doc = " lower than the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] - #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] - #[doc = " this effect."] - pub fn max_unlocking_chunks( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Staking", - "MaxUnlockingChunks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod 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 one variant per dispatchable that can be called by an extrinsic."] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetKeys { pub keys : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys , pub proof : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } - impl ::subxt::blocks::StaticExtrinsic for SetKeys { - const PALLET: &'static str = "Session"; - const CALL: &'static str = "set_keys"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PurgeKeys; - impl ::subxt::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 : runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "set_keys", - types::SetKeys { keys, proof }, - [ - 96u8, 118u8, 0u8, 203u8, 157u8, 82u8, 2u8, 238u8, - 94u8, 39u8, 248u8, 255u8, 155u8, 43u8, 191u8, 64u8, - 200u8, 223u8, 108u8, 198u8, 114u8, 0u8, 53u8, 15u8, - 203u8, 47u8, 205u8, 234u8, 131u8, 177u8, 139u8, - 185u8, - ], - ) - } - #[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::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "purge_keys", - types::PurgeKeys {}, - [ - 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, - 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, - 44u8, 91u8, 31u8, 145u8, 23u8, 213u8, 64u8, 71u8, - 242u8, 207u8, 239u8, 231u8, 37u8, 61u8, 63u8, - 190u8, 35u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_session::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New 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: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NewSession { - const PALLET: &'static str = "Session"; - const EVENT: &'static str = "NewSession"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current set of validators."] - pub fn validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "Validators", - vec![], - [ - 144u8, 235u8, 200u8, 43u8, 151u8, 57u8, 147u8, - 172u8, 201u8, 202u8, 242u8, 96u8, 57u8, 76u8, - 124u8, 77u8, 42u8, 113u8, 218u8, 220u8, 230u8, - 32u8, 151u8, 152u8, 172u8, 106u8, 60u8, 227u8, - 122u8, 118u8, 137u8, 68u8, - ], - ) - } - #[doc = " Current index of the session."] - pub fn current_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "CurrentIndex", - vec![], - [ - 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, - 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, - 181u8, 191u8, 143u8, 252u8, 227u8, 80u8, 159u8, - 66u8, 194u8, 67u8, 113u8, 74u8, 111u8, 91u8, 218u8, - 187u8, 130u8, 40u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "QueuedChanged", - vec![], - [ - 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, - 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, - 202u8, 152u8, 42u8, 50u8, 113u8, 200u8, 247u8, - 59u8, 213u8, 77u8, 195u8, 1u8, 150u8, 220u8, 18u8, - 245u8, 46u8, - ], - ) - } - #[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 :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: dkg_standalone_runtime :: opaque :: SessionKeys ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "Session", - "QueuedKeys", - vec![], - [ - 6u8, 142u8, 45u8, 83u8, 248u8, 49u8, 224u8, 50u8, - 60u8, 233u8, 70u8, 144u8, 29u8, 121u8, 17u8, 65u8, - 76u8, 193u8, 222u8, 91u8, 128u8, 19u8, 85u8, 65u8, - 58u8, 89u8, 159u8, 156u8, 138u8, 76u8, 181u8, - 188u8, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "DisabledValidators", - vec![], - [ - 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, - 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, - 31u8, 20u8, 242u8, 73u8, 104u8, 11u8, 110u8, 214u8, - 34u8, 52u8, 217u8, 106u8, 33u8, 174u8, 174u8, - 198u8, 84u8, - ], - ) - } - #[doc = " The next session keys for a validator."] - pub fn next_keys( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::dkg_standalone_runtime::opaque::SessionKeys, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Session" , "NextKeys" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [227u8 , 242u8 , 225u8 , 78u8 , 154u8 , 151u8 , 147u8 , 206u8 , 94u8 , 82u8 , 85u8 , 255u8 , 86u8 , 111u8 , 54u8 , 199u8 , 116u8 , 193u8 , 170u8 , 217u8 , 87u8 , 169u8 , 81u8 , 99u8 , 247u8 , 214u8 , 241u8 , 221u8 , 116u8 , 133u8 , 146u8 , 117u8 ,]) - } - #[doc = " The next session keys for a validator."] - pub fn next_keys_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::dkg_standalone_runtime::opaque::SessionKeys, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", - Vec::new(), - [ - 227u8, 242u8, 225u8, 78u8, 154u8, 151u8, 147u8, - 206u8, 94u8, 82u8, 85u8, 255u8, 86u8, 111u8, 54u8, - 199u8, 116u8, 193u8, 170u8, 217u8, 87u8, 169u8, - 81u8, 99u8, 247u8, 214u8, 241u8, 221u8, 116u8, - 133u8, 146u8, 117u8, - ], - ) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::sp_core::crypto::KeyTypeId, - >, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Session" , "KeyOwner" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [4u8 , 91u8 , 25u8 , 84u8 , 250u8 , 201u8 , 174u8 , 129u8 , 201u8 , 58u8 , 197u8 , 199u8 , 137u8 , 240u8 , 118u8 , 33u8 , 99u8 , 2u8 , 195u8 , 57u8 , 53u8 , 172u8 , 0u8 , 148u8 , 203u8 , 144u8 , 149u8 , 64u8 , 135u8 , 254u8 , 242u8 , 215u8 ,]) - } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - Vec::new(), - [ - 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, - 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, - 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, 0u8, - 148u8, 203u8, 144u8, 149u8, 64u8, 135u8, 254u8, - 242u8, 215u8, - ], - ) - } - } - } - } - pub mod historical { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Mapping from historical session indices to session-data root hash and validator count."] - pub fn historical_sessions( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::subxt::utils::H256, ::core::primitive::u32), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Historical" , "HistoricalSessions" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [94u8 , 72u8 , 245u8 , 151u8 , 214u8 , 10u8 , 12u8 , 113u8 , 13u8 , 141u8 , 176u8 , 178u8 , 115u8 , 238u8 , 224u8 , 181u8 , 18u8 , 5u8 , 71u8 , 65u8 , 189u8 , 148u8 , 161u8 , 106u8 , 24u8 , 211u8 , 72u8 , 66u8 , 221u8 , 244u8 , 117u8 , 184u8 ,]) - } - #[doc = " Mapping from historical session indices to session-data root hash and validator count."] - pub fn historical_sessions_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::subxt::utils::H256, ::core::primitive::u32), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Historical", - "HistoricalSessions", - Vec::new(), - [ - 94u8, 72u8, 245u8, 151u8, 214u8, 10u8, 12u8, 113u8, - 13u8, 141u8, 176u8, 178u8, 115u8, 238u8, 224u8, - 181u8, 18u8, 5u8, 71u8, 65u8, 189u8, 148u8, 161u8, - 106u8, 24u8, 211u8, 72u8, 66u8, 221u8, 244u8, - 117u8, 184u8, - ], - ) - } - #[doc = " The range of historical sessions we store. [first, last)"] - pub fn stored_range( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Historical", - "StoredRange", - vec![], - [ - 89u8, 239u8, 197u8, 93u8, 135u8, 62u8, 142u8, - 237u8, 64u8, 200u8, 164u8, 4u8, 130u8, 233u8, 16u8, - 238u8, 166u8, 206u8, 71u8, 42u8, 171u8, 84u8, 8u8, - 245u8, 183u8, 216u8, 212u8, 16u8, 190u8, 3u8, - 167u8, 189u8, - ], - ) - } - } - } - } - pub mod bridge_registry { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_bridge_registry::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_bridge_registry::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetMetadata { pub bridge_index : :: core :: primitive :: u32 , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "BridgeRegistry"; - const CALL: &'static str = "set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ForceResetIndices { - pub resource_ids: ::std::vec::Vec< - runtime_types::webb_proposals::header::ResourceId, - >, - pub bridge_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceResetIndices { - const PALLET: &'static str = "BridgeRegistry"; - const CALL: &'static str = "force_reset_indices"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `ResourceSet` if successful."] - pub fn set_metadata( - &self, - bridge_index: ::core::primitive::u32, - info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "BridgeRegistry", - "set_metadata", - types::SetMetadata { bridge_index, info }, - [ - 72u8, 84u8, 159u8, 244u8, 136u8, 19u8, 190u8, - 187u8, 185u8, 86u8, 180u8, 197u8, 241u8, 97u8, - 235u8, 39u8, 114u8, 90u8, 112u8, 70u8, 93u8, 230u8, - 236u8, 25u8, 109u8, 152u8, 155u8, 107u8, 160u8, - 183u8, 137u8, 242u8, - ], - ) - } - pub fn force_reset_indices( - &self, - resource_ids: ::std::vec::Vec< - runtime_types::webb_proposals::header::ResourceId, - >, - bridge_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "BridgeRegistry", - "force_reset_indices", - types::ForceResetIndices { - resource_ids, - bridge_index, - }, - [ - 162u8, 5u8, 147u8, 58u8, 45u8, 163u8, 101u8, 251u8, - 103u8, 30u8, 134u8, 106u8, 142u8, 117u8, 183u8, - 108u8, 14u8, 208u8, 208u8, 82u8, 155u8, 61u8, 61u8, - 62u8, 81u8, 181u8, 88u8, 220u8, 122u8, 176u8, 50u8, - 29u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_bridge_registry::pallet::Event; - pub mod events { - use super::runtime_types; - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Storage for next bridge index"] - pub fn next_bridge_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "BridgeRegistry", - "NextBridgeIndex", - vec![], - [ - 47u8, 238u8, 32u8, 185u8, 116u8, 5u8, 125u8, 28u8, - 39u8, 110u8, 178u8, 155u8, 45u8, 72u8, 248u8, - 161u8, 75u8, 161u8, 207u8, 101u8, 55u8, 226u8, - 233u8, 233u8, 14u8, 62u8, 168u8, 20u8, 146u8, 8u8, - 152u8, 222u8, - ], - ) - } - #[doc = " Storage for map of all bridges"] pub fn bridges (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("BridgeRegistry" , "Bridges" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [1u8 , 112u8 , 75u8 , 147u8 , 69u8 , 209u8 , 218u8 , 149u8 , 213u8 , 112u8 , 94u8 , 202u8 , 240u8 , 100u8 , 216u8 , 77u8 , 14u8 , 111u8 , 54u8 , 86u8 , 79u8 , 109u8 , 31u8 , 34u8 , 31u8 , 24u8 , 30u8 , 64u8 , 29u8 , 29u8 , 64u8 , 3u8 ,]) - } - #[doc = " Storage for map of all bridges"] pub fn bridges_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_bridge_registry :: types :: BridgeMetadata , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "BridgeRegistry", - "Bridges", - Vec::new(), - [ - 1u8, 112u8, 75u8, 147u8, 69u8, 209u8, 218u8, 149u8, - 213u8, 112u8, 94u8, 202u8, 240u8, 100u8, 216u8, - 77u8, 14u8, 111u8, 54u8, 86u8, 79u8, 109u8, 31u8, - 34u8, 31u8, 24u8, 30u8, 64u8, 29u8, 29u8, 64u8, - 3u8, - ], - ) - } - #[doc = " Mapping of resource to bridge index"] - pub fn resource_to_bridge_index( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::webb_proposals::header::ResourceId, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("BridgeRegistry" , "ResourceToBridgeIndex" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [130u8 , 216u8 , 179u8 , 142u8 , 98u8 , 4u8 , 178u8 , 25u8 , 179u8 , 57u8 , 140u8 , 220u8 , 202u8 , 186u8 , 74u8 , 115u8 , 145u8 , 63u8 , 69u8 , 239u8 , 102u8 , 91u8 , 1u8 , 43u8 , 46u8 , 165u8 , 18u8 , 191u8 , 7u8 , 97u8 , 84u8 , 111u8 ,]) - } - #[doc = " Mapping of resource to bridge index"] - pub fn resource_to_bridge_index_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "BridgeRegistry", - "ResourceToBridgeIndex", - Vec::new(), - [ - 130u8, 216u8, 179u8, 142u8, 98u8, 4u8, 178u8, 25u8, - 179u8, 57u8, 140u8, 220u8, 202u8, 186u8, 74u8, - 115u8, 145u8, 63u8, 69u8, 239u8, 102u8, 91u8, 1u8, - 43u8, 46u8, 165u8, 18u8, 191u8, 7u8, 97u8, 84u8, - 111u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of additional fields that may be stored in a bridge's metadata. Needed to"] - #[doc = " bound the I/O required to access an identity, but can be pretty high."] - pub fn max_additional_fields( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "BridgeRegistry", - "MaxAdditionalFields", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum number of resources that may be stored in a bridge. This is not to be confused"] - #[doc = " with the actual maximum supported by the bridge. Needed to bound the I/O"] - #[doc = " required to access a metadata object, but can be pretty high."] - pub fn max_resources( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "BridgeRegistry", - "MaxResources", - [ - 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 = " Max length of a proposal"] - pub fn max_proposal_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "BridgeRegistry", - "MaxProposalLength", - [ - 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 identity { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_identity::pallet::Error; - #[doc = "Identity pallet declaration."] - pub type Call = runtime_types::pallet_identity::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AddRegistrar { - pub account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "add_registrar"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetIdentity { - pub info: ::std::boxed::Box< - runtime_types::pallet_identity::types::IdentityInfo, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_identity"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetSubs { - pub subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetSubs { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_subs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ClearIdentity; - impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "clear_identity"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - #[codec(compact)] - pub max_fee: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "request_judgement"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CancelRequest { - pub reg_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CancelRequest { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "cancel_request"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetFee { - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for SetFee { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_fee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetAccountId { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetAccountId { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_account_id"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SetFields { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetFields { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_fields"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub judgement: - runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - pub identity: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "provide_judgement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KillIdentity { - pub target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for KillIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "kill_identity"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct AddSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub data: runtime_types::pallet_identity::types::Data, - } - impl ::subxt::blocks::StaticExtrinsic for AddSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "add_sub"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RenameSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - pub data: runtime_types::pallet_identity::types::Data, - } - impl ::subxt::blocks::StaticExtrinsic for RenameSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "rename_sub"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RemoveSub { - pub sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for RemoveSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "remove_sub"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct QuitSub; - impl ::subxt::blocks::StaticExtrinsic for QuitSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "quit_sub"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Add a registrar to the system."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] - #[doc = ""] - #[doc = "- `account`: the account of the registrar."] - #[doc = ""] - #[doc = "Emits `RegistrarAdded` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] - pub fn add_registrar( - &self, - account: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "add_registrar", - types::AddRegistrar { account }, - [ - 96u8, 200u8, 92u8, 23u8, 3u8, 144u8, 56u8, 53u8, - 245u8, 210u8, 33u8, 36u8, 183u8, 233u8, 41u8, 1u8, - 127u8, 2u8, 25u8, 5u8, 15u8, 133u8, 4u8, 107u8, - 206u8, 155u8, 114u8, 39u8, 14u8, 235u8, 115u8, - 172u8, - ], - ) - } - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `IdentitySet` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(X + X' + R)`"] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] - #[doc = " - where `R` judgements-count (registrar-count-bounded)"] - pub fn set_identity( - &self, - info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_identity", - types::SetIdentity { - info: ::std::boxed::Box::new(info), - }, - [ - 130u8, 89u8, 118u8, 6u8, 134u8, 166u8, 35u8, 192u8, - 73u8, 6u8, 171u8, 20u8, 225u8, 255u8, 152u8, 142u8, - 111u8, 8u8, 206u8, 200u8, 64u8, 52u8, 110u8, 123u8, - 42u8, 101u8, 191u8, 242u8, 133u8, 139u8, 154u8, - 205u8, - ], - ) - } - #[doc = "Set the sub-accounts of the sender."] - #[doc = ""] - #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] - #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "- `subs`: The identity's (new) sub-accounts."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(P + S)`"] - #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - pub fn set_subs( - &self, - subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_subs", - types::SetSubs { subs }, - [ - 177u8, 219u8, 84u8, 183u8, 5u8, 32u8, 192u8, 82u8, - 174u8, 68u8, 198u8, 224u8, 56u8, 85u8, 134u8, - 171u8, 30u8, 132u8, 140u8, 236u8, 117u8, 24u8, - 150u8, 218u8, 146u8, 194u8, 144u8, 92u8, 103u8, - 206u8, 46u8, 90u8, - ], - ) - } - #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "Emits `IdentityCleared` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn clear_identity( - &self, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Identity", - "clear_identity", - types::ClearIdentity {}, - [ - 75u8, 44u8, 74u8, 122u8, 149u8, 202u8, 114u8, - 230u8, 0u8, 255u8, 140u8, 122u8, 14u8, 196u8, - 205u8, 249u8, 220u8, 94u8, 216u8, 34u8, 63u8, 14u8, - 8u8, 205u8, 74u8, 23u8, 181u8, 129u8, 252u8, 110u8, - 231u8, 114u8, - ], - ) - } - #[doc = "Request a judgement from a registrar."] - #[doc = ""] - #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] - #[doc = "given."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] - #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] - #[doc = ""] - #[doc = "```nocompile"] - #[doc = "Self::registrars().get(reg_index).unwrap().fee"] - #[doc = "```"] - #[doc = ""] - #[doc = "Emits `JudgementRequested` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn request_judgement( - &self, - reg_index: ::core::primitive::u32, - max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Identity", - "request_judgement", - types::RequestJudgement { reg_index, max_fee }, - [ - 186u8, 149u8, 61u8, 54u8, 159u8, 194u8, 77u8, - 161u8, 220u8, 157u8, 3u8, 216u8, 23u8, 105u8, - 119u8, 76u8, 144u8, 198u8, 157u8, 45u8, 235u8, - 139u8, 87u8, 82u8, 81u8, 12u8, 25u8, 134u8, 225u8, - 92u8, 182u8, 101u8, - ], - ) - } - #[doc = "Cancel a previous request."] - #[doc = ""] - #[doc = "Payment: A previously reserved deposit is returned on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] - #[doc = ""] - #[doc = "Emits `JudgementUnrequested` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn cancel_request( - &self, - reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Identity", - "cancel_request", - types::CancelRequest { reg_index }, - [ - 83u8, 180u8, 239u8, 126u8, 32u8, 51u8, 17u8, 20u8, - 180u8, 3u8, 59u8, 96u8, 24u8, 32u8, 136u8, 92u8, - 58u8, 254u8, 68u8, 70u8, 50u8, 11u8, 51u8, 91u8, - 180u8, 79u8, 81u8, 84u8, 216u8, 138u8, 6u8, 215u8, - ], - ) - } - #[doc = "Set the fee required for a judgement to be requested from a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fee`: the new fee."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - pub fn set_fee( - &self, - index: ::core::primitive::u32, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_fee", - types::SetFee { index, fee }, - [ - 21u8, 157u8, 123u8, 182u8, 160u8, 190u8, 117u8, - 37u8, 136u8, 133u8, 104u8, 234u8, 31u8, 145u8, - 115u8, 154u8, 125u8, 40u8, 2u8, 87u8, 118u8, 56u8, - 247u8, 73u8, 89u8, 0u8, 251u8, 3u8, 58u8, 105u8, - 239u8, 211u8, - ], - ) - } - #[doc = "Change the account associated with a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `new`: the new account ID."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - pub fn set_account_id( - &self, - index: ::core::primitive::u32, - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_account_id", - types::SetAccountId { index, new }, - [ - 14u8, 154u8, 84u8, 48u8, 59u8, 133u8, 45u8, 204u8, - 255u8, 85u8, 157u8, 88u8, 56u8, 207u8, 113u8, - 184u8, 233u8, 139u8, 129u8, 118u8, 59u8, 9u8, - 211u8, 184u8, 32u8, 141u8, 126u8, 208u8, 179u8, - 4u8, 2u8, 95u8, - ], - ) - } - #[doc = "Set the field information for a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fields`: the fields that the registrar concerns themselves with."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - pub fn set_fields( - &self, - index: ::core::primitive::u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_fields", - types::SetFields { index, fields }, - [ - 50u8, 196u8, 179u8, 71u8, 66u8, 65u8, 235u8, 7u8, - 51u8, 14u8, 81u8, 173u8, 201u8, 58u8, 6u8, 151u8, - 174u8, 245u8, 102u8, 184u8, 28u8, 84u8, 125u8, - 93u8, 126u8, 134u8, 92u8, 203u8, 200u8, 129u8, - 240u8, 252u8, - ], - ) - } - #[doc = "Provide a judgement for an account's identity."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `reg_index`."] - #[doc = ""] - #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] - #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] - #[doc = ""] - #[doc = "Emits `JudgementGiven` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn provide_judgement( - &self, - reg_index: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - identity: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Identity", - "provide_judgement", - types::ProvideJudgement { - reg_index, - target, - judgement, - identity, - }, - [ - 83u8, 253u8, 77u8, 208u8, 198u8, 25u8, 202u8, - 213u8, 223u8, 184u8, 231u8, 185u8, 186u8, 216u8, - 54u8, 62u8, 3u8, 7u8, 107u8, 152u8, 126u8, 195u8, - 175u8, 221u8, 134u8, 169u8, 199u8, 124u8, 232u8, - 157u8, 67u8, 75u8, - ], - ) - } - #[doc = "Remove an account's identity and sub-account information and slash the deposits."] - #[doc = ""] - #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] - #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] - #[doc = "manually using `cancel_request`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - #[doc = ""] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = ""] - #[doc = "Emits `IdentityKilled` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn kill_identity( - &self, - target: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "kill_identity", - types::KillIdentity { target }, - [ - 65u8, 106u8, 116u8, 209u8, 219u8, 181u8, 185u8, - 75u8, 146u8, 194u8, 187u8, 170u8, 7u8, 34u8, 140u8, - 87u8, 107u8, 112u8, 229u8, 34u8, 65u8, 71u8, 58u8, - 152u8, 74u8, 253u8, 137u8, 69u8, 149u8, 214u8, - 158u8, 19u8, - ], - ) - } - #[doc = "Add the given account to the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] - pub fn add_sub( - &self, - sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "add_sub", - types::AddSub { sub, data }, - [ - 206u8, 112u8, 143u8, 96u8, 152u8, 12u8, 174u8, - 226u8, 23u8, 27u8, 154u8, 188u8, 195u8, 233u8, - 185u8, 180u8, 246u8, 218u8, 154u8, 129u8, 138u8, - 52u8, 212u8, 109u8, 54u8, 211u8, 219u8, 255u8, - 39u8, 79u8, 154u8, 123u8, - ], - ) - } - #[doc = "Alter the associated name of the given sub-account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] - pub fn rename_sub( - &self, - sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "rename_sub", - types::RenameSub { sub, data }, - [ - 110u8, 28u8, 134u8, 225u8, 44u8, 242u8, 20u8, 22u8, - 197u8, 49u8, 173u8, 178u8, 106u8, 181u8, 103u8, - 90u8, 27u8, 73u8, 102u8, 130u8, 2u8, 216u8, 172u8, - 186u8, 124u8, 244u8, 128u8, 6u8, 112u8, 128u8, - 25u8, 245u8, - ], - ) - } - #[doc = "Remove the given account from the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] - pub fn remove_sub( - &self, - sub: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "remove_sub", - types::RemoveSub { sub }, - [ - 92u8, 201u8, 70u8, 170u8, 248u8, 110u8, 179u8, - 186u8, 213u8, 197u8, 150u8, 156u8, 156u8, 50u8, - 19u8, 158u8, 186u8, 61u8, 106u8, 64u8, 84u8, 38u8, - 73u8, 134u8, 132u8, 233u8, 50u8, 152u8, 40u8, 18u8, - 212u8, 121u8, - ], - ) - } - #[doc = "Remove the sender as a sub-account."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender (*not* the original depositor)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "super-identity."] - #[doc = ""] - #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] - #[doc = "controller of an account is maliciously registered as a sub-account."] - pub fn quit_sub(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "quit_sub", - types::QuitSub {}, - [ - 62u8, 57u8, 73u8, 72u8, 119u8, 216u8, 250u8, 155u8, - 57u8, 169u8, 157u8, 44u8, 87u8, 51u8, 63u8, 231u8, - 77u8, 7u8, 0u8, 119u8, 244u8, 42u8, 179u8, 51u8, - 254u8, 240u8, 55u8, 25u8, 142u8, 38u8, 87u8, 44u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_identity::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A name was set or reset (which will remove all judgements)."] - pub struct IdentitySet { - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IdentitySet { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentitySet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A name was cleared, and the given balance returned."] - pub struct IdentityCleared { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for IdentityCleared { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityCleared"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A name was removed and the given balance slashed."] - pub struct IdentityKilled { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for IdentityKilled { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityKilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A judgement was asked from a registrar."] - pub struct JudgementRequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementRequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementRequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A judgement request was retracted."] - pub struct JudgementUnrequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementUnrequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementUnrequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A judgement was given by a registrar."] - pub struct JudgementGiven { - pub target: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementGiven { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementGiven"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A registrar was added."] - pub struct RegistrarAdded { - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for RegistrarAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "RegistrarAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sub-identity was added to an identity and the deposit paid."] - pub struct SubIdentityAdded { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SubIdentityAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sub-identity was removed from an identity and the deposit freed."] - pub struct SubIdentityRemoved { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] - #[doc = "main identity account to the sub-identity account."] - pub struct SubIdentityRevoked { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for SubIdentityRevoked { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRevoked"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Information that is pertinent to identify the entity behind an account."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] - pub fn identity_of( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Identity" , "IdentityOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [193u8 , 195u8 , 180u8 , 188u8 , 129u8 , 250u8 , 180u8 , 219u8 , 22u8 , 95u8 , 175u8 , 170u8 , 143u8 , 188u8 , 80u8 , 124u8 , 234u8 , 228u8 , 245u8 , 39u8 , 72u8 , 153u8 , 107u8 , 199u8 , 23u8 , 75u8 , 47u8 , 247u8 , 104u8 , 208u8 , 171u8 , 82u8 ,]) - } - #[doc = " Information that is pertinent to identify the entity behind an account."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] - pub fn identity_of_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "IdentityOf", - Vec::new(), - [ - 193u8, 195u8, 180u8, 188u8, 129u8, 250u8, 180u8, - 219u8, 22u8, 95u8, 175u8, 170u8, 143u8, 188u8, - 80u8, 124u8, 234u8, 228u8, 245u8, 39u8, 72u8, - 153u8, 107u8, 199u8, 23u8, 75u8, 47u8, 247u8, - 104u8, 208u8, 171u8, 82u8, - ], - ) - } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] - pub fn super_of( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SuperOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [170u8 , 249u8 , 112u8 , 249u8 , 75u8 , 176u8 , 21u8 , 29u8 , 152u8 , 149u8 , 69u8 , 113u8 , 20u8 , 92u8 , 113u8 , 130u8 , 135u8 , 62u8 , 18u8 , 204u8 , 166u8 , 193u8 , 133u8 , 167u8 , 248u8 , 117u8 , 80u8 , 137u8 , 158u8 , 111u8 , 100u8 , 137u8 ,]) - } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] - pub fn super_of_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "SuperOf", - Vec::new(), - [ - 170u8, 249u8, 112u8, 249u8, 75u8, 176u8, 21u8, - 29u8, 152u8, 149u8, 69u8, 113u8, 20u8, 92u8, 113u8, - 130u8, 135u8, 62u8, 18u8, 204u8, 166u8, 193u8, - 133u8, 167u8, 248u8, 117u8, 80u8, 137u8, 158u8, - 111u8, 100u8, 137u8, - ], - ) - } - #[doc = " Alternative \"sub\" identities of this account."] - #[doc = ""] - #[doc = " The first item is the deposit, the second is a vector of the accounts."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of (& self , _0 : impl :: std :: borrow :: Borrow < :: subxt :: utils :: AccountId32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("Identity" , "SubsOf" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ())] , [128u8 , 15u8 , 175u8 , 155u8 , 216u8 , 225u8 , 200u8 , 169u8 , 215u8 , 206u8 , 110u8 , 22u8 , 204u8 , 89u8 , 212u8 , 210u8 , 159u8 , 169u8 , 53u8 , 7u8 , 44u8 , 164u8 , 91u8 , 151u8 , 7u8 , 227u8 , 38u8 , 230u8 , 175u8 , 84u8 , 6u8 , 4u8 ,]) - } - #[doc = " Alternative \"sub\" identities of this account."] - #[doc = ""] - #[doc = " The first item is the deposit, the second is a vector of the accounts."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , (:: core :: primitive :: u128 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: utils :: AccountId32 > ,) , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "Identity", - "SubsOf", - Vec::new(), - [ - 128u8, 15u8, 175u8, 155u8, 216u8, 225u8, 200u8, - 169u8, 215u8, 206u8, 110u8, 22u8, 204u8, 89u8, - 212u8, 210u8, 159u8, 169u8, 53u8, 7u8, 44u8, 164u8, - 91u8, 151u8, 7u8, 227u8, 38u8, 230u8, 175u8, 84u8, - 6u8, 4u8, - ], - ) - } - #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] - #[doc = " special origin (likely a council motion)."] - #[doc = ""] - #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_identity :: types :: RegistrarInfo < :: core :: primitive :: u128 , :: subxt :: utils :: AccountId32 > > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "Identity", - "Registrars", - vec![], - [ - 157u8, 87u8, 39u8, 240u8, 154u8, 54u8, 241u8, - 229u8, 76u8, 9u8, 62u8, 252u8, 40u8, 143u8, 186u8, - 182u8, 233u8, 187u8, 251u8, 61u8, 236u8, 229u8, - 19u8, 55u8, 42u8, 36u8, 82u8, 173u8, 215u8, 155u8, - 229u8, 111u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The amount held on deposit for a registered identity"] - pub fn basic_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Identity", - "BasicDeposit", - [ - 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 additional field for a registered identity."] - pub fn field_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Identity", - "FieldDeposit", - [ - 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 for a registered subaccount. This should account for the fact"] - #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] - #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] - pub fn sub_account_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> - { - ::subxt::constants::Address::new_static( - "Identity", - "SubAccountDeposit", - [ - 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 sub-accounts allowed per identified account."] - pub fn max_sub_accounts( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Identity", - "MaxSubAccounts", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, - 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, - 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] - #[doc = " required to access an identity, but can be pretty high."] - pub fn max_additional_fields( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Identity", - "MaxAdditionalFields", - [ - 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 = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] - #[doc = " of, e.g., updating judgements."] - pub fn max_registrars( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> - { - ::subxt::constants::Address::new_static( - "Identity", - "MaxRegistrars", - [ - 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 im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_im_online::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_im_online::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Heartbeat { pub heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , pub signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } - impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const CALL: &'static str = "heartbeat"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "## Complexity:"] - #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] - #[doc = " `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - pub fn heartbeat( - &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat< - ::core::primitive::u32, - >, - signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ImOnline", - "heartbeat", - types::Heartbeat { - heartbeat, - signature, - }, - [ - 212u8, 23u8, 174u8, 246u8, 60u8, 220u8, 178u8, - 137u8, 53u8, 146u8, 165u8, 225u8, 179u8, 209u8, - 233u8, 152u8, 129u8, 210u8, 126u8, 32u8, 216u8, - 22u8, 76u8, 196u8, 255u8, 128u8, 246u8, 161u8, - 30u8, 186u8, 249u8, 34u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { pub authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>, - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] - pub fn heartbeat_after( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "HeartbeatAfter", - vec![], - [ - 108u8, 100u8, 85u8, 198u8, 226u8, 122u8, 94u8, - 225u8, 97u8, 154u8, 135u8, 95u8, 106u8, 28u8, - 185u8, 78u8, 192u8, 196u8, 35u8, 191u8, 12u8, 19u8, - 163u8, 46u8, 232u8, 235u8, 193u8, 81u8, 126u8, - 204u8, 25u8, 228u8, - ], - ) - } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "ImOnline", - "Keys", - vec![], - [ - 6u8, 198u8, 221u8, 58u8, 14u8, 166u8, 245u8, 103u8, - 191u8, 20u8, 69u8, 233u8, 147u8, 245u8, 24u8, 64u8, - 207u8, 180u8, 39u8, 208u8, 252u8, 236u8, 247u8, - 112u8, 187u8, 97u8, 70u8, 11u8, 248u8, 148u8, - 208u8, 106u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > , _1 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ - :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "ReceivedHeartbeats" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [233u8 , 128u8 , 140u8 , 233u8 , 55u8 , 146u8 , 172u8 , 54u8 , 54u8 , 57u8 , 141u8 , 106u8 , 168u8 , 59u8 , 147u8 , 253u8 , 119u8 , 48u8 , 50u8 , 251u8 , 242u8 , 109u8 , 251u8 , 2u8 , 136u8 , 80u8 , 146u8 , 121u8 , 180u8 , 219u8 , 245u8 , 37u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: frame_support :: traits :: misc :: WrapperOpaque < runtime_types :: pallet_im_online :: BoundedOpaqueNetworkState > , () , () , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - Vec::new(), - [ - 233u8, 128u8, 140u8, 233u8, 55u8, 146u8, 172u8, - 54u8, 54u8, 57u8, 141u8, 106u8, 168u8, 59u8, 147u8, - 253u8, 119u8, 48u8, 50u8, 251u8, 242u8, 109u8, - 251u8, 2u8, 136u8, 80u8, 146u8, 121u8, 180u8, - 219u8, 245u8, 37u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - :: subxt :: storage :: address :: Address :: new_static ("ImOnline" , "AuthoredBlocks" , vec ! [:: subxt :: storage :: address :: make_static_storage_map_key (_0 . borrow ()) , :: subxt :: storage :: address :: make_static_storage_map_key (_1 . borrow ())] , [50u8 , 4u8 , 242u8 , 240u8 , 247u8 , 184u8 , 114u8 , 245u8 , 233u8 , 170u8 , 24u8 , 197u8 , 18u8 , 245u8 , 8u8 , 28u8 , 33u8 , 115u8 , 166u8 , 245u8 , 221u8 , 223u8 , 56u8 , 144u8 , 33u8 , 139u8 , 10u8 , 227u8 , 228u8 , 223u8 , 103u8 , 151u8 ,]) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - Vec::new(), - [ - 50u8, 4u8, 242u8, 240u8, 247u8, 184u8, 114u8, - 245u8, 233u8, 170u8, 24u8, 197u8, 18u8, 245u8, 8u8, - 28u8, 33u8, 115u8, 166u8, 245u8, 221u8, 223u8, - 56u8, 144u8, 33u8, 139u8, 10u8, 227u8, 228u8, - 223u8, 103u8, 151u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> - { - ::subxt::constants::Address::new_static( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, - 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, - 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, - 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, - 239u8, 42u8, 246u8, - ], - ) - } - } - } - } - pub mod runtime_types { - use super::runtime_types; - pub mod bounded_collections { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BoundedBTreeMap<_0, _1>( - pub ::subxt::utils::KeyedVec<_0, _1>, - ); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } - pub mod dkg_runtime_primitives { - use super::runtime_types; - pub mod crypto { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub runtime_types::sp_core::ecdsa::Public); - } - pub mod proposal { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DKGPayloadKey { - #[codec(index = 0)] - EVMProposal(runtime_types::webb_proposals::nonce::Nonce), - #[codec(index = 1)] - RefreshVote(runtime_types::webb_proposals::nonce::Nonce), - #[codec(index = 2)] - ProposerSetUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 3)] - AnchorCreateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 4)] - AnchorUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 5)] - TokenAddProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 6)] - TokenRemoveProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 7)] - WrappingFeeUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 8)] - ResourceIdUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 9)] - RescueTokensProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 10)] - MaxDepositLimitUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 11)] - MinWithdrawalLimitUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 12)] - SetVerifierProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 13)] - SetTreasuryHandlerProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - #[codec(index = 14)] - FeeRecipientUpdateProposal( - runtime_types::webb_proposals::nonce::Nonce, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RefreshProposalSigned { - pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub signature: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct StoredUnsignedProposal<_0, _1> { - pub proposal: - runtime_types::webb_proposals::proposal::Proposal<_1>, - pub timestamp: _0, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AggregatedMisbehaviourReports < _0 , _1 , _2 > { pub misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , pub session_id : :: core :: primitive :: u64 , pub offender : _0 , pub reporters : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub signatures : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_1 , _2) > } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AggregatedPublicKeys { - pub keys_and_signatures: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CustomU32Getter; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MisbehaviourType { - #[codec(index = 0)] - Keygen, - #[codec(index = 1)] - Sign, - } - } - pub mod dkg_standalone_runtime { - use super::runtime_types; - pub mod opaque { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SessionKeys { pub aura : runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public , pub grandpa : runtime_types :: sp_finality_grandpa :: app :: Public , pub im_online : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , pub dkg : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MaxVotes; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NposSolution16 { - pub votes1: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes2: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ), - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes3: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 2usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes4: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 3usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes5: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 4usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes6: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 5usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes7: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 6usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes8: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 7usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes9: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 8usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes10: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 9usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes11: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 10usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes12: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 11usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes13: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 12usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes14: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 13usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes15: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 14usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes16: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 15usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Runtime; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeCall { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 3)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 5)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 7)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Call ,) , # [codec (index = 8)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Call ,) , # [codec (index = 9)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Call ,) , # [codec (index = 11)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 12)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 13)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 14)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 15)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 16)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 18)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Call ,) , # [codec (index = 19)] Identity (runtime_types :: pallet_identity :: pallet :: Call ,) , # [codec (index = 20)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeEvent { - # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 1)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 5)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 6)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] DKG (runtime_types :: pallet_dkg_metadata :: pallet :: Event ,) , # [codec (index = 8)] DKGProposals (runtime_types :: pallet_dkg_proposals :: pallet :: Event ,) , # [codec (index = 9)] DKGProposalHandler (runtime_types :: pallet_dkg_proposal_handler :: pallet :: Event ,) , # [codec (index = 10)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 11)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 12)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 13)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 14)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 15)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 16)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 18)] BridgeRegistry (runtime_types :: pallet_bridge_registry :: pallet :: Event ,) , # [codec (index = 19)] Identity (runtime_types :: pallet_identity :: pallet :: Event ,) , # [codec (index = 20)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , } - } - pub mod finality_grandpa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - } - pub mod frame_support { - use super::runtime_types; - pub mod dispatch { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DispatchClass { - #[codec(index = 0)] - Normal, - #[codec(index = 1)] - Operational, - #[codec(index = 2)] - Mandatory, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Pays { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, - } - } - pub mod traits { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckNonce( - #[codec(compact)] pub ::core::primitive::u32, - ); - } - pub mod check_spec_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckSpecVersion; - } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckTxVersion; - } - pub mod check_weight { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct CheckWeight; - } - } - pub mod limits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`"] - remark { - remark: ::std::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."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - set_code { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C)` where `C` length of `code`"] - set_code_without_checks { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "Set some items of storage."] - set_storage { - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 5)] - #[doc = "Kill some items from storage."] - kill_storage { - keys: ::std::vec::Vec< - ::std::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: ::std::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: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Event 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 :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: utils :: AccountId32 , hash : :: subxt :: utils :: H256 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, - pub data: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::std::vec::Vec<_1>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::std::string::String, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, - } - } - pub mod pallet_bags_list { - use super::runtime_types; - pub mod list { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Bag { - pub head: - ::core::option::Option<::subxt::utils::AccountId32>, - pub tail: - ::core::option::Option<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ListError { - #[codec(index = 0)] - Duplicate, - #[codec(index = 1)] - NotHeavier, - #[codec(index = 2)] - NotInSameBag, - #[codec(index = 3)] - NodeNotFound, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Node { - pub id: ::subxt::utils::AccountId32, - pub prev: - ::core::option::Option<::subxt::utils::AccountId32>, - pub next: - ::core::option::Option<::subxt::utils::AccountId32>, - pub bag_upper: ::core::primitive::u64, - pub score: ::core::primitive::u64, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] - put_in_front_of { - lighter: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "A error in the list interface implementation."] - List(runtime_types::pallet_bags_list::list::ListError), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Moved an account from one bag to another."] - Rebagged { - who: ::subxt::utils::AccountId32, - from: ::core::primitive::u64, - to: ::core::primitive::u64, - }, - #[codec(index = 1)] - #[doc = "Updated the score of some account to the given amount."] - ScoreUpdated { - who: ::subxt::utils::AccountId32, - new_score: ::core::primitive::u64, - }, - } - } - } - pub mod pallet_balances { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` 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."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "## Complexity"] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - force_transfer { - source: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[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). ## Complexity"] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - transfer_all { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - amount: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] - KeepAlive, - #[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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: utils :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: utils :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: utils :: AccountId32 , to : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } - } - pub mod pallet_bridge_registry { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `ResourceSet` if successful."] set_metadata { bridge_index : :: core :: primitive :: u32 , info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } , # [codec (index = 1)] force_reset_indices { resource_ids : :: std :: vec :: Vec < runtime_types :: webb_proposals :: header :: ResourceId > , bridge_index : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Parameters haven't been initialized"] - ParametersNotInitialized, - #[codec(index = 1)] - #[doc = "Error during verification"] - VerifyError, - #[codec(index = 2)] - #[doc = "Proposal is not signed and should not be processed"] - ProposalNotSigned, - #[codec(index = 3)] - #[doc = "Resources map to different bridge indices"] - BridgeIndexError, - #[codec(index = 4)] - #[doc = "Too many additional fields."] - TooManyFields, - #[codec(index = 5)] - #[doc = "Bridge does not exist."] - BridgeNotFound, - #[codec(index = 6)] - #[doc = "Too many resources."] - TooManyResources, - #[codec(index = 7)] - #[doc = "Input out of bounds"] - OutOfBounds, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event {} - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BridgeInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_bridge_registry :: types :: SerdeData , runtime_types :: pallet_bridge_registry :: types :: SerdeData ,) > , pub display : runtime_types :: pallet_bridge_registry :: types :: SerdeData , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BridgeMetadata { pub resource_ids : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: webb_proposals :: header :: ResourceId > , pub info : runtime_types :: pallet_bridge_registry :: types :: BridgeInfo , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SerdeData( - pub runtime_types::pallet_identity::types::Data, - ); - } - } - pub mod pallet_dkg_metadata { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Set the pending signature threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new signature threshold for the DKG."] set_signature_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 1)] # [doc = "Set the pending keygen threshold for the session following the next session."] # [doc = ""] # [doc = "We cannot assume that the next DKG has not already completed keygen."] # [doc = "After all, if we are in a new session the next DKG may have already completed."] # [doc = "Therefore, when we update the thresholds we are updating a threshold"] # [doc = "that will become the next threshold after the next session update."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_threshold` - The new keygen threshold for the DKG."] set_keygen_threshold { new_threshold : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Sets the delay when a unsigned `RefreshProposal` will be added to the unsigned"] # [doc = "proposal queue."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `new_delay` - The percentage of elapsed session duration to wait before adding an"] # [doc = " unsigned refresh proposal to the unsigned proposal queue."] set_refresh_delay { new_delay : :: core :: primitive :: u8 , } , # [codec (index = 3)] # [doc = "Submits and stores the active public key for the genesis session into the on-chain"] # [doc = "storage. This is primarily used to separate the genesis public key submission from"] # [doc = "non-genesis rounds."] # [doc = ""] # [doc = "Can only be submitted by the current authorities. It is also required that a"] # [doc = "`SignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible current"] # [doc = " DKG public keys."] submit_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 4)] # [doc = "Submits and stores the next public key for the next session into the on-chain storage."] # [doc = ""] # [doc = "Can only be submitted by the next authorities. It is also required that a"] # [doc = "`NextSignatureThreshold` of submissions is reached in order to successfully"] # [doc = "store the public key on-chain."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `keys_and_signatures` - The aggregated public keys and signatures for possible next"] # [doc = " DKG public keys."] submit_next_public_key { keys_and_signatures : runtime_types :: dkg_runtime_primitives :: AggregatedPublicKeys , } , # [codec (index = 5)] # [doc = "Submits the public key signature for the key refresh/rotation process."] # [doc = ""] # [doc = "The signature is the signature of the next public key `RefreshProposal`, signed by the"] # [doc = "current DKG. It is stored on-chain only if it verifies successfully against the current"] # [doc = "DKG's public key. Successful storage of this public key signature also removes"] # [doc = "the unsigned `RefreshProposal` from the unsigned queue."] # [doc = ""] # [doc = "For manual refreshes, after the signature is submitted and stored on-chain,"] # [doc = "the keys are immediately refreshed and the authority set is immediately rotated"] # [doc = "and incremented."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `signature_proposal` - The signed refresh proposal containing the public key signature"] # [doc = " and nonce."] submit_public_key_signature { signature_proposal : runtime_types :: dkg_runtime_primitives :: proposal :: RefreshProposalSigned , } , # [codec (index = 6)] # [doc = "Submits misbehaviour reports on chain. Signatures of the offending authority are"] # [doc = "verified against the current or next authorities depending on the type of misbehaviour."] # [doc = "- Keygen: Verifies against the next authorities, since they are doing keygen."] # [doc = "- Signing: Verifies against the current authorities, since they are doing signing."] # [doc = ""] # [doc = "Verifies the reports against the respective thresholds and if enough reports are met"] # [doc = "begins to jail and decrease the reputation of the offending authority."] # [doc = ""] # [doc = "The misbehaviour reputation update is:"] # [doc = "\tAUTHORITY_REPUTATION = DECAY_PERCENTAGE * AUTHORITY_REPUTATION"] # [doc = ""] # [doc = "If there are not enough unjailed keygen authorities to perform a keygen after the next"] # [doc = "session, then we deduct the pending keygen threshold (and pending signing threshold)"] # [doc = "accordingly."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `reports` - The aggregated misbehaviour reports containing signatures of an offending"] # [doc = " authority"] submit_misbehaviour_reports { reports : runtime_types :: dkg_runtime_primitives :: AggregatedMisbehaviourReports < runtime_types :: dkg_runtime_primitives :: crypto :: Public , runtime_types :: dkg_runtime_primitives :: CustomU32Getter , runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Attempts to remove an authority from all possible jails (keygen & signing)."] # [doc = "This can only be called by the controller of the authority in jail. The"] # [doc = "origin must map directly to the authority in jail."] # [doc = ""] # [doc = "The authority's jail sentence for either keygen or signing must be elapsed"] # [doc = "for the authority to be removed from the jail."] # [doc = ""] # [doc = "* `origin` - The account origin."] unjail , # [codec (index = 8)] # [doc = "Force removes an authority from keygen jail."] # [doc = ""] # [doc = "Can only be called by DKG"] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the keygen jail."] force_unjail_keygen { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 9)] # [doc = "Force removes an authority from signing jail."] # [doc = ""] # [doc = "Can only be called by the root origin."] # [doc = ""] # [doc = "* `origin` - The account origin."] # [doc = "* `authority` - The authority to be removed from the signing jail."] force_unjail_signing { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 10)] # [doc = "Forcefully rotate the DKG"] # [doc = ""] # [doc = "This forces the next authorities into the current authority spot and"] # [doc = "automatically increments the authority ID. It uses `change_authorities`"] # [doc = "to execute the rotation forcefully."] force_change_authorities , # [codec (index = 11)] # [doc = "Triggers an Emergency Keygen Porotocol."] # [doc = ""] # [doc = "The keygen protocol will then be executed and the result will be stored in the off chain"] # [doc = "storage, which will be picked up by the on chain worker and stored on chain."] # [doc = ""] # [doc = "Note that, this will clear the next public key and its signature, if any."] trigger_emergency_keygen , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "No mapped account to authority"] - NoMappedAccount, - #[codec(index = 1)] - #[doc = "Invalid threshold"] - InvalidThreshold, - #[codec(index = 2)] - #[doc = "Must be queued to become an authority"] - MustBeAQueuedAuthority, - #[codec(index = 3)] - #[doc = "Must be an an authority"] - MustBeAnActiveAuthority, - #[codec(index = 4)] - #[doc = "Refresh delay should be in the range of 0% - 100%"] - InvalidRefreshDelay, - #[codec(index = 5)] - #[doc = "Invalid public key submission"] - InvalidPublicKeys, - #[codec(index = 6)] - #[doc = "Already submitted a public key"] - AlreadySubmittedPublicKey, - #[codec(index = 7)] - #[doc = "Already submitted a public key signature"] - AlreadySubmittedSignature, - #[codec(index = 8)] - #[doc = "Used signature from past sessions"] - UsedSignature, - #[codec(index = 9)] - #[doc = "Invalid public key signature submission"] - InvalidSignature, - #[codec(index = 10)] - #[doc = "Invalid Nonece used, must be greater than [`refresh_nonce`]."] - InvalidNonce, - #[codec(index = 11)] - #[doc = "Invalid misbehaviour reports"] - InvalidMisbehaviourReports, - #[codec(index = 12)] - #[doc = "DKG Refresh is already in progress."] - RefreshInProgress, - #[codec(index = 13)] - #[doc = "No NextPublicKey stored on-chain."] - NoNextPublicKey, - #[codec(index = 14)] - #[doc = "Must be calling from the controller account"] - InvalidControllerAccount, - #[codec(index = 15)] - #[doc = "Input is out of bounds"] - OutOfBounds, - #[codec(index = 16)] - #[doc = "Cannot retreive signer from ecdsa signature"] - CannotRetreiveSigner, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Current public key submitted"] PublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Next public key submitted"] NextPublicKeySubmitted { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Next public key signature submitted"] NextPublicKeySignatureSubmitted { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Current Public Key Changed."] PublicKeyChanged { compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Current Public Key Signature Changed."] PublicKeySignatureChanged { pub_key_sig : :: std :: vec :: Vec < :: core :: primitive :: u8 > , compressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , uncompressed_pub_key : :: std :: vec :: Vec < :: core :: primitive :: u8 > , nonce : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Misbehaviour reports submitted"] MisbehaviourReportsSubmitted { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , reporters : :: std :: vec :: Vec < runtime_types :: dkg_runtime_primitives :: crypto :: Public > , offender : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 6)] # [doc = "Refresh DKG Keys Finished (forcefully)."] RefreshKeysFinished { next_authority_set_id : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "NextKeygenThreshold updated"] NextKeygenThresholdUpdated { next_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 8)] # [doc = "NextSignatureThreshold updated"] NextSignatureThresholdUpdated { next_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 9)] # [doc = "PendingKeygenThreshold updated"] PendingKeygenThresholdUpdated { pending_keygen_threshold : :: core :: primitive :: u16 , } , # [codec (index = 10)] # [doc = "PendingSignatureThreshold updated"] PendingSignatureThresholdUpdated { pending_signature_threshold : :: core :: primitive :: u16 , } , # [codec (index = 11)] # [doc = "An Emergency Keygen Protocol was triggered."] EmergencyKeygenTriggered , # [codec (index = 12)] # [doc = "An authority has been jailed for misbehaviour"] AuthorityJailed { misbehaviour_type : runtime_types :: dkg_runtime_primitives :: MisbehaviourType , authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , # [codec (index = 13)] # [doc = "An authority has been unjailed"] AuthorityUnJailed { authority : runtime_types :: dkg_runtime_primitives :: crypto :: Public , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RoundMetadata < _0 , _1 > { pub curr_round_pub_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub next_round_pub_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub refresh_signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < (_0 , _1) > } - } - } - pub mod pallet_dkg_proposal_handler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] submit_signed_proposals { props : :: std :: vec :: Vec < runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > > , } , # [codec (index = 1)] # [doc = "Force submit an unsigned proposal to the DKG"] # [doc = ""] # [doc = "There are certain proposals we'd like to be proposable only"] # [doc = "through root actions. The currently supported proposals are"] # [doc = "\t1. Updating"] force_submit_unsigned_proposal { prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Error names should be descriptive."] - NoneValue, - #[codec(index = 1)] - #[doc = "Errors should have helpful documentation associated with them."] - StorageOverflow, - #[codec(index = 2)] - #[doc = "Proposal format is invalid"] - ProposalFormatInvalid, - #[codec(index = 3)] - #[doc = "Proposal must be unsigned"] - ProposalMustBeUnsigned, - #[codec(index = 4)] - #[doc = "Proposal bytes length is invalid"] - InvalidProposalBytesLength, - #[codec(index = 5)] - #[doc = "Proposal signature is invalid"] - ProposalSignatureInvalid, - #[codec(index = 6)] - #[doc = "No proposal with the ID was found"] - ProposalDoesNotExists, - #[codec(index = 7)] - #[doc = "Proposal with the ID has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 8)] - #[doc = "Chain id is invalid"] - ChainIdInvalid, - #[codec(index = 9)] - #[doc = "Proposal length exceeds max allowed per batch"] - ProposalsLengthOverflow, - #[codec(index = 10)] - #[doc = "Proposal out of bounds"] - ProposalOutOfBounds, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "RuntimeEvent Emitted when we encounter a Proposal with invalid Signature."] InvalidProposalSignature { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , invalid_signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , expected_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , actual_public_key : :: core :: option :: Option < :: std :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 1)] # [doc = "RuntimeEvent When a Proposal is added to UnsignedProposalQueue."] ProposalAdded { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "RuntimeEvent When a Proposal is removed from UnsignedProposalQueue."] ProposalRemoved { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , expired : :: core :: primitive :: bool , } , # [codec (index = 3)] # [doc = "RuntimeEvent When a Proposal Gets Signed by DKG."] ProposalSigned { key : runtime_types :: dkg_runtime_primitives :: proposal :: DKGPayloadKey , target_chain : runtime_types :: webb_proposals :: header :: TypedChainId , data : :: std :: vec :: Vec < :: core :: primitive :: u8 > , signature : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , } - } - } - pub mod pallet_dkg_proposals { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "Sets the vote threshold for proposals."] # [doc = ""] # [doc = "This threshold is used to determine how many votes are required"] # [doc = "before a proposal is executed."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] set_threshold { threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Stores a method name on chain under an associated resource ID."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) write"] # [doc = "# "] set_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , method : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Removes a resource ID from the resource mapping."] # [doc = ""] # [doc = "After this call, bridge transfers with the associated resource ID"] # [doc = "will be rejected."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) removal"] # [doc = "# "] remove_resource { id : runtime_types :: webb_proposals :: header :: ResourceId , } , # [codec (index = 3)] # [doc = "Enables a chain ID as a source or destination for a bridge transfer."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] whitelist_chain { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 4)] # [doc = "Adds a new proposer to the proposer set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and insert"] # [doc = "# "] add_proposer { native_account : :: subxt :: utils :: AccountId32 , external_account : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "Removes an existing proposer from the set."] # [doc = ""] # [doc = "# "] # [doc = "- O(1) lookup and removal"] # [doc = "# "] remove_proposer { v : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Commits a vote in favour of the provided proposal."] # [doc = ""] # [doc = "If a proposal with the given nonce and source chain ID does not"] # [doc = "already exist, it will be created with an initial vote in favour"] # [doc = "from the caller."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] acknowledge_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 7)] # [doc = "Commits a vote against a provided proposal."] # [doc = ""] # [doc = "# "] # [doc = "- Fixed, since execution of proposal should not be included"] # [doc = "# "] reject_proposal { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , r_id : runtime_types :: webb_proposals :: header :: ResourceId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , # [codec (index = 8)] # [doc = "Evaluate the state of a proposal given the current vote threshold."] # [doc = ""] # [doc = "A proposal with enough votes will be either executed or cancelled,"] # [doc = "and the status will be updated accordingly."] # [doc = ""] # [doc = "# "] # [doc = "- weight of proposed call, regardless of whether execution is performed"] # [doc = "# "] eval_vote_state { nonce : runtime_types :: webb_proposals :: nonce :: Nonce , src_chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , prop : runtime_types :: webb_proposals :: proposal :: Proposal < runtime_types :: dkg_runtime_primitives :: CustomU32Getter > , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account does not have correct permissions"] - InvalidPermissions, - #[codec(index = 1)] - #[doc = "Proposer threshold not set"] - ThresholdNotSet, - #[codec(index = 2)] - #[doc = "Provided chain Id is not valid"] - InvalidChainId, - #[codec(index = 3)] - #[doc = "Proposer threshold cannot be 0"] - InvalidThreshold, - #[codec(index = 4)] - #[doc = "Interactions with this chain is not permitted"] - ChainNotWhitelisted, - #[codec(index = 5)] - #[doc = "Chain has already been enabled"] - ChainAlreadyWhitelisted, - #[codec(index = 6)] - #[doc = "Resource ID provided isn't mapped to anything"] - ResourceDoesNotExist, - #[codec(index = 7)] - #[doc = "Proposer already in set"] - ProposerAlreadyExists, - #[codec(index = 8)] - #[doc = "Provided accountId is not a proposer"] - ProposerInvalid, - #[codec(index = 9)] - #[doc = "Protected operation, must be performed by proposer"] - MustBeProposer, - #[codec(index = 10)] - #[doc = "Proposer has already submitted some vote for this proposal"] - ProposerAlreadyVoted, - #[codec(index = 11)] - #[doc = "A proposal with these parameters has already been submitted"] - ProposalAlreadyExists, - #[codec(index = 12)] - #[doc = "No proposal with the ID was found"] - ProposalDoesNotExist, - #[codec(index = 13)] - #[doc = "Cannot complete proposal, needs more votes"] - ProposalNotComplete, - #[codec(index = 14)] - #[doc = "Proposal has either failed or succeeded"] - ProposalAlreadyComplete, - #[codec(index = 15)] - #[doc = "Lifetime of proposal has been exceeded"] - ProposalExpired, - #[codec(index = 16)] - #[doc = "Proposer Count is Zero"] - ProposerCountIsZero, - #[codec(index = 17)] - #[doc = "Input is out of bounds"] - OutOfBounds, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "Vote threshold has changed (new_threshold)"] ProposerThresholdChanged { new_threshold : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Chain now available for transfers (chain_id)"] ChainWhitelisted { chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , } , # [codec (index = 2)] # [doc = "Proposer added to set"] ProposerAdded { proposer_id : :: subxt :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "Proposer removed from set"] ProposerRemoved { proposer_id : :: subxt :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "Vote submitted in favour of proposal"] VoteFor { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "Vot submitted against proposal"] VoteAgainst { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , who : :: subxt :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "Voting successful for a proposal"] ProposalApproved { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 7)] # [doc = "Voting rejected a proposal"] ProposalRejected { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 8)] # [doc = "Execution of call succeeded"] ProposalSucceeded { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 9)] # [doc = "Execution of call failed"] ProposalFailed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , chain_id : runtime_types :: webb_proposals :: header :: TypedChainId , proposal_nonce : runtime_types :: webb_proposals :: nonce :: Nonce , } , # [codec (index = 10)] # [doc = "Proposers have been reset"] AuthorityProposersReset { proposers : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ProposalStatus { - #[codec(index = 0)] - Initiated, - #[codec(index = 1)] - Approved, - #[codec(index = 2)] - Rejected, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ProposalVotes < _0 , _1 , _2 > { pub votes_for : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub votes_against : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub status : runtime_types :: pallet_dkg_proposals :: types :: ProposalStatus , pub expiry : _1 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _2 > } - } - } - pub mod pallet_election_provider_multi_phase { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , 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 : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: 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 : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: dkg_standalone_runtime :: NposSolution16 > > , } , # [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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error of the pallet that can be returned in response to dispatches."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Submission was too early."] - PreDispatchEarlySubmission, - #[codec(index = 1)] - #[doc = "Wrong number of winners presented."] - PreDispatchWrongWinnerCount, - #[codec(index = 2)] - #[doc = "Submission was too weak, score-wise."] - PreDispatchWeakSubmission, - #[codec(index = 3)] - #[doc = "The queue was full, and the solution was not better than any of the existing ones."] - SignedQueueFull, - #[codec(index = 4)] - #[doc = "The origin failed to pay the deposit."] - SignedCannotPayDeposit, - #[codec(index = 5)] - #[doc = "Witness data to dispatchable is invalid."] - SignedInvalidWitness, - #[codec(index = 6)] - #[doc = "The signed submission consumes too much weight"] - SignedTooMuchWeight, - #[codec(index = 7)] - #[doc = "OCW submitted solution for wrong round"] - OcwCallWrongEra, - #[codec(index = 8)] - #[doc = "Snapshot metadata should exist but didn't."] - MissingSnapshotMetadata, - #[codec(index = 9)] - #[doc = "`Self::insert_submission` returned an invalid index."] - InvalidSubmissionIndex, - #[codec(index = 10)] - #[doc = "The call is not allowed at this point."] - CallNotAllowed, - #[codec(index = 11)] - #[doc = "The fallback failed"] - FallbackFailed, - #[codec(index = 12)] - #[doc = "Some bound not met"] - BoundNotMet, - #[codec(index = 13)] - #[doc = "Submitted solution has too many winners"] - TooManyWinners, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] # [doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] # [doc = "Otherwise, the solution was stored either during the unsigned phase or by"] # [doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] # [doc = "room for this one."] SolutionStored { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , origin : :: core :: option :: Option < :: subxt :: utils :: AccountId32 > , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , score : runtime_types :: sp_npos_elections :: ElectionScore , } , # [codec (index = 2)] # [doc = "An election failed."] # [doc = ""] # [doc = "Not much can be said about which computes failed in the process."] ElectionFailed , # [codec (index = 3)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "There was a phase transition in a given round."] PhaseTransitioned { from : runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > , to : runtime_types :: pallet_election_provider_multi_phase :: Phase < :: core :: primitive :: u32 > , round : :: core :: primitive :: u32 , } , } - } - pub mod signed { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SignedSubmission < _0 , _1 , _2 > { pub who : _0 , pub deposit : _1 , pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < _2 > , pub call_fee : _1 , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ElectionCompute { - #[codec(index = 0)] - OnChain, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned, - #[codec(index = 3)] - Fallback, - #[codec(index = 4)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Phase<_0> { - #[codec(index = 0)] - Off, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned((::core::primitive::bool, _0)), - #[codec(index = 3)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub round: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReadySolution { pub supports : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: ::core::primitive::u32, - #[codec(compact)] - pub targets: ::core::primitive::u32, - } - } - pub mod pallet_grandpa { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [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 : :: std :: boxed :: Box < runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New authority set has been applied."] - NewAuthorities { - authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum 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_identity { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Identity pallet declaration."] - pub enum Call { - # [codec (index = 0)] # [doc = "Add a registrar to the system."] # [doc = ""] # [doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] # [doc = ""] # [doc = "- `account`: the account of the registrar."] # [doc = ""] # [doc = "Emits `RegistrarAdded` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] add_registrar { account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Set an account's identity information and reserve the appropriate deposit."] # [doc = ""] # [doc = "If the account already has identity information, the deposit is taken as part payment"] # [doc = "for the new deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `info`: The identity information."] # [doc = ""] # [doc = "Emits `IdentitySet` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(X + X' + R)`"] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] # [doc = " - where `R` judgements-count (registrar-count-bounded)"] set_identity { info : :: std :: boxed :: Box < runtime_types :: pallet_identity :: types :: IdentityInfo > , } , # [codec (index = 2)] # [doc = "Set the sub-accounts of the sender."] # [doc = ""] # [doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] # [doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "- `subs`: The identity's (new) sub-accounts."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(P + S)`"] # [doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] set_subs { subs : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_identity :: types :: Data ,) > , } , # [codec (index = 3)] # [doc = "Clear an account's identity info and all sub-accounts and return all deposits."] # [doc = ""] # [doc = "Payment: All reserved balances on the account are returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "identity."] # [doc = ""] # [doc = "Emits `IdentityCleared` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] clear_identity , # [codec (index = 4)] # [doc = "Request a judgement from a registrar."] # [doc = ""] # [doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] # [doc = "given."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is requested."] # [doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] # [doc = ""] # [doc = "```nocompile"] # [doc = "Self::registrars().get(reg_index).unwrap().fee"] # [doc = "```"] # [doc = ""] # [doc = "Emits `JudgementRequested` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] request_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , # [codec (compact)] max_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Cancel a previous request."] # [doc = ""] # [doc = "Payment: A previously reserved deposit is returned on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] # [doc = "registered identity."] # [doc = ""] # [doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] # [doc = ""] # [doc = "Emits `JudgementUnrequested` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] cancel_request { reg_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the fee required for a judgement to be requested from a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fee`: the new fee."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_fee { # [codec (compact)] index : :: core :: primitive :: u32 , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "Change the account associated with a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `new`: the new account ID."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_account_id { # [codec (compact)] index : :: core :: primitive :: u32 , new : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 8)] # [doc = "Set the field information for a registrar."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `index`."] # [doc = ""] # [doc = "- `index`: the index of the registrar whose fee is to be set."] # [doc = "- `fields`: the fields that the registrar concerns themselves with."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] set_fields { # [codec (compact)] index : :: core :: primitive :: u32 , fields : runtime_types :: pallet_identity :: types :: BitFlags < runtime_types :: pallet_identity :: types :: IdentityField > , } , # [codec (index = 9)] # [doc = "Provide a judgement for an account's identity."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] # [doc = "of the registrar whose index is `reg_index`."] # [doc = ""] # [doc = "- `reg_index`: the index of the registrar whose judgement is being made."] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] # [doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] # [doc = ""] # [doc = "Emits `JudgementGiven` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + X)`."] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] provide_judgement { # [codec (compact)] reg_index : :: core :: primitive :: u32 , target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , judgement : runtime_types :: pallet_identity :: types :: Judgement < :: core :: primitive :: u128 > , identity : :: subxt :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Remove an account's identity and sub-account information and slash the deposits."] # [doc = ""] # [doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] # [doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] # [doc = "manually using `cancel_request`."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] # [doc = ""] # [doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] # [doc = " with a registered identity."] # [doc = ""] # [doc = "Emits `IdentityKilled` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(R + S + X)`"] # [doc = " - where `R` registrar-count (governance-bounded)."] # [doc = " - where `S` subs-count (hard- and deposit-bounded)."] # [doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] kill_identity { target : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 11)] # [doc = "Add the given account to the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] add_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 12)] # [doc = "Alter the associated name of the given sub-account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] rename_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , data : runtime_types :: pallet_identity :: types :: Data , } , # [codec (index = 13)] # [doc = "Remove the given account from the sender's subs."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "sub identity of `sub`."] remove_sub { sub : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Remove the sender as a sub-account."] # [doc = ""] # [doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] # [doc = "to the sender (*not* the original depositor)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] # [doc = "super-identity."] # [doc = ""] # [doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] # [doc = "controller of an account is maliciously registered as a sub-account."] quit_sub , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Too many subs-accounts."] - TooManySubAccounts, - #[codec(index = 1)] - #[doc = "Account isn't found."] - NotFound, - #[codec(index = 2)] - #[doc = "Account isn't named."] - NotNamed, - #[codec(index = 3)] - #[doc = "Empty index."] - EmptyIndex, - #[codec(index = 4)] - #[doc = "Fee is changed."] - FeeChanged, - #[codec(index = 5)] - #[doc = "No identity found."] - NoIdentity, - #[codec(index = 6)] - #[doc = "Sticky judgement."] - StickyJudgement, - #[codec(index = 7)] - #[doc = "Judgement given."] - JudgementGiven, - #[codec(index = 8)] - #[doc = "Invalid judgement."] - InvalidJudgement, - #[codec(index = 9)] - #[doc = "The index is invalid."] - InvalidIndex, - #[codec(index = 10)] - #[doc = "The target is invalid."] - InvalidTarget, - #[codec(index = 11)] - #[doc = "Too many additional fields."] - TooManyFields, - #[codec(index = 12)] - #[doc = "Maximum amount of registrars reached. Cannot add any more."] - TooManyRegistrars, - #[codec(index = 13)] - #[doc = "Account ID is already named."] - AlreadyClaimed, - #[codec(index = 14)] - #[doc = "Sender is not a sub-account."] - NotSub, - #[codec(index = 15)] - #[doc = "Sub-account isn't owned by sender."] - NotOwned, - #[codec(index = 16)] - #[doc = "The provided judgement was for a different identity."] - JudgementForDifferentIdentity, - #[codec(index = 17)] - #[doc = "Error that occurs when there is an issue paying for judgement."] - JudgementPaymentFailed, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A name was set or reset (which will remove all judgements)."] - IdentitySet { who: ::subxt::utils::AccountId32 }, - #[codec(index = 1)] - #[doc = "A name was cleared, and the given balance returned."] - IdentityCleared { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "A name was removed and the given balance slashed."] - IdentityKilled { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A judgement was asked from a registrar."] - JudgementRequested { - who: ::subxt::utils::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A judgement request was retracted."] - JudgementUnrequested { - who: ::subxt::utils::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "A judgement was given by a registrar."] - JudgementGiven { - target: ::subxt::utils::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "A registrar was added."] - RegistrarAdded { - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 7)] - #[doc = "A sub-identity was added to an identity and the deposit paid."] - SubIdentityAdded { - sub: ::subxt::utils::AccountId32, - main: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "A sub-identity was removed from an identity and the deposit freed."] - SubIdentityRemoved { - sub: ::subxt::utils::AccountId32, - main: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] - #[doc = "main identity account to the sub-identity account."] - SubIdentityRevoked { - sub: ::subxt::utils::AccountId32, - main: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct BitFlags<_0>( - pub ::core::primitive::u64, - #[codec(skip)] pub ::core::marker::PhantomData<_0>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Data { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Raw0([::core::primitive::u8; 0usize]), - #[codec(index = 2)] - Raw1([::core::primitive::u8; 1usize]), - #[codec(index = 3)] - Raw2([::core::primitive::u8; 2usize]), - #[codec(index = 4)] - Raw3([::core::primitive::u8; 3usize]), - #[codec(index = 5)] - Raw4([::core::primitive::u8; 4usize]), - #[codec(index = 6)] - Raw5([::core::primitive::u8; 5usize]), - #[codec(index = 7)] - Raw6([::core::primitive::u8; 6usize]), - #[codec(index = 8)] - Raw7([::core::primitive::u8; 7usize]), - #[codec(index = 9)] - Raw8([::core::primitive::u8; 8usize]), - #[codec(index = 10)] - Raw9([::core::primitive::u8; 9usize]), - #[codec(index = 11)] - Raw10([::core::primitive::u8; 10usize]), - #[codec(index = 12)] - Raw11([::core::primitive::u8; 11usize]), - #[codec(index = 13)] - Raw12([::core::primitive::u8; 12usize]), - #[codec(index = 14)] - Raw13([::core::primitive::u8; 13usize]), - #[codec(index = 15)] - Raw14([::core::primitive::u8; 14usize]), - #[codec(index = 16)] - Raw15([::core::primitive::u8; 15usize]), - #[codec(index = 17)] - Raw16([::core::primitive::u8; 16usize]), - #[codec(index = 18)] - Raw17([::core::primitive::u8; 17usize]), - #[codec(index = 19)] - Raw18([::core::primitive::u8; 18usize]), - #[codec(index = 20)] - Raw19([::core::primitive::u8; 19usize]), - #[codec(index = 21)] - Raw20([::core::primitive::u8; 20usize]), - #[codec(index = 22)] - Raw21([::core::primitive::u8; 21usize]), - #[codec(index = 23)] - Raw22([::core::primitive::u8; 22usize]), - #[codec(index = 24)] - Raw23([::core::primitive::u8; 23usize]), - #[codec(index = 25)] - Raw24([::core::primitive::u8; 24usize]), - #[codec(index = 26)] - Raw25([::core::primitive::u8; 25usize]), - #[codec(index = 27)] - Raw26([::core::primitive::u8; 26usize]), - #[codec(index = 28)] - Raw27([::core::primitive::u8; 27usize]), - #[codec(index = 29)] - Raw28([::core::primitive::u8; 28usize]), - #[codec(index = 30)] - Raw29([::core::primitive::u8; 29usize]), - #[codec(index = 31)] - Raw30([::core::primitive::u8; 30usize]), - #[codec(index = 32)] - Raw31([::core::primitive::u8; 31usize]), - #[codec(index = 33)] - Raw32([::core::primitive::u8; 32usize]), - #[codec(index = 34)] - BlakeTwo256([::core::primitive::u8; 32usize]), - #[codec(index = 35)] - Sha256([::core::primitive::u8; 32usize]), - #[codec(index = 36)] - Keccak256([::core::primitive::u8; 32usize]), - #[codec(index = 37)] - ShaThree256([::core::primitive::u8; 32usize]), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum IdentityField { - #[codec(index = 1)] - Display, - #[codec(index = 2)] - Legal, - #[codec(index = 4)] - Web, - #[codec(index = 8)] - Riot, - #[codec(index = 16)] - Email, - #[codec(index = 32)] - PgpFingerprint, - #[codec(index = 64)] - Image, - #[codec(index = 128)] - Twitter, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct IdentityInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_identity :: types :: Data , runtime_types :: pallet_identity :: types :: Data ,) > , pub display : runtime_types :: pallet_identity :: types :: Data , pub legal : runtime_types :: pallet_identity :: types :: Data , pub web : runtime_types :: pallet_identity :: types :: Data , pub riot : runtime_types :: pallet_identity :: types :: Data , pub email : runtime_types :: pallet_identity :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_identity :: types :: Data , pub twitter : runtime_types :: pallet_identity :: types :: Data , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Judgement<_0> { - #[codec(index = 0)] - Unknown, - #[codec(index = 1)] - FeePaid(_0), - #[codec(index = 2)] - Reasonable, - #[codec(index = 3)] - KnownGood, - #[codec(index = 4)] - OutOfDate, - #[codec(index = 5)] - LowQuality, - #[codec(index = 6)] - Erroneous, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct RegistrarInfo<_0, _1> { - pub account: _1, - pub fee: _0, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Registration < _0 > { pub judgements : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u32 , runtime_types :: pallet_identity :: types :: Judgement < _0 > ,) > , pub deposit : _0 , pub info : runtime_types :: pallet_identity :: types :: IdentityInfo , } - } - } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - # [codec (index = 0)] # [doc = "## Complexity:"] # [doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] # [doc = " `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Non existent public key."] - InvalidKey, - #[codec(index = 1)] - #[doc = "Duplicated heartbeat."] - DuplicatedHeartbeat, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - # [codec (index = 0)] # [doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public , } , # [codec (index = 1)] # [doc = "At the end of the session, no offence was committed."] AllGood , # [codec (index = 2)] # [doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: pallet_staking :: Exposure < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > , } , } - } - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public( - pub runtime_types::sp_core::sr25519::Public, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature( - pub runtime_types::sp_core::sr25519::Signature, - ); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub network_state: - runtime_types::sp_core::offchain::OpaqueNetworkState, - pub session_index: _0, - pub authority_index: _0, - pub validators_len: _0, - } - } - pub mod pallet_indices { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A account index was assigned."] - IndexAssigned { - who: ::subxt::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::utils::AccountId32, - }, - } - } - } - pub mod pallet_nomination_pools { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 there 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 caim rewards on bahalf 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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [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 their 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."] withdraw_unbonded { member_account : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , 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` transferrable."] create { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 7)] # [doc = "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 :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "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."] nominate { pool_id : :: core :: primitive :: u32 , validators : :: std :: vec :: Vec < :: subxt :: 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"] # [doc = "of the pool."] set_metadata { pool_id : :: core :: primitive :: u32 , metadata : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 11)] # [doc = "Update configurations for the nomination pools. The origin for this call must be"] # [doc = "Root."] # [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`]."] 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 > , } , # [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 :: utils :: AccountId32 > , new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 > , new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 13)] # [doc = "Chill 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, same as [`Pallet::nominate`]."] # [doc = ""] # [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 = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { member : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , extra : runtime_types :: pallet_nomination_pools :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 15)] # [doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] # [doc = "bonding and withdrawing."] # [doc = ""] # [doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] # [doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] # [doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] # [doc = "pool."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - Member of a pool."] # [doc = "* `actor` - Account to claim reward. // improve this"] 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 `PermissionlessAll` or `PermissionlessWithdraw` in order"] # [doc = "for this call to be successful."] claim_payout_other { other : :: subxt :: utils :: AccountId32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DefensiveError { - #[codec(index = 0)] - NotEnoughSpaceInUnbondPool, - #[codec(index = 1)] - PoolNotFound, - #[codec(index = 2)] - RewardPoolNotFound, - #[codec(index = 3)] - SubPoolsNotFound, - #[codec(index = 4)] - BondedStashKilledPrematurely, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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"] # [doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] # [doc = "permissions for the pool. Members can never unbond to a 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 = "Pool id currently in use."] PoolIdInUse , # [codec (index = 22)] # [doc = "Pool id provided is not correct/usable."] InvalidPoolId , # [codec (index = 23)] # [doc = "Bonding extra is restricted to the exact pending reward amount."] BondExtraRestricted , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Events of this pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "A pool has been created."] - Created { - depositor: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A member has became bonded in a pool."] - Bonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - bonded: ::core::primitive::u128, - joined: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "A payout has been made to a member."] - PaidOut { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - payout: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - Unbonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - era: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - Withdrawn { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "A pool has been destroyed."] - Destroyed { pool_id: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "The state of a pool has changed"] - StateChanged { - pool_id: ::core::primitive::u32, - new_state: - runtime_types::pallet_nomination_pools::PoolState, - }, - #[codec(index = 7)] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - MemberRemoved { - pool_id: ::core::primitive::u32, - member: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - RolesUpdated { - root: - ::core::option::Option<::subxt::utils::AccountId32>, - bouncer: - ::core::option::Option<::subxt::utils::AccountId32>, - nominator: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 9)] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - PoolSlashed { - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - UnbondingPoolSlashed { - pool_id: ::core::primitive::u32, - era: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BondExtra<_0> { - #[codec(index = 0)] - FreeBalance(_0), - #[codec(index = 1)] - Rewards, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondedPoolInner { - pub points: ::core::primitive::u128, - pub state: runtime_types::pallet_nomination_pools::PoolState, - pub member_counter: ::core::primitive::u32, - pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::utils::AccountId32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ClaimPermission { - #[codec(index = 0)] - Permissioned, - #[codec(index = 1)] - PermissionlessCompound, - #[codec(index = 2)] - PermissionlessWithdraw, - #[codec(index = 3)] - PermissionlessAll, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolMember { pub pool_id : :: core :: primitive :: u32 , pub points : :: core :: primitive :: u128 , pub last_recorded_reward_counter : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub unbonding_eras : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , :: core :: primitive :: u128 > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolRoles<_0> { - pub depositor: _0, - pub root: ::core::option::Option<_0>, - pub nominator: ::core::option::Option<_0>, - pub bouncer: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PoolState { - #[codec(index = 0)] - Open, - #[codec(index = 1)] - Blocked, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RewardPool { - pub last_recorded_reward_counter: - runtime_types::sp_arithmetic::fixed_point::FixedU128, - pub last_recorded_total_payouts: ::core::primitive::u128, - pub total_rewards_claimed: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubPools { pub no_era : runtime_types :: pallet_nomination_pools :: UnbondPool , pub with_era : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: core :: primitive :: u32 , runtime_types :: pallet_nomination_pools :: UnbondPool > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnbondPool { - pub points: ::core::primitive::u128, - pub balance: ::core::primitive::u128, - } - } - pub mod pallet_session { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 :: dkg_standalone_runtime :: opaque :: SessionKeys , proof : :: std :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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_ and gets removed as dust."] bond { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: 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"] # [doc = "whatever 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 = "## 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)set the controller of a stash."] # [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 { controller : :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [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 upto 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 upto 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 : :: std :: vec :: Vec < :: subxt :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] force_unstake { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out all the stakers behind a single validator for a single era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] # [doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] # [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 = "## Complexity"] # [doc = "- At most O(MaxNominatorRewardedPerValidator)."] payout_stakers { validator_stash : :: subxt :: 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 = ""] # [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."] reap_stash { stash : :: subxt :: 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 : :: std :: vec :: Vec < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > > , } , # [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 > , } , # [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 { controller : :: subxt :: 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 :: 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 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - 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 = "Incorrect previous history depth input provided."] - IncorrectHistoryDepth, - #[codec(index = 16)] - #[doc = "Incorrect number of slashing spans provided."] - IncorrectSlashingSpans, - #[codec(index = 17)] - #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] - BadState, - #[codec(index = 18)] - #[doc = "Too many nomination targets supplied."] - TooManyTargets, - #[codec(index = 19)] - #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] - BadTarget, - #[codec(index = 20)] - #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] - CannotChillOther, - #[codec(index = 21)] - #[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 = 22)] - #[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 = 23)] - #[doc = "Commission is too low. Must be at least `MinCommission`."] - CommissionTooLow, - #[codec(index = 24)] - #[doc = "Some bound is not met."] - BoundNotMet, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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."] Rewarded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A slash for the given validator, for the given percentage of their stake, at the given"] # [doc = "era as been reported."] SlashReported { validator : :: subxt :: utils :: AccountId32 , fraction : runtime_types :: sp_arithmetic :: per_things :: Perbill , slash_era : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "An old slashing report from a prior era was discarded because it could"] # [doc = "not be processed."] OldSlashingReportDiscarded { session_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A new set of stakers was elected."] StakersElected , # [codec (index = 6)] # [doc = "An account has bonded this amount. \\[stash, amount\\]"] # [doc = ""] # [doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] # [doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] # [doc = "from the unlocking queue."] Withdrawn { stash : :: subxt :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: utils :: AccountId32 , stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "The election failed. No new era is planned."] StakingElectionFailed , # [codec (index = 11)] # [doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: utils :: AccountId32 , prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , # [codec (index = 14)] # [doc = "A new force era mode was set."] ForceEra { mode : runtime_types :: pallet_staking :: Forcing , } , } - } - } - pub mod slashing { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SlashingSpans { - pub span_index: ::core::primitive::u32, - pub last_start: ::core::primitive::u32, - pub last_nonzero_slash: ::core::primitive::u32, - pub prior: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ActiveEraInfo { - pub index: ::core::primitive::u32, - pub start: ::core::option::Option<::core::primitive::u64>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EraRewardPoints<_0> { - pub total: ::core::primitive::u32, - pub individual: - ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: ::std::vec::Vec< - runtime_types::pallet_staking::IndividualExposure<_0, _1>, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Forcing { - #[codec(index = 0)] - NotForcing, - #[codec(index = 1)] - ForceNew, - #[codec(index = 2)] - ForceNone, - #[codec(index = 3)] - ForceAlways, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Nominations { - pub targets: - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - pub submitted_in: ::core::primitive::u32, - pub suppressed: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RewardDestination<_0> { - #[codec(index = 0)] - Staked, - #[codec(index = 1)] - Stash, - #[codec(index = 2)] - Controller, - #[codec(index = 3)] - Account(_0), - #[codec(index = 4)] - None, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct StakingLedger { - pub stash: ::subxt::utils::AccountId32, - #[codec(compact)] - pub total: ::core::primitive::u128, - #[codec(compact)] - pub active: ::core::primitive::u128, - pub unlocking: - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk< - ::core::primitive::u128, - >, - >, - pub claimed_rewards: - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnappliedSlash<_0, _1> { - pub validator: _0, - pub own: _1, - pub others: ::std::vec::Vec<(_0, _1)>, - pub reporters: ::std::vec::Vec<_0>, - pub payout: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: - runtime_types::sp_arithmetic::per_things::Perbill, - pub blocked: ::core::primitive::bool, - } - } - pub mod pallet_sudo { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - sudo { - call: ::std::boxed::Box< - runtime_types::dkg_standalone_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_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - sudo_unchecked_weight { - call: ::std::boxed::Box< - runtime_types::dkg_standalone_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."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - set_key { - new: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[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_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] - sudo_as { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - call: ::std::boxed::Box< - runtime_types::dkg_standalone_runtime::RuntimeCall, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Error for the Sudo pallet"] - pub enum Error { - #[codec(index = 0)] - #[doc = "Sender must be the Sudo account"] - RequireSudo, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A sudo just took place. \\[result\\]"] - Sudid { - sudo_result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 1)] - #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] - KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 2)] - #[doc = "A sudo just took place. \\[result\\]"] - 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - 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 = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - 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::utils::AccountId32, - actual_fee: ::core::primitive::u128, - tip: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ChargeTransactionPayment( - #[codec(compact)] pub ::core::primitive::u128, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Releases { - #[codec(index = 0)] - V1Ancient, - #[codec(index = 1)] - V2, - } - } - pub mod sp_arithmetic { - use super::runtime_types; - pub mod fixed_point { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct FixedU128(pub ::core::primitive::u128); - } - pub mod per_things { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct PerU16(pub ::core::primitive::u16); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Perbill(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Percent(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Permill(pub ::core::primitive::u32); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ArithmeticError { - #[codec(index = 0)] - Underflow, - #[codec(index = 1)] - Overflow, - #[codec(index = 2)] - DivisionByZero, - } - } - pub mod sp_consensus_aura { - use super::runtime_types; - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public( - pub runtime_types::sp_core::sr25519::Public, - ); - } - } - } - pub mod sp_consensus_slots { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); - } - pub mod ecdsa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub [::core::primitive::u8; 33usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature(pub [::core::primitive::u8; 65usize]); - } - pub mod ed25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct OpaqueMultiaddr( - pub ::std::vec::Vec<::core::primitive::u8>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: ::std::vec::Vec< - runtime_types::sp_core::offchain::OpaqueMultiaddr, - >, - } - } - pub mod sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature(pub [::core::primitive::u8; 64usize]); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Void {} - } - pub mod sp_finality_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Signature( - pub runtime_types::sp_core::ed25519::Signature, - ); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Equivocation<_0, _1> { - #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EquivocationProof<_0, _1> { - pub set_id: ::core::primitive::u64, - pub equivocation: - runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, - } - } - pub mod sp_npos_elections { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ElectionScore { - pub minimal_stake: ::core::primitive::u128, - pub sum_stake: ::core::primitive::u128, - pub sum_stake_squared: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Support<_0> { - pub total: ::core::primitive::u128, - pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, - } - } - pub mod sp_runtime { - use super::runtime_types; - pub mod generic { - use super::runtime_types; - pub mod digest { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Digest { pub logs : :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum DigestItem { - #[codec(index = 6)] - PreRuntime( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 4)] - Consensus( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 5)] - Seal( - [::core::primitive::u8; 4usize], - ::std::vec::Vec<::core::primitive::u8>, - ), - #[codec(index = 0)] - Other(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 8)] - RuntimeEnvironmentUpdated, - } - } - pub mod era { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum 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 unchecked_extrinsic { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct UncheckedExtrinsic<_0, _1, _2, _3>( - pub ::std::vec::Vec<::core::primitive::u8>, - #[codec(skip)] - pub ::core::marker::PhantomData<(_0, _1, _2, _3)>, - ); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ModuleError { - pub index: ::core::primitive::u8, - pub error: [::core::primitive::u8; 4usize], - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MultiSignature { - #[codec(index = 0)] - Ed25519(runtime_types::sp_core::ed25519::Signature), - #[codec(index = 1)] - Sr25519(runtime_types::sp_core::sr25519::Signature), - #[codec(index = 2)] - Ecdsa(runtime_types::sp_core::ecdsa::Signature), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum TokenError { - #[codec(index = 0)] - NoFunds, - #[codec(index = 1)] - WouldDie, - #[codec(index = 2)] - BelowMinimum, - #[codec(index = 3)] - CannotCreate, - #[codec(index = 4)] - UnknownAsset, - #[codec(index = 5)] - Frozen, - #[codec(index = 6)] - Unsupported, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum TransactionalError { - #[codec(index = 0)] - LimitReached, - #[codec(index = 1)] - NoLayer, - } - } - pub mod sp_version { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RuntimeVersion { - pub spec_name: ::std::string::String, - pub impl_name: ::std::string::String, - pub authoring_version: ::core::primitive::u32, - pub spec_version: ::core::primitive::u32, - pub impl_version: ::core::primitive::u32, - pub apis: ::std::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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: 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 :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RuntimeDbWeight { - pub read: ::core::primitive::u64, - pub write: ::core::primitive::u64, - } - } - pub mod webb_proposals { - use super::runtime_types; - pub mod header { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct ResourceId(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum TypedChainId { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Evm(::core::primitive::u32), - #[codec(index = 2)] - Substrate(::core::primitive::u32), - #[codec(index = 3)] - PolkadotParachain(::core::primitive::u32), - #[codec(index = 4)] - KusamaParachain(::core::primitive::u32), - #[codec(index = 5)] - RococoParachain(::core::primitive::u32), - #[codec(index = 6)] - Cosmos(::core::primitive::u32), - #[codec(index = 7)] - Solana(::core::primitive::u32), - #[codec(index = 8)] - Ink(::core::primitive::u32), - } - } - pub mod nonce { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub struct Nonce(pub ::core::primitive::u32); - } - pub mod proposal { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum Proposal<_0> { - # [codec (index = 0)] Signed { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] Unsigned { kind : runtime_types :: webb_proposals :: proposal :: ProposalKind , data : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , __Ignore (:: core :: marker :: PhantomData < _0 >) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type( - crate_path = ":: subxt :: ext :: scale_decode" - )] - #[encode_as_type( - crate_path = ":: subxt :: ext :: scale_encode" - )] - pub enum ProposalKind { - #[codec(index = 0)] - Refresh, - #[codec(index = 1)] - ProposerSetUpdate, - #[codec(index = 2)] - EVM, - #[codec(index = 3)] - AnchorCreate, - #[codec(index = 4)] - AnchorUpdate, - #[codec(index = 5)] - TokenAdd, - #[codec(index = 6)] - TokenRemove, - #[codec(index = 7)] - WrappingFeeUpdate, - #[codec(index = 8)] - ResourceIdUpdate, - #[codec(index = 9)] - RescueTokens, - #[codec(index = 10)] - MaxDepositLimitUpdate, - #[codec(index = 11)] - MinWithdrawalLimitUpdate, - #[codec(index = 12)] - SetVerifier, - #[codec(index = 13)] - SetTreasuryHandler, - #[codec(index = 14)] - FeeRecipientUpdate, - } - } - } - } -} From 02279493681ba9275dc5209418939e6ee1961387 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Mon, 15 May 2023 17:28:10 +0530 Subject: [PATCH 6/8] remove dkg and protocol-substrate runtime modules --- src/substrate/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/substrate/mod.rs b/src/substrate/mod.rs index 86c4b38..3171fa1 100644 --- a/src/substrate/mod.rs +++ b/src/substrate/mod.rs @@ -1,7 +1,4 @@ #![allow(clippy::all, clippy::exhaustive_enums)] - -pub mod dkg_runtime; -pub mod protocol_substrate_runtime; pub mod tangle_runtime; pub use scale; From 112cb9d61f412b71c6d43f149c3613db16ee7fd8 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Mon, 15 May 2023 17:33:49 +0530 Subject: [PATCH 7/8] remove dkg runtime from build and update tests --- build.rs | 16 ---------------- metadata/dkg-runtime.scale | Bin 151011 -> 0 bytes metadata/protocol-substrate-runtime.scale | Bin 274082 -> 0 bytes tests/dkg.rs | 21 +++++++++++---------- 4 files changed, 11 insertions(+), 26 deletions(-) delete mode 100644 metadata/dkg-runtime.scale delete mode 100644 metadata/protocol-substrate-runtime.scale diff --git a/build.rs b/build.rs index ad7f436..41f27ba 100644 --- a/build.rs +++ b/build.rs @@ -207,20 +207,6 @@ mod substrate { Ok(()) } - pub fn generate_dkg_runtime() -> Result<(), Box> { - parse_and_generate_runtime( - "metadata/dkg-runtime.scale", - "src/substrate/dkg_runtime.rs", - ) - } - - pub fn generate_protocol_substrate_runtime() -> Result<(), Box> { - parse_and_generate_runtime( - "metadata/protocol-substrate-runtime.scale", - "src/substrate/protocol_substrate_runtime.rs", - ) - } - pub fn generate_tangle_runtime() -> Result<(), Box> { parse_and_generate_runtime( "metadata/tangle-runtime.scale", @@ -259,8 +245,6 @@ fn main() -> Result<(), Box> { } #[cfg(feature = "generate-substrate")] { - substrate::generate_dkg_runtime()?; - substrate::generate_protocol_substrate_runtime()?; substrate::generate_tangle_runtime()?; run_cargo_fmt()?; } diff --git a/metadata/dkg-runtime.scale b/metadata/dkg-runtime.scale deleted file mode 100644 index c6c8cf6d369eb448aca9dd1687b106bc7a1b7ee5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151011 zcmeFa4QOQ7c{hHJba$<_wTaxyAcF!oZ{)XR~fFneG-V%~mo|Y3=Q{ zo3l%mO0&~wuU0?#s4TBAO8&K`e{3c&jeE@G=m`g{ z&hBor)sCyRbhq5DY@b|9TFdVD)Ae$iM$v|i&8VGdG+R66dTgT&V`rPYNvqthH5>lP z)K0m9RX1CE(!#`})7Z@GN$tvZJDt*hi`O2Vcut;R+qjsmV!O7JOxe-Sr%o6<4JbFa zifQe0{*jq7=J2$c#*`16SwOB;+o`o{*OFp;Z#PND&OG|qr}_|M&X}PQb7G9+x3GN} zVe(4SNLsbZM74G$N!t_4@(;eWWA)~hblxsLn^YF{=_-)tNn_^G%c5C4pqJ^ay|Lrd zYpvv>jy7UW+U3(gqy)H>t~9RH8p&$am^nMiVLJ0qn!{!)G`NN4kr`W0%Jo}l2?V>) z-cDLkel%mMZfYxyYqeIhu>*{~w2SRZsysa>ag=bJ@ar;Gea4*WIZ7+n(EehAlUW^! zR_s||#4Ipke0RH?Cg-djU*j(TLc)e;ZM0(SM7z0LtEA6ZJHbV70HkL}p08fLQcT;# zlzOv~`0bhVv*YK+E>En>5su87-OZorg$0?(qHB&W%_L5C4TmT)ZF|EVteQURYi-Ts zr&}0%w;Y)pcEh#4qK{l_bI8Q*2%^u|?8`lewXai9t>vdb9hooN*IZMsaR(HQG@!5f zJ!THg*ILcpW?HUeh;P|1<-WrS&=-9lj+isK56@s3b?)*H?OOvrFK+AmzFv-)GaFcM zTCVWyu9f$Q36Xi%e#7tq-_W~O`)n;UVZtL!|6o2=%yU%Q|)Ds=a(a&?8 zdb=jr5}9Awcih*BYgP1Qwz$J~MZvGWZb!L8SJJb!6f^&weZ_UMiD$(+9`=23)GVHF z?$jDWuhyDPg56sChWoG)-W7NGvhVwkn922a`D(3kB{D~BKr`SmpY=8WD4Hi}3iw9m zV>aMfs?S_=aD(|%ty=X;axuArNw@YQ^KolutY3}1E4JLro% ze`Mm-D)zV5M&}RNfXiTH^024VC(R$@gPjYFI_OnoW^4d$ZKv3jr+r_H8?!dr#djxk zX5(^F!83RySDHJ! z;Fw7@PPK!rPQAWYSPcC>Rj$>O>WG~W-6pM8vsJPue7`IF+uUSa8?AMXyCvNgW=}V( zi6@ss(OPMtf(NDedO3|dN<|CP=acJBT8ZprS>+aE=Qb7=f)E2DyS)@QlIyX1FFjOR z3F&a*#M3p11=X8&5=GBrlKCFc!7e(0ys}enT_qeQz!7r9==TKDPb#CZ`=z!YXLWYUSTX6hUn z4n-3)WXwzZb*KZ{knYG}~vJ&8wYVj(MtF zz0j(G^<&J5bIod}jx$xYv-+!kKWs!ypuEYwt2IDQAlJ^GZ-POnya|4Ea--SA3ic>4 zh-eDwVSJ-`H35Cuw$t*P_IHn&UTW3a+u%O6N@VJGG5b?nKrYJB|8hMtyEe}e%5`mb z#7wQ+*e-V<>LD4|5<^Azn$+lzfLLVv0K9&PC`ygpYr!Mh~ZDByp;=(oeyEXI6wQDuf|5JPa zCuuc_bi4Vb3<9_vnLA6__F_`5Y-0+LY|b~&miKswjcJe0JA&_In|>-gdIFMAasw-? zUBTHMv7^_wfxz7a$nD0MUChxXeg=};UJ67-woHf<4yklkn3mq3f<97>_V2|;Kj`fR z6er$Hl15BjrV4r)Pj?!=+nK_w>zB%lN0tH88@QUG=vN1f#vbE#Gp@DMxYB90!1KZa zSC<8W+g48olS6MQ079d`3TSEF+P4|vs0^A zACV8zV}i};BQtS=ox@3ChnssKm9^9pNj|y}cF)P0UAt%O=scN6r@h?-y44`d+7o5> z*Ip5b`m#OY-|kWB!DhXNFXGTBMk7#d2WU|5dJWWjVh!gPsAQwpPy6-zZo9wOm4=1M ziwOx#)eJ>%+~f=Bp=^0Kq4+XXlUK|uSp3MV)8^IDvpAny5bEj>Z;B4EqgeaIT4%Ff ztDv3vqFqd?k3RO;@y8by{L?Q6Bg3S7m-`^f8yH?2?bXz~_H6{RO|%NFb#kRqZC>Y* z+mG*CNJ!Adox(o>n!T{#lnhMsdp+#j2?X(VQ1Uo!?j&+_V)u0+UItY@+f3UBj5kr< zq2Z!?Bs=ni?HLLTzX@wX3{sIMegrxAu!|h~9EexE*=ghag2=@yH-LMT9Lx3P1X@b1 zJ$r+A07<=ZC5HG=hA7d2qz8>Zt~b-P5DTx_N?M~dWi)sC$k9lmedy}INk`GYu5ANS1BzDde&Ro>FT})sI zYSk!|iV5n2?3+DPg}ue8Uex^Co%Bm~0_qfgF^5Oa*}nPa;6jXcVYE*jcTD<)qR$H=(dIv?diM9ai5C!0(BEE(_4} zCTLUDvw>4JofNJVRCvy`>KMXpI#YK(FaCqI| zpz$ZyA%H{BxSipTM7D2uPeBeC9OlW*WV?K=)@;q(O@{HM@op361lT!*0T`wrI;Uf_ znx60kMDfv%j8Vd&IOom+xTi5+9zE-%ue@oeiy4TbJAX!*%+txMRRu_ZBOR>0Et4`b3c_dqEcZd1Vxd&jw3lcMg0~p^AM{l@( zW6Xm)md3vKcp3(dN+L$3nZh=a3h&`E*x2Son)RwP{`hHJmAA#VfBhC57{@{R$X z-}BMv#^9bi4ek3bs;jT7o2LIz4LJTI6S@J$z$XCICA)kBirSmz%~5go^!MU?yE(1v zYxYD^sitt2DD5=nYe7jHmp8e_-|#BhCt)G_1{_x($Jit0Ew~8bOc`Cvaq8eq>1Wlm zC14D6n4}dBqNCDKzG0!w4#ybIws@bv@ocl5K)!M$LGyw$2=&ROvZoAe_ z=#U`&iqW*z0Ll6eOfsOHRcQjkWTS7%uQBXWaWJc8QX{mdG@kZf&z$h{UaCR^ioj{z zI?#2mdNmYn_||cm%_-}Ha4!0%FgjBGJGhtOsOsC(KrH&ANPFmMk}!Fy*@B(`S4j1H zc21j?>rdlPbHJ+Scb%uJC?5D9Shuip{X9MLFp3N?Uq#WEWD|n)L#=bGe687OQ9tlq z&a%t6|WLiN$3dKFsN)2h7qgrU{@!CH{~>b~t(kbD%Dsc}WD1%Kfvr zn0y9~xjQk7d!lVOia9)dPCh9gWRYINn=4k8znfWjpL=~7Lq;o*>3 zUTfB`maEP7TDb+wH_mK$Icyf6?xf|Na{sHyEM5e=uQdB#9WoQAo9RvyK3+HSVKcGb zM5qnC{_e>=W^}c2HT;PPi0}0-EgYF1ina(NsfedopTp*)wVt?W3b4P?m1ob<^RU#Y zz@D3V9`tV&Bw?D2#ccy3PTzz4uEZF=hvny5Fk|8zKb1JIqq)bN1g3z@RS-zx`WP{D zcvk5o@^xyCn2mGg8_tFyz696sUQ>cc#M>Ln_53?Hb1?a55gW5rgR5cGoWY+PaF?W= z)}9M8Fh|W9Oa<{DwOxifxo$sV%ny2@rr}iMO2V;9&ph9TNMOtlM}4>eg?5icK31Wh zNspCQ8`ogpb^NDX4}$0TK;juyY0W2h_0}RiXXSdqN<>zsibjDF#c(s$o8@Z3F4uH4 zDy=Gm=h{EduHAIvFpq*go7~tHN=n@x+Bt>mAKS$X;wzJ=B82-q8NIjSnu+$2QyZsg zu)%ThE{ZyIdw43rt3kcwJj`Hb2-oP8>jw|C6If*dkDtKJil+c_1mH+Mwe;v~fq z<&Qt~vu*!-02fa{VK{pGK!o^o065t;IN_KZ1?T|{tZ}Cz$MO#7Z^$5=CgXw!v>f&= zmA4$wGGaIc?6)8<2edk5&gOXP0SynEY9F^fp!q$f)XRqtXgy-q@*MhrmPbr`An!il zlY7l8`*HOHzPitx&GGvK8jhOneo5ef_D9Wjzl?A|dq@xOKxH@P-O+8Qvco*@0~3Ad zVZTfe<%1_M;##=|9b%BOXr~?5++qy%oU`;_*kUNE9c|ZkdmoyS7wl4;n+07paVhJi zG)rP~eY;lKj!Wo3BftXV0A-GMH1q^|X{Fv_2nhR_eJL1Q?& zFtHC<{4-&E=umth;Cl?&VXQ-3+Y*^45f?Qa!|NDuDP4wOb+Z)>-O7sYqLTHCXhLC) z_yYT{h_)`-k&z2mBlEA&IG|m$5cFFT27m{VF~7|73e(3c@C|syuSR{4@qwYX{b(^U z57kLj>2;AxN9`oNRh@S7YrE)!dr#{VM0z5C1rcxi?(-b{VAqPyEZ~G11Uh{ODCI^` z$GZx^^lZw8UqQe>gkc?}V4e|VDd||H9`CL`^-SM)TZmV;;_QnwE|HT?2Nip!G<(VN z{5sj&f2Y$CUmKAO@kDGRvQR9+$vn$to_YvnVZNo%Z>jK*m2mv)wKSR4uLrC&!Aj9V zwSy?xE7GdtgitpM;x9M%&e;;q4XkaIb9;mi@kp8y(3QjBGhz*T++)?7U}B`0v*FH%|3~ zvQZx6vH+zmiP}NGvl-0tdn^*HDkIx5tQPnwp&FCqag!^{f_RonhZ;3l*jdQ3s$0hXwB=38!wA z^zni7OEo?~rswRfoC^T!l|FY4vgsC(4SB_|!&CKUomB^WdNfA61N)KfQ8H;;ajunmMv%AS%e?4+b z^tGR2j!#}_h#CtzJ)!yr=ymM1F<4FFr(nO_ELW}~e03`Ly-4}r8(BsOTmz=KqCX31 z&lyCL&Iu7oU_4;D0n zhJ|5%^upHG;B`mlH+FiObZs_1)tCVoa!VgJ<~Lw{Bkzov-;JJhQccMI=;C2MMsEZs z8!aG^>?11*mQIVC+EFhcX8vyzeeImMK5zj1Sr(%TZ8zwe>US9d;K0zroOGe8%zgnj zQ}h@K;mnU>qo2Falvj}ak(Z?mBlE*zBn;zFT_b_+CazmM`jP{BZ{|!F>?I^-c2X^% z0K-%jo_?HFreX9%B~LQ%1`ez-JHhlEc*RUqT8jBJBbY8MvM_N9v0k)AOzb2iBDc_+ zo!FFbdL@24@tG!Ax3{l=Wqo-m)?VGX6(p3#`mqui&Z#g-t>Z!mL5H_9hu!iXI8pB$ z5XFL(%ByUxJ20yYM!DG(KoN8nDW49n((iV%-RZ>Qjr5)H!D3l~!58vd!@9 z>s=z)Wk^mQq(!Oet;x=oynb-pW{u8tdKJ9t8%co419 z4rT!1UNsHmMfUTa62?~MPFEItcJB*LtiDRl?az!3s z*O3^MUw`3}T~$%Eyop4gijoNOYxFHrCOD%ABPj$de7nQMUdX`u5rfeNes#{?6a<(b zXV$$E9RwRxhY-bWbd!@9`mGimLo4&Iws|cJhIp??W~38SSPv&dHezIndF(3Md9_ z1o}E@{~FYs27Cv5F@WUvn9g6tR-DT%rVP!*P<9~0X05N*D#)6fDa>7L0)rg`hUCh~ z?|pUINvIV#dixtSrW|){?%QN!{^T46Qs{wkO3c%9KW0N(V?4jLT%w61?-hOx`%GBfII9JJO`BHZ~2j_Y4Sz0peE} z^q799Oj3MJ0A{M zhI~P*hFwPX(aFb|;yi(ot`3kI_ZeykA@?v($v5$IfBa?+>h-!wCtw z*GO9`B2%HazID^uAbImgt(`glr*8Am+GCt_GXcjv@V2n4^YdJ_wae_k^lNk;qwY zkP9@wE_;-Utq2G3Q1q(iS_7v^TXhQ|5TRdDmzg1_ss!>5@%Gly@9@|=ScO-|#I`T$ zMHj}=n$1oDQjvpRx@^wb^A|Q&7GSi)ff7N0MmuEI@A(8mHQfoDLi$S3Jg(KS51~Q} z({6?IJU3lCh>H2wi z1df|OgPFW{y9106#k(QSs4j5ylIQeAKV%7Nc$H*Gv~_(-5LC81jjMnF!rbA#Ips8! zY6y(zG-#J%ODG+1_)k17QUUbVaL)UV>0q=uf+*pPIApXz#SEp3<&2mXHr92Q1ao0E zb5_oKqqj)pylKaoEV=PgLV#xk*aPQF0~%~$^7OWp4?uG6KwQ4B-^>SFH}d?eU;-_q zi`S6!#ntn8s5v?}$1ZYLII$)?2h(mrIRk_+7k}V0-O(-v`a|nd|M41)UgrYw4)i$v z6UP;xV*xc0{~@!XzpSwQEQ5f^?bce!Rtmr5z6dl9r%twHY`3RGwVYuPhg4V??U=#HcB<;Itg*j?R zyA#x>LDUhojA^EUW57!2Be3qbBR%3rFNBb*KMngh;@9c7d?3$wCO3IDGCPTR06wL| zN3D6Vuh#%8J2nmJ)I-j|j!BrEPp(5Wn$q84I)h|1D}OB2ue034utCX`kS^_*Ntc8K zBMob9IKFZ-j$=k1w`h&1XEmskScmc!J>qjPC^&J)eJW%iVGjNqtAOYXm{C|F35RfsJV;Y%!h19qV`VQt~rU3aC&ytRiweu zjs`mOP4sJ=JR0N3zlEi@Krr~rv>Hr=1uEH(sq}rOgW5Vw|3tFoqVNB7Jppyu&n7$R z6sTT_*+xIf4PMbcz}LZNxcRD;d0APl0Tf95pjy{upG3?3#vF=%m>bixv%y1(EQJxz z{JCHAMQ=IVXVgVkSE$_bbbH>FAu6|2R2z<9H3={jsFzca0MEWc2ZgmTDsz^d#qNEN z8_^w~jq5s;@c~&%#RP2_^3!w;quz~%4E8bTo3HZ_O}^Q9#4fj=bnIrU%;1B_BU)T; z-t}P=>dAUg5c1o?Nd!WB4!H*ylop>NAN1TGbGLFZb`D=>y6IZK6P53#yf9;ft1MLW>Zin`%V$6! z+ncCJg>df#hYOfK7c$mhB0L7siqShh2Tpu7Z>v;)$5;b zHktkO&XO9h;FF}9MuO@XFIg@gA%zsO77wOKC#ae|yZ@I+G{# zY@slx1QKj?P&*7kUr!=oc*Y(u8dP79c0@JNrI(3{9C?d=XtBalW0t}0=H?xy`f zpI!+P6+z(9L+1C$)RHgMiW-Yfx3Uu~5!r6G%k?D)lkO=(?^u5+|6oGArs;~cZ^`b# zTZGzIhGu6pi2_WZ(JK2I3W<(0opxz%=*_S1@ZX@t+qg zTn7aC*qFK8GurcKft@aF`O+>*-c%DUmp5YPQe+_%VeqBwUbgluE7VmM7EU8*3OsWW z0Tc+fn37f$qY`VYS$Wij1=s63=YPeRGNy2N%p~~d(2%LwfhGRNPD9QT0WO{ZHAm&R z$hu#$sBB}#w$DMqQx|qmrMZGR@rh5woMRo4d+og#9<3EkpXC&$hifid~2~?zU1x5x?vl72ki$rO? zL;~hlDlf|o$zzvBFZnqYY0`j67x@oKtgbzO~=DUXofw zUN*c4KM^b>41FYzfK8IM`(i}i@ok2pZf5XUz%2iS#2aewOtPWXLu4ZE8|Af1rNi=L z7zVbkN~cbT8~by$6opqpQ-!fmEX9RoJ%fTiMX@dpI*#`sj%B~&C>jmThiaTGz`=qz zw>HEYS}DmBQ56XFbYN-dGDa%+oEOd+<`@^5E8$t#0Vx^!tTp%nahsbn9X^;dd%d)! z&JqskocK|+Ry2zIjoRr=gnJcL_s+^lqUiLE{)e=LNPWrATZ>u)-Q}zoU8i_1g(Ja8 zJ`Y>UZ4|@)0+RfEHS90gzH->^QC1IIADAx;UTN=qKrrpREEeS=l$+%0W}e`J!;8Ow zFyi()@+Z#}dbVvBa^&6947kb};B7F~wqI;4^F5Hs-E{dR*ykfs~*0K7n| zsY>QxQt*4zt|kF0@aMFzGq0Ic4#ZC?HaZ5p=2cc&U){69HivP0avn-zy3t&1FiecK z$VZlB;O+q(7-=}?u;2+S+(&W?X-Pi3?MbxNT))wz@CQ+=2UUhff2|ET2oElr$O7FW zVn3zeh{&%HUgH%t#*?g)Gn7svB+zeViFSF+yeaWjrS73i-eYhU*<;JeRvBSS6tx(G zm!K5!@76o8`h!n7itT+vU5>2=B(|!4E7FU697_rvYHBxF-t?lsB_WC)BgnzW0NyeH z>?#Nb<2rhPI0gPF+)4NxcG@Y!swQf{^KJ(Tpw+_MX)OAwS{<3E;?R4CnB@5EmOS=- zDaw$=1IlmX+}ityr z98mt$%)PGlSIPUhOorcsfoBCzA)vySUogLb3x&qXg}Ah=VUZFB=BaZqDnL@Du;77I zFh3y-{PF@Yus-p$aVrr44;>ajC~7=$v0&bVU?&5Y76elAy91T132;)cq^huZOu`_|aIm8Age5Se!r_+YNo=a>=vbg=U*7|!Ca^F_ za0@m{h$!X?d?R?+DUYM?=KVqcA?gV-?E&C#CCAFX#%^v40R90>D_mw*n33yxO#xt?5+OBY(#dvGq%kU1xGSFz@UT z70l6tc2{keH{VzDYW|E7RJVS><^hZfE<|A_1W*@N(f4`GCOF&AB|a}}_{1eEuDNW> zzY)E~TpOCOu;jjGtjR#My9 z?6goSk;gAzxmnP>V19TTn@F_`#P4edoW5xsznO6U?%3&CB916@adJsGX}&;woaAdU z3kqag-)E==^;g1Oq^>;avEN}3rw@8w-BusK%A&a?OFaA>cGRC(osdknEbdwa-67Q3 zQ_7wbr|5ygtgIBRs<6iln7D3Z9~~RZ4kPmK#JJ%s>~bn4Hn&`-&;dz`rN6yg;Ye@6 zymbH~xNkr^G@I3YvHL)>$6IE3AEw^?T`Tt}IcafD?nOb|4g`gCPA*e{1Brih88+uU zhb1{irp@@sY844XHfP;5Mz6ezVC%D8?O~%Fy;#1EG6UIlMaaK#<9zbb?rXS^l;qw# zIv1JmTW3RlbnY^A3j7W20e6Hzd-(hP1gxC?FpirK+FrtdWcC`dM7ag6@G7z^;}3_H zPW%hxfiMexEo%>A;+qgZdj$e4{t~o=AuUDHGlaj}pup*DIJydn`N!;DtMCXi<|_$1 zY}4o!b+kbkD@;NC-6=O9>A@x@@~e)8>FxSA($`LTPu7QXPC`(9#6?pVqVGzb`qL2V zkf`}$5d9#eG+XHhC|b|T^xlZ1np}a8{=tr(WoR=Tl`xSa$V#kB>8yWtEvZbO()Un2 znWQ`$tz)lX#m;Ve`cdX>;`Lk5KX-QfWDte|6uz6XQ*bJsgHs29GK(8D9<~8& zuLZJ`0u1C5IVVCc%5owMP{ma7212=lY9&TFxQhVXSd2yBLM}XRx78u}i5G zA@E&EB}7a)xcuw7`(Z*-pR&{5mhFLvkNRA5_ zr&&SbBLoIwA1+;JZ1~;64wO`rz%5mxQ>kTsrVL(oJXlhB7zKZ`M>`!@8{maN(Lxx% zE6$>iir3RVh!a>>TCTY|RtpP^{{n4ooQ#p8-EcMiKbMqd-sMOdCy6L_-ghMp0?27R zM-KEkr|;+lKUAybKi>9X_^H*?@Uz@$_^BOZrY2dT+z5vx?Sp{l%r=gO1elH z`&v`2XQ*SH|C9C9np^*A?GH{hZ!E6l8m{pLGq2A`IC4)4HbAim7f4YAZ0+R1A$t<7 z;7$?7D&J!dj#v%%j<11;AV@nm#3NbN+m^Q^pi)&6H%m~og^jDWC1mfv^It)|!_0(y zICr~xIMhc)zl=-@X>GgO^f$h$CP}z6rh#%wi~y`8qH%0O^A~4|bSY|vHmD@aG8u4K zg(k#k5N1Z7cfl2r#G2WDmjP_2{yzv{sK>&ygUcdVr^scocOKY+1%*g%h7bUz$Or9xKIEwjZ#<;t^KQa8_5xnTjba zoJ<3zy5&*CKfiCRjzM^PdYTW-Jz+CG&C$IW<2|cX!T86kYl-kN!162zEdC!)%{8 zAMO?K*yCLtFvDM=(;q5SF&i489YKeR;@fiu*=m4k1@rs`=DzSCBb5c);x60yF!ksE zv?GHqidybtkR#C%Xi$lmC42%xp~A;lBnCHJ5K2 zMzJH4Yj6;NenjSftbN=%-j5qLbEGD#U%v{AS!m+E)PZO3UGl+rw3J8zM9juap%ns7 zV7rgZ(ILBZyCdkg2aN$~^ndKgNq;2#C0tz#9);<_z8XDie+$9b{@zlQlkzN%{CW3l z2%LP?;tL3yl7V<+$WBZ@JB#=l2yB{Yn0sV?J79DV)&Obj=d6YYqtYyIzl_e{9#Hqh z(_qNA=J$~OAXWD+XA}W;QvtG+uk8>-FMqFC?u{MF!t31o?hg+QIrGS;PM~-_BCE{s zNimKb!LQNCZwa5HL$?ai`-k2KL?7sfXzr1@f57M&BHcbrACQIJKZJ!nI5gs~cOQGU zS!0T<`Pfj%_2`y;b4H=bSy4$`R+Jezgcwf5@9aVk2g4AS5O|ws_i@j016qia_) zg%hd^ImHO(s$cCteBgr&Jwvok&x#6@xJGoni3>c3qaU1Bqq2iuHzS3%pQ4##-pDv@ z7hqcudhRs>O5~~)MA31(Bq3BiqB;e3MnOr{3}%>-4KN}oN8OwpP6-Sq7Rqg5q&yMS zkq&XBp6@XRdVPN*J->{&V7V3yal{NUR^RCw7kq_v#4D%hSRlkl{ zB)(Xc>;tJLZbMGBZ;bFfSd3B_LS}|6Dyhq_#?17O6<*rWQIz=vl^nyhK@}ROmyin$ zvT_Xn8+vHS93Q;y0}Pgrx#d2dTkd21Q$R6XiIrML!Qhc)_eZuo`}Gji3>YA)Mqtq2 z4xCGEeG{R*F^_Zdj}4h8hC+VSrUJJs?!c#PO$6r;qLyfOKERC*?3AeG{N0A;`FFh? zTcaxLHJn2x^S~+V1|~V}HIth|7CtI+a7qqNf2){xotq8nOtaN%NTul$(He}%fY*y8(%mqKb)du`m5&NN1hJ)%t)*Ov8s8O61sZZ;&BiAhlUW8c zgLsFQS&S(SvVa;kK;qd*S)qebZDK$sS~ew)2l3YPvHa$&wFQIgAA5#fK)id*m~2`t z5p{$JPl+yN^&AOTab7?Q@R&qyB!YvfmSvP(5?6vB6hYpF8R^vHBLmJo3PRToniKVI z*xFH(RsbvL0XP71V6m$IBRb_LG5*7{m=_x7!v*XM3os)?-6%TrD6v~$ht3l^AQyF! zDNY>QX`h;OFHu-vQ(cJV6=sgZ%U9*oa$SZ&g1MesnCrFUaA0s1K!Piz$>VW$nk@uj z6VY*_1=Crm<}KqA+c_P&h21Pw`scEgCe=j$-~c_61ZGe49W z&lPu*4`OD?QCMG?kS+o5XDE2n%yBF32b!w|epLffz_YL*!= z8o-5v@p9};NfJ(i3A)%IUWx%%MnQvS5j2xKs_&1%4o~1FTR(jO=Edw}UlzKfYhiW< zh@u>70LeKc{d)Tk^kUC}Hs5>v@rOK;(+?J-_z#E)*iqMry!i@@pkUt4KVHCbYQf@F zSR=u17q;6w^-t`Goxb4bFz0^(;i}&h7SkDt^I=2L$wPL-Q8mE>@Jhx7`F_>X<3jO5 z(5sNrIc0s6JFsvjYIeoyD$2q3w|neXD0!b6?m5|BaXD1!E89{ zsOt`YMs~fm7eH|Fn%M73*)oOiVRKPu8HQzHL~3-rZ2e>yJSegRkkC&Z6G8Z|uu;G7 zxwo7MqI1ctfgPmg=)#eZ*%iw@*5U#ULS4a^>n>D405o4G@+ge+ChZZ!ccBu<@b#>X-IarPP?@b*Xs%S)eU|c1np56yMj~ z6Hhm=VNEf26Hf%+M5)?1D_Rp|*o)|)Ra4;{aYsK~a@KxTtC-0M0EHGju22T(T+*_H zxPxmIv|tN~5WG;!Ph=>%;eM3~zyZ-ce&NhYMx&sJFc=@!oL@aljW7R+mdXv3A>0nc zyC}Oftf{AgluMLQ5uWtghC8y4puC%0oPJ$mY(%%~RjWp~c_l$~S!TyKR$Mxoz9Tsjt4_X`QAZmwsd};k#&L8ehJES-2$h{59y~tbLQ7xJW(kT+%KxH)LcE zFo&^Fv%&1;p)>fKj6<9g;VBG9XXx52szU%5sPXo+)gil^MOG|!=4ZKsp*O@UoRMIU z+x%!5{1BM2o!#z+fxg&3P|q}B3A;SB--Wn~8kKkHlaGEH^{Nnpi2sytd$Zou&3Yr- ztmL-)Fxto4SsyiS-017mZ^aHG&aDvwwWM^78xu4GVsxHxv|^6Ie7QD z$7(Z$XkkA)WX5mx&hTmHK1Ml-;QsM39B*13)#Pp#FAv$5a~mbI5~K*j11Y9ck6&qL z$iA0rpZnDzQ|})4c4j`iFUSUMdFQsbYtSj*yX{^+?`Xvra zx*c$A`(ljdBmq4DF}nb{_d?{ikc5xR&dt;l*6aS>X%fDMoWrxmLXS%GnVh2)xV8{e z+Pv;%mV7ip!Q5|=Sq&=_C2EZU@WL{^;fOoH){9+98aR)QCe_ml2I7IczzdJtC5bzL zj3_~!F1cD{YbyGFCY0equT)Q63^`>gc%>y*AKk)$2>}<>1C}Sscd+WAN3F~&@?2Oe z0#hK4LoAnDkX12>98jo|h zR7urGi1OFVu+%vlGR;anp^ab1VMf%Mc`(FmFEhhO`6*{Fbjr9KWfK$q znaEyg!5p`F}R>C^}QPcMp;;HK^{7{Kt{_%v;q6*sVQQ=oZOV#AGd=+43Yf; zf~PeGH@O(TGqEtSY+7mId4(H17B@ZsCPh=Ya$qnf36IG}40t5Z_eCOaEGih30m-TG zeY-5(_{grCZ1FK$I*(=kfo$`o4}Y5pi~)OGcYCb6Kqi|}hsd4@f>XE^`>%%VMh`h9 z&=M53o=5o~x6wShxs46oge@l7a768q7JMO+m;t(r{B|5)O~cE+!qH-n*#l=^lO4{D z(?{rGS(M4SgMZojh*feI`Yh42oJj^Z9z&!GPcBVD2*?FVmiTaB4x@BAv#pM}E3cp# z%wC+5>+f-k4q@ZU<^qpt_{L+bnguar)-1OsM|oHuI{gLv_WXz*s2=_m?9-u*V^zoO zQ?O+qvx{le4!{Xajy~cw4@9nA_KTE}-jN3yJkMGTEsIyO+ z!)KPl$;nRuP?lkVl8k=Fo#NSr<{^Al6;u%!e7Gfd>#}voiyi96SNaut$s>d(uP-rx z7h5XTgK^aIb1FOr+wapNi!Y!u7V;-}KJr8K_RBL!XCr!q^$bG3mH-10iSc z#RB%}&mUQjU>I+oE{P22hu5%#nQp^Oqo-?`qycbGKXQ4b=N z8llyoMYv@a_cRLng!(LQAfIIBDAa)6DHtg)o(C#t=s$D{TrFMr-I1kB8)q(DT-|t~ zcyVRz(#F!p>V@<16Y=uO>7^HnYbzH|ubkgl`t(Zta6G6b$f!oRVETkRl~cE}PJ;`; zvDaM)hnIVa)j@KFR!N(=fA0e3RsDO$I_50FE~0iqjD`bGu*M^i`!ql|p5}4$Z{1$u z3#akT%u!`*QTT-i{N{w=GI^xiAx{l*;!iJld3>QeON0s!3&$6$p9Thi>@(VqqtAja z_>(lDfHL>Q$9#aL07x8KfGXT#zNzyvz#|nzE5aDAItPgVEn{MUnSu*DfJH&MO_u|L zh{TEFDjjAPIz-CG0gGbC6rqzJ=N;WUwMkv^w&JUe0 zbpNJYg(wu(jEsNlDXDj_gYop{<{=}y1?b?_ytJq>H7W>}rh1$C#SZMBy%myHS$! z;)ZtVXR{ZtE{g;RwG$yM{c|n7hM|%hNddEvO%x4ZnmIG($5hX~8wIE~m#7!nT#s?#M7I^hHQ)_I?%P09}$PsW#; z)G~0dJTBrM=q|BCh^^Q?;U@b~9jt%3uTgxkZ39IB2iZbUEp(ef#%rBT#9u$1>@78_ z>we;JxBS)6=<{?ixsn$UMH%D>QwWV1YB1VIGeQvVxQLlQuqW1BQ;D&HGa-N`SJlG& z^?|nWTn@rAik+Q9>{t@Kl_t7@i&(%4c!P>J!UB^6-k)?a^TCh-Kk>4AhD~(b_<1I; zpGuaV;hi(pB~R!O>HoSF-OfgT|5wSy>Omk-Q?4VEY`&hVL2f z>{``nJIl1?!TtL~_qQ|dWw~Dt+u9zwID1KAizOj-w{63c&pHuxVub zbToPunBVox(?ze_hcu4ULB3kj2nk%F^Oi?!@(qfJL3YVWW9~%FUg)$hY>5LeH6M+h zUzM0?%oO#JDY0$R>zuBEDMRSKi2ETJa?Wi^T4pSIOP@nX(igJHAi6SOQmLlpY}@a4 zWWZN$+uPUg)Bl^>?xWvL{I|E=$5))!@vAwn<5%fy{K}B|x_BSI^LIlAKZqOn!8eD@ zH<9CYJ=xq0Hie9i$DT?@Q&81iT)?-7?1;Mx9d~fzMy~4j?3{1-H2yS5fk2SKcZY1X z-?giqz#p7Z{DT{s?6!4;JHGGXjQRGy>~WCK_`A0a_x}C={?O=J&b5mpEAEukg=Bb` zJquwX9i4I~5b2mkYxQc}j2&Zmg|xAMKZLlCDJG?+MMz)&(Cv2*9f-SJz5tw0Xmh9Y z-_j?%g0bC6e>7z0{T$cj2~uT}8@sg@ij3r^Xw2U`*y6)RwOj}3^x{F7JYz5Z;kJR= ze;|HzAW-`zJUXTI{K3jFfq04W<+wG&SOdcP8R&@k9Y^6G`wqbbD$&DrF?})7@NKzB z10qxI4u+rJ_Hz1hj=M4wt-XEt3WVyn_VK zycP=Zj8teMW(_-y1-SBHPB{tpKF_ z2pQw_UyD2nmRdmGmc~Gc_CQ99a8bD$EQE*V3f&K0K(1Pf;&IoC=G}^9{>XRAL3d2py2IK)1!y)C9=`A-pL&r|3*L$R@?{NDOLGTGA!wxLAC$r4A{-Ja^)&2 zw84mZB?&AXB?Uz$?N_ws(pE*ceZY33;yRx8ptl|4RKGct>1!7a z#L}(uHK2tz*5O0VG1kSR-k$j#OtHL1)e(G{^%v;(ZcC10|N2<`RP6>< z0O6Z<&}@AHB7mt=KWR&c28)LE4s73Dt4^TB772S+;AtngZ0P;rBzK`7{YGNcUdIR> zbS*{~8HBr*LodZD;+Hp+bu-2S3b-%zV54&lu%R>TV1dpM>{%TBMinNsF%x9=E!uZD z2&aHsMZ7giT^MS92nPKer0)o_eVD~r{^?-hBxis*gS(ut8MW#flSM?c#kM<-g=#fDS=SZ^1ACbV$FZ(dZk_5(4v~JPK389ecbu1J@Ws{1%erHZCkE^zxDD4d1y; z-I1&c$*Qp2yneQ}l}N&3p2!mdijzpM;+JmvxS9uso%U+V z`z2t=d0q#`Ns{M0d3@7l9lC!%>(Je{?EJIZKz?HW<>rR$=S9V+UUCtX9=;<}p$@AZ z>oSeN#2xkyJS%MXVz8gk^bsngLYoggp}6JHXnlaa0A-P+xN4tDIP#KWq=YJ=5a_NP zBgD_3Za9BW|9!~5CZ>G%f>9Zmh+l@Y#jqIF4RPiaU4K5BCiI9)&e$PV6h0o@7Yai; zXQXyTG0gWC0OMtEI=g~93psvZER9#k`cvIa18Lr3Zq+f$CNM$OAZw&oWmGob!u%D+*Ow_>Dp_WvE&xVX;ePsIW-nL=fo(M7V4rW*;o`H}X~ZK$tD6 z`R~F@2NqmG`6D>~MOMw}lwJnkDFkBq6rvu=-ctZ)hhxQ%`+z5S!xLUp7VOS`xvmVr z9~JP|s>icnKKGd5?c~0}sXfSAijCl~ulUDc4V1y^dR<>OWXU%O27k}2;NI}>GShKx zvSERF!kvPv(qz8t@FTE;F3KG~?PetRL_Y{4dO-5K{h7zS@cq@QpYuqhk_IZQFq$0tw98a~w~6t8_NKed z;?6*lGG1ITC3?uEev_`^HxWI^0#7Py|K8sL7NA>C8!1SWVns< zG+KaoPCRDm)??--D*pmuMHN6N^ks`O>l3%}4n;lPg@B?|Dz23-vT_8J3SLq8KJO6f zF4r)rwu8b37lSYosb~PWs%{HI`mL_cPB?WqyVNiKkk@<6ia9dC#jEUx z30u|1sdO>^6lPk*dI9{m)(Lo6GsVKA)hrMNgs=Mh_)sA|3E`PR4=k9U?0=2Y&?GKP z>cbYVopQGV)}TYhCDmesc|V>mVFVUS(btkXgb#U9=ZCx`B2PKJSsMB+Bh&EYxdDss zTJ%kiig*uE4a!A)(U^0xub$2Ox`k`-3HmT)gWvA!CYg12!;z#IyF8({phc!;?Kcr+ zSl?P$Kc@-@cQByMc0}Ta(Gdk@=Ce-@lXN2hlq>gJCoIX+%;~cgvCak2}16 zH&AZ$L&jgAokplVXTN(Vm+xvBAc{Eb{$Vo;p*%uTs{QJn92$eYn3+E%?$e9NOh93my~sQk*`MCYjp!aPH~^7#>6f|Q<6}TqFj+ylsldJl&|r{9t#w%t3ff# zV%n^Wi_H$(Z}IvR+<&(29xeJ`=#_+d3(JOeQWUi(VQZU&QjTog^k>8N`Ovbp-ar!a zHXIGL&%xL-|Fw0=|AKPn2a<>hY7O3G5zB-NM(!B%0#y(~nS~7d1QnBD>?juD?n;Wd z;qVDnaAaw6M5yOGjg0XM9A^v39`QL?c@b^Ua#6)$>@X{QN5j`8D^3jwX^?^k3N=PJ zc(*pFQRZ2G_+eC3E7u=>82*zgl8#rhD^=Z4Qh^O6(wOHfiGNh8k=^XZ;WYtpjkv&1 zU2IPGcA4fH9m}L`cY_0JexP1Wxph)J642K41}s!mL}sH@Nt3cm3^IW{>zqPiv63g# z-ljth(Vkoz3hKF#5flRxh<8l_rE$(#y+#blON46ZD+7=V^bQNl*<3IQI!-X$9ty8z zFnR+?N#e6dmou?CifLW`SUM-k^g%!z_Zlj0Ly~d{XTift3!w00@L3sox z;pJk`)*;Vx!Nn9X!L_X?QT$>v(fnh1^iRWf!(EEx8Ra^g0^i5KwT=>(8tZ^HqV5zd zcCo*>?2_+Vn&T$2pD(+cm^~`*u#g#JlIx7pbiQ;JR)w}uNiK+m0^hwSD!VG^L=1d^ z!WI00LHB?$7UV%jB$E19afuerQlZV&W|;zkL?BEC!TbnEaW>oZpLuB2ew*@e2Nn29 zGZZ78T2>nN7`w+kmw0TThgghhI_IPij_OWErOuLG8liwqP%_1x=eG>p|Dv2?v@Utr zdI4x*L8gl3uUK6_RxYOn%g36y?p{#MiUCL($w}oXLQ05trH~GRKFjDchp~7~PoyUk z+(qK%7HnI!&03u`%)|mB$OXf$9DQyBaR=3G+uJ~5daxRM&)ED|x@ow(6h9^wipO2a>5;V7##3r!$2KJ#NtlB;LbQ zZ>;Z2m{Y}1N0#O4##%TFK=*j}K!)a;dB;16f1gj_uy$KMK&adYDXli?&p zp&RMmwRym5`AKZQ(j1B2z|{aK!XULXdEXFu6Oo86PKW<26ao)8i*6u_sBrcQnNNdp z4aF@q=fe?CeRj$>B$%U>;!3tzM}0bdJc$5_9Gn+RYg9dO|B6o`DqZFoa_(}6>sX}(f(i3#H{WItjJA5QbQ-_Gh;k6+ zK?MJYY3;GYBex_4&E}+;2v>$28b;x@z`70%^Tt9uE(rIYJ>iLxP;fk#QXf77^w6-D zLPH=*PaN+2d2IB$!xxr^I%y}wpM3ntFs`}N-yeM-`~8zM+3zPF%YJ`sDf|6X=d$1b zpBJ*<=acOB$3M&8Cv~j3&*%O){+GEw9{o!0k57Iz_s5BE=Kgr>`?)_p^&|XYIRBxe z!v;TyXfNCQhYfzr;kOJ|GxXrF!4FEUmF>rd@#16B?Ec}84;%cL!w(IchlcmBxi_(v zv@Q`|k@1DK2$-Q`!v;Un?QwQ{9DfYM^~e4Rt)a(<4SuA-6KwDV8{mIzKoAbC3>*AN zgH<+IWrIi?oMVG$h7EqC!6i1h#0H17!3%6~dD!4b8kE_f%m#d* z-AZv$^C$=+klj&1|G@mya5SM5Gs1nm@AX|Y`JP-f`Olo{zYH7v0FlkV4dZ8o7n3${ zbc>!Hr;|=1it-r)Os$hr>l1cy1+lP{dYpaF9d6L=Vf!kh0j7f(H5>P|oq+-P-#Lx{ z7&iFfG$vqK89nK=xlNc`ii{l2Yi_=9>&SR3L4(LngAr5VfC#&9(Q`BXf?ZC)O~FM) z>yQ|pQubvjWbJ|MlifL2zlhvWgIY|X2esES2%%PM9nww(QXg-ZTQUG^DgDZ9*Je@)9$afR@0%AlLNW2W|RV6mc1eB8{VG3Sc zg-rP_qHVi62);Fmo&{V16r^84bf=^k%ca$YMd&+lFyOWUq=yxoTPXYiZD1QXzVCM0 z_?>eQ9so9V&q<|Y#EFGGdkSip-xtkO>F}br6BC?fhf$kbZ*n3oTrIu= zXYv(__=9F};sWd3==Be^tuG%#&KjbJsV4&>Ku$XKopvBMLjXBu-#I2STSrrik*AtE2-31n^@LI=4>Svh#wO_(Y6oxy1Yg^WJZ$QxP6Aifky`!Ds_YLj6ZVvkFVd{&&(S4ynZRK8!CPj;mCU zIYBp|n+;;6wGf?qELyadt8^8~e;nhQmaIB-5WN31R#?hy8t9nz1zlm`orhz=O$EGe z0;FI}7kkr&BzyrB5JIrizqzWUI!%}rp~kk#hys&;|7X~~bP7*F>s#f;{NB?(wqp5? zlfzqFDNeOUcU`tI;CLuGAn?M@YbA9|8H#9#l0@nkvRhUyGA{fLDcTt)NySBx!^I{N zkjQ$?t~hdPQ-CV|_Q>=G9(J%zV)RlihxKpp@r$LfI!N%aw((D%cv+HL3~%^hRToSH z_8YB>08I#``$ZQbAMhnvT<27tuOq;_a0G@1l)c{!fGvVTBrP0phyJ}ElEk?tiVtaF zPV`2`s9-=CFD_XY*%#Y{Lm2`{Rd1dq+yYcD*W?rdBiuZ@6j47*VQmB?_oZwl?kEST zP;&^~Kp})df&Jo;x<02bTy$~%#2=xPR9!I#PD5hz>KA~lhCZczWP14J6?;j#Ww{DKwbc8GRAMBoOWmWE z0QKC7W(!W1RX`<(9?h{00AkWQ50uK ziqpd+0n^nM4m``8ox>8CmFGh}VKh=YArc-iPGl-a(7ZW^$Qlv_n0LV4Ln5!hAhyf>xEPF_i9iyu0{4Ky#sC?B zd<+j=6&V~}1Xb}$b72!`gIWNP9`Sj*$%<;AG`J`PMwS2W9)!7at>zw&kRL~Pi{lWk z9K=~=aKjlZAa3O5n0>AmpzPbO@1*ZWGZx%*XHUf$Js6X*q5x{m$b}YNAj<%T)p&3@ zh;x(-E>fxwkIwXB+{}XcqE0+(y#L~|HeHL*70S5+Y_gT#^5VSU@UiatU%Wg*5?ebB zUNpn4sBCu{y#5Q3V|v6wD5nhX`O!1h+mZM<+_eUaz0&fG8OxHyBnxMxOjxY@a5rIu z?on|8%LbtOVu=zLCL{SJTjdHEy!MM;g|Oz2D*4sT=5ooB_F{PaBV5+4621|Zwn$T6 z<1k&rIl>bT1zArr72M>BpTMEs`Iark;_@|^f*DB!4sZrHaf{aq$^=Y-g2p)a&|0;$ zD#pi^c@*yST;WOqs#(1q&tA5`P8BOEXsr9MP64IwKm*QA!NJ>BKnZB_2KeAwp!e*w zY-C9lnIJnXk^^v`Q@P-)@ciKI8yO%9<1z!dWK!Bv(LoWkqmepmTQqUWp5}B)#1>w< zmmxy%A95s|JSWmAwU9M9BDaGib4SNQE3*WQz*_MGiGZ=&>dvBUNOk!j{FS~-4sq1^ zKsHsjZagVcgmVqj>1T~~ffqRQw%a7`@IgcA-Z0Ga8LNaI{CX4kK+g~D;%*1zN}S%k zLAfBh^Sopy{5jhlG55ZNJ;k}vtE94XSwPZr52$a0$?m_Eht6KI&$*uED2Qa1W177L z4gkX`Qu&Wd5jDwy*i!>S|BPtV+)354?*ulwdo?`z7K3CF$!l@^mfm=oF>-U6poY@j`qyxeQ{;;dLIl1ay9d-UM|J?xrMm3 z>%9B9SI|p;4OGZ|hQ01ue~yiL`PhLN$S|Qf%TT@d)6T~zaqKTRPC5O*d4O$Z(g`d3 z_HuZ+eOinc5Ly^bjPmWgb%Z(1q+bPtyxt{$m#UGf%wB7Cw;b#+AB;p=PXZ{u>x1M< z;2|9;{S&bP0S1yr&6o@ENAbQe?~V#uiy{TCZG~wCCO@1oZiJT2({tuV#PD!U67U>| zh`O18ra%V8Df@G&krPmGdZJE1IK<{4(u)s4an5sR)|EvET&DfscRDRP z8Op@MK<}K$!R!p(Q$lpuRyudo$P0vOM1_xh&}_Yh##4YPdXMpCdoXmy<<%i;rwGh- zwlhbj+v^ggB1sy2)Fl}fKup0soP`fW%UjYM8?l>^tT9@f&m1tF6{PNdKcN!k;R*}onkBpPh9%@VS6IvRh#@=}Og77O%|5HtsJoR~bx z7{3U%+9R#J34+%JBa%Jt;foB4`*T3<6aWXq@wZ&V9EiG_Dy4RfUu9ztqg*p2R}*UJ z?rW}v15{s|bK+Czaj4D1G0||#9`1Kyl%E_l*5efP&#{p zjRI*ssO2nMIy60?-RNZ7ZLJat%q~wPG$Phf5GO8+R7IYSxHd6q^E`VZ27jtM0kTqf zEv4QJB`%F)oBbYgU{Qg_%WT1b#)7{flIW{J6NT%MmGM_m1RjbgNG^0$hM}U=LbF}l z64TtJ)i7a>=s#2ORa#TR{A>qSO)+g;;|Z91stBq}aV!6QLJ}B<@-R zY>75_EJ~Lsv{62j1s29D+wcy<@5*OguDPR=yQleXFvq$h{PoR1>0$q6i8Yl_DdM#k z798FrK*u}FeNU2Tsb@>A^KfY@koVPVZovWek*P~I__#Pim#y4;#Tb1l*8beqdNVsc zcPdrDJ_Bo&yG~((O>u|IYSz85C=Ai%m=Y^Uw-Zc48w8hwEuDPNO*4MtiAnW2aJM0b z^Ni76Ms)IRKK_K-eoM3dQAtjL95XJ{&7t3Q^#JCJ9^u{!7@Wev!jnbu$2m!YO+D~F zO;Xiwa5&yBflRsLKIFtpa#u7Wk-HzWdI{~0CB59Pw|B&nfP=Vh4n=nHG`&|@7v`gL z@HH~!9S1Fc?x>Prx_BsE=9~b01Jp%vL+mLvK>0lzg_DJjq#i^bUT<*%1SqbZ+Ji>9 zRffNqst%|CesYUSssOp#FuluBV9rg-BM<)GK?E+VW&h;g|xp>`7}oxvzTKP;T_DNd#(H1b1xgyX_F*B_*~8nFOA{DEO6F33CdhEq)S6GmRIWfU9B!BUC-boHwWn&036PM}W@ zl)VK}eED+m*~=sxnPvkpLIBP#QTkBBP5)a9Fv& zSzp1wLtxzGMa4Z)A9j@oI6&hCPg1DK%XU-UVYQ6s3lmn26c z`?78}wIi3z*pqBw7Rz>n4tJakkWE&p2m}Pe08Dso_(w$4p>K;0>XHm9E@=u`n|haf z0oI8yW4(Uz73aVS1Zf+VAJ+)P72^Cc>pSz70SQu(2t7`S;=Lr!xIv&Pg9r0MCUJ8x zBjdEVoGN>WIQzKWz&E`Hi0*Uh$0@E$l0lK)5{~4S>6|%caYY132|oedFLW0WK#&*` z+~qDQdb^weTlQvDW_v-0r$qp9F$g`n0nxYM>vo{_Crj0_`XUTl@$xCexx;>l`x)Uw zhvK}l5N}+Ef7hiMXd$3j%Gctiozl8g3?PmOKXQM|ezR@_ly77cK^`uG_``9ZRG+Z$ z#sPa}nSr1)Jd$LR+!B&ku)29WZBe!y$pv(8uud+V=g{RrI162INb^*0ytNRO%lbml z=F5y2QV~m6tmZ^aC)fdTlLIEsnjg8nC{c1MhK=`N~Rq4`3d9L z`*;V$Aw8~EUHZp?T@^aVXbT|dN;nQ7TKyC-$_Fb*mJ`P!90U`C%V_pNi%)|ILH9~b z1f^J_^GFoKO}nB@GDb|435T?@V+FJ9Sk@&Uu~IN!X7HQ1|mv_Xo7a|a|tMQ5NQ7m4r)t`aEV z7=Wh&bdn5W*?eDZp1F=s#2SQ?c^xzfO!Wbb@P4I&?EDqX83$i4>op*8Z1(|J=`<}S z-K6yA7pB)|82^C7vd%L~gvpMHk3xZbgD8{?A&)qT;JJiR`hYkLSOXh!AQc0Mo&-ajqSt8>4n)vX$O%?fkQJ4bkzs#wR8k|7Di40chcpYo6+6 z_%;{=oQ#-<%+EFHoWbOn41~U|1Q&O?<0}_RO7y8aR&s+Dq@z1U8NG2C%k|kh_eZu$ zmzL8~SF2~`$^r?Jf6^S9K57Rq-W$N;l1ux+nG~%rh{}JsVCccWW2k=4b0EG{vb|;l zYI4T0iIPy$9Ro(~KZ zR>K)j&Ee@E`V9jY$dJ_qb9#KIAmz6Z`S5>GSlY8a?_bhdJ4T(D)m3Q|;qfn53qL#- zKc}Fis45bnvN>*P&;h(&#^Q3~02M8QRN_{($9v|!gS$MA&8UG2W-wQ%(S_OYu)s_g z)IuKlfxCdoBdwK@%JdkfO$e^|w_DZ)f-1T)z$`Pg)c3%YKZxv~O|MVJ>L%e6T6ppO zZxu3-!d4BEmE;_}pS?Tg|1*z`VA(ilIDm~c`(s}#!pQ7vU7MJF!h`QD0Dq8MC!%n+ zYuUtmx$oG8>EknhcpG2+5o$0rJF85CUa<%)W(fwxx@eK?FwgFmifJU$NRor0d z17Qo#)f%YllR}!h?M1x49(-1+KM#N>M6rz&Vs+BL#tDRCLjrmLf&z?okfGYJ#yE$mfAFV;;0bJfFbq3ue#;!po>b%$!7e(%gipsm=<;oYaN< zh_c}0=m*t+kr-k$1Un!{5CsmJAuS#9w??A>B1}nSQc{Lm z1C?sBSVAv`iYyMhC$6}qMWp+bEFMFCBFsHkq`Y=oz|~7Ci7&*YC?3-AoMRE@==`ef z2erms;=PxMb4!;=ATg2=T!lEhH%gLsoizOhi;2($jZH&=ZWL)j@u_37$JH4C27U}g zkm0VITR1*ugGLRZgJVE_s zfOX8qE3GnJ3O8`8qaYNJwOYfOcn~$SsJcpg*8SsOJ}telG)|>0b~zEze5ZgCdV>kwB}-M%zI_* zfQza(d<#o0%1TbuK@c2d4TJU)D4rN3<}B*rX2c)ib&PMJ;sC> zje(fg&_D-=yH=TsOeHwB9ODU%CDRq&d8aI*B;Ks>|K>x8OeEAY?X}rbj~Z_ANm|c( zBMJipX!{Ub8|pprE?h1|!ba57f1K09MB#l_en#sVA-S2fuP2NFdC?tY9yGYr!OkF@ z>@f_wz5QqYl=J0f$V!*&2H@n3F|r=V4b{1gz4sn2@ReLpKrje*DOae8hd3!XI1r>o zkdd@enRI}1+tEvNzX!iR(!v-Qbz%BuAVTRd)DVGDbYEY#E#eArq{c&fxh)+A$cis}4y( z;Zl!XyD$yCZddW~eNg)Gxy!-c3Jl}*yEq=L4h;9;gjBAPt19+2(bRAVA5moI3+JG~ znU$AtNa|9s%Rq!fmLvkj-5})B{Z^uTPa+)r8T^0SdmlJEuQI>yeMfhOF^qSwK?ZqO z-o5t9VZ_e79vKXbW#N zT=9}s#-tnU@rYuD^_J3}eMZmNOV|b$f%X&u+j48^JnqNzSl%&%wQKY{Q8=9ci)6tudM#Jnj4TO^GSuJ;usCX&9Hh zQ1WCrfH`WA!Bt#ACXc4gQ~_F1>ua4->`WE$MaDjHH;oWqvFKrVHOskTW7cLQQ7OYP z-SSs($MVd5D3}CJKC?;m@}Z}Kjb9_g3miE)%=XMt5X*pQGD1knO8<4UvmFuNWx~yU zqy?$Ik(gRy^g3x2-r(L^EZBsU%48N^(A11krup&4+{{@LgF?(Fij>w4Dq?B3{7U@# zRtlZ$YaH=x)u60ER2D+E0G&W(ZLZIims$Q|cm9~<&k~g5%Yx5tWpi_~Ej?h;vE)w3 zm%@<15rJS|7iM5!iV8T9T}XlDJMu#;WEm7}(dAcGV~B6^h>l<$_tz5u&-(gdwEjx( zX4JR}Y5QOdUiVOQd#&tstJn6MFRZ*A`I=fjo_Y#eJGD+mH6`TT5Kp*!-CI=E>A~iZA2A>G|h_egV{Ea!*tl|WJ9IaO=^;jAO`e4 zH+YllpSmh1tPd`{tMr|f4X~K<)Vte_VqaVoRGNt7rF5beL+l1h>Zs0$qHzZysPBQI zUCSh;cd?B?Bg$4NftYt&Va+q>$CeFFs z0_=x0egNCI^A(7BWeoReh=o;5epiW_VuNAi5JOmHyDYe>Ockw2F(oC&Wr@_1vMI|~ z=v+c|YvydZ&1E}*RV`rFmuVloH=sIJf`4P(SmPXP%P{-Mg`@aOAzsSA!RxwMGcFe6 zYzPBZ09odaPlx*ZB<^LL7zCkEG8c;SLpivWxC%MS`=X~b?dR@V+B}`e=}ikQ>_;PR6z8c4hoTg= zv(MfvktRzNR9!Q3Ob|1y#EDQDgZuS2j4t>G;0SiYVc_DjN{j>iOgaTMCBj)^q-J#U z<;VgoW2>7c=tc&cj@x~_E`WzHs1nNtc*<&g7B%whAffEZA1F|PJ(PeMiHIRpYaiA7 z#2M1WLWr+qPMzSK>E&|S8LwJO!Ac@)+AJk{XJr-|$_9?E?4xWD#l;%UgG$Fp_sXVD zJ^UPgA9tdAL(Pf`7S7_joS7#aO9N|m@JsFAL@+q&R!Ul8oA8QuJ9+{|n4@B;Q?Onn-> za~sG)3NjgqZGbk&DQ2;3@X5;7*XjT`>liCrpZBP4u^h<4ke}c^(C|Y#h|(}W>Cm># z>}ZUaDKfGh=2el~5a0}pU1FYUu_wn`2ps|?b~#z+JrW{AC8`cgq;uLrOreKrm&I8- zQn~nPdH%c##8<=@vLO@X@iPKQZx2P6< ziEG&v^=tB}s0D>iLr|SW_zE}|aDG}f%E(eRANUEf^76{u{c{vV=w2Go2DnWD*)2Oe zX?OA7&xc^74Ysw0ouPU+6ap=$|9qBfH_9%)(M<8W;tt-Je= zHe?d?>zvZPg;-^EfnaA3j!ul3x9}&`#qqf;ov!3RXS=?Uwp*~+>%PLl4gtyTsEab7 z?PPWj?53%Hn+3&lbwW!3jJmXbWqd49Qf&Qh6kgVrlRPaIi7jjrR(Tc{pEQoFQnrgP zhkv6Mhub<33u6_KE~iGc2xFxx#roX#GL`d@Fzyh}C$IrNa5$1EZi_QHYeA^w(Y zq;tH~tHSN945NK7gznqNJ8L*?mR69m)8)nY%LH-KkK#?VM{fY z5^lCewWayf-^CzCr`txO=$4rAd;8X2;bHpt23s&b4m$Z&mv6$O& z*JP8ogNOXrIR%-mo?j+D9OL-xETV(`>^8;5pdImR9ScFeEw`I$pbIC8QksjvSY&*v z|4;?Pk^|NOGH9#tuFyO3fC4LH=kWE??1Rg$+wFT}q6cY#<+6)@nGLBL7fB{)*UwBS zPA1Ri!LX+`aOdoOlr`IMU%-x~wi#c_6(u;T&(z({E7YH>cflcVAtHjN%UDn&*40O za(}$#>f$;XV7?FMpWM$)e;4&37m5ws8OxyCU1KL#!ewJsrkaYOud6RHa>~EKQ`LT; zo{z#2{06Z}cj(oX6n;Z3e<-$|Ub5?~S`UyI6H4jcJlCF|?NFk9aCZ(DuJBPd5axN$ zp7-o>v%%U%WjpDb5!-FZk%Vuq%qi->GgG3txyce+IEyuGHAeBk~l0292Z>Y zm3XWhYx(2B=cMTjPPMsRW*ooJP$T_`)2jSlwV>r3n{S<;sO7uTOIdbfZQ!tKK47&( z{Xm;C8&78_w%y;J87zll1LR{|W5VSD*{5px4vjty&5j|~)%quD6SZvOS!P%ryp~OJ z7q|OE2P9Qqdu1)V zOOV;a-dc7b%X;na>ucG){Lp6)uc~D&9$sJ%udZd>te5rM!)Pu0AUU#J(@AGH)Ur8# zd11Dlhdn^Bz|)KT2@u}E(||t#!x~SQ`V&B$=jj*x2`Jvg(=YlHaJ-qPx<3KPTY0+7 zpMd0TJiXYT0Oj|1dWk;)%R716Zco<%%f|roa(@Drck|mz{Rvp!%hSvJ30U6G(++=O zr-nZP3lCRiLpROCQ%G^V?s|ry>FR99)Y(>i`n7D=E$x|^)_t*IS2o1YmNFTeuE~r5 zwxPnXR=3f|HZZ`SC-i5J{dt%E)EoV_*mk>0zb&=hqtb5+Z8xU$+sfM2C;hgpcF9S< zt*KpS(r*iD7nk(gYT6Yg{kD{L8A-pbqg^}FZ;QCCZUbutw_Rp`YWcRk*#3N{{(Oo3 zsioR>x&5hi+V)cWQ;W3iW%j35Xxk3^Q_HjM3j0%Qv+bAcPc6*0U$#HBD%*D2pIVY_ zSK6Oik8QtVe`+zd{i^->DgNvk;~r-H|L1zR%yPs2s~&wdsUQ3IBEiLzv9*FS5l)pY zBa5>^9dSsA;W%xX;4kqqIF+*>Z6>2`ZUB`47486St)vK+M>szM7#ty0$u%e~X=u`+ z(lKH;iMCb%4)^T3lVqJNc#X?~$4#uq@z!V_Zsz^emco1>8iFmMXQO8Z+yOV;0 zcfOqeu((%Za~wu-vlYG*Lr)UThRHUcpN$J0q@B2^8&~(>Zpuy~2sLn26T zh&}C=wtSM?^@vQY>;JwUl9rS`Gv@y3NsNy=FS*O7XY}n%(+HlIhr<>?RdrPzS28gj z5&#LU((rh{6$NyLn@lMGSzgN^fe8`PqE~P&TQS05`T_=3mQkK~2t|eN{VK@eTsBZC z`|i(ba+zO%aXeOSEWZgOXj_|wn@HmY3z^U~iH@KG!6usO=3F4UK@9Q6No=NWKzHM3 z*qyB8?5?=mitI6#+{SbFZTtc8dJriV>{qb3ULPDWaybU2Ozm!dqq4xqh){tx)Nfqg zvsB3UJ7m_83OP@eFQ+JFaA9AKT3u%ZSXTnFZKF5j2gzh6{w*0>)+-5y9eIzcv$95C zK?}4C@R2?6osvlSrX&fE14#CdKxAeNkCgCpTD|uK)*ZLFA>dhg_W@hC<61Xu_1(?S zS61M{*!Xi@wX2>leo~CfYe4;ulZln|=eyX&(sJ4lkeo4k+?CbVN>Dg=%0W*k(1v0R zwdr>q_s%$zQ+FQCQ#qu&*+z))Gxs^2dT9>~DJ7j~rv}YX1|jXr#N>3irjd47B#~Um z&+CRKg;fW-HhfZQb)grlpYRm*OW`as$r4Ds9i4Uwrxf3Sb&GkRqkz)r&JT$#;DhPn zl?pMP%dI&It(pxp_^CoDyxmMQyu7p=Zn|j{v-NoACxs}#3?Tk9Wx7i26rufZx#)QRv)_t)z?F;rq@mw~=^GDut4Jj@<;2Zrk zO&MFt@ov)Y-GBC=2SDQ#jHgxjvdDf|va$3l5q*iD1%~IV8}Bqup>jVbvYhzo$g+$# zD+x4vbUh)QSWLe@i+KC56DjPJ1O#ytCA%eW8{qd1e65cv3Q-#3ciX$rumx2pbE)6$J2UoW|wdO=eYGP$23d}spJ_K3jnrM4qq_z@q>1oV--)>Z97Xd zGGcmlzN+r%4*QKRjpraJ{@El}8m- zd4AV#99#bVNc^SDSFfClo5_4TJmr4N-Ini4QrP!u`8`QwSYJvy2~b1kD?X(7fJ??7 zKj!dsF;gRh%~X(|89_X@1sg26Xp$Y^q*tv!X|H z#tmFNI%qUPS0@V33<6>Fq?TISY6HcZ8W>UZ?iOGzpDA?~#!b%~Wms_IlWUepXplWX zv|xn2us)+ENte^Wi!11C?CtJmM|OH2s=HdwKSzXrlM*Lj@DU=jype*H>Wfp!40=lB22~FtjJmr5u*c-a0INI ziU*6jy(P({(o~$8E~?Y(gOqUcx?%3_Z*~juY`!0gwAN>2IW@7jEEdW(1V;*?60+^y ztO)aD*Zniua*34VF1W=a44;LR|36`6*eTmS#6?0X|K0i+sVf03`R!h`^HCZ2#T-0I zDDuT%25>VZTSH{4VBkdKA;$z-i?pt43Q4D{(7MrzD2LcH^;0oM5~6Jm@7d9=@qU&z zsXGNh+;w7`O&XfY@mr)8#l>TAp#J%>c_pC*EMeQ z<@3O~_NnrzPLSnl`MAAJB2ne#{mW;TQ4f{2NW{?M>ep)dfuqY33ijWzbtCuU zYurA!K=IGAmz}FftFWrnl6~=_!$-ap!biSR2_N|qKImHiWNosReMRnQp1)SB?Qnqb zJm(+F^Zpe7F~yaa9`S(7|Lc1Ho3)I8>4GSd?Au!{O5>)v)tl#AXFBTfy9zuQ%=gBH zGOahuzPr`O>t4(oJI6hqh9H#fhqV#}pbXs6K4sA+;GU?1?Gr*e(H*15&Me^i!(dh|4;rf}}T!%OFGL!6^ZH4!qqCRSEBYS|q`$YejL z4IGGpIWa_ULu5d0*IE2gtEads58p)k`%m#;9*RH6seO|wzTRrJVWF>GO3ZI5js4Qz z{Nwt4Y;E-{%xLxeB+kW7W0QbGMXA~+gujg1{l>B6@V*eldkdbPiR7%mMccg+t*c(xYGNdG+^9_X<_;@M8+b9<`v-TfLdQ0w{}8CLUtyuBv)I5<*TVW$PrE zp%vFVzOYLa5Plu)UYc+-Z}#Kbz|PJx(P}6wOQ%m;knv`N6EnASxlJAPx!JroA93)G z(J(oi<%iZUT)WfTn;%m^o4^74J1f^+fBl{th6wFE8UEf?*#Ncdvflhq_<>>r<<_{Ygdld({b6rU z-Y`!8s=fCTI@UWd6!v&$ZFVVa@9p9PD;D`v8#<2L5R3X0KLh$3rz%eOU`y3cQ5UYw z+PA@aK*3x6<|ACu+y9O*R;>PXG92eCC#_!C$z?1O?Y;1>+4ECN^J_Ym1VuKGBPlJb zGDzpj-u$s}a!!RN;~!<11l)w|w@_P7hgnAy^K`y6ySt`QO%7+uzCe$6pS5 z3n6a37aJY^Fw+2C+*Hhj_Z$$UDWEN8RlqWieM*E_kPx9sJ51M2B|J-b0* z@_1wKzy;C84jmfp*#n~X_UzQ!sgUtMP$nwnS-kBe-_eK^l=l)8YLzcIc*Y`~C@|LJ zRVr7c5H-ww-8J}E<@{qMv(iq63RmDYV+o&P9T8i0f z5AD`{m4SO|?<^OfARNV)SO(Pqk+5yV+JOdr|GMKGfwT zY7GlHWUQY4nQS&tJ0ul=99^(sT{GKJtp`LC_=-QiIBqK>0$EPg!@V?hC{{s@n$E8A_$Uw1LuNe;mF%3$8$%W$aqVOMR+Cbxoc;HK7@ z2q1ZaNV>CI4p*lZ#r#&kW=F)z2eaEY8L3O8hwrq zc4?+lK+e?8lH@+ObghbO46FItQ)_ecv)8Hw+G=Om#_n9ZTfG`lK*3HGg_=%mGCf=B z${h0guJN^HYz&fu$?1V~5w!20Ypvb%b>y#8uX zx0(4(Y$hOVdNC;16M`-3{ESo!`D8iyA4HK+#7fsmD3DvVtGo_Md*!=5`2h&XbBFEZ z5U`_O4GZ?Gx^ta-d-JD)*mcu1w=^7SE$@eW8SfZsR7V>UH6nodWfXjm9DVQRqQkiD zWB@v~stbP>=yTl|1GQW7dhPanhYJ#|-h4C-f6GwgcKUAh)*7*`KfaEP-G(OZKRt83 z8UJD>sPD)Yw#G1H!_sDj=SeY$faa}my4l6h6eF^`@*--3=8|u>3qaq{o8P0}kLzOB zE}@laykTp=cBPNH(zy|8b|tf2w`fx*!57vs9vDkvIa0k-EsD*5->Egh&%Nod+1l1n zVsa2w3DzL9KL@It?_zO*Y(HH`#D+>Sf2hO*>Bi>G{3hjDNM`_~D(K1M>`- zX8pd~M@p^X-M#&LPpe!hVu|U2jbjK3?Nu~-2L2$mBTT0qMWuaj@4!|!CU%`g!foCh z(V8R{oYfv0YuF`cZ3-+e^AipqOT9L6!-T2gkUnuvoIcEJ^J6Iw%O!@Dv}W0DSu$@U6{COOeBE`#&LyDm`0;>_HPA9clnNXDu6 zZMCyw5-B(Bc{cEao2*7oXL{)_Yu{9 z1T4h&MKj#T0z6n0_ZupatEe8U>zqcVC!A0FBJ1tHF_-k`_!9o4F;prt4$3&UsygAg zn+>;CHX_tBP?~R!}g`&Z1b3EuKf(Ka#7IM$~b;$kRyF zrTUTvV=SyehQPZWdHN;v`avm5gXNSFze7h>rmA|RBC}KerZI@XH)j(Di=B*glv1v!b;|;|`r498yn+`aShldR+R1*Q zW;NIYm!!vq7G*fB#58rJ^gXrw!`p#?vR|yd4=vJ_LuWzK`V*xI%#gLH9Sukxz3Qg! zdhMYInN^e|!z#=d+QCMRt8KQJ9*4Q};US8p9ZP7Xn2uQwHr)e6pHW+h-YUybOtZ61 zzn^$uh8k2ICUO|;ytwvg`~h;cUm&xCR@Tyl@%Sq*H}BmwP90H7|K5)`?fo3^>Cx4& zm-O$+P0w~!Y-wgjRp!NhVc^k6Yd5WVnceQJ2PVA&mspV{gT;XgMq(*L3{S=Ts5-98 z-kkS?kukRplt^*X&9>J*9$pQEFZPEUE145YwD=drkO*LMc5?AVr%ibxlSFlV8~Ap^ z5NnDvx!4;_ApU;#(%Sp8b2Cgbds*#A zY8H6t>y*!c=CBonp92nb`pm$sF`nzia85aE{<-V1?|)VaX+25g+t0F86N^i0XU z)mIxN+gT{YA@p@iQF*qhz>{qvrew>)9oAeGW$}<*kQ_1&&Z zEzueF+qLCM-|qZzZ~m@IkEQyI!h8rz2PNOfRq-A5;DZ+}Gk+*Z>>sY!+CQ`bcSDtF zR9woaKIxX$XhG+SZPcAsUb&zk`>=%j5A|k$e9_?5U8LtugH$`>qZ^?MM-*-!*T@Fa zJ$}Qz`J)xwfw832#s#Q+4Dv^iekq{A4#mURb<4t_R0wt`a?=wzS8j`fKehpuy;OsO zL)s#p#`6_}>ASj;4Pa&U6TSIR(6rZHwU^cVL~k{QVQ@nT!=NfyWS?>kDa$^yVQ?vw zQD=}rr(5p_6eDXqvz3>!d=Qf?MeSzs=YOs@e=r(F%DWGT8kP5f^K$1aA5w17|= z;RzK_O1{ISo6a}4`Q?p+>D6RvA`e<&@pjOxbUw+gmh92=8b6}z$!bvPHT#;)r9v5i;;52YXGI=s z>y2VGnP`0_dus<$3xc2g8spJTB7*j}`f6`6+Tiq-9o1iS!BTZYG2wQK1MBYr&R#HZ zSB}uQ2)aU!dfEe$D}$!PUosKuE)lWJUQ=6pb(#j@kI-$jxBB zJ?m?Y|LL=1FnyL;^O68+rQyYyzo zekh;@o3#fs9X(w+cF=$x2)|Z*t^qST)QUse93~u(EzX`;oWn(mYV+VE5SKyt9haW9 zbZhoXF&eha!TA>ElUbCUOLB)Z>cp&|z;qG|#amD5ZkZs11eKE4(vlU^-09~6ZdLj~ z8~SAWp$y9=KvM#W+^JCL+#-<^NnDmwG4#~UJ?pi{(k~T^7|YW7h_jY4odtdbNrHGz zE~|0bw){RsSZU=@gS1?sZgU4Opp{w%dTtv;(-5wp;08KjFpvZtObklbzZKC>7}>*% zaT`aSuUw%(E{a(sH`WpzzEmvv0Qa0duhMnU_D%k za>dYbXG0Yi3E`6gLKR%Oa0m|&78DF2;PCL$Ids0K$~NPkkP-%^qHzRgq>M%o0fjpF zTg+uohvs zusVvJ>@ZJc@N`w7l$tYwYGkhvKH0gfuPaVHeywUm)y|N&W2wtGmW2%WZ!!W>?qz)! z8(a6e9@iczD-DYHHZYp0p)YQ z54!1rh)Bdy9~Huk3m~&5Y*oQZT9b=2STq24C0>-r;a1xbc&&)iZM5Ry@Si+@T7?g65j}` za8dc^&Ec--+fe2%q-;1taIs+^T0im~d!gPGe!tar8OR4yUT){gz8q7aNuyHi24lxw zoM)(!dW#06*HWvqYZUg;W>JZ;T-;k?(t@%}w%A=)Ui9v|s?T@VHGSpoy2^M={d=|S z8vg3xaksVX81Bo4FM5PcVo5K$kLv@JH&&pet&%HpL*E8N%MAdHrR9dL)}Bz~P!CWT z?JpO+Jcl>9*bxnorMq%;#zHDqGBwg&voYIF5g>8mgH=HgQB5L=f zjfQEf6B7a{NS*dA3U_!PHX|l>TGVJS+=}mf7Dlx01?3u2qudl{*K)VjT#XhZK@T1z zzr?*Avz&1Ic@hVUZVkelB1sZSiE>lsNBYqFr?^k&zVnIl;TPlHR3^(8qv>Z$ABSNa zNG+aRD!tmIztoOi8MU@bPf@b)sa#T~6m*EM5Mz5-Cnz0xo?4{S8+FRCo}<{k*Bi8&p0VU~z2`aey+~ zN_+_sUREI&G{fZ(q0cLe94RQil^jFS%2A}OS+u-|ct286pce^XRu9l~6pPh_@0*ua z#^X_wmb_lG68s!ls#q~wE`$gDN(`$UP`qNbtcyESuY~a`oG*lcURL{|9dxJ%h|lJC z(hX+v@|lvNNfUqC>0lhex~GFzqTcIc@qwSa)I6~{7dxO3X)epNli=k2?U~U#Xedtx zWRiS1ccwd8VP}(K62p0Rq_5r`?6L#55|=5|Q9@?+-a#cWR60*qfnVge^^tPcf=^|) z_35$*{%>Qt&ukceW3JA?VNZ>j2x&+j0CA_K!5|;5bhnSHN%Bc2)u)cRHYfV>_jONn z|JvwKW0T%F<~B*gxvLMXtm|Oiqx#z%u-6VXx*>ZZlIDr$zCIg6knVc!ot+40*S(d+ zzE_KVqAzRprTF1g2!G>|&_5U$AQ}coL6Z;?6nsoFlKhsfCco)0hf8%Q<#(YiO_$9L z!hAhn@8`Z<+I@9w=_iBYzw=BRZEtSoFyV%0+XNHLo|ONT=<~UmLnmU}L~N?>4C|YJ zG_Nb@Jpa?4GP5b4>)WnZTlrca4vY~t!(3l~WwcQv8_DCILzoZjoS3y7t6G-#K#u;< zl}nZFoboiREz_+?0iBqc?X;)~-j^R}>(6Qrl%rlKmFMmDdkHh^n7yGdW@BBC_WTBD zV%r$7Q+Ap^YmM`LZ|Zw<-&_0M*7wf7clW)wFFW5?9|>`A76vv5%H+z&wm5BAX3KUS#Hn3zE;%z0qbXq7W5!BgkIjfbuS0J zmsM_z^iM{ukLd@xdwA>CJ?!-!L@1rP&WL^fI)4bmzisP}xjvMcpCks15KIzFeRM3- z{%9RgTfHwI!0emx$7aMS7pVQtH9U>U1@DXn+UfmZC+U}j86K%~&Lg)d`L7gR=W$zn zr0P14wfK0wJ@&@OSJ`7V2s%F3)8d1^`i9bfDNQ) zhwRey?4bQZdUn`;F+DqQ_4Mq}U6!65ycefuhwmlvS%vBWe|vg%_%2V+4&O`Dv%~kY z^z88MNY4)673taG`=#{k@cnXncKCLtXNT{~_^jgf!1pWZ+2Q-u^z868(zC;NReE;# zu1?Pm->;=-hi_MUcKEJI&ko;TNY4)6%j5H2hi@=FJAAv-v%~j_^z88cdU|&FhSIac zH=Ldwz9Kz4eAlLDhi@c3JA8ZM^Ysqjb?MpRdu4id`1Yn}hwu9I?C`xRJv)4_PR|bC zXnJ<|Zb;7#-@f$h@VzEJzslj;pPn7Q8`HDH_uBOA@cl-5cK8mYXNPYrJv)3irDuol zV0w1=#?!OIHxZv-?eN{4o*ll|rDuolPQG#hwrxZ?C>2=&ko;IdUp7x)3d{OB0W2Nx2I=^?~e5B@ZFi79lpEb z^9>H)Z>494@9y;M@ZFQ19lm?hv%~k>>Dl2snVucKW_ot`TIt#0JC&XtzL{)S=E4(S`p28VQ|Y;Z_BWrIVyS~fVOYh{B&dVksAke*8o;ZS*?Y;Z`=mkkc- z@01M=>0c}x9MU(I4G!s>$_9t@-zpm%(!W$TIHV7j4G!s>Q$sjj{&LyikpA0cgG2h3 zvcVyJYuVtC{*|)9A^msC28Z;avcVyJTiM`{{<~#^L;Aa^AsjSsFB=@v-zys&(!W|Z zIHZ5AY;Z{5Q8qZF?<^Y}(%&x|9MXTUY;Z{5RW>-J?@kTj$ocon28Z+y$_9t@J!OMK z`rfj^A^q!RgG2f^$_9t@ePx3~`u?)PA^i`^28Z--riO6%JX|(7q<>g8IHZ46HaMjJ zVcFo2exPh{NIzIMIHdnk+2D}=t+K%(eWYw~NI#Ss!ZGw8mkkc--!2;*(nre%hxEf` zgG2hClnoB)e_A#;q>q&i4(T744G!twDH|NpzndDuf%K8G!6E%<+2D}=y|Td}{m;q< zhxGBX!6E%v+2D}==VgOK`uEEQhxFrRgG2g>)DVuQ|DtSgNdL>S!6E%*+2D|Vs%&sb z|EsdWA^oq*28Z<1WrIWdnXkkp3^JA)HZPEgKxtuaylB>Hk_bIHdo$Y;Z`Q zDjOWqua^xD=|3qO9MXSUHaMi;C>tEoZ>ENDM*Xw0!6E(M$_9t@TV;bo`t7p8A^qRW z28Z;Ymkkc-cghBb^t)w)L;5eu28Z`_2s>N z{b!dg!RsWZx5bWv>M=iIo0nC;iQkB;Z>P&&g1J9{u_5?Adw*a578jT93|EYb;GSw7ZRYrB-FYGRgzO2NS87}!q!6(F`6r;(2 z=`~rhI`!us_q<@s7cqM$9yPoL^4EE6R7hFz7&1bJ6!Pep$JV4f;rOTakmt`SIfqYu zkx~y9eO4SGyCwn9QKpcMKgRkiF*%kdBXFFcF`}t<+xM(!6*NWqtuCEu%L(JDl>8O5 zY66J648%jk%CZQ(^`Qq1#AoVAMYmk$7<7Yv1DCP6JObdT|;M# zVD$3fDNv)}?oGlk&NrGNQ}Cp{O=VcZN?01hN_GJ#S#Idnm>H_tASzTDFuY@Y?hIK) zc?LtMJ>Br9_-@ynDYP?BoRR1;{_fzbzz5mLJ0`5!MV^ggi+s4@Pq9o6UcAkTkV|zM zu~sKORiz-~k5dRSZY~Q<3~?;xtD_Hv2x9nEObd=q;vk7d)wR&Y6OBmv<3EGbTVcy-z|A(B&>}aHtWK6;4CaZH^h}M(aMLl$?ZhT?w zgQgl(Aj!exBOAw74|Zlx9Re;aYr@bG5NFrg+aBd)UNn+T;ba89vpj4fP;`c>tt`If z!K-U93FluBhV{lg7uOeu4ij}6PRkR^T+Th)rv3`FMO<-X3Jeo7Yj9V+JF%?196pLC z;BGr+96ayrH1V?f*G|K^}SLR6RkKg7Q zW0G?H>|=&V3I+YxV!)P!6^hXKCGVPkGjmWa$WI;pN592=#19>R{c2BkAn*C)7haa-FUUUr z=(*c^vZwUtKl{YdJ9@IG@i}Gj*WVud{Y7dC<@_2y@2I3+%48$_q&EZd3XIRg3Y8w7_lt7qSq<5t~ISI6vswMUHMErbY{d3#5* z3@p1*N)-ec>P#2AGUBM$o0k9)1R3LFO162bA`Xas`!m=*tB^-=MpjDUxrCJuaswk9 zoS4Zq#jTv4Tj{Kl+A@C1QTopOz<~$ep@xq+DO+D0}Kf%g~0bo{GE_< zcJ}>C_qB_i!GZa1T+oNPcz&3u^2ON}^)A}Oi&S*ltW8kp;$QtU^p9Wv56-^#1>qyoJ%8{op7?8*Z{zQO`MWRw-EaQJ z#9>`;{Ixgy-aVhW?$ncd|8MW_UD^Gs|NM9L_jlj>nMeQ5Z-4g(djD^p{L8<-^yKY- zqV|u!|84I$diU@DhW>u_XaD|7j(zBl9??5`&TDUJye?FOu(KK2D2fs=X}Nie!Ktb1 zM~|(vPtQH@X#Xp+?Y`=u-CXHlUB9yedckR&4Q!ni*$v{mJaTf)lQirIy}Hx6e)MJ& zp08H4E3quAN-I%yZMqBRrS(95NPDJ$H>j2|jA4&hE-XX)D6UJ8I#driTzR5j13Yx5 zidP8LihZT}09h3Ra*nvD&ay=lSx^#juy%CnQ-?kO5Rx`rU9q%z{G--L;dq?b^$(Yu zeST@_zO`kS7wr7ih^>$jm;Z5|uhw>w+q=}6TitOWtAFsxZ-M^!Pwi3LNt~zp-7+gg z&79^s?^o{EQE1esfV}(@dEPt@y)7-MfZ@S#b^HD8o9E}2xBjIz>fane$l~IJ`8@j+ z&=0gY6L@B6z)IL^CMA+rv_ereA;j4K=pO%BYsdA@#hSp$TacK{}9+q!lMfSy_T z)(US>0736^*Nw?FYl>L*M7O35843+Iu4#_4yJMYF>HM? zhC+z!*)>fz2|ICNIWPb0AGmet9ObYZ3D@sv91I$hvQM@Uc6W`>&7N3>CA95KseJ@_ z+Y^lRkqy#7A>uI9JAr7Ku1)7R^3UX1Z7+Er3jI3`x*%v&+M2AJZtfI%Hd2-{$t;{-IbX z9GcCu&uItF+wO^cD;1Vj55-Ve?5X)BRHrZHi4F!H?E0$1?}>XE{9JD2%qz-YbSLK2 z#K2Le1#sOB|I~KAP8(slmB&AJY@brnTAqDH5WWM!izgqTRGqs)-FwW7Lmae{AuxJ< z`Dw!EU_xvN*b*CQABmn~ysB~9T2&cV0!Y{NrNqc$%{RaTv-2$cNQ) z)i1k7q}8bgqnXkAc@M=-V5KAvU*F}hH&+qi>>?aK5K#tHLlEo)y;_V!G^-+4b-S4~ z##S!RcOQkTmrtSm8MjBtF!tjaH^?4}o20m{W=*E8ve9P52~~Y_?$jKyJgoihPsfwu zY8K{dp*E~RnF|znSO^~~C_xT%p$<7`U+-WYjq5J-pD0;4&qHR`T8e&@O%(Q;Gb4r( zXL`i~qBbziAb-Dt7fI!Tbj7jHot;A=L3Bb~vEpAuup+dV@KZ*FTQ8inAbhKp#i``{ z-eR1+$d;;Z-yd`>ZP=yLY}YZO{x-DR1=w&Er8=4*+fpdt@VaCwgRT|s>Io1JX)>JL zQr1~prSw4u=TtZsmOIx5&S?0FlXU6ub;rkU9X~c^C?ZRUeO;h?$1eCdOe8R{O2*?D zmGputWB_X6B2+*vD?xlrK(ZX*HJtmhG2V}^=!-*N(<+MPM+UEikBSU+{Enk{4!g;s zX-jXqh0Fm)V4h(qq>;>AsYkQYL9-O+!ALSy1a9PKgVmC>`T-o!z;M{4oWInk!;cT70@!629=7YL2l~S_bLw+WDrUhofSybA298 zZX@PFbTvZRJpLnijIxSktL?L$QoSeq~Q@EHc{3 z(_h=ka)JX*5)rPP)I3ABTK5lj#%bna^)i%Ajo4xVcJ~HS zFfDa_!n#+&MzMs|5FA;+l6%%Z}DZ=X#u5f`gDWin7RCS5*X2;$<$&Cz4Sm0)9*yGeF; zZHO7nlN=+e41sBEw$0rau-v$)LCc5>Ys^X8H|$LJ&)D1T&O**@r(Q-gOiyYrraFp@ zcgWAMeIGltpNv1YFt3Uy1u}{+L{bPigPSyO3fC4!yiw4?4n&xO6o96v!KnaanfI7T zGT8COzY30tXlw=n{9AIhz$(pfTZ+eFn!IWJXG7n`_QO~p%+i`&)q|PnaSqe-m^nC3 zNr&Vw{jB3h#^9*BC8QSDM1ZEwy5-tyT$(_8?MY)+ zQPBu>Aa(Vls-+11cJ!27K-CktvXoQJa8<9Xzy9xgFB^_9N0_ZZ(7`PsL7SDwCS5G=2lkii@Y@Lo9}XBH}5yWG;2)yYVo!45$)!29gBZ z&EUz$din;&Z+Ts=|2#N)f~8AI0Vos`T8)Pr$5KWG$8AU%@Jbuh+e|`6X9N==f+@Ap z?DPq6zK1F6h_-Xg*rN&H$XR;VOdd)PjvtS6=$_BB+j`vb^i|lJi<1a_XZS+qlgg5j zPRC(`Yp2qmNN`kg{|O{yU5+t^vg6Qf2W!;#o5NP%hq{){iPfN53txz{LjF-9>Y`6MJw$%N$7w4JE?&#S%i_8AJBT1gnB z3T<1P*?3sO$wkf@L$_=EA844nTQ+B)=ft1`UDoSs2oH*@!@U&75!@2ozO{Xh6dhC! z?`E|T_yu$JWovxuK)!YDWpS++llo zBWzK3?}m{?diQ{)X>I}2I$-7&V5Pc8p0m5$tOpKR0UHYQQ-2)=K-@PUysKw`Io6hO z8Q^m&t)Hwe#yH8j?bSnR2Ge*5;C1t;xQ`MfTlG`|ZMS zx813wO$O1hu5tCFF-PhlL^B%I#q(3^Z6dYRO+U2CA!vVxgz;zi`mB9zydaJlKiyyb z6hQLK0R2vv?h0@fvk_7N?9dM4P~AkVy5tFGgJmZIM6Y9R)~5Hi(D1Hg6t}ZZw7v;W z?pX)gx=x-^gb&u(80@b`d=uJ~G!i)y7dt z=;s9O0XV$RU)5IxZV`#-uw7H zW?l?5X7u--n+}XND+lNn(0uw?pwS-I@%z(*v;QW<#3~foc`ePCyEfG+-f6@c2_xYY z498c%4O_wZ+vYufzT9XR++9=N_aML>$2K7vxJg1wl*b6&5!W#E+7BLgpn6fRDQSVi zF-ny^?;$zc^SAco?`m{Oj>wITKYT$}`w^C6Bx_872t=`iAefuuJqj#{{vwYk$`}Jc zRXMO;+N#&LaWvM^p96@X(B&^7bB401vsmyNtcoYyiGVF!iUg@uJC|o;wrk z=L-eq?zLK+QUIA$l4mQkzySdY40J*NfW(3_cmaQgG!0njs=J`+wh{;!oRrdn+lwE; zP|MYl1S|xjf({Cko3%NlkyXUzVsD@#Ru%tHy?!Uo-x_LhXpW(KXWR4mPCVEqh_}=f zR5(=7B7$GOHM2s&spK^cQ5c;$AO3X~w<_VQGrqHCAw)fp@f>0~p=-`Vp56IVm6rB2@UG)S;2rf}24 zjDLUR!&Y_+XuAux`buE-B*FYLQHbGXW*CJS?AHJ}{~T%Azasl8GW+v;^0 z@M@p0Y!cnuSW()9!B*1xG=mT(_y8J*37JR;?rii1RgS9alW%Xt7g_w(hQAuxh~c!C zcg0uSs6ZUdGt0EiiBKIdewWT;*(BZ#L&ZQcy|qlt9N6|M&KOSX4jN(*6;SgR+ARW; z;=(p2K<-K#XD5~{t~fL&;j8uzTgYi+;^6qySVcAI9E!~Sd;|_rQJ+2hU~(L{5JYNx8c!B6AuvW&DlK*$Pu1fPL_XK^1x@yf zym5lKNtII5>8^f5DYDMe=~ee)EBa!YBgYHN;Z?Jp%wbHaYSlYDyM#XW#h(1J#(vwl zlPN0WBinm=*2?40rAJECNql-HqHW(x0h2-Sehi}?i1%~#h zy@L&_;cO!95zWU~1-z(rMr>)dt6pEd{w>bq8d4t!*7p&c;V2Eqka1FTZUp1VGyrU% z*G}l|TdB8_+DlSPhBS`14gJp3Z`==&e&aR>z4vNO9N5GzV(*D>u!wBkt)SP{JPG%9 zBGv2lmxBjCMyf$)-ZPOcU+U>UBm+b^8VOt}8AaDAuYItW80rt`1&pdAFDxN zAFw`yz?*g{r^yCdcrG;h?Vd{xag;@iYeRh){u!NeYiI~g%(L%-Q)2v{tTm6qi%b=1&3ARwU+bMlE+1>0Ch!&EbZ*u9 zH$GJTsHx-LEAtrR)-le-*^R63pIb2&j#PWK4h=3-K=0xRm?Kl98Aa=+2Vipmxk;Qq zq9mM-j3&0**1T?1HpkG?DTOj1H?12&yn@f=re68J3Z_YHCen^*g=Ld2uqGpU@F{iH zEElJQLdTu*b4)KUj^s*1kf0J6DBh`C6_tpYxl8n8$q9v9TpdQ3XP^#&u|z7)pC4Aj z0maoT$ZaB@CrmX4?VKT;8`voH$l2)HkPaOO*wKO2SzN&)Dp{Z}fcqfI!8x^*T&Zf>f!}yVqw--F5xwTq&k6vYRL0o-8u!fN;>0&3pCgOfv8V{4$3tqq`^v5jGmZ?V&~84lUWSqst^JRRPaxu?i~(35{T%P;SJ(b;&TJ-kh| z`Bsd3Sde=D48IL-H`}<36;f+!cP%)74SsQLD zfCAW?=7xj!1>=DPH>WnS@nxKnZTwhGE;gKzaUSb`cQl)$EBijU-yfA559TjMO;DJP zH^OJx6}`N5W72`J2*~viZt})i?;1WbUOYaA{Cad_U&vSKrs*}p+#*cSD;KL^#97U< zs~BKlIW>6BTae>z1q!k}(gOJ9eToq@iakZq$wjljg)ia>i8cV;g6tWpmCGw^!wV1M zQUNvGmqEBUzk0z;YLV7~<@5Lzt+f)|=QT9#j4-SQY5}zY#77!OI`xT%PS=SMFGl2<4Y{FwZcp zG9Rxw*x_;vOqeE2hG2JQCn^$VJQ!ECV0E(4Nbn5aRL@?NqG)Mrh%_7LM)>g?Y&AU9 z(gHYHBxGlW1o%BGCRRvpSv-T~aRXh7MMxUqCI)lNYDE$mb)eaxnh}Bkj*)!Mcp3Y1 z?UyTRln`-|y9QO*C=@m$5s+OOMLgqFW@;7Pt8%E`_P?(pz*KpbiUCM)fEim4b)sBM z^)D7hipY{bV72gVPhucrVJs_-tzROoJD!`~`i(5nPRwSpqGV#mkvnsALDJJ9!`TIg z<_1D$q0HQ1itsx66*QYHjx74~?eCPvSwicXx<%c107P6B&7TDhnXCyD4%j(TS}|V` z`z`d!l;e|+0iUoPwD+aqbn*#dMo7V>z_!D5$~wvj0&->HBrgW}nM{lscAx0pf*4dY zIz$2cO%KFEFB8DUc_522emyrJkwrXx#1j}!5PN}i3ilL|XW7%WtZoMpVp~XYF!Bd@ z=4Dj=a*V0|&CAmf3AxB)vua{Ls7Pr$@K`MO3Qpqy8bniRS(1SQd=D~nnI=qxMSSNE z-7c%Nij!%GlQw#@$ba0Ef9o*UdixHrv%OxwLZa1!jq&If2$+qBbU5vYoVcprJh0)L zu(OtRq!!aR5ee2_@$Ztk_)>0Hs-U~t2&Tq(2VW~tL3?LOo z?ubad94i+-IV5&;V96AcR>hU?Un2b6Z}c&?E_ptL*R$E8@PK@dn9rA{-|z;Gz#vU4 zXjGC28yxE{E2rbNBBfv!aI!2X5)M;KjTbE80Of=>hHJ;4-B-qae%~)`_`K>T<7V*j zYU89>%E@TR79p_jwi-RiDMCiNzFJo|5qgJ-I_yOmxdJ$LS(C1G8hTn>%c!M7EP6B2 zi0(MROOF~!FGJ#ejP(5|lN0jC3|P6(a?vfSY;e}XZ`K-493Om(6wm}Me3viVxD zfny{C87)v!(H{&^eofjDbkRB#gR2x6tKBHdiH| z1hw|j{-6A$7WBM@&F8AO(-m>h-e$8Mr0YA-whe#s+0?J^rs$GQpYzuMoI@(`X2U6y zF;^PgsOd|xr1(^`wo0qbPY;8EGQC0&e!*(7&=_NpvPtxj@PhLuSsv@gu#1tA+5K}DkPe5`kXZE}W- z11MvY{uuRR)mOp3JUMqw!7c+xo?+-oL; z>vPRa6BwM-1ZJ54gKTu06&d_ZmU`JRl`nCo84gP+g328X3WkdH*hG+s=UpKTTMRY1 zJ%75$zq>8}QEe|hBw4O=gs~re!uaPrFuBAO#3xYIwgg~5*cG3S%%b{2LPj=;EI`1W zwp4hJNwT??WU=xKDfOcH?N&?;<0nU~Nv59lZ5jL2E|HSQ40M2OHM|Y0jK;ZH1S+0% z_VSVIm;kRP@xC%H%HFim9^d+)R*DywH)0D&V;31B$sIbp6jNwi1Ac|g0Gn5@Z_FfrS|U515|o%X`qu;cCIJ{uPCFN_r=dBy&K zL(WJEp3IcN0gv}=pyAv_e&>SAZHCs*(N$fMsSH!LaK29PU$i{RDwx4l^$&{dtmSvf zwx)e$c$Qj4+S+RJ&cp`S#iUuK{!#*mDVZ(n!&Ee?ZKO-|z(9G6>5y`|{Q~YH8#4~5 z34(s0lZ_nm@@2A8Bbs(|N-EC2eMiRbYzC`WknonECn>Mdz;UX571%+K6{(SXQ&wnV z9X;P%7wN2?6Nv@_vJj83vsY?M3pkQZWShS-E3lzgn{^sSjy0 zvBu=dwxJ!R*05!jPRh}`1_u#2f^lF4&|qpc&Y2b%+MknR6J91bJ!0wZ`*7Cmxwmm6 zj-X28y^U8qVS2a-=A?bTyWo)Qeupn9nxs7|L9BTn<|%f^G<({^)GT^MTfBKKMRVpm z*IF*xwQ;J$+Jxk>Qn7$zR_CEv{@j}a<$%HHzbmq#GGVc!18}&35G;N=9j8KyA~hNY zcNcS=lakNRn;nwjK^@>lR^Vs2Gc#Fna+DngrZ?FUthm(}LB>EV(sDB3$*3Wk_c@u|2G_+E)IyG$ zEs(qKa4#m}VN*iJzI_z?(!te?;-a{Ujxj$ZjqAX7*@9lX#qf&-LiTb06p)Mjw%$wk zhkJl|K8DM!ldo?$JcKm&n;4>XPy42+)$aofUc@9QX+o&3DdzuQ&xg!b-n>GkP!5`t zd#kP}Lm0cV4yqY%?#haN=_H>HUPjSH99a^yo`Z_RavM6exxL%~0wBQZHcuohX$Qck z4}!l@=h8#8;k2-2)p>MvhZOht-WfQ<)ozfj4DaWYExF;o=H zhy2m1r(bdthkP=?7t=vMxp~Q^8y4j`sW03}Eullung&x}0M6Q3(^8a7pz~b267taO zz<4=!<eGVZ zpu)BV|Bxs#-@*t7-_+X1LI9G)k-uRXlm*le!7ikZ3#Dv=ff(Uh!AIPsRlHQD^_=js zAM>aoMXDl;V4ke=!VNae*WpYjoCFS~jq5pbf)QKmguIAn^!p}12SPU|l>D!0NpX*Y zDo9R~RyMWl(Ziw3XP@_MNe}D5eok|5M2A1wPQCSaiWsTD68-(6MuBOIa;O|RzVMue z96U_gj_|GOMQ*O3UgCs~?ux>bn4@uMLr)_HS`dwNy0uaqKCbh=)Aqg&TU9tSYt(Uz zeHEjCGN}0-6|XE97pH?798LmBBd{Z@R^oR0c;=a{%*?AoL}#AzXPhnYESO_DHsnB6 zK@=2%*tdFw?)7DoKR+3Vb50w@Pvnf?@k4V&&{P2fO2N&o7ON$?H<@R`+{M^V4jj}@ zglWeBO)WZi$+GCVn0KhD=aNL&$`Nd#i1~4{FDaMXH?^ys7VKH%-`kewd4J=Wgd}P| zy}P%ueE!nVk)}*ukTuLz`;cSnD;O*igA|99AblI4KTW8Jiu3 zAWD&WpptQWkjmx6@iYXOwxLqMc`2XueRfM14g`)r#Ukt(vG4|m+P*%i5Gk-d~eQF9bXzUD(I__7vD2 zrlf>(wv)OidtB(kLJ8?d-J=yzPzVh&*z=<7Xf;J{7`eu&1brcYZ|^UtdYh!pJpS>n z(c1~_!7aD6V(Xc9>HADEM~*@wF0mOBBpJ`Yk$mMs{ubRx#0pwK*-I38JvwO)Ul&HX zVB^AYO$^E63@$O9T_O_aKiUJZr$W~=ugzmfmbIPKpHCt+p<=3BO9>X3VQWcxOI5~g zv%m&eBzWTtSw`m@_fal`E^%{;xi+XE8H6hkd!7ImPE!I3uoS^;T{}?S@wCHSlQK#n zYfKDuL30ITgTzdD^+lw>N}vtbUave#UzHhng>Ec2W<3Bvu`Qmch|wu_xCCWqM8-tB zm>vvWxubk?H5l!jy*hHfv{ON$%9oMf5Py1(^5g*)F=&KKD}rfLjqj?!`@(_;Vv!`F zNjbwY>@BdJER;h841n5c;6JcidFL1}QPj_DyhJZBbBEc5Z*7vz%Y|WVnFeHAW)jxI z3=`ZzcVse}7^g2hddk5DZxhj%E(Mq6&);>rPH@yYl}`!yBk-RgtL*T zsKqb0>KR-q&Yh75ovRev$y8{!?To&ZGkV|~60%|Vw#+J7ijLs7f5e({FtG({R#oI@ zBjx8vrh|!Ql<3%-U6xaaV}Oa;qD5(8@EoyDtyAsYCBx7RD88fUDQ!O%4_i2OXeIWB zsABj@!uxXs?^r1yRRE0=<;BQF5;YC zew2VvSqBD0`G9R}ebUTyaJN?PRHNLxbOrPsdb^T05DO)8X#M5LhW^ z;kMDX1rMShuwHaEY$FY!k}^3Td!;>$9*GY~kBnSd>5A`RZk02S$yS{>3IPg>2>ROR z7($$Ht97vuFxQaGv*Z-hXztr5r<~B!!3{7Y8yh|VLudG{+U)e-QKZ#8_uHGa<-oYf`&? zz42ORDkKQhI>JR}8@xCq12#TDv21wbS?Z%{#i!)96|Xc!)-y+3pGjQuLG2JI1)(_J z2NHxAhFUGJ_q`*HWYeQiWN%~nUd6u z`JHH~xI-v(sJnioTsU$Hj7|t$F$aL42h0pjvt@+ij0oJ6513E`+9V%vCd1Hm4a4q2 z)jWM(F-FsM2vPIgwTebzRMWS#zubM8Q)yTm!C8`(<6 zp`~>iNW}3B{1P*P#sD)g9N9XxvB@z*c4sG?-(qts(nc>@%#5EK#R2u>Ai62md;*{8 z-EI-H{f{>MwHATRwkldj`>kRHLcR)Q)WnzpJHR|ZU1-d zfOS*`Keg>=FTf>Q*&2szczC0Kd%>J>#QBA|R$_@tjhJZza8BeQMuBN0SBvhpBZ-|p z!}(Plo&uD!j?9}m-^Auiv&9c>A{cpNeX$^jn#IjmnIRD!QBmND&h1jsrXuq?nX-UI z5jNWDpfFcC;ZIcQNdC2^!P6v0Q^q%buxE@9aG}jCQ~j4a-3BxRpNk+^89i2pZJPjc zTa*LucJ>fG(dv9hVzUjXU8!9Dmc`+y0`|<@3cf{F&`bt{W~M$PBl@CRb{7;N3mM)9 ztX1plt$#_Dm`{f)A~6Hp#*TWLG(xKDkda|~OG4pFG3a(d5gJubS-3j%yY8Y2QzM6E zedE)%Z8$e=_-WoPh1inC^Z&DrBTBc53M8j}lKcz?>nxrEq-%5W$j6aPTxdDTuSh25 zl!tas5|Lyw<7;B=zNQ%xPto% zRf{v+)`CI(4D~Qdz_)MVx6!wu3!RWsMaeWUHZme6W{w{?>BoNG{*M~|LMO` z&T~bNNt`T~m0&S90f19C9d!&*Kx&dO!v+nUNByEj5nw})N7s-3UmD4RToxrGbrEg3 zg@;ix!gP>dkGWPeiv3XRlM?<33R#>n z=uK)-vq9Y5}&06guAYoF* z6*m>K#L12pPdIprK899-N36Y~9*HVZ0%$d{$^%G~iZm$3DRmo1FXPw*orps9Ml7f- z$r|j}#NyNG{mM=WUJdj-cLNI;K}+0F6g}Tyh71RsCDZc8fvNdnmIWA*YJXx_HVWYO zj)-mr-ZD3BKxscV!>;pSveJ9y;NO6jFm16bqUls)On`V%Y}#~mL9-H==T2i$Y;Lk9 zDZtZeHeh{IjaV~Z=@L}+5TdZ|Bg;O;NJv+^zxii?LU7EzGKM^O)`KvRM&C>M25W|jncmR&CM`E5bk zN)ANv0Mi$d&OK*WEP-n8B5IA?teR_#Wq71mg1pnX7UiX6T8@|$X)5$!0L3vEmeWa9 zNp7VkQ|+wM)ozp!OmJAyZeCh>MUx9Tg9d1KNo?pg+DaJ+mcys0J+H9Oo4bqrl3IRA zzEeSEficU%>Zu}Jw?^}pac#J~*+^-I#mFH94{iV+XSvVT>&IY@$KGD4oyQtLk>y1@ zi0gX2$i9Va6z$_xRtbuXbhH@uv8m;Oa{ctXByUtl<-!Ly_W0SiZ@r38)fj>T+8pYI zyeEL|_Q+05@4&Is-ReSFZ1yLYg_}c<`n#nl8ef}QZyIS1y`|BlRlecF<|isb4Ae>I zpFR}N(;u7Ot}`>fj!T1 z@EAssl-im%$;92B)s=?KM41!Mx;$6`H-t-gN{SZh%hs=%j)ek;U92u10R%F!!=Qam z2Ic4Y=0$GqCJVPGSTJjuZ2>!U@m#`|mD1#E40kaIx_H`E9ZC32ILn%pij!Tdc(QeB zWo?-{JK*}95ChuXg;0!!b6G{**bw!)?mwk|>8+{!Wgs)(`OsjoU*a)ij0f4XUVpfU zZ@y9a#z@sPP&lZ3=$2&awB&}77y`$l6o*X8;--xDO4;Wlz){ch%{!Hh1R5p1laJrV z)~g*sY>OGZ#A8D>?*jL)AEYIjl{vuZ?BMd=97pdrk4=r9d*!FqvR zARFd%($&o-d`y zaT%(t#4?mX=4pwM>`+aLp(&*M_Uv)(rErIBus^Cr)7?0fLR(F)Lx#QEtY<@Jo88Sx zkX<%<)5;vFJI5hoES%@_bOHyj#0Oo!)+srHsZ?HGz{_Lqxv-vDJN@rl;k9ZnC zOocmJ5EB}M^Kh%MU9j$hn)rNf{TXf4N5SF@_?bc%z;}G4LCy=HQuYU6N zf3-T~032N>{uU!jf9skEbRKDt?;xz8d4@)VMgjqmIZCLrgFrq8n9x~}VgDxPhJTjCg8#E>$RWQfLGdOe2)K*NyDbWZ%ED=g>Ek|+>*4;y0B{)nui zzR4@EV^9LEC}?B#(*m->VOKNdd^1H)n>|dJoh3sdORUB5W#$k}nY+c$>@ZyfEn6NY zPi=abT)^qM7fhsW0wUy2?}sPSys*yhTJH0N1GgN7RNT#hllfyFW7O*TH?qoD`pM}b zHgp;JO%mVh*N~@F460M)V|_1aOfDQ<#JmkD#lPyKhbTzAdWs5wV=|~j|ItujiCzjS z7$)81;!a$bH|jrT$r21vmH5d?5;HRO!E#DWv&l8c3yw3<@^P4Nqr<4 z*T%*Orye$n2 zw%JX!!{ghD|C}QAz-`lPOqu?)0EC1E9EsV;zvE>>Ea0}$?53k;QAe%eNSlzn{e*GF z5^)xvfOb<67L_U{R3|zr4&h#HD=#wjj08{g-Cg++`joPq3}11z?Z`p^k@nlhO^wu? z#Pl-M5tSfBbLqmCbb3A3Xx>2?R>?-oEp%{fpJqGur(4@pomsgL^V4ekwG{30yI$I} zH_7x7qnJFURY4LL2iomX%buLI@{Fu7sQzrlA>j4Y!d*--#K7J|fs%N)A(iQC`R=^7 z$sKK8E%PTo`SW;3Ti)v1-tMb44%uD76f^j(_R7+f+`ud6`<^;rty5Gfx*cC0BFvlm z>bL>hGxtqD5L({cS0AyK*R{Ezd9L%;z9D~u=yIZqV4rX68ybwg&$Qp!_Y^mq(SsLX gdw1VcO^imQ(@oByr(H4o3fd2ioS@9+D60SDsL+yDRo diff --git a/metadata/protocol-substrate-runtime.scale b/metadata/protocol-substrate-runtime.scale deleted file mode 100644 index ec6d8b5317462a6ca7941e241b2fad2c5d719e1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 274082 zcmdqK4`^lAbvL^A)tRxzkyE*qTlt~9cTDBit9+VcjU(ri71@ktBzN>OGa8RHW4rdC zdv))TbURn~D)-zwGYSbL;D8GbIN*W<38auh11Y4CKmrLQkU|0tq>w@i38dgc3JE08 zLJKLp-*2tG&pG#>JhGi>-uu2ueRa-0`_I~Ium5Z9{kUCz?=MHq*i>?`RcW^3$x7?+ zpxvBZu2h+Qs z@qYSkW2ZSfvDT=@ckH--xKeJH?Sz@I6OCr05|3MLVC;0I*+@G3aVr_O;njHOJcq~Q zgI4oat=ju|HtFo_)GD>O(e7?PUc~?tHb0y(7{PW^Y9QQvqlbFVRW@>ES zL926c&}_BCYArb^w<~*Ruf(kt_xpUkoFqZ8X+tw+CmYSyez_jnVAI&y=0V&lw`20prj0pSG(}ALq?rZeTDARJyLKzyY9AiN$@qoGpZH)OV$2y+7&Y_b9KVI_ z!w6HmaU*WkDwEaPZk)6ySL8qV(vH`gyUBuGx*k`S^ywOq=V@aW(94opI--|i*525O z;+0l>RYw~&XYI;)AW{rmN>&@YwMM*FHD=CEahT4+)8?d^P8-}s^T3R6#O3;3v;=~! zxA)>!kRQ#Ms+-zs<5sQJZ0rMLuN`2!;wn$iSsW!CC;VK&sxO!eJx6Kv7TRBpaWbo; z!K%FojF<&ROdRZ$llTYLPF&#+03l|>i#Av_cCy_(s8y1Gw04q<-ULW5j=pp|-rn9y z+C-Ilvl09Kne)@*_r`v4azoB=V6NDM{Gnc4l&LJa=IGN*;b_-ziUQNNcihRU>7%~Z zCrs#$7n9q8-6PVO@c%SjTq zH}9k!ylg+`I>7k?C1~Fn`t_*UTdl`BzN0~xI`wuYvC3a$tU(E^t>L`33%-2{&7DIq9^pzF(x+ z({|7LIvqDt*V?sut&QftN;~c7Bj4$RCY1e5YS@W?Pdk;p!?V6lf8R`RRQBR(r_M9} zn-t24f7tiMAD9rNskUFPWl@EA&6L~+6>J5tgXAI2_Ez{{38>t?XNfLAe(`C)TV2!?Qb>ZY2O!< zCS2dyiOEd^vu5q{uKT8Y=sqz22M7Q;dX4R#&0w+Z9`CWIv1p|4whs8R z@B9DD%w8xbp#J9?k3TUVnAqB%xVeHr<9W{)>51}hbEhdZ^Rl&9<6TUZC|}D~u4Jp_ zUiI|)w0Xo#ZZ>a%`vvBc*lWlQ^{uu%=xh4NW=@(u*D4=CqzKGkSo@lrvwX63Ti^73 zIc+ZHzr29sD`(=<)_!GB2U~mEqOYSz&4o*~J8|neB!rz>3cSx)`wQ34E%&D9(-eH! z`y2rOZ?klLxl!3`rX2_7FReXeeWxH>c)68*+{N3n&imTkpBv>*%+jT}b+aCWG{tV) zKWptb-5~qDNS1cXH@SX_X60h7akISL)ze>D`;eb6j-$NZ0>K+fntK}M2ADBLfwG(9 zUt9YlKSu(87-;wPWv-+5n>hzp*VUJ-eX|>;!#caApzK=s|1uX{cMgMGuV1rv#xLD{ zHw1%HkoGl8XMO+EX4Wii)OK;SJFWO!t5zj7{zeWRKusj3%mGxYfpF}+>8$)xyg%RbL(o7F8*orm@!wz zy0o)N-LMHkd1x4r7tgNVX}4;Pq*mGJR6xj+z|MQ6WUB@(Zqv?r#bgbCLVAB~xe>H9jBA4{UE}UZ zx6$nRW;OOgbs@M?TCCtfDZE`y!j8(?QSowo+v&7{ohqw#YwXI7~u8flk{yz8xn!n6*=w z71@b75ge>H!e--iWv^UoKy70O;T{Qg13d-@vWwwPvlT-12vv4>!dkRBOwsJwOemPD zB!<@Oh<2hv1@!rBe?%cQ7JVNkTTpLbvf~h{6JwqqHcGm+?$fc!%c90YbC_MvbXa4} z^d)K~RA5cPn3slir~}&3u@_>DYep|O@vSM1=CsXpOpi{glA-n7`EsMtY+r0PZ*~qi z=DBipy;XyPh%qNGH7V8wrfO&Pr+zecnDTdSAPudl4GY;COl*(&Tnd-;Cz>$Fo- zmz&RY8ddI7_*}D7uddXfrJA{OalLu_5&*g1*$3d=uAG-6W=721wZ_dx^L9hzA3%EY z8L_PZ$XHXN_7W`kq%rmU*nMEMW7F4oz;-Yir?3uIFTbr>SgGBrQK33__-ApeNsK$l z_caLGc69C{%^z3eGKGEgi1l40t;d>7du+imL8txpli0C&=*saOEDOAb1Yqp;9Jf;ko-oVuqf}bBT8hZ@e&9K%^!b+#rf_9%SaBU?D{>t8e>eQ)C z(6kq0S|)B3_uB1)Wbv`bs?ACgC7o?Z#vsd4t@#)a=4n2DY`X)s;4%3iIW4H1JT?=? z*f|^%cDQ{AI$29Rh2*0}3-U+-ZGj;(~ZK@Y;DxgX0OgzoDoT*2AC*i70-j5k@{r}or6k{x}@_6!BK z(S+qP1kNR~A3-n(HrUf2#VH84J8d8WPD{9Y2TBJZUMtsE;)7;VYtP<+?UNRb#%>5E zR0c!pKwf}#F|0R}B!X@ZOU+K)8l%~?x!;G^qwRiNA2|0yaMAarl0;kumn%9TZp7`e zfvD!KwRwQ&4Yv8`!r~o}1q84Hg+L3~KilNcYUCYqKnG4b2!6J~?aO!Sjm2S6Ay2UA z{sQOy%bBQnt>OPT&WI<1pZAT}Nqg!V(|6CaM(mu4E?m_$UX5XNZq+E-h`IZn?3=w% zg>Bbq&onZ&JITlFBd8d( z<7Y5nJuJ6&!E`}BKo@HjEGLo1xe28^L(6qE<*@oV0KYHzu`EE(o1jfq&jwCaF^+a4 z6~Qu_WC#%{nTf*ZaJs9l^6le{HX6K7;guVXRD%7GQUjF;4liLIHU88F#5i!Q;|zZ) zuzkaO3Ub8YaD{Bgd*xfTW^3kN((jK=bh}d~!56?)U<9WbWSkzFc~3wTAMNNkStaEH zcNVH-PO*8?&bi5~@6a-D z$J(`n-iK!N1-l&PWXfUXmOSXh4%o6NW8qX(>K%$Z z>|^$&l;Iy>x}`$sfCSZ9d`I;gN6hHpV(GZ&i`i;y}c1@W|`Vj;`6`W^r zRPe`sjPs74WiXL8wCkktC++Z%asfqS*xzXrp#rZRov`_yI~_Ap=>L&l(^9ZWO7P6r5{@cr^l@XRKK3Q_&h1GXtz@gNk| z2xl&()gu5rk^H{R%guJU-vK$RK)l=ruP1pb!@%EmWX`Q33H2ME6z;X#97=At%Pr8q zytw?v(k4ziIA#``u(${cU|asgBt0h;p#by3=^NkPIG`iBbSaouSvD2_h4S&0m zzTHYb(kX)|59q^uZhXOUZ4Lv}cC@{p#4k*(w#q6DO(ReR_G4Hu5YmIEVofmitRNxn zeUz?n#Czo*J556;KWz2BGNad&G_^n_<>QPvfpvdKh=OVlULON(B&A3PJ+0qqQ>RnZ zl5ew3I&3Co@0ah09OYzjh+TU8^Au+SFoChQ*PN4Ti#;M=@J(X8b18y+_Y)RxrqDri zv|~~>x!-O)WT*l(2{20{Mk_3)5C}17I{ZvFz9$?qyyv5C4)dZ(Kxst8QVcUGR7;no>JK9^XS7jl4v#vFRyQ|E{2rz7F&Knj_*$Df4D7~l3j=&}YUDff93y=H6m6eA_$Mw_&k!i2U z(+(=I=|lS=XK<7#-VN~zqY$f5y_{0N<%cYV6rH@Xtxt((mAy{mCLn;b2ZhfO_EI&~ z#ygFAvqGvIexwt3;%M^2wTk$erqg5IH{HRjI2Ay;PCv>>!%gYXV|scxqsPa8bpMR<2XxBC|s%&`z=u!=O8Ol?du%i!a)R?oZ4E!5hoDJLZy^ z8&$0E--wtqD|8GS^EsJx*y!wU6B)HB&5y9l&~Bb|b{P$OFL&%KV`rTNmxcv)flQ2A z3kXK$!GL2?Ki36XT(E0!fAzI0XEs$uGcD_ z1x1saHkKQ!Ar~e`KbK2+i66T zS7`GA9fSZpyze0RGS=KTK?DWBDXmb>RvS$NfA6Z>6N9^Ld9wpHFW)Wv>6KWi_K~wa z8GK^EYH6VH9Yly;t;f6cL=3Z21LmNry*%u`;3qwtwdy-^)R9|Fdr2Acg|G#U`-tF8 zPMZ!72N@0C?CC$9Gx69PXaCFTmJAlno~uKhWPl@)Xz(ES2j9)GM~2UEd^`I*1VKk$0VHh%@=Oqc zv6czKvtRo-a{ui(Kl-}$fivuCDQ^RR+PtSv2ID7Hv4-YwF5D0Y5V6Ghf(FcmnG6U1 zSmr3!Snz7kUPASwKMCV-FZH;ez2bf-b`y%jI(#4~WpE64A-^heK%TjW=83QNQ}qP` z54_lspC004$F6L2u(y}Wf8GT5K3rC+0V74v^Ia(5367ju*r+kO%YVRtiLdvMD!c6S zX}HI^d>T6%f@&hf2T2Ty4&SunY-8+{)6#R2MiPVvO>r466C z9Q@P-Z^sUi0o1(&JKAXWJv#ALtI~50!r8m1*{~kNm)O{S$YNp8mkz@s1{K~7^%7cA zqv`%|*2g$GfS&-Se>8=_)wA}{;rRfvnC?#@_;$Jp)Zp_B72E@q=p&sP>|+_Aqgj{_ ze6xOnoAx{s{IIKMYP3K#Vrk09yowMIij`wGb5JlJ;U2>^Q4SE)7vJ85SP0pv*QQhtUOA&)bOI>`Y3@dwFUA3vZ?V!`5o)m@4Vab7| z_|l6n-I&2i>Yl6MH)I1pQ;G_h9dvhEtgczHCIX3+s5Rp7HuQO&yZG5)8^J6}tNRD- zLqfll_g8`n=DN;+FuRQmk%mAsf^WfnYV7D43mZ&P48R_YGlRNF7bLBC$up z^=N(iUeDSi$Y@lS;}G#Tl~zrB>$G6{cBLrwU;rBt@m&bsTx($G8OkHH2HT?1&2;>M zQXm0_rX2|JkXkUS{d8NSIi*T!>sK2YT?XnoQlwfK^b%)&b4!K_2a_$F zxVI7QOkCJOk{sgzNw=M`DP0^0!CY>mqUozdROm@m>C%0=`w0fY8+5zFwJXR9uxoD) ze_W51!|3dJk6&WlCdYU?2-RZK8wL?O1cW4Jk4# zLtMw%1Hp8#Znlazq&R1%K_AVVnT3Vcb#0?eURxz-rbb`7($i@q(F#&?+ZXUr+)CFy z%dxhocvCyLTT~df@{_?6Sh-AJyBxB1K*4!@n{ZD^`h!QL%$EeK-M!=nKSW0HkIaui z=|_=z{^QhO=8`MB2s{Fj7C^?9J8dLJA^mY387|s-v>{k7>f~=9ZaKh?VeOMw#L7i3`*XV#S08`ki8D_wF8ZfGPwOpA zxp%n_f_$xoU!>v5KHIfx-@NJ)rm9QOZ@BBxP)sn-jq{=oXg0D*syMQNJ-gjOdQ=-( zN-o<0zTlj$J{ztfWG#5}InpC=Q1LVKc(Vi2=UP+wnDglXJ3uTMlo^U&D4JTO^qb`rQ>40$i;zAe7#3idAZvb_86E-0T&OJq&@M3|ONen%#lHnme4v&cab60@8q0 zoE)+VX}oMSFB4jJ*2=rUgp?`uEe{|?9u(_y zyKMBX)687Fb1VfSA`ugM$jK)lP%?x9N?Y(fOGObV%+#=`ZZdv~ zDSE&wrsjoWtYBLWmhep5f2k%0_;2k z=~PO%F|p9J6Z%(0B1}N|zj}0cOje+{CbLPRdDaa{JA!##f*w@Qtl^amEMmx@ZrM>b zQ@UhnTF`|S*|WMdf%5XK5AZ?oASHx%Fr1E+CgmZ;5X^U|T7LrRg^+=;CoalBclw@k z!GBMglCPG~g~p;Sj?aS0_yP-v7Xedb&Kwfxdd{hZnuX*NM2hvjfec%(i;WsQ@jQNC zpeq)FhaPPIU1oL{w1DaZU&>iOwo;mM9S*GFbC_nWnuBJo(f&_c-Soeih?TR$gZCYG zt~eUdFx>k3=BaX0>b0S!$S}@y>fYWm@jo*4p(qH+?C3>#OH;JsHv#&IdW**4=hfeX zP~o?=4I{x9j-Iib)4dfY|1&K}zssqo-{6X`ec}vu2#UBF;Y@N{$)xV88yj5oU#QtndO?Iu3Q7=-3Z3(lB7Osd)U8^V) zdZ&{Mf~RD1YBHB0$wZLy2|qb?ci1;zWQb|r07t8+DF>l;@ZC^WBp=r(JE-##;t*|O zhTc!O4xv#q$=~TjPXxar5Oedy0fi(=sZ{K7Y8Q8tgxwmGqsXeGN5R}GlSU!jGULl4 zV<8wVj++xUpWG1iB{#q#il(P*%H81NmFhkHM`&zOmY**W9$`(#O3|%+HOaZ8`QP@kcBjU=7X@O{sfc6Kt7x$+i{=Y3(F7= zlwS$OOTp^by1S*(IKCq`U|q9d?({Nh7Kr^2gb~gL#L@PwXF^){JHPe{8(_!tD2!-|lClF<(j840-2UhLqnUsGO z_rw24P*0%C@?k$O8VN4sQ9(jKqdA$(RZVTar_%{gg~abCAm{DH_t5MApdDJzk0B3t z4i$AL$Cew1aQvWNMZ@P+gTl=!50-}T=DRv#NJ1z|`rG<#7-nI&nv=gSl^dY{E#@OU z1mbvt<;KS5-659@wWRBmdxO;Glsk!IS+*TyKUOx-96R{_<%kTxp9xfepz*dFtxyC( z>?1NLs2lz(l))XeXmTw{I`jlWS%oQbs|FK0C|ocY7ctU_gTlB@26q%-8davbw1SiHjiJB=VjK6$ zQZix~ehljMzM;LsK8N0-*=6GQGcpA9;=!ml8oZosW-gaBKRxY8=Qy;ZQ%7~=X0)=b z5J*-$x(q*s7hKp%vX$bNH*ICFQv0)ebwBhsH-w(T^jit;R5?)q5nb^5{@qOGqFMxy zqS-&2+`HcCyeIf#I?7wlM_|&Cgcuh)IuzDph!X*C=Jq-QM;mQdrXx*u>S;U|6Mfq4E`Kdr`!()XKWF2860;k3q1pYjafM2qw(H2wK9oD>dLiH*h6LxZ~$4V60z-$X0+n5 zTO|c3_`}chV3e>!SMdA6uZW3a4TR5MHpA0TziO>#0F_T|Ms&58gkG1Tv_K5_pNI2s zY&!1b>}(DkcL)1FKu84^R8k*`&OFDXd3;&q2z$rqTXgdCI`p6ncx-J;n5=ebB67- zQRz*!nh5D^`q4`_SYt5-UJ*e8ko&65xb=v&SG+YTml{rQ=aXVGK}MW3eCdXEpTJWf zv0t$3U~Ailnor6A2GnAtJwgOZxWE}%#|RD=oD&r{(9v?Tf@g2Fq{7`S=^pAGk8~MO zp#An#hk&jD9pO=%8X?oV!2@=6-9fvHW`8N!(~knrL!7rln2eF?=V6PkED*VDizE{ zV%4x{maGjWjuF#>{hC4}{yGB-C8OTfWcT5L6au>0fsYMkU7m&yYsMZi8q8;~&Hzh^ z7;vR(hM3A`ViiAw&6`SE62CADvb5!X=i(JkTf5|*W)TjjZ5HCt z{|N|JcAdl-;7s8OYw(YuDo&+KKC@jM5V1yW*c7otq)tV_6n_wqd6JPYWr)=)h zhA}XWt_PEn29hjW`(@cZggwA8i`qQC`=zw^G*A({i5enEI-4}hoaw4Ht9|pk0Do#v zSHouNb6m28z=$vI^!!v&OFK0~I>hW&w1Ll4Kuc!+!P<)C&*~*>$3Kk!!b?SOR#I=a z=j_7zK^YcA`V}_t08yY)dPEdiN+nz?CKn1m&D>E_&q)M}_T6fYgZQp4)fCvCpoEr)6)YNLEGG2V?MRtdxDsCk& z-RQCEUcz3CjDzBgqL@kwDqj-3i{5yf#MFWm6F-FIgRz^SH{N+Nt1s4QgaZ;@q3|eO z9n#PvnP8Fo_^Qi?%KY+OAG1nLV_?`y@DIzqeLCW$F)0IMM=t2Z&LM?-KVFvj_93$_ zpu%8Z|6;S(92d|$CZfAo>sxU&uU)%{oMFp3D#Bs}X-R%aj3fa&YC|kztTZsgkAym~ z*i49$1EFrQWm*j4cwrs^y}@p;FbQZM9E4&`ehO~$RGuBW^Wt02_2mUnzxTeh#*i&I z862cjiSHcLa3Kq3#GFEI!M&v7*X-D)lc~B(<#(M6_0vy?L3il>>-RW|3_XaU>dkc>#Nloo9W z1F<&RvGilA(q)-bG{pi#>mAgCO@sdLVh*0cbRX#g8Hm2h*1BJ=ibK5YW|I{d znK;gnnW4RVOfWmf8YO-380#&NGy6stKzyZ;G^m^ghJVf*I!9rm-3Y> zVT$tgN_7*bLY?m_r>oyWl4}UBXu>oLI+L+5F+j&xBlpwT~n)Uc^j4d5hsD!NVqS+%tC-D zv8yRWaN6+Oea1R6=u!v=!UG0>b;-UZ2yg~Cv+k9o6RaazhTG^SC!`4>G=q0B%8J?? z>ntA^se?&|i)q3ivCEge$!giANc@Q1#Nw2&W}ry%Br|B{w;CA1q{S|bh;Z!>@|IBp zA2%bw$ac*Y^(krXqFK@s!g1LCg_6U^E(J#g|MhGYJu;l>vb*=wyb}@$(nUdO>Qisp z9PM~<>cQ&&+VLm0DqED^KtJ+{L4Y-3l<*Dbrxa0+tuyJ(UlLe5*Ek9y64|?m`!EuA z-&i-b5!FWi!zcDgHYurGB#);y}T%wtl!Pe?nj|a;-nHKoES_8 zfKb{hN9Y*y3!ZneTli3N6jYCi%7}SzDowA{lRF)DY#eusG+-8(lK4qx9+~2bo;yaI z77Xs@N&^@GD#(jnQj?chO>pn-AgE>Pns}wsTY|b~rs`TzuNOin!Vyjx@uKZpdxttc zbWa+)It#NRUGu7+UAfKz*6pH>$7rLEz}zY>1_qC4tdI#d<%zRX@H#S%8%?E0bcnM| z-FWYO0v3@!;tiEBMR%1?-jO)mFXjA(cQXfAqw@a5La>*5`uhBZvlp4q1c4h~%;A1g zT#TTt#_jVy$gC`wTbx^V;+sUzX|j^nRVcQf31xEf9FBY`PH zZwYz#AUG1d8+VAjd-Dl`clU-7T*&>~+$RKyh+F()w&$vc6QlnwkttNTczJg!H7Sy& zH=qo=Gi9Zxa2T#^Ij3?L$p2d*-=N^G<6Kp9k_v5D%mt_XS_4;3l3kQL@>Y$iIjmcLXXYPsZ&`WqkLLZ8Z3WY?525i*w902)*D0 z78>ytNo<9di{X_PGrq9;+uDs;#vg8J=tfWI=aR>nfv-;mKN>J+FL3LOT|ETUv^<^O zjDk=tc$1Ko2;uGM{Thfp12^&h;El9bHB@?}5iaUy+I9 zGhVW@g-Qgh5#DQEEtrdL5Oj{96NLkcYw??*a6x4$YSx1X9>IN$a?ucEf(qio$L$3g zJdd2~ySHV*y;M>^ZO0A<;jq7(w;z{-;d>g`yV@}*8TanIekKbeKq{GBNZqxj{|U>$ zUuM1@f5-9f%-lYUTQ(g+?6(I(YIKfwV@p&qG-g=4c!9MjJkwBk_->f8V}i4c!C?E) z1rX0)jLSQ?+BinV?`8v>V_;`R#8suGbLkV(uNc>1$NBE_R#H4x>ylT1D4G=x#5Yhi z*!ex>5uXRn-Hx}naeopo7=?i#nL^PcM!ih=DMHciikJGUjF})5ExQ?f;1&c|F6J&5 z_gjHLwn5Mv0QGx#{{A}49+bPs2d-yqUhXnK{z9^Q{{}97FmmAXT4%@}hP=c1Y2jYd zt}mf}lRJx!P7H+J#FD#l{rK?HgeMieAu4+@e2_DF5Ng>89A`c_@%iOO1qI0j zTVcvKW=S8cqDqy7Ey3Kkl09&znw`- zZ2RmDSke84ASm^Z#1c*SR5tn6vCQKAE`jf4hoHs8Zrl*kLRC_@ zzy}lt7@hSe7Wf|wG=Q7nH@rze&$YOufT#2&;~9PwHEu)P^J;%)^*Ll~;LtIJ6xZ?M zng;#aC3_7C4I6g3g~fdX-4k&6U#OFX@LI+bXy}5szxZm(_cA){@9o$HM`DqPg4=7F zE#%M+q&mT-)+0ntj5-yya4|wbCE2QvAr|%OjxF^2{b2+NJ>vC6N03bLk`5tBF>d$8 zeRdD!%J08JJpO?loy*@LIdKL29XWer3m{>2)UqHAPHL6xx*Ie1j9&aGO9hWwSZhGI z=hd0|1YYQWBxjs8|HS{GLdie(4D$R%q=#HpP2k!ADoa-5wZ={p#w0t(7<)M7TD)lT zr`BGqG~vMH&6fKI5O$VuTO(M(w6tP2<-b^4MVU&cRxB>MUX^ti^Ha>=#@@lo5hfBcdOQFHhAv;1nF<+G$L2qBB)S6h5yOTyD(Qx`({Xof*sLwRoow& zoAwz7t*sZ&hyN?wK%r+;PJ&glbiM@jkqnqjp~R2$9C1A1wNzyq zC5FJAQ7*y|B}9s3?-n@@$3V3#)?+MT18dF2MHrK@({6$u2RIX61zk(#L&%+oe@LK6 z&O|S>e@6hq+bHWAqdQEmB8!;8l>leiqFUo!M92?}_oE^opv+FA9bJ-`4&570UV<@T z%#}=LN(qow8Q6}i*TD}-{M@u=Ll)>m(ICXrvF@L*GzpA7{CYY)+>MS>*9?w>x*%aQ z=n`^sS*r|bb)h_ZyyO8VGAhgAe%;>NJXA^0@A z(It8cuG`qP`LF8UAGz=E4C2?`F2s+9C4FY=vW5U>HX+jt|e2V67V(+p(#zFOyUt1fxE}llIkoJeUy}8dN7SwkzD;*#f za;J6&)y?$BoE^jXs11UPYuTgA|35kYpq0+Z(LF}%l&J6kY0wym20Vf%u!T%ld7N=% z?VVAw?|;8sWcdE~6aOHW;9x5DUPZ8(OMhj=)B&p%A_y3_FteMC=D3+5+6fh=pOQlJ z+B+%%NR?_4K8RfC1)djP2f$%)kSm=!qxRU}kaHESD76$E-;#qkh|u1LVEAE#R%8)g zr0C8ug0pbvG4%-GxTG7lYGoW+7|GK@p<4fo;B%pTq&k{K1NRX!Sd_y>|3+^0OKb2C zsd{sB=GS~MXa1v?Yt(7YO6DX6>p7wM2~y8&aT}a-OYkwYlllUzin?##L(Fdr$rDNP zU)H`1SHOy^5{IM?l!SAg;<@~d9KHWSSeN5mDCL6sY3b_D_I?dUX8+q_K9dc^Yn1E% zZEdg#&sTbVQ~C%~L+vxjP>0&a{P*CM_Rh!P>bnJ5Yzn;Gg6Fy5^o1=jOOHlP*9*Bf zTZmhB&|8ss>CYbU(%3@2%30W#q#H_-?ukMVpVuAJ+JY*+VT>%8{vu?U zQ-x!}d^`jBcpt>|Nd|EF+dNPhErR#yaY>e(?6R`$a0lYhIM@eNQWX*=gw46X%!B%| z6O|U+$JbSIGA8U6lIGoeCm7jj-g~s=B&gn(D=t$R9w*nmuVT_Ao}~|^ub!6U<%3%C zP{B?u^`WIN%tM7>?0oY!5&B^m91Z@Dk^fV8U%}uXPU)xY zxOt>^w^c)!SmhlIBGyeVt?A|9sLouu45<;4=7YkI2mm4cF0)f4Sg=n7$}*EvLfa7| z+rG`R?<8#+IDorkRE)afbt8$E)o0NjhjANm8DTZaW^)ZjK;%S2u*S6vo9KrEEK^B! zK(}rR9vl|*Np4{PjfFrXA0B%WZB^Abn-t+8Irrd4VeA*$fP|c<6-{J;ZegLHQkvqB zUm@xUu7Wjz$dZm18B|DWiZarF)4SK;+>Q>G$@9LB(G@hJQn>-tuFDR5Cwk7 z4b|Ebs5s5XzAr@?v?i1hM2^V*w4!lc@Ka4m_SK^TJX+??I?5~fFYb`lxNa6nOROz7?o z!J-)Lj?f2S5pYOE4uJFkKyaejn!AkYpxofqn2Kh4uYhWdKRTe!iL?bLhfDu>)c6x# zP=kZ#M?id#Mxo1W^dP0n%gtz)LN_LmCW~-uYfVTylo6yC?5|kV{XrCY;4BT$yb&E7 z0oDFXk@*p~*6&)n$G~op`(>j39-Y!!gGknB%~Q0^2=*|&W0#M({T4ad^9f2{3z9yaN-(OWFbg{6yDV5N>O;pT_dCujPgp& zyD6NV?mrP{Z^z}ETe&#ih3D`fvm`T?_e??0#*>9Cn)i%wjwcF5^F(261^gE`B_d@h z=_I&pU_0));o|h50uWE4ivs$2sxW$?s{@t)K7bBtM)^%aX| ztuWfZyq@M`C^d<4Q>{b&+?cled$|F#0q>B+yDLaFZutJ|0~%bv`i#ED(3kpm>WE{@YP;(~pt`&rh!VCK?SSbtz@5GC_ZvZf;jBMv|{j{^O3frP!3D;EQ83<>I+sJauk zP{GIFF{33N?0AB$f2v>=?`-i_YsdK-13QhWt&86gayMT<^=s~w3(#e+J_Dvp?t*J%0|AV)dZOOCES~-L-hMU>^I( znvWFHB2gqjeSCWCq82dOLat-&mP@`s;8^}o-PcaRzI?8EXK6LpP&S!9X_O>_Qjdx+ zb_oWBEir@ZXP?AzKm!;j)>)j?p~d(qdlf!g=$a`ehWQ~MgT2nje!4O!`!TLq;{A#c z5FkL-b`DSIWp%mv(D(ozM8Vk=2U4SfdKYNwkeMZWwF7PXfGz8Ntzez3G$pbs__b7b z!HST2in4)7ju!)k^f@a{efbwoXAXjjF9Q=D41niW2ZqI6q-+1y0c*qm-vaglD*__- zNW2Cr!vOS@l(1zU#F2?;$JlB;-8?%sL!a(=LQh42a$YQ7M{_61D@ycjQn3|j-ml=0H^#k- z_PfqNVQi(37LHCTCA5cyQDka8Q2;whiOCa?GwAp4;i+?SlMo#^AUKB*R*;rAhxh|!g2;R zVe@wL@h3hAIl+8VZBMRJ7RrqBx@S^s$2t(e=-!Q6NJ$Buc}`eCa8)hdYQR%Ni~1Zb z>il14K^T)e-A!0WsguLb=uSA|Wca|CPYq<2Ib+W_6fxXX z0SW-{!&XiX)y3`{`{2QZK1#Y1`H?*1%phPnlGyEgm>I`=8zVix;;V?cvS?R@DnU+u z2;(U0>{^ymElyUZDqgE{oeCqXeyKJLUELA4YIMZ`?R=LwGlJr`ooy`^=+3pj05}JR z;A{5&Q>RXyhbD-UH7};>vfTZY+$ip~+Xu6J^)B53KGwc-`A>>C5BM~3{#j!MuPdgRxGdUIG(~#+09D(C9z+GerAmm}S zfe?;0m}18ASJC(bIyi9jn1#68 zqqFiwvaFa4GYJ&sPv|q4N))}hO!tvmppeDTM5+HnZHF_1{4!nz0p=y6CDGiU!l9eg z5@`V&;hc;+A7dm719IG8EUeIdw9#Sb+V{N07$#J3bKHi!(Mo& zt9L(bTuD>!pg|O_*Q+|j$>6K`rnHAaCLmzk9nor4OuxL>2l214?ZKFteBJzYAq~+* zHL_YI_VpaI*ouh>sTP)%mm{7oYjtGh4d%idh;e`rPSTqrQnI zJe1$gqAP3SritJyCOZ{$hz7VEHZrfR(pwmUS77S8z8GaEA)IExvt1U$X&*lly>U8R zhj`}AeZy>fC2i(bpIyWj&FKrFs?o*M{r~T^)8WcF_=*{~vWVb_tKbihJ*UAGZfla6 zyh%^XAHi-u3bS#1`%4ge{T5a)B09Kppv4u^qI7+mY_Hs~*)A(6{ShFqltX@NwV5Rg$^Kl#`c`Y=v64~Rlehx!PrymE;OvwMMa zRYffi;^QD4urfospM@dfrHFUQVu&L`(h+*poAq81_aH2$iEJ}(%7=oh$NVyn&&Z*V zp~d+sg?-psxbXTjOw-{V-Sk7?2oKy!11-;!q-F3GPrVpNMBkLZf=Ei#`>iF{=rmHI z<#<*v$)eNcxHJos)sRisnb0NRRt~Mq14kh;!O}(4hM=%{IZxdPs{hZDwgv1>CEoHF zjZ%(plfX?9cpr`Zbqyn%*R0f^&oD@6T1tnMb|pe(?yphjV#)CZ&A8 zHM+J;lvU`0W|D(4XcA_RcB>PYcxM{yj`}{sbi`@ zyL<>`o24QN9b$M7>C=M&b5hcQUsPH+a>@#L$G~7G$z@a#k{vBpP7+WnrPSXm*BKrF z@ewy1rLP^kkIa{kI0Eh)5OFb$Mdp=m%E%tyRjKbFk5^Kh;W$kA*plD7X{q~CmyKyo zE{H{KWgL!VPOOhef8rlqRp#fM5C9<|zGG4L783wc_`fSHbC4r{Gxf?0s(PX z%ePt8Y086^#r0`s>8SJ40Qxf_T=!ryS0O^Cbf?}n*8Ic0YO zH`KMg+z)-}RU)oR60CbdqU7b@l!Au%WL@ux3%;1OC++u|5ROc*T#UtELx@p9?-%PC z!sjkUoX)0`jG^j&kKMbp6G{y%NYeThzA<8gVY^5`>Ar=CIY`6&Y0S6!$4Xz?u`v{S02Yp4LfAa4 zNMnctU-*b z624Gfe}6lZUGhY*Px{kab#Usy!M!2@lHtn)f5na9XQN(E-;;Os0I?1z z={$4{j#*NU$t#;=A~FJeM$J~2rGn8&u)k!96259O7J)1T9(}~K2+^2zMrxS9K_kN6 z_$TT`wFa`Iot63ZP_8#lqHqJ+7c=bWtMW>)gHgnkl{NW9Bf!g{1p1<77SWF709ODxmugZe z!`}1{5b?qiENknH%kgc;0v8t%*#&K8%XL+vzy+eL^MoBjb?|){iZQmcEox~av7|wM z>%uCya8T_Y@n9Hd1y=v7yr{NZmtjyRRSzw~=d|PWv>>-GKG=fiawpPN0BhTiJ`JqVOq zmute(C6ntq(=wzx)Otq1{4BK!pbiWfXX+|%AJ3yiaQ%9nQJT1f$mG}aReyJ%T zek-~-`y1$ZvNV3G(C|15ksiM4Vkw{cmztgtEsU$-W+L;IO|0Z-(=aAcq8qgo^%)D? zWrxGJ_U*8!!sI2p>Y{3U4o7^a5+CR?9gd5Q2Zx#y6v`%hAaw##RHi_-9mBsX!RO!# zxj@xR!2As!MU3Q6lpey|=_57Gh$;FKq9eHHWk`45Az+1*__2@@E7UhJL|}H#$i@5Y zku}|QP&7XP_SzhsczdjU1aM22f?a(vBP%zA=;^v#c9o>aVF@lW*{{8ynk@BD6Z7>a zpM2D_dB(+txZ?+u3<_=6hzNy2p>wd{Z|5H`;#{?Gb!v2lu`%svuf1RYV-2#1{2b=| z4^YkeTf(B4(N}ML3RX_o&Gbr4fPykS7>4gxa-$s8z~O`YmRKWvA?G!D!Ae@0>f@dX z!=6DFihJbt4`5)T3hxI>jcDwC%b#H|b9Iu$5S|3yWlOu2*0Y;U&-^U22L^~fD6}BC z0Hti1!gR5@u>K(MM~=Vh8#k<<46HmV#Q-7w)G-kxJqQo?`<{Eti6AFIE~iEA9assv zaI|E0)pC#b=`aDYRqI*|iQAPZ0-g*a zMI!8Bn%tZ;u1e*!$b11p31wiI#rSP%CQq@`Z4JVE&@u-}D~EW&7hWcIv_hp3 z2kGJtxJ!)fY_?uNr+$1U{Iw1d3P1@(i60Iu=FRIc(d7Vy0Y*sbu;9gRr;L@fAx*ZM z-wP3%5yL3gKNXQqLIkOFkYmiOQccc!nm3RzsXGe)9|pYFYsdumQ&Va}(&*O*L97L# z-Z$tzWwln)j^@JfkJIGvB?t~MJ*U0^IM+~IcsMUf^~Zd%oUEO z$jOjGqZRli>*ulMa)wh$kZ-T9uW!Dqu>t=yRGm{JiPz^s#4bo6nG-!=DtW^_@e~AG z=X~tI7{NSI>^3io<_1w3(hFo$N#aH*eDK|6hhVDOF;N|7J8dCe8W2Pf4!zK!T)(&m zs<4B+EEbXU6Db6D+)tT+XlMEHqYJByfg@=x*P##5;RDOc&#zPK%zwgEE@Xgs8sTcF z4#3>$4+A}yDJa9j^6I8Lf{&q0EWO^4ojbgWl|ruT>m`{1(9c0^gV(oq>M^1XzPF4} zT#e96+|yK^m7%@d3fkg&n_U4eJJ{h)j#thh0D>^#?H7LXB5r{4ot8e95E{V{3v2*I z)WqBud|5-=NEMi6N9|YN$??VCm&$j1^LuR%`e&qeA~vrK<#Z1$w^o@&o;E6Ui8Xrq z8UDU@=J5rfpqaGe9r^jw!swn0&XIG?5K3N6<@N;1A`|?8cB9kR&!94slp#ex`1QvP zLVW(EF#4MN8V%j28ky7D5(DU#WI<{DjbQX#!xruM7^1yk;+a%3kA6ZQ=o*-RWnu_P zH!kyR%+Q*-x*sDytx-8dJt(}!>_=ZOnt!{?k>{^s(+@XraS7MOyh$Xq%0<5j0Z)Ee zuwQYhH5;0NoaCLQ@Iyft#Ew2!LkwsuL0Hp-+&}h)okuM+S+Cq%21^&!ZQRoQnqBg5 znEr<+#{BYFHmhGdo7I2iY*xRPWt;yf;Gbl_G;kcZJjjzNH~Ap58e?-%6h>5-NleLI zXz0(roxFvltyc0w`!emuMRzLJu;8AiGfdN_2@6yB@4JRMZzI@fln=m8+X8b`3(yhm zh*p!k&haIx0zjQY0f61OojfpNS6rx9IwOp4vGIiyBL@E%m{UA8Vor@5Cza3ya`yqc zPcJ`sfPEVC;Kw)rt+SZ9mz56nZyn(MV8Y#tpMeMzcmBHkBSS#`J*eQ@!@ zWgxl#{tO~?&nm2wGc$mK`~CP6+3ydmWxwaIWxt;&XTLwVpZ)&dhuQCiPi4QK{0x6j z5n+=vbDz)sapp_8KOX;D?vD?AC-=wv4|0Dz@z1$GKKQTr!*KqE(<27|K+S$?&x{!S zGbbOyjmmuWjzw7v)#c1r}wWb#Vfx<-Hn zFpmN&`IDe2TpBU>C;dLlexJo3BRB;dfbc53FkpZth(`?mNrM_2 z)Yt&tBR1G)gO7|D{F4S9Ht4Xy32ku51|J_W_$LiM$p)WfgOl3eQ*7`TBL@GZ!Kc~a z(`;~`Huwx1{N;$jKWXq;Hux+XuxK~t@Od`)s}X~L(%`Sz;IG->ls5Ph8~p8v!9Qv6 zcWm%?Y;eCe_!=90W5nQ}H24-9e2WdG-ixwHD{hy|?~%F-rUB;&3eg87fTr8p`NQzj)5aJI4g}9NYtZ4nRG@+;rP!XF8WI$J*W(Rh_@DeQ9v8$XO z`pPv6sh^k1<9jg(DAf2T)B@^sa!FTe&3OO&VPPoOQ51(+2T{11g$TN#_GyuT$$%yx zwQ4|M!8K%VoF-~KvUH4&qqED2fI10{Bc}og8^2^66%)Oq?<{78uWK$n9HvGDFR%uW z#AV_YZc=W@U5+ThkS?}Jb8LGLIqUEe%i3UIa@EA391DoLCIM~WlGPl0r@NOKc+7C3`O-#7* z8Uw%r*o5*R`vrkp=bqt11a-f?1)~Eq?}7W!y}4k$zc#REVYJ*v#t2eb^wEETak?0K zFF=ZDNtyF2w1gu*5~gIV5!x3`@;Q_)_&R)Lfil;D^2&<8CG!{W(TDdFdQbuynRjz&L=$J$*9z+mZ+r$JEIhc zJI|K{@hf6p;%q%^UH$;_jzx;b@>i{{KW9I{nz(K{gz}(5G9Iv4j#OI4Lr4knu9WI4 z=(CJI8Hb?S2VaZ#kk!ku0`4Mla|bF`ZM#;dCeNM~xpL-Z!5z4k+Iv7^`r8_Z&)WP~ zx@m}ri|Z_M%43O>i1Sy|j5iob1QuRnz{@5=QpLW>BBfzbwRWhD^aHsANv|cdT43p& zi6-^91%2Y)@rd`x^yfB&9SkDO-DFu}Fz%8p>z5?VH~K(+069*K7%=P#B0I>kX3Um5MD_Vu3^y&Yxx5mLSdqbl0R|9r_1hQ51v|Wmn%1;i@Rh#jWXOp zTQEV^`Eb-zA6BeVwd@r;>xhq*qFhn(#0E|`>uC{;e`3@5OF3pX3hLnKD3MviRsbf% zM>#B+MNW>*i=`_tp~fgH?#V{!25}#mlrXSkk%H-1BQ!YddqBaFY$!xt zy_Wrz4$LwoKu8{$)3<9#30c|@?(!^2^)nqr?TiFOfLPC*e7A$gN<8zJF0a(V0k?~* zZ$rB14xE_cxaD9pN%Xu9b6x^p5uNTWlR@x02XoFWt-MVB085sfD|afQEBd`l)p|}P zNf;Er;C@QEC4T5BkC?fEmQJ9EE@}rf4I&@g6*W7lw{j)QU=va}l?t;sPbO#K16M|H zX}xlr2rN6Z+A71e_{RGA=bSV~p~4djVH3Bxsc?cqAb$ywQFJ+YJH(~9U1o_WGaCGj zf5xpjv6Zc*1VZEl0^u+s zZUHRJU0UE;E+ZmPtF{@{%K*?Ygo*K!LbB6$T^lHs2hi*=K z5V6^bLFu}|R&io*IXn4jh9W>qRJK`gmQYwSZeoAtH}t<3V^p)2ifzb(p1{jwudhtA z8tM=M(R20Fq-3-+ZldSKv|f&dVNL}0S6OwSrE3jJ>F4)4jhjo(+NV}FZ_3mL_)yx= zq`BnyA7nMkw#kD**TtPcPC*Un-~v1X5D;+aSiBy`<~U}!Q?4w|11K;cW8r?pgD>n8}-^>v4M*yve z-$DF^T?SV>G081QG9)5)@r(OxiqKnefjGRaE!Z2UoLLid%t!db)SVMZ{Rk>BJX84 z@9Ue({IaN!@|jk)_Blqmu88BU_9HH)B zeAt@cI?6Ey<_u;g|EKUoVDJyqG~?#UzG+TTRlxZ|wFQ<&^M4r=@@ITGz74dP*5BOp zf|->+mL+w7PL8M0d0{y)%YA(#nHx7HK-;Oxb>v-< zPNKk!_yMZDegH>2VE^X@bXqKg27352D;eC3Qegde~#RaSd2LHI3g$!NxqvJO-cW8HMejJX`?1L z;^ZEh7YL0TD9@$Pc-@ry_7$mu-p@8SfBnqX+}2#?Yn#0OI3ECOCa-@$eiiU*UVe?> z*Awy!KE3N7lwT+C>wn9yllZkDzwX1YC*{|unYw-k-J!!%{3(N(`}tFcftfQ7h8vfs zU|eRhHg*ae z{a7D8?sDE?Uss@jv*0v=M~Gc4SUl-cke>Ku$s32LVjbe2;?=EzODd7>j ziEq46>Q}QPnx!aNx%e5M*5l}BdDiZgQj*87` z2!q#)w`9NRZiFm{2wy7ssEiNmTy&v7jy50j3cqxtDn+2nfnA_(oW&4AD(OMfrLsjL z4#apw&?!J%ZBD@y&C5DCfc}OFI8&AG6CyfsD zV^)M{B1(qj+_Gz8HKOVxJ4V|G|CdEAYfKa-4+bC;;$ia9Pc%DA=Ayx@IBW zG0N!068|pUD5|o-KW2c`c#cr({2Tpq26&8#_)xd3mN7!^n@Rjls*4gOuVGxy0G|iA z6Xh{`rVaESfqZS#H{a?EAeshxp42&p)p5W<$Ro|9E&wToUV81ulfuPkt&eM=AqQ4I z1S({QganGvV+|1!DPRj@vT`>oBeqnGp;GBe&N~748~6iJ?G;C`iV#If%m4s!a1h6W z6W|NQs)7N_7{5W^?mU$npf}kC_q@eI4cQI}i(;&25nEIxp>C}8oKs%~HGMb4J44V6 zBQq?OV?u-NIwPQow+b5OX>rMzP!*EZte_wFUDVK$kB5RWUKd*;U;zM#h5!Ib!8h5N zVl~anpj6NlakGiUC-s9pGG{E@0~uK#l&Ya~qoh-zR)%=b1SGPAs1h6nY$)ESDps0V zwldqMMjv6DGzd^q2^fj%lcwECM5KOS=Pa6u4}D(Ts`YlV{?&`IjiAA{0}x6Km0md# z?I(=$k5dL4bsgb@xR3$ZIuteD0i*SINNdut zEu2#kLsJ?1cNYwKoIH)-XC924zZucZ89OIxGO(59p=r`s-ss9TnGmvRPR@SU?;Kb}hP5%yEeM0hdx~3rFX1)*okG|AKD~W; z?8@ozJTx*oFzGxHs7BvC9cq0Yk!F2rC5R{Co@xU%-J&tDR&iJ?-@HaM zNhppTf_1+WRUtdneUex%-|Fpe*6X>=8YD-_k$4-sH=QbV3)p#A6pTp^bNPx*7npmg zC7TvQHQBpIf-H;S74CJOf5_c;8BkEOF#BVuQDgM%t6hkYeL{-j3=-U@-?{ApVhTBx!NP*_VptJtpyOcsL}s_>|jU(b<;<03EVxe!ZIsbQ0VGXIFFXlEhc^RCCJ7^%Bm|MhJxony zawh6I5t`ETljz4?|JT=15=JAE}cf<8weY_i0Gm|*29KYQUW62U2T=~$mcf!iSk&V zdEo4t?cW6r4a9q|UgV%6^K)gZqi}ggBP?o2UG%Bt+wtcZ1_H^1$^X1uFD$}`avCtM z#IVY_+Ymaal5rPj?YFS0Ynn@sZAo_ucSOT5;P4<@KHkHsz$y+T#N3{A|9r$7u>hLm zt73q4MIjtoVg0)ds)C%zpvB{C;#s$e>f`I#!xhpPgpYLUyk8YY6cjj~@A?~lwUz$F zm-mi+Z^H?UDe-|ixrf>wY1udDgbItW(ZCu38Skz4$l(-1k?F36UtM^6Ur@qu3&`({ zopM-MPD}7fUt*#``aEskUI>M->PEtr)b^1x=Sn2p#Z0dV4oZ;^Kn}^etgdFpr|mHg zfy4dZ4f^yyh02@2m`YsV0)>V_j$z1jjv^x$VC`~|&dUorU0Jgfu2Q)jR)PW_oOu1b z^uh?eN?Q~d5n6qx>dHmU2{fa@T8XMRRxyfpgQIFEY1px~D3y&=N*WOt$w@@*brbNk zUD4dt|1lBuNr5y!OB#w;U1lcv+i5uJ~_ zv0wpgK59ep1!m@gW=kEPaTRjMbuX6qN|9pibTyf{5cJv7z#geARKi4Y3mX=T9ish` zko0#!mR@ufHOXwC4uKUi+y`ibc%KjXv(A?{AbDN0m@=#gHQ2Irqa1xs6ZyR(5{w5U zd7T=#D7b;y;REl}L3lncDul18tv&@1X;Io8pxkzJ5#`^&fWrb6N@{pz_aZsqeiOW5 zz4%rDn~A=CH!5e&3KPv{%Eal1?PYJg%yNPi6Fr{hkp*!mtb|UcL~}5}gR3 z<)=(5=RR)n;IRTuA=E2vJ_& z495)Wy;m^=5JK&_Xp zk&EAS=JjkvU04Snc^}rT7ca6@he*a3x&GAl@7w~f(6|RNXRd4D3Pp&QO8t`!AA z4nZpcF0XK5N183TqY(eiDkZp!6#ET9710KHnGtns%Lht)-Uf4@n7d)Udjq79p`{p? zHC<2~jJ72(5)s--5{2SEridc-i1h3Nt>h)*1QaHCj8lKYk}Dv363Q#x-X(h7K_4|9 zf}Ihm5~;8x^bi;#b%RxT1col6PTiSEPEbjbn=?OoMknAg#SUl$z<>Y%)Tw(s0@+dl zu>|)Qx&l9THPu_?6s?3U&p~Ryw)?2Qs}6$(-wAv{lsu z${($Az!c}ja^&%p#jvPs0N5)P7nnHMI7&{Cm6R6bhz0noPz#XeGj>fNP9mSNVVpVf zi$YmLqAhZ|kgg(o2Zj(cAcB;sybVWa7vOO-!Bz33XoH-+96k+kRKX6JmHkJwLtK$` z`)K@T4aFlRkN9YB!$Y$_b2!H-=*=&V6T%w~dYUidLx808^LNg2&5Bbc2vdSOCGnvklN!WsuUW4i26iRw$=P`j^|-(#LGEyI{vYpYg>0_+)8-FX zzI^R~DV=h#ZqY9ZA0;Tzd~fxRIq`6p!{m*wD8oFVgYdwDmYY z3=zu3J7D8*yEbDmC`3z`1C}lb<3<+uHDXm*FNd4Y;HIWjnvBXGV=_$ifbrO(_d#Qx zSrc@Qt%%D=MoFhfBO6E+udbrMOoY5mis$&3r8SdXA^SmC3aPNyb&vpx!Xcn_U8ETf zOrdNL1|;#8cCqieYtvQzOBDqgrMW8dDkXqkEr`q$&heiPkfOPINONn*)k;gpRQ(gn z=*Uq7_s2NoO9&Tg(x^zOOaV?)rZ@zldvyap+bm}(oK>ulz3FoO^qNurXm2_7qnEqG zNHGrxbhr-`Mo!crf=8F&15_90ii~ zwTQB#qzvi8+`ZvPZ&qmvoHb+Xtwod*ct50t(s_nG zF@{!HPui(aN(KY?lc=!Ij46zyvs`HI=j!Vc`8v-TqAbM`(;J26_T$ zfU}}1>E=FzLE)}IL2!ZqBID^Yv~loy6xx${=2dI)50ykqrdo5|+aug_4>c0|G(-Yp z3D-&s^Su`4R)Oh}aJa>!oEU|7b?{o_vS)PX$RFLeb7T}ESNEE6+jCCemdW?p)zTw!+`kFU?Rs%&Jr#< zIe-elk%gJ}>N<{KF%cG951{zUjBut=M2B!9)$fuwh+t5uIg12DB-xR$Z{S0|%VJ}474q2EWC%y!4X)>D}TTM;ADZ%9yX&`gHW}z2UGKNE44(m>-v$BJ*T(((PT!Sx2 z%)Tvkp_AKm!TDA@i=b0E*sMV@i=8B?`jh8KGQkAR4^ZTi>wFwh#}vt z9|XasowQ>}@oF9*g=h>meHLItDKcbqsMf<$RGs7WhpH^y{f+nacX*us;Kc0d5Knq% z`0?ZP_=VmMztGp;C*PvKTxN829@-25>Qm{E42=hZB>tH}qjtq7=+b(itxg6nivgW>0Z5A4P;Ax^ z@3v`ON}{v95xC~Qu@~%l9beDt5UB#$#b8HT90bP_PR=wIT4Q85pa*}!<<^KLhHJIi@B)~R0S2Y&aD!GEQ;NC6D} z1HG2LXzm%Y>*-!2^Z9$rT0K}K9WZ1;2cW7Vq4E?l?~u$vq`|KFn?qMy<;|wrb&v_| zbF{s)LybQXut8R>R_FB{2U*G}$c?_^-sY4t2N^bqF7R+5qA{*6H*g;(N{q%xnf(N> zh83|(;Uo=&?R2C`wBU}+`Fa@!_o{hsz}wy>U0B>8!aC_QP!w~8<>g{*UtJ@WGSe-K zHW3-pggdIzzMzf<$tyO$7koQ?LG!~cQJcX*=!<~W6TS%GKCe}PQ&+AXW;(m;Nlpkr z&$KoP?w_$T7aUB4+aQxXJ9+-RN&4*htG*{OzIJ-3$sVe z3S#^or=Lk_Hhx*D2zei9r22lm}(a z-boIU=#~j1hFcv~0w)!TbfG3qhPL3EX%w9l@ToKvt+*6@hp!Ms%|oM??4}saRp4`( z`EG?2RlRN4*@XWTf{#`+5ow4PDI_FGFaV*CjiR;ds}MG+OUY|j6IuRD$~#cE0T4EJ zcbKR1y6z>{#Qfo?zyLyM*Su29NT0a$U&8UD!4kP`jf&+zQ|R1^XXFE($RKMH=9 zJrn8)RD#Na1U;vv0122<+7{xQwJk+mwG<`;R8WHlO}Gd9X{aQ7&+jt&6s4-a2n_x) zvHH^i{tc}RIlFBU9;flTe~@^<`0!G0H}NLtd4^X+tPe+xEM)To=W_D4%=`|I+@@jAKa z3XrwoYsJM!#PY+>1ok&e|1W#*16tX6-+7-imRz}&cjev5uJXQ<_q|P&R^v)HvNJAY zWgJGH8Sl*7`R5spV>dRsSJIuCTT8l%bmf^TUdTdT@In@{kU|PBWFZ9?5=bBg7g9(e zg%ncALKeE<7gESV7P63qEO;Rc@8|pbJPrM3 z(*>X-!acn86Z+4;BZ`gy0XtFUV{|$p`ef#RWg7?>>dbO#o+L_Qqv+D zEs29vU#)&*7Kbl!R`|fSNEyE$9RG@SX}E73-xZ_5?w&hP#qk28`(M026h6onl>cEE zA-)>`()}#8%mph~`g(8>9-KPh^n~G>Ho>dW5@>Rg{ z`iVlVUFC+OYOh`+^Nm87a{sUHAmOe^wC33Blb1WZvW=4c6$a-Q*GH0Bl%>f90JG!p zQ>@TQI@aMgc99D^t^4ZjNP*TRy8@w73zQwLa4IdQeeLjD*C? zJJtX6z6uNdS*UsRnTN}oM}H=+IzI6={`0kwi4&oLlh>c0#LWX+nnLYquM_IAeJq5H z$cpq0tTdAsTeq4kcqJ#$M{dvL6X*F4W~IpsCU%Tu>ksEA!Z-et%uJrz2d_;(%Ew_5 zp}sE$sBi2da0S`v3=V=Ue{1r(iQ`o3&-1V4DmqCWK7@?T_R{S(3HB=5qF|@iHUfi6 zND@2}t9sARS6`W*kCgP+$v0-be4d$Fn4XFr*_2{$pfc;5BiZpI`ClC7 z^u<)k3XWtGk`YI;&m77B^e`vaEXlkNWz#MT>Vl4Be{>}O%fp<#oGV$wNOlZMlmbIX zvOhhNf8#J05GG1yAI(tD*A#)u^#Acl{^y4|eVi$o|KaTRxzO|h(kZ*cmbLY@DwZP@ z$j<-QVXkQS+{qd#>2uw6;1SC59PSB)iIUl=B6QuQt`U@gL!R9yN@o9!Z0anY5tKg2 zWA^7Ghf5oZsgf0pXUF9AT4}G1WPf?c`wtT(vp-6&lz^XHkiR+P{TEXuEBGhbv7ml) zK@WNVVWMRAf11@O?$)G-DaZf6Mh=%g#F>)$C$eKV&;!xcN3wkMaIrs3l+6BEhUsSw z=U@BQNcO?e!`*$HDVhJDWmBxjx#0mPa=&#>${XUqqN^4&mU(>=0BF5kkNiMJ{rlIqxs()Ce~G^ zOIGqB$z`{;FQV3sWUa%7M3^a=|NqKP1(yOQ;j6R`<3QS@`F}i2SoBPotmgmDW~7m| zww~R1@~IOe*}opm|LQPTl1!GYqL!Voo9f!O7~=nX$kU0R(9$I zs;}a9iK{}}J!E>)Ghwot-_A~5YHhu`)>7f(KvTYU$gAm@Fj>uXcJ^X><5k&clJ)%g zX#SrM^SJt^OjdL}o3_&op!thKrZ44O$r>Kd=E4DnRs7{4-|=*|WF5bgT?|jcO$*EU zn?t_i113#YHIrFuh^F$#p51DbZH0Dt$QUfAOEO`yn%V3W#g-}NLlUhl(c+E&>5x~` zGhwnC93&X6L)sr=%fpAu9m~0rHGC|?STcS(bT3$qCX_y(?fGN41ypTyj5^o$S99%a zBl+oIY?jT|S`E;!ia?2-{;mbt)SGB78bQ%euww$NiDNBu8gRYKt-3L+WMTBNtuR$z zoH|ZF55Zw%1@z0o_E`%@vKT8F`pvIyE;O8`>Ss(kD9KuJGfOg#hx`fs8GXy~IlFfC zvi^aP=S_!pZ%rO5&9cBSa&0;~_$q-I%HTQcb2spg#fp^yEYxD2+$Oe9nXd(iDWo%{ z=NA7z$pX^fO&}eh)>forACx&L2SR;9&56cTfBvSIfd>}cUJK@5-B}M1vA5pNSA!== zon?D6%8nd+BG=FIHLAKt9KeDQ8=9ov-d=(x;1&0*Q2pj%HD2t%kS5~6C*CgOsY1SM z%|2k|We0X*#)y;p%uZ)WgTY;ofRszXRqT5Zyvl6|wQYVpR&|_@wxjTg{SHQznP&CV zAWdk~Mi>)SAx07iPxJ%$q1vUSLNRe&@pDB%@i|GYibZ2TRoI@1L8q1#+r5L|Kr6L4 zE$ThYlpCmL@9rB(8w^`adc|rFkoEEX+4}*OubV2+u^?E8t2iA))|ULJiGePz;Xq0^ zGC7-oCc!Li)TkMP5)pW;7{{X!Y7Orl8BU;hj73c%+9H?FOBf6X+zP)U%&d zp%aofDvY5K!E!0=;yr?g>K;T0E2q2B3n-|@@)}KylYo?ULU^zvp_@p#yAeKu}@E!N@=l2Phe4>Iq1TxWeJ|AOkF`|&c7+fEG? znbF*RNu&zvWi@o8vSCj|-9S8g4qz_|)&&Mpqj66mFD$v(SwZ+oJ9Cy=o=)JcepE0t zL_A&Z(BMpQBYv13lgFcYQCj55C>6f^zNyUeqHF| zl}d_K`Th%rRaXtE8ujP36~m*jg);Ig#9xUhOrG0D=FnvC@dr?;ZbOw49eMPl6B zH5ZbIA@oGA7)=-QO=9MV3(58Dbf_ba16hd(ueKnzFuLJK!0%1^5mGeCv?puR;&n%mmcx)m zbg@)QK|IEth1xH%GJjk;7e$p-%I3ahofQi^E8dGa%^a_H?GVj?c7Im^>NUG+#3Cy) zEuS z4sB=W)@`8{m5ey97L|D*gF74cH=6S~UCFMBtO#YpxhT^b<3c!I=8rYnNfGvNK!8^{ zd|Q!cdsFg&A1`&Q=pBepN*-bfyacDy|RoP_CFG zdZW5f;}45lA6?T($Fs)xdLe$0rw&RiZT!Ss@!bEP^b`VwzO+>;PONR!8QdS zX8cW3mP2+NoArS5aCACxY8nvNj`Yz7u9l@XB8EV0=L+o(^h* z(zxjMx&vng;}`X?r?t{>j?wg#=+Eh*4GSKiT+&oAZ>t(`w4AZYb?i0G1J{2e0?N0y>8x z&3gWYzUQS}O3^Vzgg3iC7c<8g{7?$2f zcTesobVx&&giw>{tIx$*<4jgR5!*I#?Oj{SD|x+M=VK?Owm5bd_@4K%Lr;@PO*y!- z=!h;ev%>Fmj$W?Q7b_E{`c1v)Y$N1!#CA{h?5ztoXH-gq%8a4FT>|?OaLhPQzK;|u z3I!3ap!$tu;ufqX?0En`xaNby@L$05Kk+l+x_T9JqJHyVPKK0W> zASA_5NpLS!;AfvjPT9PL$|HeM>Pc9xJ`wE7qtYj_;D-z^Z6t`b*ILvu(YtzzT=Tec zS|qG!PhDCR>UU@fzpQlDmr3mlbFf8TCq2hjVmF(`>Z`zje#CB;u?{v+!{LS zC=W-5Uy2i2T>WgIUS^;-8aB2k#U4)N{^_YbiQJ`FZm8G>M_ciPNW>0zQB;7(MdqJg zy^G8&Qw?=4(XJ&mbUU+oBkV()BHxc%3Az!xjT=Z`>8c5=2Fq-bVz$ym0yNZ2&Q|m; zA;?K_8#|3Hu#_xA;dt^$?ICU<^a73>< zuo4sv7VAQ;f|drdTTC0&3CtptawfS}{6&>J#f_jE(9TnZA+mX^Nu4=b-GJPZUO6Qs z-ln(8Ta7{-M61u56BJ52aN`CgYh*&3=J`Als9?EFtrTUg1YwM_g3S+|pm!m-N5hkd z)9snt+=5b(g$fq;rq3azIj!5u}O(71rjNHaEHc{r+msntjD^e{TH6!#0&n|vGdow2o_%N z2XS==FXGkkZE+CPb~d;Sw`axabQ-?kdiJA)1qwbcOf)uY&(u7@Uh|N9eQJ@K16KO2 zwFIfh+kBA8pMNnRh(kT8f-$RVDx-STMvHX1+C`I2p14bvVEFsVyOg5}e}DWg4e7(* zC+?ExAO3!dnnm&N-@ThXoRRM`el~=VtRTpeN{m}6jUgGMoYcq#taLL(sxPg#WY63l z&u1vQ82|O?z&02v2Y}4vqQtCuB~NAR&5R&layq=zw-oOiALlkt`A9%hsy0|B)Qgw-#wcFc<~^h}^5N%94f{nefjnrTkM1 z*DhbU{IBMzJ}IHO;fOa|9&$r>6ORlDzmREfw`y%uv8}gPR5MF8$W86#d;grZxz&+1 zzDX1<3Yn|x}~1ma)+M- ztY(CJVY5G}PN0!|=QjA&<20LhUCBohq$APaK4+`bUcx0S)<<7wK`$=Q$FP#K@wg<3 zBK%9DQQ6Hn<|{oL)~Z{{U=;lD!DNh!`?2DWa4HcQJ1?-PcqZDVI`1E;o%)zxnol0{ zn(S%l9?9gdKij!`>eQlasAnuh=+uQzswz(4ijdYhFCsz>ZpaUwBx^&L&;0akG((pB z*Cjo?xkiAKautnB_KPg|a!p{PaCTexFpF=3bYEWMA$V<;dJr4D=C~re1*Hd}b3`u# zlTHqmJ`_~ZJ&OuAr!+^Mlz1u)99v)`h}eT4mvkJz!!zj` z9o!QRW605e)kxa2oPeD^mqR;&4irB<88ISIx@WBcPqHZM-wT^uzNh;*?HE2wCxe30 zy%R|!>mP(t!zko;^xZNAsHlksjppn2#!X~f!oQ69lp7C7JO4A$B@xFbY?Z~C6)hA} zZ0!RaR!{%>$;#J*$!i7fpL|AucZ!SCCndOs?+xN1edkE~6}tA*L2qA;ax{e?kT|X5 zu8Q)cAB&E?rH_lN1N4W&XZ{fr7-nndE-aoucda0|e(Cs5yR zSxTmRmT$f_^qUv#-lXq~R>AoO(j<$T9WSZQjMd*dk8((;k=X#DP$%N9FW^E$ML6bB zAgwP_F^xpK?4eUXHG+evbq{HZ8s(T+#pmoIS4oKeZeRO86s_r zeD+d)#;TjUO`9X~c&k_?-vX25OM;aL{KS+*>!~ytAUGRjeXx)w8LlsZtY*aVs^0R$ zP(MiKT6kzIAEbKI)*pZ(_2w#x$R&GzsJaf$#O(=POM}+nMx_Be!;(;W44thnOF5un z8Hml}_V%}Y-DY&r1MDuwlhf@cyRR<7BTR(Y>^!PG)ipGi&0!5$j9w4a0YO2U*&j%k z=gCKN+)Ptu&eF<)}QM9g?1SU<=lsde)3)bKh`MHPwVO?XbLksD`Ep z6+3LMnF+Ac5`(K}aC{}_NS!X!Yge>Xt9x29)F5P*pyM1|$%|CQud@ZIL~bP6(8-JN4*T9Q1;HSBhG399E2f3_i|d$_ z@(xpozC|VwBq+j8u)vl`nZRUPQt9#2vy#gpHy?MsW;<1EE*4j^m6&aN!!--`FnaQ( z{A@v_jePiSW}K3`KhrJu!p)-VmzOo1ff(Jwy=+8?Ypn8}A%bO+ieR|^vNvKxZSW|B zPJRkjgpRxVIg|7owKg8{>ZF!;2yS13gma!E>^0>#mHY5cTICS%9}gPpRb4irVPdtT zds3W!J84OO{_)y1q0&4hO&mnqZ$4g&1vXzWNpGfnR{nYAW_mtHjlLWp!>;9%yE5yC z-)GkEGwb)6b-%^_eP+FvdHH>2eaOuEAbpL0MeWju|9T|*>yfc(Du241yPfEAxC*DS z7XR*vj7oIl)MiJ=>Mmiyc3om=^EQoaY3rJL2q|%z<&z=l_o(SP!#slKGJYoS3G~li zekq4Hy7fUR=H^Mk6BKLpN2Pyf6C@9Og)w@ zdNI1!+S`{1aln>^{X=WUR~BC2!{w$Nf59JD3LCa&)6l~9eCfQY@C=zi>J*7#sD{0X zhJc%YZFT;vWMX*&fr$67QFk%R4XCz=DW_tsUS78ZzV+o%^by*-V)SA(c`&eQU5}Z~ zkG>29Ol{91cH%N~Cm!|dJMvpftdpay??f#%(M~fczY)NIL-CTDm!7!+$T!KHkB}~+ zNs1u8s8T5skk1u0e?K9_Zb7JLGar#7u4%oJu{K;VT}wFRVV1zhiUr2mOk(92IKL<1yd{Sh>zhC-(w7Lg>v~!Vx=COFXwM79n};r&lP}U}9pJdY*`m7?YtDMa?zn zt0=JC4IR?Qfi?Ay=MCSNEdFf9|2CjX+ZV17&9J>)=|Mf01h8#kQCti08V#4iaav(% zuy4_<-(FPgmVeBPEEp} zSMmiReVoPZEO*+Qva&d7Nvt#Sso1S1Ffh7qpjg_0Uzd;hCE}G~ z-qkvO0B4frSl^oiz~)!-a|C$F?n;}sxFwmF)MXP$i?qh2+WnH=i4Dlk2KPCrB`X9O z$GAqyV`#kclA3eM3tnCNGTEGULQjek_{1r5ovXZ ze<=_D#AI&GtO%sTuq>xUFzY2ijV#LuT(MWDbX-s1pii4?r-&O6ipb+e$nQLMNNgYR zws9}glhVDl&43^Yhu?Q~_R0(`qi+ti;HPL&9R^JixxvK^`8x}3sbF;NeBD=xBG z50go;ZS^h43d42Pi3f@gGVeb7(78Wf8#a46viXdw;0Uw(joSCr)y;|%I^hcY_0ceB zVDoc_0SwETr{9VK%?ck$$-5Z)o(L5Z{Gl024b3=`(E8*A z{YHt@bcyP|vXz`hyY0t9cIDY~ju)HJ)9kIvz<#JJtVR)fvAk;ccX3Ztz&CDf>WAj_ zTPLqfi-h!hHz zQxwEyDHoDrvu z&YcRUyQ=iN4V4;!Z+9)dVv7b&(`+mJBXpA>s*|6>d*Qdy>2vt;_}&CdNsXlIA&(n1 z3a^qkT&F)gz@g7yXlN@HM|4r{2hoL3x5{rE#=h>(C6u!! zkjf{CYCA<}%93@v@j?F0k^D4oQ60~EP}%ocHlY@mT7|1Ao}v@h^0D>ywlyKAVOSvH z^nbqHA?Q%~;po$CZ^HbubjdRHgQ%kEsQ(5TLoN@CU{ST67Ci4-k_41mCLleOtKUW`Imv%^4mecze4B&j~A0dFVN4e%u z7#$X|Mhe*tx`e1OXBUBOSm0c!2&%TbFZ%O=Jd|UxwtX?mMC6_?rX%i{+}?O0VA73n ziVFEbT~TT*{d7GtCLK-m58C2Mjb%N9_!FNRvL*M4`g=ke@NEtT-CBYcYAa(yOA_U4 z%ZL|C%)#3Ju(i5m^DjBo>#tyRWbT;?Hzfimh~`Dx!f4CW(*D)8h0ABJO6}J06q~r! zq^79Sz1X!cP0o5d2D<>9#4S0pm14W4P`v7}9?BE7@MSV4H>@T`U@69>Lk}o!SEs1} zgVu)M#0EjRO~Tx4gYXqApQB?m?i6e7l%;ZNN|NDgi{yams39rr#?xai-ca`pH(_BNzYVc%+SaU z zvyzw`5Md3N@vmag?>JO>s*4#erFzze_qBp@Hwdlu>_vKmdY*t~G~k^!Y4RYs_J0}~ zyNE?T9@|o2v1j`jSe(|K6f{CxU)+3)lMNV3p`NI9q;NR{xN1n0tvD3Y|28_H#koTt28_$AWdk;_^3Uq;3Up^6&AP8E<6nEaIej{&ojT^O+E{sH+v zZDapK8~a})QxsjXQs{@3OioMJ&eSd-tUe&Y7+=1zl?gh~lJ+yfsqB2-Vr3r>0#?C8VlT<{{*6~D+ zkPz*BCaDAigDgyX%f2LFO~Qmn2qIk8E|`lWDqN6j(?wfX)3=*io=nh*YIMHZ7*tJe zzpgg0Aq1v~hV~$8oM*w-7lQF0>an(fN>8{UBBr?^ zU5SaXFN{;LS*c$D8Ocdlm|TpvqM>Xk&?8#bv#;(3^{~7_V87UpruEMcg}V<#3S#5M z0?sr#E`LrTc{GrLNsk@Hv;BZ{;Gx>vj_$IVKn4n6+XN<>1hS+u6swrntk{A>jgZ1i zL0f5D7hMWaknh7wnl!HOSk_a+=>#VrxeSX8h8<+1hA+QSUy!Xo{G(DK-3=`$vK!kJ zE3~>KDiEO4jPx>|E}~jN_ZoHXc;yEl6$=}Zp@;8A2~^b1$MZ>KjP{h)=Xl~CxmmeO zwe(Q zgbIdu zjM|Ye7-)2v(p!@qvrfI+^X6J|yl<{ynDy5wuIX4(*#L}jlln{?tyg*y&r}cyJ}|8+ zuEk+H^L#FgWDh}-rsw0*e`l>j$YwKt8e zc2{mwCQQ6*dvr8^{e{*_C8LydQY?asEjhz0i0Kz!zYbvm@$FL)Bw~m+HH2VWo^5K+hq0VZmw2d8-Cn~P zJ&mJGbBP9k7xL$In;Tt_(N>OC!)97q!%f#E^QQ2!=wRa8;6S%2k1++F%rz4>A+bp@ z$&BnM;;WV!FIlt5uF}D&Gii0IA_#7_*JO>UO$+0G5_>I^4Y!FQK~${~dP-ZHX4)!S zaxe9yiRC!M9-p)C)qo-qDso76_0pb+m-dV>Qb4GJir);%0Ui}s0lO^?FwS}jMW>XR zT+KjvrM46B0t2)t~ zSd<1F$-Dp@!*A_unzt!}{YKt+R;YIY2Yh(g@G$qv1WYU{TC%|s4rP{#qc7H!)z+mv z&d;duoL~?LYtvDisNB5Re5@g=68273`M1qho>xL&ES2xB;E;hu@2JUz20f_3$(&u(Cjp$ZdV}^IJ z_%U`#lg)92Z=ACZY{d2odWYyN4G_ZC@nJhylXE^UQlD2&}pvJ&uNeadd&5?FOVT;j;d zpX|;h?1DFm2@DZ|p1@)lvtIwrTnojuNM?&knkw+bHVyT*C{CkrA{#+B(xRBeUR<-) z!BM5b$jJM=D6nR3#6MtOG!t=lsfo9G3cPj-^2lhuDBmHv_Ek=uYCKm=*~aFwZ_4@5 z^morjAj#ogc$5RNLvJz>*~7?u-g@?(`?yKhkP|4ho^a}8q_krqsW)b87bSdfIz93qP?e+PaEqvUjGm*-qUx4?Iq)&>^1v`^I1U%U6tRF*VJFVK=~i4R)tLh z!s+7`PCo+$Ac)WI`TgASk&}B#fKIrXU^5Z|~8!KuPvI@rbe;M=15Wrkysf|v4CtlBCmlMOtih7Si;w%ll zp3TBP0B~`Yi_jjE!^MTet0~Wra4IFzSZzd8UVU5lHy#^2*QbNS4;=XtP{mj!?3=d0h$1Q~{)Y^H;azt)3*%toKxRLq!>MQf}8j9L?>}32z z*a@}*MSw)|H+8Lf$5%KqwGd0t0YfD$jen48%<~}ewb_@_v?zv^KV{zFBM+>io ziIv;!TYbv@#MMDU=U9H$Ywhw0cDRn(eLXt3jNiU_YId6Vw{?tf>VSbT9D&abw$;u0 zT$1aJ%kG%Yi^l^&9+9uG;1nvq-ckntg9xxRG*H+w*L7VqSz32B$b@1Vu6?k#5(iW2OZ=9(k9 zE1JOk6s?@PVXyMO+$^Hbax2)C*4^k46dxi?+R7l256ZdAsdhq73dvoS)iQ;k(xQ%HY3BN!} z4G_sSq2N(mJ&8 zbHN!+ZIU%eYeT`ZQq+%I6Ru8tn7_2bSvx^hq1)@FY!eYWC>rknH2+SBqrm#)YZOGG zrmFu^`z^zRuqf!T$oLvAAc7ZJ;_sJB{C!{I-B~zoon{%@?7qfen{`T7CJ@Cfx}}t^ z<`%9Moxekd;xt#LDJHAa;G^SpYL8#|*p;HvrGsoH6n%Mu>#WKu0g{vyE{@E-lJ&W; zNELjqug&5F>(!22RH@6)eBCP(&xf@TDyI|cw$@21Rs0KQ@rNLT{BgTNzetDvAm`^n zh_XXU3R!F4q)Mt>JlvavL9yN97S$fF^)Q*eL=|>fiYiuuZ?+bqQ{n}Po13Y9`V2=8 zlMf2QE8kYhJ}fUP?20pU?+^A6gHHDnqF;(QG$jPL2(yt8DDl)<3eY zCi8B-x;V^YfB|qIhkWSvjhw_dR8-UhqQ7P>6bRFmpy-ckymy z*>8@HpAHV3ZFNH4LFei78cf#Wvx$5{xnce3fB8wbQ+Yk)_R2>`^DhT;Z2T4ny>+`D zV3macV!uF>CVMq`J^XkdR@-c3b74afPMw`?j4N?0SyY?buhu8stcW*q$SyqgDkQt- zBVUX(9-G~OVKK*O)RS?Vr47OoSC8gnIJ5HFBF`@K1Ir&W+ph-9j*Pr`Jsdr7vMu<& z<{VnStC8MaJv4GRLMMC_!O#a5%cz{lkJ^8KWpQWZ=v%wsPDl%t(Sl^rijci{UD2r6 z+dkchAZWZ&39q;se|K0e86f)cI4a`@2- zImB(b4)l_BHLOiZ# z3VLp6JwXCY&Giu!+8ze*zAOyIT(#=z$E_8(AE)XdEk=+n(q^fj4u_LqKrcLwOf2N; zi@_1PhTsUm5_UG%I!#$d1HcU-ia4Lm<~>ESDsHs*%m*P&Sje_a)5NPNa!iJPKid$l z7I4l=#1txo%@DBZ>AWfD$d)CMTRiM$v&{*ZzX3!sTp;qIOW0+MmMNj)oz6Hds?^~) zCmZR!X0fgB0-%S+zZDQB#d>p^hL3|=HO?fjrH8&Qp1*LtcIn3T#Tx&vJ$tTpX5r$+ zb7yN;E{6lEUAl7ZTy62frE}M7i{}^kxpzH{1I@CS9UY$wLKOIWw~{Ps1Y?@+hx|UC zPjEtOL-RlL(;kLrFE6Pw))S*?zr?E=WRaim$B~`QT*}WDu4!(#7b} z6vYcX_Cd5Fq`xZ;+*KiS*~~SXtE(xD20ayL(JldkYU z{@k?Q`=h$=0%W+aeQUQ>x!Sxg{8a%v{5UAhD)&P5$IeYJWY-IB1|(&UNHP!YvcAru zl6U#H>XbPVu|RQM4htnKzyhc=P5t|{$$N<#QPRF5@cd|@|5lWSD^EV44qv@p zS-rtgTalt=J{kw*0UYOJI!@cqu=6xOYTz7*N7UFbZn? zC_G-&(Q9M)M%kL5YuLYewi;dtBzW@^yp0X9MMm%mt9XwQ#aIy7hN{;-rRa&$@x0tR z`iHHpPJPa~j$f9;JKiJ5-ns$d-PidZz_ESwL66O$A$d8Tokdj`42KDyFpQ3+?<_iBsg0uZHCq1Xl2X4@?y5~4_ici0kn+d!mF#o-0^ z<-fRaq5B)?di+Fv;Omb+KI02m(%j?LqWS)*Ni|Ptv^{S;{w1@ct&z!^MkR%7w)Zs)F%F56?Q@qAN(2VQ!*ZaXn+ zCRA@h!6(i2MN{PzdRaM0l|ikb?gWIB7wQL@`*#J`X%rQR!N*HNG$^i#tx#O075_1mZ=9?9tmmJJKY;iQ(iwfAa&Kw|poiu-D=ahQ~sQ+|#l zAl(=RlAJ~MCfBG-pc}W$K+z{R2f!F4fKvj585fqog)a#}0U?suDEpPrPaYEPM-uFh zd~%yBhUO8#v2#;}KoEyKdtY}IvER-&NaXdYS79Y~JCEiB`f{yWTMsG?7zPvpmXiqT zw{CZ*@{`rzNIV^sJ1hFMTaVb$(_b#+ItXT=oBD#tCsg#VT|?DtFKFNW5F+!3SP_HT z?G`!Lz}@aTlx(?mBBcp+>WB`%&_P=%?`fnw7Rgp7`6YxmNQK?b7o7wnlpqm@$m5mybF&WMWuB&&DU#tfA z=qG~+nw?H4vTNjV@JPqCH^+>yHUCExbb^waCOQjkBjC(*VPVY#Y(Ay23S0`qm8JA- z$2w2IPkSu zhlE&8E|h6(`s?AC z1h@W!aw-)q6ROQQ;MlxAUCpc$B;y?~)Qq-M67`;KO+VvK6^p5a`HR+d2P2^%C_Gj0@BQ4!`YFTv z;#^lJ_H(FvaHG?`My>;}DL!&QHbu(Hn%En{z~8qi9;i+6Al+wARNQCS9DChokGcEo zDY7nuDO{yPy4z_mK`flOIq3q~xO~c#o*AB!v2HmB zllipN8UII?UHtKd?QJ5_y=lP;-D6PEDTBMSaZ9!m2{tS(7{6e;uRQ|UKtD_ADv5-cLhWLR3z>Vr^(jXo7PEVHN`OKW)* zQ_`o4DmTUEgAKz(&5)Z^+TsvPRmg;`gc0tYN79R-a1N@vO=U+Jl_njl(|w>-9F7Cl zX}P@~VHu6ASjgF)?YPxkx&3Bn65$NQC-c#0z~%!`FlF7%3kj-(Rq#uDeP=x;trY7i zcJB0D!e~rM4W=}~;+b4W;{|{UvtG6F8%MgMI@QZ9?9L3<_VRS5-zpKhNi`mjr4z*E zFP)C{q5WN;-oUHiuZZ|qUk~cu(XB?#+Gsb#xADc3)_i#f!3z-djNmp7b@y6U1amH!4`{e)X@^ zSHqPu#JJCUb%L4+w60KT%B>Eq<#u6IM`qr+u9qF4p53i84d0p?*~5CAP6_uKm3d4X z7ys~tNysD#@dV95C>XG?p@_#IdzOXHU3J1`0DqF3>#ofm%Ea>}RN3$%&ij16-;2ae zE$j@14L!IpZAge-!%;d^A>HLF`5IUx_U{0lqU54+n8-%7;DU|N>Pn2Pp1rF@C;KQC zMr_F+67mpC9Rh}c-UHhD=`iI|P%F20J=KTizIWCSUm%T&jNPw_O{7q2eT}c=s0)TO z#Wb-6C+ZI30$caf3Qh6IOpYx4#!woCQinCeFoB|H1Z~80wS!5o- z8}b_AmPJ)Exs&)70_bJ5L>ppxwQ@;4?f`}o(Yg0T9`;lLg(Y>HT_!$lxCVIvYtptA zHG*@xrdEV2huV*-5G`{{2{R%jnh6rcasT0C(bH8d ziW}P>8pXGNfq3+H`@^HSvWQ40=`4VGcVDbybox87He@7-#x6|l(8Vu2zoDDT3X!MO zyR1%eFsSiTz9)sLEu@qX&QRQygcpT-WRfq!Y3rzh!VaA`{Ll`o6qNV8|M9pckYl>L zE28_V-JeeuRlida`Qf=YE-`_#E#u;tf)N(lD?4fnX(C@ed%BMwLzCTOZL*i>MbPr1 z(O*BA@LlL^etaUV#8mE+!n%TKO=$_4XPtruJlPD=NpaaE)p(O8nX>g<(lK6ko3_lhJ5HgiS%t9cBCzr4-`;=*bJL zB0v*_@)Lh5ch#p5iUy-kDKl#BOU(`9n+Iah_n%E1=a)NyT?WTF{M42zeIo>&u3B-@ z2gW;r8oX1Xa*f<$X$=zNvSFJdiR0 zkYEE+q$LBHw+m-Df4WDlNA-WCzX!I7eaxu)O-KWzJYbq=IkH`tJo%9a^)0;@aXDZ*)rvxsiMW8o_1ld1X|Ze(G4xW!CF*Df+^p@+j(RMFY1yM_ zLAYVXqV~98$rSf}%bqW8Ss$|q=g2+lyMWHDhjW^#hy?YEadAuPWq%%0m6GGF-QDCq>ChO?Hz%Ym4SzgX zfc*7~-yD3A_mF!gXxtK{FOGJ;-GJ%+Q z=RH7heENGBp>U|~4{SB-y{**22LRqs3V8pZ`vSlo2D+V%Uf?YPBXSk`fH&s|NbO4W zi(S1Jk52t`--wnfr_mtw%SX07F=<+uv=31Hld13Qjxm+}|FZE#n?eyPc0UXi&PPg7 zx@mX6RY%Q9H&oR4r_JHN^lc2dJy=lPfxU;!)>i1yF4-1)#U&l{TRMD%iMj72uy!Nv zOwFl{jQ$DHJ}mg(KLz`WPRt+^BrKhVue}Ih@Z*qu#o}+07ZXxi9NSlUFMuj}Guga( zEW;6B4M)640K(7{p3@1(W^KEl@`UP~Bn2C2)O>G!xwDr3giB_HwEZ>u&5Z4w%pN;^ z_d3yFLghGz1uq`f8U5X^0bY{xw=6~-NndM1FTs7=oPR!VTnhc_LhP3U-Km_~^DAi- z&)%ab?Blg*!JzlF8jB-&wP6~mSu^k7!eDF+vLDAJ%fx9fPhH*UGZ*$4GqgkkCb=akKV z4FRVG8t!M%Ss5N9Hbi8#n(|sqfHz`#N~J(U{yb_ zKe<9T)~y1Ycjfl~Z056GOW_xWn_pP~4U&j!-QyU_8!5e!?t1pkeIkYJx1Ke^MUTL- zjSUip&buO>UU{piGc=y`0j_*LMNFJaXE7e`pPzjDIqUj56xPCUvv^xIWYSQ3L{IzN zf2(J=djPrCx~VKtH2L?h(|fv3&*w>?5Tf)vr3z-N)TLx{tfLD~6D|RJm$pa>F6tEaSZD9VCy@t~&1?vSmJb=pxmw zQK~}%Tl??!2VVTrf|{}#KP4${tBnuDWAA#xyt+Mix+nPbK*if%uHbnUw`V;Vt)Rd4@o-T*Gnsgd#74otH7tmvS#?FI#Ge zeBk~Yc38+=jT}qGwe>`NDULfjghNk1^K8MY;0=WD(7{R-AK)MxeM>9SA+0i1*|M=o zCJ~{&JL{^0vem+6Yo@JfQ7UzvR=e67MUW7U#F?J;jS@eAwTXFI_8nqIt-?fW4SA3~ zBcqt3IhJ;k{1rQuQl5*q@h*1mbZ;NGo(+iqffpvQO=z@-FEg$)OaeHq$Fm?-h8ee3 zKW4fCsoex8dW0&O@;?q-e?bb}bt5@Z$}gSq9vw=%1rAAjw8QH&k`#sYqlUb@H;t3u ztJuz9EBwE>I-4(8@E0pVO?HE`bY|_rrOe>|^qxL(BAr)zYjsv(Kt=tX;ZC$m`8jKU z8-jj|F6uF{1J^EwM8TwSW@k%SL1SA^p%l)Em$3dA7Fy+UL6FvfG$PUo6vJ{ zy%n@B5@T+6y~jkoXcfH3Vkxq`k!+6oDG+UCtHcObMA0&GCLWQ+qzaF$e-r>bOOYcD zV>qqw+kM(8ELf`8R$u5!e3IM(0V1MjK;sKiF&wmk#P-0MWkG8cw@W}l{1~UX)sTsE zsMC^N4#b@H_79_?Cj1NsDgt4B=8HHKppWO0|F=psmy0>s7vg<%1YcbYm`weYr1Er+ zZMP`U9j4mdAhq|!`W%sHNn^9}}GESr5lKY%Eq#OdQ9J%TolKbn@M}xETfG2V^Nmvvzqb zPI~vCxJSDk;)8cJ3jQBc-#%jr#U`DaOd8QuvY*5`CAuI~!^HF$G5p(<4-361ip>$@ zy5Z8CC|96wVI<`o=}bLkdA^7VbPWH5(Yopvj_X76npsv+-Q^@b!7S`ok%}AjM>Nk~ z9;1?T2E_6a6jQ69_AKVuE(&;p@ZcQVNz^M6MRylprjZXjca{_q98H7&XYJe9T2$z9 z4J-n3x-B=_J?k_ffg(K#?0<^@H87D#1{``See>S;Z0A!h6-0+#G)w{2>4fzZN~i7w z`HqNHh>7?YWDB8sm36v99TWyQa7xtmZV1Dnd5~2Io*o^aiQNizRy%2J0WZuwvCYpT z`|t9aO+S?{>CZHp^6G>si3;G zc7#7-3VmX3W^Qh-QlWlPdtM?t@OEqE)z<1kv~AB18n(0fVkL*MQ1fijc5)%}F^E~( z`Hc7j*xcLF{p;6t$mVha!}n_Feo&`M=a@whEL|p?)R2k)uC_?*a*a-CsGkXkPaA|B zgH97DOhWQFmbRgy&XMU?2B38)+)zbt5q<-mm;709%6Vax7L&|C{T*^pv=|xogd-Eo z{($9C?+43I7g+AjyB;VAS)2G}ca65%KN)z4dN%Ks3^>(}gupoF>B4I4Q2hnK?Qp2W zLDKMN%8oPb^(AtmLHRyHJ~Bm_|E=yajC(9E|6Ul)SI@@>y?tb;U@2Jxcg0rg#%TU6 zJ=dYaUAy-{Xb|}tDQ;AiL&UNod@G-vpVzV3Cs{U?AgE+jPt8<=SF5)1dr;1EMVHs# zlQdm=jvBw$y0_h^O&80qV>)i*=I(55FUgy3Wau0p{ar2ntbBh1yFzE{Rdcws>g4*j zw&?%26sn#y-ca{ZYJU9QadzL9p-LbB(9j-`VAB z;wbaMM!bZ}TBWjUjTefgW2B4xHa>JCWA}pEXYtrKKJ#L&M)vng3yxEs(01dqnkDv3 z9rQv<+zt}U7DmTThm{vtHdUa`$V}1}KA+Bx=5tmqammXkPUq?KEI&~>n{%W2`74`E z8XR2qBa^+FE8LXe)nE{VM^E;o}R3tOXxt9of{pe{Ob~- z9Dg=jP` zxiC5wXRHpBjbur1Om=BB%Z@xhnms>Yg}uXOJ>T9Ko#;E9W7}I#KK0ZSPtTzHErq|Q zlFK=gy#(CDgUYpisa!!Er21j=Na$_*yC+`BvRBFmFX~a;rMN~)eqxQPsgr0&vWzd; zTXd#6YR(`^;G7E16_xaysa>EMgX|A0TkTERA5tLAEnf9O74FACk;I%BH&Q|E|rWT8P2Mr^rZOBALZA`+2&NjQvFir>xavNkzbrjUu zM#?|~>2tfYAp>(+oU}9n5Ywaj=D}<@vx+LWP1!88EIHjbkX===P)ZoBsvAfmqKrZ9 z4*x2AYy`@#BU>Y2uUmd9@&~jwz;2b#DT3bfDZkXMAibSYc-ZZ9$=#&1vVayXBPJRa z!_6qKUQ1D7b+);(wnJ-{`nQ=RInpp*@{45bbX6yP=Mh;(@+n^~_mOy%nP-J)_rg`L zA)C2b9jx%zur3MLnrrpi0xJzwd&H{DNE6?R=PT_Lz)G-Ph7+jylm#ff6--LuxY>ME zLgSZZ@W59t;YsMJNMh*HfNjzQV`KG-YxR{@S5Z4j$+n6X+C>SV9N%s8$HGfPMb~_s zlNfZ#jvV{K0{rO~SXLYwlDp|-)@a;dOpT}m+t}%y4YYM;TndZc?N}c=|N4#ada=A< zIt-YbeJHQ$FSJ+dJpqhux~_0aU6*hI>`|-W#QhrAvuE7u2O5J4UeJZVOv3%QNbu^?`4y#+c?x1uLSQRoyt^VE?cSju;Y=Wn#PQnK8M(Pq#e8@Wv zbQr**SL(HCW{~?WRv!&fg+>Oj@wgwexh$`G{WylP=YS%`bNmJeKfl1kl$VEMqJbe&(K)hPSYqYrs z&;bkIJ!wq|0VVDYH8}i0zR06!{fZKVE>l1P@#l~Oo&cnmGiGnVOZ{|UhH%nnjZW7t zoE5$raOxkFp)*-(;J3*yaaRZvQ8wWAO53mv#1l&txIvt1&bA!RVmD&`@YGMv6wvX( z-2^TJuAna?jqk&u7TyV<`{;dwF5PI4V6i*+Y(IOW;0j$|_9L47+Vs+kPWJ@SL8|D@(ecHgqOaU; zuLZdGsAFc zTU2C_TD7c(lHB_P*>1E8rP+oqb=GW+`7GH3}U8cfrECVC1%`IfuMT!Xnupx ztu6bC?WtAVU8{OiwxS3~?-Tp*Drsplic3UqalkBCvY+dGtF_nK2%c`QlLHv>%4;Qm z>C=rfR>O3D{!;Vqg54*B(z8a8&*=ZtewVJG7lKHo#X>s*$Xp&%c%v7>sX&9*JUPX7 z@?j97wff;uyv(6fA{@8KG&cZ|&I6u=lt)e_5w4#tTv5$*$%0?(R+NZ(pTZ!wrd8fV{ z%^^_=(~g5STUj<(wf{R82kSit6%4vsLFweG1)Q`nS2{ZtVoiECOq%X?j>;}8L_d>0 zOvVa$;lfm5-_{KD=Qah}<@VJY+@}Syg%| zPCTvz+u1~qGB9=kczWdGH+NGSjF2TKTF-vAf1IYWq^4UKz* z6TKvBMXv$s-RF#87KUZ-ngm1NsP%~LW=^qblB<^I0cqu4k{B0dj)bTVBhcdJ-OeMq z5oK9@_>U#-xN7?~ya|Ae zHrgYG75kS}s@E)+K&seEd;8IS+2{tsA!=T%yD-j-M)|16MmJ#cVFtTLC}ZQM#NEtx z9)Tgzu41(lYs7B%2zh$FhCAq(nd0`a-xd1fV=AX(ErjedL%I96;GOKT;EnFff)`}W z0Z@adKa!_LymO{d1_9ITZ@pAmVnEEwQA8_RS?kSc1{^{Y113p6S(J6ot^@zM4qWeFTP`vo@yR&G4h4P$6)gGeGe_ibUvv#R;YFNM9Pu%#51 zE>rVDUHZZfc%RB|pqdeja8VY2x|md<)CVl0Ka!tGk!)9PQk6XnZA?OcY(Elu=wx`+ zWV0R-%Cd4inkKCjYDTEWgi#?qfG z?kUE|>*8LMUO9vXNFIn5TmA+m(6UeB9@Amc=?TgyE`a`YV7D%ix)=nY21iw z9R=904h{UsreDg>w%}B{Xi_UI*|Sl8Su~STj~rQXw`7~fi7SVkg)Kn*n`;W_ngPhM zk=fe4=W}<}69$g`eA|NQYz74WD7-=%T3eXXZwgUW@JNo(_DxH(M>}mQD;VWg18_N{ zvQAiymJj6%E@(^DHY_)#vd|7G(FvQ72EEzAxzuelJ~^QUI0_!E2I>lVYOdXB-iuaf zCKY8S`VWhL2m-_oTzpN5CNKWPGyI`!M=zl^Sq=Hl#_7g&{eU6S@_eW=^aHMLWq=}x z-uf*8Ie-!`C|mM7d1`YKmakISWVb0j}z^~ZNBlUDQE@7jUj(%PbkDp9zrWT~yF za52p%bXus_`g3CSNbO*Dx4lE?AONi=Vbb(B!%(9R&LeECW+IMVu z#i7Vp(_UYvrwBkZ1X1Fa)zM-Ce^-Oov&oOtE_0i*?>&x5z4$&wfF>o{)|UZ2$fe*S zLWO*Y`rq|_BPCbxC=XOq5!wJH+2kul;ceF!^2gaH+p;@u9_+{Y@^RF7auJ0KVZwl7 zP$0jV;b%ixOM8Q|SpwsCiI}!K=TsruJP0xm`GdM442)ePiWc90yk@vbHma6rhw$mf zRsQB|x~=*7D^S43E3DC?jI^uP>a<{nGn?}m$&cE9*GKc0pXJwc`Z0}W{Uq+u$#c1$ zX>mMl;Ff?O`>ES87C3HHQaiWBaHK`fB-WtN6+|V8H*P5_9)+Fi0_Je`!Hi%kcF{%+ zf{cb!Eio>Y^>x+x>9+!^{5vAkoBX(=l6NwA2QC2E`S{a~Vt4WcK4Tk_y~(x|Hq&0; zT$2|PSP_}skpp}MkG#O=m$u2=;#Ce`G4AHgLnilk2jblz) zjAUtR&@!y}m30<;CKp!ws`OTv{`T%#6!z=P z8PU5&oGqq_z?rm~Fbpi&D9dZML^$_)IQ8#4FsOtL$9C9Z`ey1?{u7v-cLyTaYSuY zXKetZU>)n8%MAlp+G2)k2n$V>y5?3#=1?6+Dw6?lr5y+eFH_~LONZA7Ei2PTm)!JGo0+Oq{hVPHH zPPglr_u#EaHB$irXj=ExkB~4Ehcx{fGFADu;OeU0B61o?2XkBY1(S&f2uLn5h>awK zVT(jd1Oiu8XSJdxKdn&_HnjwX&FY) z)%-#6K^?i#v(oZ&iJ%dOjp3!=+1PZPb;n3VWXZNp)sNK-on>G6NFU%zu(6kT6ans4 z=vc@lKb`NzyW{iO8@}%nl*2byzEjz}@6gCQuqk)G@6AO<{h{D%VEZQCcN8UpOuVy! zR$w)ER&MWXV8Y?x{AxLK(`sz`fMzq#=R|)%n&;>B^O88AGWtne)fFZQxnO>_CBuZS zhoX72nD!qky0|(kEvgrp=+g~JIN-$vTA*#+Y_7mieOyL0l9par@rS+Eazou}G(G<@ zt`>F)QQjbWaeEsBEyv1j;ulRtTtDH(MI^WI6CCPYFA=~3)_zrT8WU;I z#^uf>M1?bUkmMUnnJ;+tDUoV1e{6e!|P$*2+`E|9wQ<|^WbQL~brEr1b5Rm8>RRWLqkvKXN6?uNex zpGH6&_kD>rH*s#8RA#j!xz|h?SIxfQ2rhxf;Of1uik}Uu+j<^XsQOI7W0%1Pe6@%` z%;hJbL+U#l+M*Uw0)kQXbijbt#>@N;P;12Lp#$=Dr*@D}1Yuq7P+-6nUt!CoW(hv`F4y zX5>-cY)X8lpNu~d#wg#>p%y$Wj=^yXd3j`da^!kJ^VwN;0gF7U>Wbb2Z_d8d2Z@2a zE&FjVuhJ^Rb^-)^_5GVKw85W%5Xomisse?CnMKJq02=9N(rbjE@VfHVCj#aZl0JqD zkyAnI?hG&cPJ*bkw51@p3?1v?v)wahI6!k%ENUn>ga8&q29mE9wr-KhgRDw7*vE^C zGh_%a0=J-xOI3oQ7*mZUi*%6%6;atBIhhE7wba78(3SDnLF+H&wTM7Lqlllu0kk@Z zJGV{80eOVz_?-(gDr|GDm`F%#fsb<}%wjY|qcztFO=>mCuSJAO5YDT=~BI=9T)a2C3l0eGF9n4lOszTI61# z(FSc>=iLbQ1it_#7ZIK+TVvGh46*}k5ub=g4FBk{T&^>CX&3tznHSNL5of@3kqklu zWQ)eY>=la}Nm{92^s8pFn;EF!_D6pe?%e>{T5e%@V-g1vkx{3DJ zkd+wBthVa{zon=N`}OOzX>Q8ak|oF_tHKP7hAN%a-nGF4g^D7H8#ReT8?@SJb%|7A zO65`PW()++QG3+P^C>~|x~OsX$aMF*?zxd#dtQ+o)ovTU5-e^2AX>KI)7oC+Y@trl zhFc@rHN*M?{Zf^!QqLB>bPt4HBU;qjt%Qa%-`+RST_K*&e)dE?dc(s3`04|DvB*8G zuz-Df%t-oAn${7Is9dJ;3uJm6BG3^8hRatLvD9>H)8H=Tn>_br7hfBlS7ByL%dI87 z+c<8*?$a<1K_*BQ+G;wn0YR!s#WDc@h%OottOTa@N>7i0r>ey@skG5d(r|u#;?yq& zDCJ)7PLXlprv9DL{6sP0&c~lrwu>GH`@?|8SChv}9Ey$8|K4v*FXT6@Yljf!CR`e8 z9ukRpL+v7jiyx(wZ8s(E=Ds<44Ypga63H(^{VFgL4b(|~x^bz!@&5q1X8{~W-LHoi z6A)Eib+R2^{+wQpFiKu)-W46#X1K3}Hv*vg-nnGn1iksA>YD}3hJA9iwWUe;a?UeL zmP7~9UbHw~+=!;38SWx)bh!?HAL86<3g4h7+~5c5~)!3WQT`Axd_Ixf;fS!0U1>wvtwNem-DN3#2?;eteJ~&h^o;VIIyY-E(th zjT{TPe)(iRHltor;ol?KWFDVoS#~VA53)SVJ~Mn^S+pT`S2ppRGUE8ezz4f3dZ3t9zR&LfJu{{J$BU zh$V@RnT@oyIuri8^jd3Wx?B^*d-Ac7>t1hY(!^gD^Z%BKri9wFzpd6SB38EUrEoCM z_#~7;k6K&fxwQ*g&-1(G@Nvu6%Z5{MSmYuN+P$~g`b?gmT+qK3`G?8_@%Z8ZooF(j z266#4vutkhT9`J-p*A9+yEc}{mbX5**$#r2HO-1-$~$G5OfGdC;mVYdZs+B=8Qye1 zL>Tw)E@M`(zcscO{%c&uIcoD=pfKtzMnno+S-eVobCt*}ytt|ry16N;9V?+X%H=Sq zS1M`P@Q^{IVmV`g37ZgA|0xT^6i1scrMn@zTEiWgRHrZF)SriyuqdmiqxwVqZQDWK zUbu8=Q6~77EFW$qn7(`O)#JyruXq{V-;Q7$UX66pneasJYce{mvj{uSClwyL}y`sR-}z{Q!^G zQH||Sp%|Ho0l|c^+>)(-2yNir3bmgv1@(p94y#CPz_tK7aAs^Muxs&^iTuTg)0ep@ zueB~J_>OP0hiV2@M-xQ}VaJJIDWq}W1@C#!2#-EmE7483_gZ_UHHpNw-K=L9FX3aB zSy1*6?(U0cF4eQRoG{ehXyjTfsqc&VM^PGI_qkf#MM7WB^dBM?5wpW&LA-wXB;oAcyLA;aWP+i zUexPir}HX75y+R{y5Cyo=yC0G1h&z zP|z3>WXBfxSuobRv89pBL?q#lq_6bau?7bcHaw89A$ElNGh-G@Y~uL;8_{|RL(pxB zK%y|n{lQ__KJ$t1RQDNfTilFHxCQ@?bz~1_Zzr7@#@1frv7GLK9_%-$f45-Gk^I1q zjDOFkP5czWe&;>1gXyg2H1}^HTasO2seX|6=-*R!+-^v>LoxdP+i~=OZpR5ORCz%V z2;6j!H>x5pp7=o(W7gWJwJP_K1kMe@no+eL!+lPajI7USq!P=d?>7=vsfcBwppR^r zBJH8r(pLS4=-~Dx%-W(e?Q^fRs5)se-$aADuRq+WpEu%~$y+bl6tMu!QAUzU-c!)v z9UC_ho%6Cj8!`|JQc1dKVu-sk+iUa@`8rM7Y;Gz7>R>KS_GLs5Q9#5FQ5Zne-lS)3 z-(u>LQQ|FjF(v-1CS}12F$CYteD(1BS98{JUL03_E^cuNiu~S4a4(WgzuIbTGAzU` zb~4B>em|a;1wyK9kjE1yL|8}cx@@lTcUw9Z21bHMP$aZbo$`LloeOW^^aG$n& zSg8$vgQ^tQ;*GR^Zn{TYIVMbU#jW|8FQf7_prH8`o3&TDO|8{;10-f@gpm?(q<&?V zZpLlINu)F#!|O=zU^kYCCGmqje%%Au6u(I+Lq#DelL0Q&q%V80kMT>ZyHcY?*b zLH7jY2<5nEu*4zZu>Dop6EN+fh=fSV2zp_3V-&Z6QZP(PjdnK?2gAQ$Neu36@Gb%n zdxnyWb`;^QA&l$5mrl zS<%M25>`92GGpk>@T-T;DwDHc>U@HhVSfU5 zkkPU?0kV%9xM{dC;ljs7)_*BH*L-(@DPgh2E3xnM-2H^i&m(EAN3hH1%mEY_T+hRi z+81OG(J4hnsq59(VnXSoa8J9SWWyoARfRhpXX9F!<5{;o!5@hrcSeI-xcj~EHI}A* z%XyFH(~U({+`bURzy^V-7o66!Ef;VgyODp#T~s8#?+>K3q@>w`5ICK#HWr+sUZ8X# zn%>v0~T$D z0q2m_-T&MVWhX%2l^q4~NfA7n@4W;!Huaz5{m;J3af}?O!{v`h$2SL|^%5Z~tK?kt z`Av>?LrJ9yiZ5Y+CIqaBzH-$rMnHY}%vVsD`VRd)A^({8TWf`e?M5TxgjU!;E=0Ph zL>v}kF9rKYd{Ar%F*hyvP;BL8B@#rV(9`CS39$O2HbMG>^fPY?Vs%%eaAG7L@*Mlt6&7v9auHqvKP7pRErp zR52dn|4ER>%+kG0>(8B&$WxPOr=&{~c1Tfkm&K-#kQVue8Y@j;+_?ECZk#>mZfX1} z4Oa$5FKOu4#7qg_B7AHHj`@bJ{M2EeYYyP z#CskOe>|THHnyd0(gY_5^m$6LBR^_lGvw=iJY2laj}aW#yw}?5mAiw!k_M`J^Q+J< zcL2N&7GM8zbo^vE%RsaS;n~rEXLKRj70>oKKDTsXF0n55)q|M!gHXuvUybH!@zuGh z9$IpTh6_wE2WAxr06+irXg-S^(~Ykb`qfNrq40|dlry!Ujz=__Q57+HWNBY`<>s$@ zw=ss!AV40bw1hzJW+#?j}j(dK+ztIm?|N5)ZiBor4%ge}&ZQ@;V%xoW( z$7uUlK>Vo!=SD`(<$pp9Vt&++GCkfC;naPXP=JwhX!If$+mVQ$1DQ^@H&orHpcj>g z=c!(#r)o0P?pnrK`t6B`nuRbU5x7xHfuVVe2mbcz1?L{`gF zs#SiQB_u2Tby|z_&Eta(;}b54qD$K8;{+CR_d3PYiKGAkrk_PC*e@Usy1iu-ttlNV{2tvaxqc!y|f@^lV~( z(72afXZ9XpQE5YC@LkoKZ-#AJ)uiPXsUu|#Laf!V5fw<>^+u^(N3aC-J%VL|B+UU^ zpIL8hy^4Qv5Su(DIHIN)oCbWmixxiiXkuvH*M8B6J{CeBB>tH7cE5Ws3@jpI#e(C` z>3BY1=SQkbbkoP~N5bf)KgSuQ5x*I%K6@R{m!jU=OT*Vh#0vd)EI*sla(g(LzZh_? zhXd}0a1V{Y8I)KHV_?weo2%KNg@K^n>Q;#PZ&9~v47-HJmLU^b6 z*Ea6=zs&PD5>>5?eGjqVA@DtELA}o}vXQITV+(c#S@^{DBpSc`l^(Rg_HUd_GI44Roc%$<=m6dKdoiRnVZrlx@e8nb}}5@?siq^5ypcMB;byRAt~yR^_i z0x8?DDKyYPyMOxqJAOcXcr)XNTS2n3@yloIv_;4PGQO?50Z?cjAJ=VCJd~0dAK_ z(Xpjy8PRTij!n141Sooeuh*Q1@fzF8Rda{Jj12zPLf@QlqfyL`3{#iZHm81hUE71> z+U~p5oE)D_h#0L7<16Ho+zb#cgyc*@e(uSr!bT!QMU)5w z*u7zo3=+XcGH%i>4n~P%md*2}u<~B^=lR91`wxzr|0o2cBnc1R%ZEK^rF25i)rPru5>M6 zORDbc$ujaZyuD-UI|bmvk)7CSOk&az-Uo6Vbv>PHAxq6j-L7`_9NL4GL0x?545!l} zNrkdI)VuPy%S{HRnKDkFww2pb5X8P9kuQ9caa_-<=m9BphYWkFoQ+GE7KBuQ{{m#a zfWL(jg^J#2aQ8hYdF!fMh=B~xQCdy!}L9q_w=amc!AR{t|`QI zD6+?? z16H^EctB-R#{M1e^WFa*?(=8Z=ZQgxC2iV0{hQe`9=O%_|KI%oK5za9!{*<(0sp9X z{2!(U{^e4c4nE@TPg2(Vl*)QO8ucOEa4=r}5mGDf`EtaLWCA2+q-Dcu>OG6pW#Su@q4w_N1nE8A1OJ7vdW_fxD> zZNzBQZ0an-g^1H95bxJ^Q&cJ}xM5#`ld~9^-ppcNydRh6Pc-wd-5E zvTv1fb3c!~y6zYVK)x@XE<4k@GFHoelTXPLYs_9K4SZ4WWU4xWbn30Pjs z)64t`SnlNMkNFd@Oz`x_{Rvo(@wC^UfMtrOm-`d2oaE_G*wd?l<&8Z3q(1@6Ii4E+ z1T3{IyEz-ZYXQbKeWiQ*9SlR$E3)CUbFKLF%52{oI}vp==0JFmAt zwWd2?WPfTwcMjU0TFsp|*q>U;oj+!OY8`jJ*#6YA?Yzdw?_q))X#1R zrAzJhR%#i@2B(%TrN?@fwKmPIpO5u3vAlkSG8{~0b`?zk?#^JJ*b%&Zw~yiF>ziz6 zcRrow-p36gzs_@vyv>(cJ&$PwR+rH8Ln>JzhV*QH_u%mm<{{Kd=^eA{w{kSrlEA{J z*S&(P@!5j5U);|5czW$T1O3rd-B{fH2dldA77_BtYS|k9t<~3e4`=HysK?A@5q0cR zzRBBn4~_@?w($baLJ~m&9XeyBzn9u;i;}{F@Gp*womx{ppM0coI=K4tPxKXt*?Z5D z-2_t0-myE!v1qrw(1lJiul0^p`WQ`Jq#(VjoFKNB=1J|L+`Lz;;9OcdLpR7dq>;P| z3EPs9wwuHFMgX4IEV4cMRs$vf)hF zR6w}YPhaU(Y@67{(#1Xb-t*o^1uOZmYke$d3ZQ5C2tGb4Fvx-SY0CD%GQ-m!K8TR< zyI;^={)OGXncrJcEPuiH!q8LMd&MYtdjA${?fT_tLo`+^D zZP^F6=-H@lCCN6)#tF6ib8^VSBjvA?RPs4%rFu@b-prY@)%9#w?W3wNq^zjU3Lf9YplmKZ zdzqMxzdbs&WR*;n_?YdkjfF><<#SXCiUVf@wbQ3`o%4n+4+f;%+ga@bYQ6TpWZ=c> z_?P(!@4<4M@2cUXy8R7+?7G?`+WR4aS=RczgN6W);$oEeTj#zOW*$p*y@3?_C9>r0 zy0Azctz<8%**Uqslhd4Fh^%XNr`b2&gU#+*~Z%xtjs1-TN?hX4nZ@MWc*rUC%4 z0$l{}o)2RQ#bm%q+)99YL+vr|#||4?2qU;Z+JT2rmws}J1JLm_(aV0U_S@4C z>Kx8#P#E}=-CMx4bBnrllMfLaNhuhY4-8GAHz5mH!Xf_Oy~BF}ED{f1`eu?AhP7U?E> zJ>>mKpkw+YXZ2wL&5(Y~|FW0V9*^jfSA}aumTG7ThVoG_ zGkR2K|H&?w#)SHNNOkOzphx2{&1tJ2wonAKPwgJu3~-+`ifLyf`yg6}0EzTq7*T9N zyD{FVwuRitYi~=!ByrU6m6P%&fwrTTgo-;oO_+@s`8r~D*2a;3+{$IU*N}HGjUs#_ zf$mQY&Nzu)lcmr;9$4Mf5-izbi*3Zu!#*|Qv~24r-caA;D>qZ^p?j>wC6Gv*JlB@B zJ89iBt6N#@rVxo}e4`8N9Fys|b5X^fxUoqcw9y&X0q0?XuFZ)SOpU^MUsmh^3vi z_ig=U+%!>Cjv!=$1qEODT=gT%cd$hzE^o;Pj7;vG3A>=Y6h|V8h-s*pEd0VuM!V#~ z_}_BNGEv#uR&>4?6(a8H2;LPK#<=0dHnfnlQk+P#kNLAc5({7H9I%1RG!R6y z>&2lnYfE^a&Mk+JuCG1jEzkDRTvaDbfVy({BC|hyzNM{Vuy(NSQ5ngIX!nYWuoPTXQVbf=|q(fVUG zi^V-#XIex$srG{=Y&O9e&4Vg=XwWYW*J}N=xWT? zNpn5ZA>cD>l})pu+HapmjJYjO=gRdE-BCa&zJnqSk%eu_4=AaaRDf%P71x>}e{pyH zP+-ItseuA_8nuMMwmfN_TJ2Omk`E1?KvlwNHg+0m$$U;zwufsh#(I+Q6dR=8)(HnIbVL|!>0+lY@b;vL-E+V*zGTM= z*2sdyuBBAsmv-k1!G$ytTGvlto*c0rQP+lHl+;bRxt8zqT8u|d;XV7(W=(YbN~d*+ zn*rD#AcM-rhwh^x^o z#J13Q{h5hVlcy)3O_s&Qf|LjDMzxvhS}~HEdP_gW{k1IQhev`%WbdQ>APj=_$Yl^l zulCFSLh(`7D-51zUbZGwvd4C3%6X5<>_HozLFR%j~Wc%^fBzPqLyMtx4$oY$I%y-&yKhm?uGcWxfC1q4Ovm zRR!~Fo7uy&)I1+@uJHDXq56&8g9m$*^@B;xk+VHNJA&msgFU=-v9}k)d=Zx&W?l>! zX5ZRfr<4nI!Df1R3Pe(;QLZ|x93JAWNArB|o7N7!u5pNP+i&h3+=!(`BY2sgIBPP3RLJ2>t zfYi^2llo+3#nsB&I0ri12hmyU6!-T5T6)@c){mJXNRcZUcq{W4`3wk4>NOT=r#R(a z;-{dI%1Ps2(I$6}Tu1C(-aiqJQ1Ax&qF!1pk~NGXD&WK);U?tHGsVi4I|n0)!Z zkjT~Du+8@+n)=c1{9UEAE?qVjE=uDg`+xL;Hun~R(BCO{V8qDgg*}7=#jKn%#+TLJ zmL5{F+3ng(7h!iYTVg!H!G#F(+Q&s0PTIUga-2^X-PWolL*FI?aYnBflc&0AqNm)3 z+fn;~b)dL~ln1MaDN|-dhT#6t8(Y#$pSwF(&e|aaHe08Moc-u@O0gDSP?B{VPPey* zZLFX~aU8;xhqBs1tyam=RtIK9ZP&we<QcH z-%Z$3{vUkXot4*VlUMJKu~v5LiL-E#&dStMWfWv(=-YlX7Y*KfJJ(}{)9EW*B3%Lc zbz(MtIgLZa#hIfe-|ysF93({hXQ$+tJ8GiTSBlAT0=xq@9LY`tlq`t~)Dh| zSDQKF@n<94b)?PNHi)}_MMI9<({Eas5g0SNbHDAkbcQ=(AAyZJtpMy>vmNI2>yE* z$2vFN&9`^u`B=2$=nrYZ0ue<y-iW_ma+Ev_8#v1kc~2e)nV-Fd8bYDJ z%EuNZ>61zfH0-u_ ztUrCq#gE;k155ff9S%|imUe4fZS^i)^DT4JK(a&dB+V~!I_%&XUC7g0_1vUwj1lg< zI=8gqFDfZ1>M_scr$#8l^D2(@U;(pYJZc->JEUbhX@W9}&G;?;G zPi&v0kCm1g&FwQp;G9K0H>PAA)08F#vZ;Yo@5_*~dD}Nq9z#~USu`4mTHD@i1AQmU zqC8O|`zZY^uV0*(PFdPEsHoq0O@$?{#yhn_LHnhse%qV&0zBZ?+#pCCK$;$3Vn|3u zO?tPfa}HL!fWg~aI_HW|yqT?QGTP6~njocE&oT*!Qo}9yrOv!(9p>dI&xLub3oUgr z7y?))`%+{Ij<8UP{ztaf@=i7+BkjW1cT`G3g>P7(9OKXjtq5togJ>tCk;tPi@@BE8M=ODlMk}hCe+!#tM;n$IA`MfTZiTLTUf97Ad?O-oNs`Ej8b}y*9KKT zIXK_Le;CunQYv($Cp_ZQYG8O4tCEMcIIae0a~XtDH*6zkow&t1R7p;DQtL z44v>mt*KV8yY#?7{x(ZtbDz1Ij`Xjx^eW;^E3Gf&K1!B7ur;(tHgr_UkIjd4f2jg0 zD}>!f&Zcz%6{OS}RUPL*W#8SXJF*B0$&j*IiNa^uLlPB(Lv+*H8jMDC`_xM+-h?oY zQKYKZ@wKY6ZNmo~*VuZngGLSU-n{yT&+_4e!3*cLS@QV-?6;^2Z$Zp<)93s^-v1dp zs<*y)zPqr+FFGKI!nn{22SGM3bvFNkMCxW8c5&m>`$SoEv7ZbY_=Agij$A*vUQQF4yYg_0?{Xx-vU2?YH7YqN7N&spsz zs9I5ZV-u&`C1+P5$;RV!jUm|whVa+`K-+?2M$wCB67>&TT99HjnwTC6IqkMNfme&B zl^8W(7v?XOaE6`$_Q+IB@(G&3jWxRp#0S?fYdDs?Gp&5|<{AWRo`V#WgO_-ccK9+~ z`|ccsNnnio#GD-^q+D}N@+|{{qaNKu(Q0@5q=LuuMrDSx4rlopneet?WJF0IMChl; zLu&2*7^3~=Bdl$fVb3Q=Wq&9Yy4#%^tkZuTQyW zxrMKb+2rpS;QY{MspYNHS8x;fc%aeeHde(%o!f<$n*45 zrb@TU!9e1ZCVWr_0Add;{rjbi*H7kS*#}EMu_Z&`w;0xDSY7XPxkOz%AKu_~8Gin` zD;vw^9^uGJ3-4&G)LgX!H)gY-NgFTz(12IKSY6ld^ntCdrfZL35KnBs>vPi)L5 z=3n;tzxyYZ4~LW;ESD?`c8R>T+3?+N&tT#lb>MLnC~>D<%lC%qfcgX!hR^VX<>12z zw)#CE2^DDDYn=@qsancbB%>J5CLZ-Id)PiDXy4kBLL``$lxJgP!@6U&XYVYUCIsTU<@GA->furIpxmJbJn5^)H-=! zJ3OqfY;uI+lP0j1BD!QgyO<25fYa;2&=Nlj3s%HDqpo!TGEOS>G!J`$FJU>3HJAs(d z(yI5d&QUPOXh?nAoJ#mY*m2;#pB%_PT!HMlSnwyeo8IK6PM(b$5A8vBF;@IMnXXE~ z8`Ir}DVKTRf9RZbXO?|xU~ub2-K@V1PE!wsHS?9ika4h)%^w!;@db?=JXj$zg=})c z2x?ao551${S3tx0W`%`Ce@^J9LlACN}c*W_kh02wJED1Q=kb6lC zg&6FEwCm8kbmoR!MU}?3lW0DjvWs;)Jkh-7D%Ph~=5?-qpGoL9FLPs#v}KcteT0QGE-dn9@UmVDB z4fIyc&VxLkoM_lF*_d-7T=F;C<^_(RH0&t8oKar?>{{nwe{qZH*>YFrkPlU&Rk*g< ze3%B8=M~h*6p1Fsj_eI^kDs6Cc84}kk7JMj`au1`z_^#Xi=nEr-MQHtIn9mLerig_ zv^@KES)1wqc{i8=}s| z?@^k+v{@^h6hqKylJj=k!y^4{=zp;GhJ2`YZ$9ki+?NOPLuu$Yj5hA2-!Bi;8nLY& zUnej3E6}6;Ysc3HGX95AGBlihV|(l}wtz7_>eN|4@pkysX~5Keevv>fRaG zLpPK5wEyfR-J1z|x+gAGM@kni`l2MQ0gwqHUdU~RLv%K%^hrq6!x2ibJr3r>_DZL#Zq zw8gIb-T>R~ceL&FuN^rB^6Iwj_+eN5g``<-wh6DR4{pa5`=pE3FMn`MI7>`5t35W+ z7!fKv?fs2qeo`6m4KbqQ`owu_`Y^$$r3RD-C>Gi`)DBB|a6B@~By;#Ny_37v2O#M+Ryqa~y<3`8+ws!yoi7GgetHdU44T$fFgj{xnDR z-Il*crR6;asY<=LW!p@_!*+M^9z;OUDy#3=Z&L`TbP{zfc4BgRjP&u1CJ@d+zPXEX zPqZxFYGfo-WM1{RW5IU)3dBp)Dp?6@WGcMQ6M>9$JbhQ*JPiqVRu3Oe;%5d$1?zCB z-Sm3*O8TLf1fGSJqB^s5aVp194`<4u3XkGBNDbeEMiSe?avmDLf*CNs^mEKh=xG*X z_W<_=+Rx1QE@A6i`c%3o&u$H{P#rX`RSBi8;RC+Vx)woSH&*z(A0%Z*PNo1+c76S! zoQy=#evDdx+c!0})l3aIe7JnO`H(i2ov}!rCaej)f%-rJXn4x^pVOyB{eZMYm6o8g ze=Mu{mF_lRewt~%VSe^fXXT!iasosb@61CSx3%B4K^P%y9~Jq5 zfq4w|65or=&ik8&q+k@b69!eWVf7wdNrWPo1#sGNOZ1q?39$2$ z+Q;J$$pC&+lcbpo^B1l3c>I-@n-A?HX_InHL?x*uTvt+5cyz<+rS;qLvt3RvyK&W> z#TTa&7B=5Wd(S`4k>N2b>Zu{zWk=0+_-Rp(Kf$Y9?+az72e()oFhb94-z9pQgW0 zO{Wj&FTEOa5A3wb61zW?UbvNlvScA%bC1Cd&#B66T)TYF95_8@UX`=USixW;sfMUq z{pwDhZK;`LTj&$nvUq2w4bAuF-oTk#%%A9)rP5H1TGI8D8i;U0KK5x_(Uz~j4Tq}^ z@3Od9wu%e^@Kjm82sQ9sfFg7~^D^@w$r*52H^V(_qL&8x+qS5*9wYK+f zswa<|Mc>n%0-?J4gi-=RAZ=)`Jx#UqO5xA`w5@zGA7^)m_c(k4iRNpRAy?Tfm{h(g z&1=MmRc`EC^87var82OOggyw%Zs-qN|Ab|I;3Q#BZWRI>R_vxM2AjR?*=O0G(N^0u zC1uWeHrf^w*pQ8uy?nc|`Y6lv_z`q`nd#-STcH$qN#$%Y1uG)uDcGRwh2GHcGTAqFsQ;)7S z)^2%0UV;6=EpPyKqof18n%Vw(ebn%7S7G(Y?OV`sVO21$yzQ3oNoSTDqc;Ze#FV<_i!S+eOU$ePNC(s^=zU(SjG5eDsOBc z&8&96)Zz2KG8OXNb~ofYly6bsxD~=SsO|vU6VoT=$tL3tlXWJ$y5dEt6ia$KoEMGe z_CkD5Ym;7##-GF?%7sL;2!sl*sl?lp8#U=A@g5b!H-BlKKiDSCiO6=)?eSZWNqKI}N7fL~9*P0I;s}G(IF%R3vGvP|R%__m( zgF%=%MW9zw?#*pa%bZpG5{uBu_k@m{#+!Fc1SvpLdm{X4X`D&$kYQ|x>D@RqS$AlI z#3I|nK6R$K^_M65Vx~^>2>VB>&5?gOQIAHk0lsFha_oWIqB4pDG;lWcVCZ+ADOz-IMn$u6odQ60?FzU5lYwy;j;0Hyc~+P_DVZa zC157u#Bvi-kcp#OEO*g{cI}?6sb0{IChVqPORQR$)_v(AdGk0fM?6z;VF|z;QH=tQ zFh}Ai5{Yt%c6 z=2u9(4d$1_Fl*?()~I-6X)wpT)&IYal5@V?8VbYF}HJH&{{A`vog^V z*}q-rusn$rU*~XFeQ;l(#l_WN_*wusoR}D@jM`z> z@8u8Gv%TaSqNua+whk{6=u+i`b~>6i!i{eiJgQ36GmXIMVp!S?KZ1b%AGj}Md37$F zfU?NsMs&7Ia@Mth1+NdS z*h1UiF&7en_wr*~UX-Nf79WW|de@rM&3n9bBwH*MBF+$8lJ{dqs}VMz0FTb!!M*sc z=a;4?^N~p2Y`23a$o5Dpl@H-z8q@vMRw;rb10#9-j65S{3-s-dN#rVOvNqO*8Cz6J z!}s-=odd2`a*PS~9RD7I9j_LH5JOA8$}s?hW4 zxMJSiu=a(}cuI%x&v#d1gwA@}QU7TCW-0vMSfRHNYm>7g2I^W1A06p`2a{S(3f@WW zILBdM>-%GUI;W+bwXeG7A$sO?SX8*mgK0)rDHP=XC#~$HIta>(*#tdE|AZQoOUG!x zH?B4X9>NY0)%$xX+Ga0OHPCj#30ulU3XnU_^sqwAx>)8s}4H9yPV?%V2vdG?MC18zxz!;$9t)z0V7 zVIy@$0z3_&U4Uxik|at~Xrg=-HX^T(U@SrT z)e%c2@YoK&#j8w1JvBULp-a)FK4{pLGW#Q>6D#NEv7c7f$o$B?mR z3*@%Rt{PSn70X#Mcj8@Z8hW%ow6!XC{!lGSKDX=-i(H&mT6vT{pSjaVZNup8iaeCM^fdnubLi9m+NEY*)o zGq(75NJ&vUpz1&{&39&zy3jIIBO3YD?1dZolcApcV}_SOf4<1t)`73 zAH_&`S0@_k8D_WfH0~Va-l)*wbsOyF>o?fV*P2w{T_3zZ+H@^jyDe?sXxeR~=}o>c z^LN^*WV7Krebz*`YY)mVaRTG2&5af@f+#dqE#k3&@~wRmli}B7nX7C{TqQZ-Y;exZ zU+YEqh0>bznw6YFnK{2Qk5t`q+m8Q1r9mX>fN11^DhqpX#niDz8O?HuZEvz5_swx} zk@BDMW9+CsN!WnALvwK9btJ0@Q2;ylKKMf_ip9??cb$iZa9w z$am}_j`r!eWFfo3v=Nk%Cu6$`9l)D>23~WW)LkxqmZK6!B2X<|oQ`h?5Q0v#tM<$B zhYj5%c~6vlN6#$BW><3{HH z$#5R1eU6S+-S3x9O^>F$9ch5qn& zHBWMgz8QNmY#lJ9F&iCNBf%x)LOL0f;UhmG=vAg$5B{et1oNu8{m7Plu~#2K#}DUH zWNa$9K)M3N*a<;|Yt7)^Yuax1>$|e|m#i)j?}qdRP8m8MKGV@cS5)m2xNA5Xg=?wH zb%=KVJFZvsqo8$HB18F*%E5kRSN=%sO_$uNlI+F~@T7cjdyx9Luf_id%i5k&7FU(*^4R3JB3FB;1m>wm^C^Xc&=04sJy&!kdM?(DX zW0m;dM|`cnm}ej3uN^#oqW&zmJolfUtxuvY>Ba}ulD15CmN--J-EVHTYRhFTEWhSq zp-w|llGuyGV$9^wiCiIbg zwjQn)|LHrp>)^92`pyXku4hamt2I7f|6={u>tCvWx&F2KH|pQ2XP>VRjfIO7EW>;R zlqpLPIWuio#0R=GqXIxPJv-@t{HSn?PN&jAUYx_uL}b|)x9{q>cO_RLH^Z!``*G{% zEG>i;)DU|4_3e8Z_g+@7#y$>NAJbR+d-&4!Jsk8NL@0>SG5h@W{t$-$^7bDe@sCL_ z=con|Wgq=ye6$WYR#eXikFB&gTC^o`4x*vi?|EKpOf7n6q73inwi-*tDX{Q(yFKoR zkFU1Jo$>LYJ=Wsm9rm~@KK`^l?v9VIvB!beO9l9ISvxE1N^z87xG(O+%@a;*@4&P1b+2Q-~ z^z88cM0$4khSRgd_pYQZ?-l9U;d^CzcKG(CXNT{W^z88c$@J{-{ZxED=QJ$hi@`HJAB9D^J^TwyVJA7_xkkg@EuRj4&PLIcKCiSJv)4FNY4)6iS+F7 zolMUT->LNM@ZA%i4>^3N)3d|(#`Ns)ok`CQ-`Vu+@J**@hwof^cKGg1&ko;x>Dl4C zKRr8q55(u!I(&aRJv)4FO3x18gX!7fdni3Se19fAJA5Dl3% z&Gtq9>;SgQ28XayHaLhE$_9t=V%gw8&Xo-g<$T%TV7|F*a5yiO4G!o++2D{ariR-b z(xtM&A?=n84(W2);E=whY;Z_d$_9tDS2j4Lt7U^jx>hzgq?gMEhxAHn2tws*+2D|_ zmkkc-TgwKA^gk#Y9MZRy4G!ts%La$^KP(#@(mz`^IHV7k4G!r$QbQ0g|54fCkp9PI zgG2gA+2D{qS~fVOf39qBNdJ7<;E+C6HaMj3EE^os|D2%_n~DH|Npe^53!q`zD?IHbQ) zHaMieS~fVO|83dekbbUga7aI2HaMjJuxxNh|GU_5`3Y;Z{bhqA#TeY$LLNWYXCf{gknWrIWdPs;{}^qI23A^mdM z;E?{0WrIWdKa~v*>2H(`4(V6Q28Z;2E*l)u|0Oj98THk&!6E%x+2D}=uVsTn`p?P+ zhxF@ZgG2g_vcVz!=VgOK`Y*}`hxD6egG2hQ)DUFUzbqRZ(*Lb&a7e#hHaMieSvEMN z|9jcskp8Q(!6E%l+2D}=R@vZ?{_C>AA^ks6Ly%G5EgKxt@0AS>>Hk?aIHdokY;Z`w zUp6?TKPVd<(*LV$a7h1c+2D}=uxxNhf0P=6jQYRJ28Z->VR4<4yupIz-SgDSonE_@R#>cQ^CD#j-k77_qG zoh7sJC!i9QIU%8l;Lu!SgnX&<>m-ux_e6K*SpkiBKJmhf9lBldS`M2*+-D#vxsOHI zH8T3}bFDz_edJ>X}LXGG#P()@KrgC`#Fb?ajti@muHiBEuU!kQ#_eMU~Nle7TL@5#;JRzj~zC= z5b|EMEG14j6XNj-l3wy!q~f)%y-0bR_025dIc?&g;ca3Yr+Kl`F++||8meRTX?)>+}^ zi*_~Cf$oLy@^5?bPe@-SUa0xL*im5+uUARVvx>RTF+&SeD~QjVBK#2KC`Jqv+tnNk z)}0o%v3aACL+B8MFPjcL$Kjg9A-SM#)EcI{%k#56F|W}t=e2C)7NuZY+!iWZy<#`@ zLae;h7~yO`(Os6#Bi-d2adQ3R|8q2((o@mp7CkWEG8o zyBY^-8WDMuLb6TKPQ0>>okr|EkbYy$`(#2YK%x2?VU+fC_uQ**=f;)^iyFo}c^Jm-3hXUijx%zxlqO z$nqCG{TE*O(IS881^?%7<&=J<^t?9!-F{0GGf zh$Hz+V=zRdL?qve@plzxnqRuiVYXs#h=|^};~P7MbTGyKrEzxp%(8?3?9Kmp?)?MJ zze){{>^1-5FaP%2e&Gk-)C=Rkd-$3BhwuF>Twk93lh3^GFaPVO|Kd&h=->YQPyPJ2 ze)iZ2LeSZ7z5nwc|2u!?w|=1ZfBcVb`4@j}&ny4D+UMT-%+LMPKfCi+)z4=>_|Es- z^QOP_v-#>L3lvv(Y#AjyUKt2gEKS7m#A(ZRUI+(Ecr z0Qq{ucL7`6dMmQmiZkUiS$avLZ?3T?Xwo8{06t*y1reUtO;bIWYHjxqPzlPJCtfbi)! zNCWExsib!TZ7^M%&d=uicVsmVD%iD3oD-nx_(t06hqJg!%H(%u?P{0x z&_khAsX8euMpbmp|0>sm`_)sginSSDh4cv>B|7xg#9U~vg>%oGu%(t9LYzh=Xfn(L zWZJSRC~=PVK;8%GAN(FlX-Ng3V@s_;tyDOd~8jTt^)9Erg$KWQ_s5Oy;o#AhVE*e@8tIH@sVT8 z-Pt+Qd-|4jIxQ>tfV$Ok#Q(8c1pb4Npj zrGM%_G>OuqT_<<^(jbw8G4+NI$)4b5GSCDOasdVgn(-KBH})PXTCL8b?xs&1M?pCI z&K?bfxoPxTIXQ#Cw@Wcnaskq>9tO;3{bvLh0K+@1zHjYvu($(W6*%mx{FNdbZM+iZ zKr8t!*{;AbPo6tFErU#opPd!a=NDUxWY#ZT!~}#;v9jP_{4V2aO&0}PifrqLa0v46 z&A7B&W}WejY!z;)swQauh3vGG6Az>j;FY@G^roCb2kXnY1-NR5Tbo41t6fSv_C_0X z9K%L1j7qz+B9y=(%Su<1spf9rS|T;N8PTOo(qdOU9l6nw!WS<*M&a}84D7Uk6K|>{ znI;E5Z2D-cY*X$bThln&rMi@h8QVSt5wZhK1GO~ju+^~ITT3@!th6Q0I9lUQj^(u# za(ZFLx~@vN^t)sZ%&I`6@~{p_ns5pTGltoBFZ7D$X}`zSwgnl&lz%&F#!Z$@h}>br z;f=8J>~h|TMJ1s;*s}v0HGVW~%%*m!h?|`dwiT(XOAtELedrYC!wVz9+Jg;!w220b zBWm8fSDV$>s~dIfZ0DkUfPoLVDZKA(jS?I-98L%0X{#&F0E_I0jr&xf!)g*@?X^3Y z=6Hhw>y4%+t~5DVqPB?!=Ne>@=lWi+31iT|hG21)$mE{YHFNgZ>rWm#H9d3U*s0e~A8!`fcN+JwYmBAZG@)bF zI1&{@U=9rz$)eR$!NQGTTO&xmz=H&kve;o&m~aUO>CS%iON_fYhVkVpiFIPv9m0-m zSL_WeVDg-12vwyCnm6pE2#b9*ecwIzA8_YPv$`N=OqoKegWTNbP0BNtCsw3wP@4qv z=w51Z?`>Z#f^+m-2hG!+MJ^FyUxfOiBeR?~l@bQX&N;b*8fNlVt2wYgFl72{s*GV1 zpAkkIGUb53jHvZ0a%CmezQYYl`KEKRvcLp=l;VWbtx zam)%4m~|Wx?6U_yc9FI@ZQSFG=EtmyEK;pdKy^$cOrleXo8Y_kZc0yr)=-_Y2{qZZ zWRE{`nLhl5sosGYKB?9*Su-Vc5ZqiTtUU^Rt}w65HH zlYBTXMT_tvq*sj+JvSaqsXvZ6r#P42rqHS*0c7Yh-;7HDFv~OCe|>LLHcL&wgxAb znlRJgtM5HwUnR(KWU%Y7(ZpKZ!WQn=_giJ;ism&mq`T*8kIDBHm0EpST1oC<@3iwr zckCSTFR8w|oLBxH9OlRc(k;*4DOF)_!ykwJZS~KoW-P*0olvItxK|DR#Td3Wp{>}( z90LpcSb~as>i*%h(&I{8n29Ce-d&Phqfy?K%-)x^So|6*2&t!>c#k!j0$vsXYGuA zv9ULnPEtjccLXvEp>9m?N;L&tK@R1-`vUiS@_Zx2FZ8(?fC}jclA$^j2qUt)2SnWx zg2v>)LL5a2=FTjF54H`!A7$QK}dqnFLZvXVYeEEZfC;xy~BrH5}M9>CR7{x z4_>yT!9Nz*2vl>{jFmer0z>eNAm7=!`Nbn=xiLFkF>@q*&te|b`J|^)`9|<`4nV%VKG~Pa>X-MC|#blz*qQj-}v?V57y1~yp-J%($UHoAoXmvaE z7#Wse6P>)v9JbPWuqfh@YT1mKjCdU4qJ|}m3u~IG@oVcbQiDyqx0pAYRSY-%Vs@2` zx@d}#K8zj8<8NA#nL%vr=NNH6oreYJMZ85_6i$>WJqaHoUxdQ zvfmgUII!rW`8!PgKxQJdTzxRE8;G7a?WIk97kf@1vMu18eM+j^Q`DzeCzKNkbSk_{ zwM=wM#l#a1BDEK{M1X=CXYe38L6%JQ;Hy9mNSolk4|z45g<;hZUbDY#5IOBlpLbwB zFMj&rh8+_PtPfOe3rGH?9r@M4E$VU(kAL~AxA*am+B3$iqMJ7;VJm)fCo;Xu4Z#G7 zN-ogQ?FNP9uHkBENd48n@4ajaL^;AtfeXUQ3i}B3vdiMDIwT9_sQ4)gT!+9Tr6bwA z=b>&}DzW?!Zo+v!j}KqLl~JIGcyd6vfNvW}>@01GyXg0V1EMc&fG7X*j@`$nagy}J zr@Kobl`G$(tv)HA5CuH!tff3sD|z;n9phQn{+oaI?|uD-gzQ6ss_*r{P@a8_H6%coR=%&B6X}6*TY|vA!pb0-i`_|4Q%eXdpbwTW_^MLWK5RIKmWMbzC>@ zOn=U3z9Sm^b=h?KszM7*G<|&=#+wli?^IA2C>2}OYM`H~hsLWKl@I%f=yjiaP5|hn zGRFSbxlBa3uqy-m#1(``0Y#GC*iQ@)N1zr+zu`_i zwX&EPG+c=!!_63{)dJh_iiNYtD2(VlzqYvSmPyNOeWTSr49Tek7XfsGNy-bQMh!6T zVPt>1#i>-d;7|taKB_rXg^@tdz@h#O&wRr(oB9!0;v7{NoqGiR#5jayLgdf#+sK|X z${ADQl(fF#k2kDl3T{L;5E>Ln7BkdDOS@o2p8(o9aX&U7|6`#@%d~fKAh*|;_N?2x zD0LO2%Znc>c*F&h3yK&CCS8oF5z}iy-ZCr^JMJWKVH(nhe9T469U0(D*sAh-v;UNW zD;KAGY#~(< zR=0yJS-o{a^2@SBZ|H;PcX&e=Uj$fp1lM7czwsMYH8U#lU&gFOFGNTmh+t3^ zwKvbN(@N~4fS}SIKco&>F}Em;#6&#ceMsE5R4spl@o%N$RpExf0Mm zaKw$r=2&=)+f;TkuG>r4_bt=^0t(*LG}4XVG#|=dz)2 zyZNn>DJk{J?&$_`5;aONK>!MM0l`M!)@6~cS)L?5MX6-VBGB?zO+0ngk{t+j&>Obp z>zrnNP+s%2PUCN^uKban-`s(_r3s{cn!F?dPqr+~uwWs4jd;K}Q-%uM4_lcil>kh4 zft0$9u_Bwd@X2gTo_4#b-T3lG6oNik=>?&fk^Saf_k=xdKyp>cGZNnr5<07|V;XE1 zY+qE4*%q7;)u4=oBUhIpnx1YvM;sQ4-c*Js<5kU8TMGq#!%}h^)N*t5`)q-bFlcXU z(%=$b&lQ5H?l-h>k(nX3XIuiycT_yMvC}ZQJi7^s9L8vwV6Q8n4Z{!9DziSDBX*@Q zKS?7EnH=&lvbe&G`=`vu*tAA$6QY^Ejc_pq%?Pfr5sV&zu(#N1xYJf~RV@-eEh+sC zvTu#!xpK0^eWaV|QY=C$hcXeo{|XuPpjj|2FFj@mI7Yp>h<{XW$j(pExqLe!cMXcK zUaVzSdLGmk^*G~HmY5Yx5n~Vj_s!<{T!d4zlOh~o#{IZ-0*iK~2o^<}QP&@c**Q6r zeky@I+bK?O!VT+=KWNv`%`DO0Rr%Mv>Pce8kvk*1AnEClOYho2v*ZO~tyw6u#`;+iK>nQaG5P3dr*-=SCAed0onctpb^ZGmbul7?5W04r%d@aaWa!P+ga5`ipm+9Nkh!o z=(rAlurq(x39h5<8G|t4KGKK=Y3<=g3=TvcBMNFy5-moZz&3t&b<=m=fB0(pE)4F@ zihnyz8Y_5SXg^_j>2>UkX)U9J94=kZ@bEkIHdA9nFeb2rD$%GQ(<5u5#YoD?kgJVX z5Upp-SBRqYsSh3ide8xiXsCen#GlKvKN^r8-ULz{J^*#-o(mT&`f-ND_15Z0V^=U; zhn_SH;j^ci$prkxCBo0-K@(+NL6aGZ_}%DOWiE=P3$jP<(C(#+s!^w;1&N(ILQKP$ z88Q)#OBz$i@%IQ!?-4D8$ye8?d_)9UM166D4bfTQ>{YN2MjF5CX~KWDhHpj-oh%1u zUP%?Ks>ERoX$N8XA{`zuWi9YIoDU_3>J1HD55o3-bBk=;K#iql01FZ#5?AlwYBuG4 z%FJieTbXL>a#scH+7j@_;HBE5Oz3a6T~s4tI+L3-ywSa)Ob98~($1ulSmFnagP742 z8P`c)!3*G&SxzLdT04rta8Z;ZtBv)VAf%TI4Pt@cM^$AA$v0kg8MzgF3LDOdxy<0( z>4|}9{%pPNMh_Z`IIFS`^t#wlLl;lt&hYKH)VbngqDQgER&-Kk^t<9;iWwQ355%H3 zBaL`K+w~AqJ>gL@NtQWCFB#n7v$ad=szXdbb&8M&yRgA8t&Rt-A@olip1T8*S6id%T|* zJKD0NVna`y^cx;O_r!0@@=pKMo**}k936f{|FJT_rrK`;t2ogIm($P|(WZ}De}R6U zy+_>uea!p_OBe4&|5#x~#y>!0FpBq09#`iIaEQzHx;BfBDF#N?3$`p*V>=IB#F4$U ziar*8koGU?Fx^NO3LExKK{D0Zy(wnZn{pXamm)7h5b`mKv&F+jaC7KN(okXE%4oAh zb~h7}a%vs-3e{`0xvDU9FmuV7|GnR<1;a0rU+MR-VXcmI#p>N^x+C;`-~1Ar5Cnc3 znjX5NpQOt^ulQ>~Ub1K#huN4n6sFWPI5A*i?5R0!@h{uU?wihn|4b(W`NCDJly?=K zidCN0%L-&%p27B+qxL}j%DBlN+7oZHnic7S4U{nm*ztNSz zu2gN)%>)Nmg4R{`LWopA1Q9h4TZWN`q%e?+;j=WmE@jl~UIua_3r{CaRb_Q;foX~& zi0a=USA`tt#BfTud|@rCNm+!lt9lEh=d--525e%M?C|x5u7Or^^pso5B=yTsz?mhA z#_U3Rp}Amgk+~G}_F$@k>*4XDC-Q;$fC|VGWQ&?CC>uf3_lyfUpG)(QYM?70r?1Ks z{PZGX+ae>*zICa^68@cH*zdiSePx*nY!b{Z544Nt%FyMLSAf#q+$&A&Szj=ekYyolf1kIcf0|uf(V?4#G#ljfACk$V7E>e)=ZQnLt zB91?@@zTl{#{<1h7|5dct+N5}yH88n1?mixo!~~D5+@4^B&36ram^xpa=03+fHM?2 zS#h+x7`$0|<_5>$xBL4}Nl&0Hyy^s+z&5K<9-1P1SbCRCEf7s+tbFBu&MY|dis2JV zx?WKZ2LF#Y^wOmhSKF zcAR4#j+Uu^9L8IAVIR69_O=MMpTtXJdnb{D$;RgxaOsQ)Ds14GnvL#^FS4hF)2hZT z1|rV^i(js~bH5lZEk@GbRT9pw>}9OZIL@O!boNnk9}?$v3j;LoL4pcK8IV*iSfVhU zX681`{c4nerz@cEtu2!f4W+&|uLO_u9g7u~hM80_n$G7M+n{*I0dp~#Oh;!40sIc` zy^1p3x*Dd+KI@^~LdliXN(P`0>>tSl**m5%lb;}E6ca%pqhKaX^stchBSsc%)7;`B zUPcda+83Zl1V`tgV7T!(LIxa5yKLZkc5YMKN}BZyuQ%}w;ssLV1EznOw5`~&HlKWeqnJZk7ae3;EqT^Dl&nDQetM~C;U z=jP$V@)ip{y^;Ne?J_hQLudG{+U)1I!-;@&w2YY>#>k9DXxjp_JxNOdQPNs%$xH$@ z=rfJMgwRjSR;&N}YODq{6>snz{gAX3GqIkvBj1zaJKmH;WSe?YB7CmrPVttc+!hN zDX}s{+;QkO2a$X&LtB^vQFc315Mj0XB(Z9WQuFxK+39=EJTNnP>@;VH1Rk#cmP?CZ zDiNGkmX&(39%K*1k(|fICm)yC4bCv;>Ek(u9DDn}n}*j&;_1ydmDEHwavwaSF?7uA zA8L}z??}L{iGot!wdf8HgT&^LCksR;%qbGWI2FdnF%8ps`~YT1rs0*a z>WEAz4kA3iwr~m3B;7+~7_10)9WyJ0E3q0GVFe-8Dds`N3F^9BhNvxjy|E=;C&-~u zUMJeB-`t_lf}QV^4hh*R&)uG5XW$%ED&txvicb(Cih=Rscm*RzImpeCkv_zXzONCQ zp94Wg?1 z65)Ja(ciY9+f9v{=WkVR7Nfe%s;D3^9(<&%uDNym`$#yv|L+IgB=ny~p@|zxI{%&< zIo|JiTUy3GB9PbwAI>U;{HnTA-FwbPBJv~hsAX}jv3Ei=oaXA}XN+?gZ$wDL_Du7V zZ-^r}2_)Kh7It|vNetp%fOhZ%DoRCGSCC%3x8&DqRIsW^)=i&EmvSIjH!-p0VrUL0kEJ>Nf?Ir1VyVD+j}& zMRsihNI)QqHQ`W#$+ZH`EPhAouMMb8sZ`7sF=k9o5^`qeS7z51L9iL|BUX^%qEz`M zwd^lACKD3$3|RboB8xkP^Uqn0uC@4kaOZ{nA++;=8A>Q z{tSAFt1L63n*$zq1D2VXJoLJt5bF1bnkN#2F>FjN9YZ&E73Cz;sUKrH7_+ttnh~DP zP*E!}9Zm;mzD^YyG)!-ff>|aSZ3PK}i_p+Ylmw15#9E!O0=4mNaUvNHo8W=%>3IJ( z;FLoBd4aQO;Da_EQ#^~W*!>=F6ivLV5r3cvj!r@e-%wYnO7)6;`o>-pE!|N&S9{p_ z-n0CxerFC()J0QLCd*|lE9WeRh)mBA<$J+~4VHA+8d?+qHu@C#0wjO1So~M^$f9iU zl8?HAw%j5TEDd2gXs@T;ra9{xc(nO~cafn>t0xj_k4Rm6t-=N34>6JREv4~9st`U4 zC7j3$vc5EHegIQqES?9cys7Emap#U10o(!Pf1GSB!NgV$AI3uvf5f6VL4JW7UWs(s zdk?Ty`^fy6@=UcpZMq`hXxGQkD)2}Ps2E40N=yJ+Ei0DPJ~?{gY0wcdPMOUF*p*>a z2CBn(1bi(l$r|j}l;R8N{Zg%$jtUQwl_z!Gfsw0`+=Zxkg1oe|f{_*nCS}_)W&um* zw(;2-ZE#LIYAdl82mD30kIk@89!ynwe>Sv)X^UNrdZ=A=hR>Yw#M1u?hP#>NsSeE$rEYSf+PO&Yl^XA%=nAY9EJj> zqjKRSbY>Z)h_k^rx+E>rXvCMyf=wA>!H(5N6E>PvSC9>3UZIlQdW~B#r%FcZi&c)m z>~O9s<{ybw+ee8MrEQg#hR!No?Z+&_y@%m>cX#DgO=`{ro79huZR|GsVHpTE$fp=$ zud>gZoB^M&<_$IM!i4meC6K2H7GuZJg(zw|2?fp#4Oun4 zcQsCVX&aUcvM^z7CzpVjJ+Ie`?Av4}$=nuNtK1t588vGy>|;J^zA0=b7s%J;jq0cz z-f|A(;`s1Jqor!Y1dF&ix{Dom4A>F_G((6mPJgSbiLu$ATsv=$e%#+JmE-u@*^R!M z=IA4&*PuT$*%KBODyR@gu1lK>6s3nMag}T(X(|fPq%>6#dr26E4jdE2d`x`|+`jl> zV@kCsDtvfDgu8-wf3;cBZ+_-;Rs5muge986JGVO5j2^4T#WjwRbB;jV`$kjQalYxS zl(-t63Z<~?@8GwyL&m{rACzDAw^OA*kA8>E%yO5^KkQG51pi$}tS)bffZ##nQJJpXc7Q40@azAbennp=xWg45PK~{z6HY)dp zmRbtd8xLbR} zV8J=lb~AKwJ3dTgA!wzJKu;rv>O6Q^DBlGkv7y=Xh-?GwdoDOOdF7-_5J)t(CDJ8W z<*X}cPQM=yn=BfI*7oqz|u%3BqL zY%L)qvn9q{(LP14D~zmCJcsx(l7~XUKeRw90%kMd&xi3q z%vIL2CF3dQXLMNRni@|5FD29Y{qY>|vH@LYOFloI6H+t*qvSqYF&`F=jB{l-uu?O= zQ2jjUU>_68-%-1MZ(u|uJvm3(Tg^$Z1fts8Y_OQ zs29$6sKJhQ$7dyEAC?;~)b2@!Q*ec(w-hWYMjV+`RBcpAwPcWv4i{a`Dd+tDSIh6 zVB`j=&&(^=9_5L_#Q_>#&3rx|V{*db!Am>6X<5 z&$cd*m0>!frJHCcO7!CWFxvI35?(5fobmjm_S#}UYHss=W^1Yn5YUAsGV!7_4*I`@ zYmTKT@fY7Q$)OW(5mg6IpdI!oNpxQNPsD%y79T`h9A!U#9Y>%6Q(VVA1wZ;D^2gMt z@vfnF04PvHbx=yxVV({S$w_@ z%6f1wS0KrdCDkRExciu|08BP0XL8dR^VDQ?nu$Efm4E*5`(*}O#v8G6t`Jzdc+Uk( zJA3EuZzKPIpa1Bb)dW7F%Sx*?}`dSFPb819GHz|f)>_m1sP-pZ-K$)gh!a!`>x~q;WNn)(|VWI zsTo;JpJ??~r_G;sUyFOy(K9)<>heo5-QaH#y`nDn5gV1^<$RP2%=3>#xbQgZfod+{ zLIbFYaH-w`k;YI)(he`i#1!MGS@t35XGp^`TuCF+qnT_R4{wp>`KnjDR)yb;SDM4y zGHT3}bU@0n&Z%G6hF|3n4oY)kB#}RiyQ8a6s-wvnse^YP&}thk5Uh9(0pKY@Gu>HKpvu&|ptHsNia}YexiE)}`8Z4QD<%@-bGk7zu$6$iRN(fdhlk0Wn zS64}B?)RE-N=%x3tP(D;%hOIQ58GR#xw_YpPgpeB-$oVyTP0&cbDJm6fiS zxDN%--H^xN=yjfyy5fAr9p83Ni_M3)(oiTAF7Cxzim?+dr79#Wol-K3S){>&g`BiXl1s4ZAO@T9SOZBCnde98)cZtju!*?}Qre(K&>UNK2GofEFQ zr@q1(4!y_rcg)5PYYBzxQ_FH^rk46ut`@{8H@k{;Ba30E_=+NpY`r}4Z-{GI!YQ3g zbQo2%7DlIZ=1Ph|CCyudV-d?45VQm&zsCpVb>X0zXCoUkr(>mf@`>tFlO4KX=Q!l> z3~C7B?eVt`{hL2+>*0%Xhx4^K?-1c;3?>)7O-VC}lE)Zkl}ANNFAhzKI+s=vR_Fok z$7}f@9L_XoD{wB~C$t2p90*VnP&{lwjUZKTh7&4?==n-86##M0h|Q>se>((fhwBLT zk+W^vR%)#|epodQLojzdNqiZ&+^Ao1L`;6DDQr(6G)TIV_w;enkdrH!=>8<6(!N=iO9I0q9+m9 zy}Xo%0eRWq^&Spmuwgp{wSxjt8ec~X#i@%i{1&I9o*&9~ntN<3SIb6?UR&4C$(nFd zex2MWRw+TnzryYbXsNwCY?)1X3Hp1fQ}nNbbK*+hic%yI+i3@|J)sjn!-hzOoVn5u z<_X;51=0pRALTPVGXL1_!M)OzXXh94_{Z?Rgp@q{1oFG)Y%Zu<(jVYP!Mz?gagR&$ z0xC^|-aYzBnM1!u@lA{8#PuSQ1T@!KK=ugTiIHt70Vt>qul90e`DbhSFK79ucHgk?SSah%%gaCal(YOa$Q)elnH!Ck@Jl=e-@V-8ew(G$!|Y8f#vbNJrWXrtXJisHPaV z)G&E_DVy)F9avkoB;w~DgV@R?&ZFVlMO~I)v74XHsr-;>A%qAe3IpKg&iRb%^`3`2 zqc3Lmhk+S4SsK`sy0NHTjGzRzjCk^?zd|v8a zyUVqCmc}GI1cG}9+v;gJgQby$@U)#dpoR@>jiNql#JzlqOec+5WQ2R=Ttn;gbJ)=n zk_`SAxKxKCbyy`NrW|tdC!93hRO>hRyev~y`Hk|75dPIzkxtxTZ5h@rVWr&vuz}5j z{gvGm9D9y`2A>KWTxbd^i>s@)#G7o^>~qgyB??usM2Rt(BL8A7|FwOM(+JVd>QwvD zoYE2;reb-xJ8i1GC`$4{^Rb^4-=(Yq1wT>XLm&@6B?x6eh&X1~75qU(dSd0&@O9-p za_6|2cAq zsXMC^8`xDUAc)8nLrkUDN;qI2DwDEKaPy*_j*4zv@S`G^p%6k$Ef7$0T_8Pz(?S8) z$5Y*JW6Kv|8Tf(wDX3SBm$SGVnbBPt9v}bJUo0`jU$q;Z1cM&QqASYa{IL@E3&_(F zS)CZB$0dWWz8z55!qnjo1;+wc9~zRO)fc*pEFGNN0vF@qlf=b_h6eP})k>Hxu&x;v zjqen=FUF?P8DnT}r19`eciMcEL7_#r`*RFL@Nyq>ZaxoK-s7OFG(4Of+gSSGeL zk;WX@Xb}-+4Qk?W5Y`qckERsNNw(#Fx+UA%AVrf3I z>LKkelX##&L{!&GGM@uKC6F6hwag;72z4wSlB;o?ZN&?VtYpp@2g<9vEN<=Mn4VrG zRx@ot>wdAKG5NO0=M?t1LQ+kU^TaabGscf)@vgaS@QT8O#nb?KQv=#DgbfZNRHz7V zcGrq4C2+vPa3r`WSa#ZAbOi!q!P279Ft&bJ-y^XPS{6`31oI=@KbGcdp>W#v_G1x% zn?Tu63!V5rw@WB>615-LBu8=zt5y7vNQP}gzzn8iAt4v2Li9^GVO(zqha?{z}Ipng&$p) zHZ@5C-GS^Re^w#FiHx=p=<)ngYo~#<^4sA_q|3v;z>y7?D#<8xG6!4D2DVOk}A1Cn|Q?}tFCdy6SQ^#WTxnr z^o|NJX4xMdz;SUjQYK^ZD!~(*(#=fhOhzFzWkt=HTJ_^KVH^b~v+8n6?)bl)tZ)hw zIGypOwNa!3cAK!a7gsgR8tce&QEiV=qR~-sx#BEio3ce5!V7_v3q)gsvgzU&u?s^( zA4ME~UyWB0Q;j<*gIRk~+!uD=?ig!q>EGOxY-(}Ul30R^cMr&6c1hO84=8NMcQ2P)l*ISa%Xnj%02+p0uZd+&CP=1oJU zIXIf}ys&pLR8h^mWdt2EoHaRD*lINTgT9de9*~_Vqs2I!CB-D{YY-{$THO0{$Ib{< zL{W0^KH!x7E0pj4f|ooJ&ibI^CnNy3%D^PvKy8Gtp{S#MfuEY3O5Z)~eVkKhO-L&I z-?1<6J3-;!X{*%A1J^~_9}3Z=0=KOaE|wQ5{Hs^QpE%V*ipo#J^=j7O&9bT8vQv2- z4inbV^LWxY4*VbN7uF;R{HRguD0Fid=_tX3@V#J-N`*w?k#@h8#c<^FW5fJ{f>9Li zmC6@FsX+$8JovADzh57=bf=UrLZXhx-~c;XYpfD#fInL5HTzb)*n;wK8VK#p#N8An z$b=)W7o*sK3xFqc{=iLfd|wODxar*A zHPfvW(n?Jg_4)!Y8`wO7ZYUZU!StX?C?c`St;i!}Vp^FaO~nyXjvIy3(~e?+HzDq# zP>i(YAp=KsEeJuM#q=9nKS)Y`IKd}vWGWD8k`R(x7KyzHB4=#rpjf|=v8Bawn*nDR z;m?>hiGK}-Fp;jp%DN~qu;0MJL&S!F?O>ZAkLvJRT8w~5Kjta!^$2^1B2=Def%R)$ znb!JmHG5rOu>a^`B%ZnRQY*ERa@yPhij>eyl+*o@Ceyg=E+k1>GCm2Dxzi)lkvjyV zP8JB*Va?5{;e~uT8Z4yO+GgpVgN7(m$Gy(kT_Ln2P#a?8**);C@%n_l<2>W_&d!D1v|(9`r~irM z@e}Y}tVw;c$0$z?{4W#A2vbW`opBOU2w$_#W#F4{woFNJ&MzP*8+atygBc>UnG1gv zM{Mv}m>bi|0n4kJfGG43EW=spic4WRfqh-dujwX+wX=!PLrQ;w4+Bf!BDGhD+i8gv zfaoDzpbc7$E#Nb#F9zslDVbT*e zP12DAvvHB&u1tv*5r+Z+&#%gFAtgGqNC#jX1vnU+wK!l%Oi!dwyr!LPIegx{_2Qtk zXQD410X_%UF4RMqU)l!b5LEyH9tR?;km^$g`fO`T2rp523@s8KB+cH z3uwz%pgPQ}oe!(Cqxu#{{jX)Tlp1cloUE*@IoVYhP|7d5=o;H6OG_;y%n^KJT&+}S zP+8PDUo1BJS~};07rs7;cMxqL4x0lR50gfq@`tkuFu>M&#rQUbJYo**mu%Oo(*`16 z1tPHZz@Dc5pule$G;0l~2(AkJLGzMGp7tRXVu}RmEa7M;o<;LZKr@I* zej$N?F+dW?Ae^P09PW=|YlRGN8C7bQ4D*JQQ;uQ+n6K;mfebH&pa}_($n0afP{<C3JvkDe~q6~If@fjJDQy!I)#hF$fTB_AEjW@MIB3bl91S9&PQ;rh&r$ z3_w|6Zv`6$gx-*`9YfV-^C}0kS|Q!W$(Fim^wO3M(52oFhG%5dcy-yQM5ipNY4GHK zLpc{ES~#Eysarijt~nmzlEl-z_Hl1m*gFFP^cC5s#>(r^Mh7?n_00Yi9a@Hz<>qSm zqe__*7BqtwT4h1*iUYJp`Z$9z>_iRHQ5lZI8tD9XDDnDm6{;;a=R0e&D88jsmVsyq z#Ar#>G?r|=Vp^MvH79}5qWlA3zvtMV@#&}jKi%-LmpA|r6-SefyBsKA%*PL0-&7vO_tfvJ7GUJ zH*AenPH)2ViKdGitDvqTg;Pub`e~x38!?E$vd5 z3sYVrjSO(YfcGwU@34BoK#1MqfJ+%sG-OJ@g%LCEogemkd+gCnTMw#;`HdyCuf$hh zMGrD&C9MD{B@U5|gUu#f3kj8E=*NIFE7j>9x6>6hbLbEDN-HkV7pa|CB8LrxX~1zw zVPEx|$JE3LW0JKs1NBHn+Mm^1m))&Q0gg?MsYO2%#`KB6(mf_cA#kfa|F4|9$x?1e za*+yeBL+fD$HTNR?UdSpA5tbAMC4SQFS=8K^20d+F-9FeKt4haSHl09 zFhhnd945FAbS))EwOoW(>{Oxf1g{8TO3>-Yf*sOYtlC*{E@V$}66uJmQ6L;%M#diq z_#oC(S}@xsIm9iK%9o4tQlp)`gN;})i7qseAs4a%jtWeXo)=I$l@s2;2qt%dT=Onv4avvjwFuEA$guP3UI_K6U$z`M9V`#@;rx^@Z zp3N|PDM>(}oodCpU>|((%Czydyw@0-1`ti-+-5WN9*f1m1woV0Sj(JLF~E^j1D&A) z*7B~qXd&VCwl=??qYd)IDq?X9^J&r_26C#VWt`1Kf5=*k9q^nuL7_uQa=dah8Dv9~ zl`F-=BYkhJ=PnA_Vk$0%@KLO^MsxG15BeNbyv5+>X%0T#CifB=lB5I%Hv)am4T2v) zb1mXP6^h0ZTh2l2A;&V8Sf%`LYMUQw>nr19GWJuoY)yEK*CyN_1QlAIL>9NJy!euY zw$PBEnt$Y%&78WnUZ#%ze{c!g^9Lhdl1MqDCk;FMCfK3fKg5kWU$ja=#60av2;N)9 zW*8O=fI+J1v}w*#m8N85UJzh_*iwW_TX~axbd@6GKUGNxl$h1tod6w>ek44P$?}lv zw^0akm$N!`RubbRS!8xFRYfErWfZK03&9^zF#tG5ek^`YV5)2v^}oRnglQr=UppzO z!i~5Ubgi?NO9tgQGGez4VW{C8=LC=xu9&-fB21>kGk)WT`Zq z`5^oC&8Y!6Jp4qqS4d=QV1V>j#STF)I&;W`XvW_Fpc+Y0)4nFnL{2=UvXsV|J`|EH zg4?5a7jo*uB-ppc2t~g3x zj;<$1Ee;1lg^QIS1t_ZjrB4`yQ^sY@Bojb-+YuvpS%W)7K3?`2@GLJ#RzMs8=eK|5 z z#i*FT&6fHgv{p*tYz%>(LIN~t{opUb56V880_icn&iznwD0qq+sKEv>i8C;8>1wTx z8?dM;_?vn z{6b>MUuGZIy+;SfKrU~5;iU&Fjk)`yVJo)JH|D|Y7xos_8FT(!3;vdap2ZLT;+`eb zuQuksFaJ95)a#7taPgdVQ`Q>OHGga(_f}(;MWSBy27I6O>4>p#?+lAKtax^tF`umO z^{WrJ8*|}1mp`&+moYPMthv5nuQ6S||LEv_ZyIw!&;1W|`@on%o3F1Ji2^cjzJ21bKK^qw7C;o36`);yMd?;y{#jNJF~r{g@ctn2A3SI+WGPTog1UV4RR#+>{9k8fP< znY$ma%PrpInL+>Z{gW^M8Qy#P*)3yV_RPR;AC>I?*fXyk-|K{#xml)medkY}ADm?# zo^;R7OJ`=8yWYwhf98rTvpav{g0c5!na{6(_>vFzWSNKFx&Mv{UuBt1-3HED)xU%J zYV)&oKdakb;5H?)~4?RD3ct^A4vA*Mn-`&v+ zncwfYe~VE!WdSz_+%ADxq9HfMjb<;Q=?F_S+%{heoi zaf12%6+dfyXZ?xhgm=4K`{!?+WOA>(W5rKaM$MnzPyA)z+Rmm+?cWE^-qOVk`fSwN z3-)w1Yqwn0^^22EHm9Fcx%;QprBOw1H@{qnU>FYIZ4u(tmCl}-6()sEYDKDzxZbIQG6 z{OKp>^f9Y$pM2r|U!G&`8}dM6^GdWTdGn=7ch?Ot>pR_b_U)^S&0AkQ^5}}a=bAtM zal(*mr=Mp|yy$mz?{vPvtlqZ#C*vZc&DQ0AX{sDK-W0!izC;MspWXj%s^ zoRj|z<86HU)mIh`iF&)2RUf!^QV*~4z~tTEUp~mYd4A!HQ~qO|7d^XTP|5UJUh73~ zUU^TSE4-prPxd=>*=n!#w@b4x^EP=~Kj}R4oZ_E(B?Fr0&d7P$Ywf@I{h6CT_Da5L z`QGGixmlGjEfA4kwen*ElF1_w=v%mM-4kc&2Jmhk4W!oE})&pHGd^o>iy?21iq zJ>M8HdmsGMO=~}kmzPjGz}_zo{Y%sFt!I2X z(X{lkn)z(rw|?`{tCyLZDpp)O^_EH#tIq!L`g`Y_ z7tRd-y8IL%cHgTScOFcdmxkZ`=CWZ|o1q_9y*K5rtKeFwd2-u;wWjR3AH7s_@VmyW zc=wK{&f8$3;qRP!OCBip>yNA$w|<*BkhA*u-|gIPW<2%l<*#l8V(hYl`;H zI+(ZVP1AVcj?+$h?Vz(;J)}0o#b9e{R{*zCvrRGq5dqr0Rr{H!)&P$@SRL$DP*ciL z^njKD`y6Zs;*5u>NmKOrAnlw8d6hB5_6FW8U2|=MhV?0eK|(8o2=51c(QcJCy-dsa z*xDKx$nnWJ{-g~y7SFFz8Y`7Nc~WM3f)A%kuR+fDJBTvsQgu9kZjsri(=Jv3<`y!%D!zA=OghI6Y6TYZt>f{2L)NW)tw+G5ku7bS2q8AE;Cy4rpU zx4FY*TFA_azqs3sfPM2KYJwKwp750I@ZJi6t3Q)7RxWH@C~MffbNDlv1s1Osj~eZ(+V`bQ&xPHd4tx<*7n( z(g23I8H$4#Z5;wY7N(b#!`;fH8(;!buqi0v+c z&G~(v0CC(HEL8HVarq>b-=27kRDhXtkXQxGl|GbaEkY#dfH|@A&qv^b3)Y;qXilu} zZW_Y{Vdl!~ed6%Zr9Xo=5tk&oK6YQZ2!%*-JEr31LVX81_#Usy{!0){oa{fJ(aHU_ z1V?kCA1@)pfF#F?3JzL`0J-MVqzVW*D-gg2DlQ0J#W2gHxx_J4XxnZDnU$X=WCL&OW z6w{x?n-8e?09MlDr)xoX2vFJ19@fFfVLnCXEzJtnn^6txzTFXjcjse|7ZCG_;=nlE znMbm|fkkXTcytTI86WEcVNYkA6g_YtF8*={#0M4+jXRL0flBTdZWb&jFp|$2P#7Cn z7#ma=i^t=0{Np8|7pkBn6xBDuAqMEBq@(a4PnKmpaMZCP?lMswnDL*;Gshmrvp z1zXE9tQbk7z}#4woxt483Ut4ZGmcxp$;&O?Th?iTk)s(N4k+m?=7aUgrNRnvF62wA z@tw5v<8=o=>Y0Q$$UV0Jl&WW{)I5%tZ!3S20}|NV9Ca;fVQ1iUF zcFEfgn^Y@}2(S){dkxRPWU4<<)RFR|Fb&CJA+r*WUATYR+KN)uwFUUr)k18MMWO0C z$mB$Dz`$im1#$Z}r!n^J)Qe0~M6Ee*gzat##CP9R!Mi;R$~L zD@uq(P-`b3_5)>)>u@`3Gzf>?h||_JDbd7L>hiz^+d{}C@5%BsZd`JXfop=UZ6M^Y z3}^R%zc^rkgeu_V?AmbgWCYx4CM6aIp#|fTc@f5?Pzmxf#EfN^fyNI!d$D8%UN|OO z7W{A&A2^KKL-%vWg<`T|uq8P&?-x*xI|b}ga|d2Mwz*wBb2s<9n42i7-`fdQ&;;lZ z6$Cy;B&Q2m%9hLW)O3o)5%<;Hin6;RySs7~%xa=53LFgs+1lqSfVn_K%G8jgarx(q zl47T@=Zkm?K)_{J1mNNBTM#aRZ5g31>r*FA=*1oaYVe%Hz~M?B)P*)mo7*`VoN7y<@1QR|4Q%&rV6lX2GR;jsRaGY&7E9SODObcgePWFo2WI7h8nG{~QC8%X z(p1q;6*CWu7xMD(0dXk$Q>gJG{U6!EG=AA3Brg``4h~Pj6Tl%p;5~jLIHyJ1h86X; zHT)6kaa`mZg^c-!1G|3U;9@WMAyhEQCEg;kZzVIPZwiL$b6iz()mn z%00;Z42}{nkvAN#!72rq-3iRYMf2Yf_G;m?)Ah*f<)|P>UooUQyGr>QmQ?SINRI+| zmf>G!j}GH~J8VJ~;}gyLoc*Q64Pd+;k)GYAHY~yw^z475#ZwW2y13k4AK{_x_@-|b z3aJ-0aMgh3%^XhXNjw+eSj6DVEVM)GjZH@O!Svb!#S{3Bykq>u2L!f(_q1MzfLk?@ zcyC~jq?b?809Y4@3w8(7B2YoXy)CUlGaVP>z_Vr@Y$`&ivWm%oE>^p-%Nh{bL0BHm zziueEfve>B05RihS8op4)k6v59duCBaz9!M$hDYvEERZ;VeR(m01l+rr?GKM&!o_( zC7}4-TC?z%@OsDs;v+6_i-s+EvSzfn;~7jGMAZ%`oGATfe`A1&*zlZOVfTy_`gLJ% zCHO8Fs2p-Mnne(@ilQ4>zY3j@&P-FBg10d+l`KA`w_#@9Hwyu;G}5a`5Y@&2dug9? z%H(StGvXKL!dH)Q{E;2S-?ZS$IxP;2|~GwFbIO1Ya46rFm;~6 zIL9GuI3b~@`U`lRuFiVlt??DWV_Y=H@(0y6y$BNXtEE5}MvAsiv2egdDHp29Boc_z z?(ASd7g+&eMhLgF^}Hy{x%BP1?nUpmu(!s`35r8CSN3mSbY)YcDR4Dg%4-7UB}@=> zW3X-rZQV*xtS9}SH#U-A5j=o0+^xk(N@(v(`R1B|{QqRIW0u zcD_sJU7L=WcWnrJ>oC!T$XO#UEk$@#gFls*`9<0kfc%4DnWl$#1UyohP%7$mDI^O_ zMcb!jIw|+?wuHUgu$W6CXOEbWXj-&50f;Ab%b8!q@@y!YG1GYSj)YN5B_1UKr2>B+w=$e&TT}}^?+m#<>_x>jlpp)LiVed}hSt3#}rUFq+6sLH; zifL`X$|aQ^3o{_rnA##FvcuqjulS^BwZ(VZ5=F>HgI!Q(38m)1v=Wn_X4OXOA_Kg( zhkNYbg!Z*vCfT}(^Uz8Ih|AUa*jo{V3{aTM7$e64M{!dv-WR1>y&y6@@CUURtI-FG2q1~CS41{=7~j_*<(LJTMJxfguB}0* zk}9M(rEVNcv_Ol|qz24_JOL07K>)@EGXgR=laH;n5sR+a4$o4^K)qd42L1^D7x5!7 zx(gH4nZ3uuh%m{?AI-$JsR-=BD-2f*6%NRINqDm&0H* zsT$dkj~yc>ErU#MvH?p>`hlJuSodt2JrAY?*Q(!S&! zs&JzFJX?4Sc;T&#^ewVnOn001DYpdI*m8|hNrG(8KVrtffkFpPO;gpCU-MYZPNd+w zf#A~$O6@ZRO8^{i_@}}zT`2O2_&-f1dMfNa*yebIg&*DVtcjdcVWDQFA3de^z6=$p zG@_I-l=UJ4o=F6c2FTuXVefI!`EN%GM`#rxcwt8gCGs-A$Ss(FODirsB#J&o8uY4O zHD?k4opTRBV1pWE@AD_Ov8rJeqEAf}=UBpl+nr0&R!aRMaWb7x+75JIdi#X=ewOW)s<-=IL9uC)GIwU2OA+ zMNE^f?dUxNLi})~|F%ddRyKNJ0+sI?>MuhT=P8VxYI-KJt3 anyhow::Result> @@ -21,7 +21,7 @@ async fn get_runtime_api() -> anyhow::Result async fn read_chain_nonce() -> anyhow::Result<()> { let client = get_runtime_api().await.unwrap(); let chain_id = TypedChainId::Evm(5001); - let nonce_addr = dkg_runtime::api::storage() + let nonce_addr = tangle_runtime::api::storage() .dkg_proposals() .chain_nonces(chain_id); @@ -33,7 +33,7 @@ async fn read_chain_nonce() -> anyhow::Result<()> { .await?; assert_eq!(result, Some(Nonce(0))); let unkonwn_chain_id = TypedChainId::Evm(5000); - let nonce_addr = dkg_runtime::api::storage() + let nonce_addr = tangle_runtime::api::storage() .dkg_proposals() .chain_nonces(unkonwn_chain_id); let result = client @@ -62,8 +62,9 @@ async fn acknowledge_proposal_works() -> anyhow::Result<()> { // let eve = sp_keyring::AccountKeyring::Eve; let signer: PairSigner = PairSigner::new(Pair::from_string("//Eve", None).unwrap()); - let acknowlege_proposal_tx = - dkg_runtime::api::tx().dkg_proposals().acknowledge_proposal( + let acknowlege_proposal_tx = tangle_runtime::api::tx() + .dkg_proposals() + .acknowledge_proposal( nonce.clone(), src_id, r_id, From 19158cae00b2f0cec3128365b2484f94f73a07b6 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Wed, 17 May 2023 17:40:45 +0530 Subject: [PATCH 8/8] remove evm-test-utils from workspace --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e8aad9c..4adb2c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ documentation = { workspace = true } homepage = { workspace = true } [workspace] -members = [".", "proposals", "bridge-proofs", "evm-test-utils"] +members = [".", "proposals", "bridge-proofs"] [dependencies] # Substrate crates.